/* ============================================================
   OVOLV — Business Growth
   Refined organic aesthetic: warm earth tones, natural textures
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --navy: #1b3a5c;
  --navy-deep: #12293f;
  --gold: #c5983e;
  --gold-hover: #a87e2a;
  --gold-light: #dbb96a;
  --sage: #5c7a5c;
  --sage-muted: rgba(92, 122, 92, 0.08);
  --cream: #faf8f3;
  --warm-white: #ffffff;
  --text: #2e2e2e;
  --text-mid: #555;
  --text-light: #777;
  --border: #e4e0d8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 6px;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --container: 1320px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.shrunk {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  transition: padding var(--transition);
}

.site-header.shrunk .header-inner {
  padding: 8px 0;
}

.logo a { display: flex; align-items: center; }
.logo img {
  height: 160px;
  width: auto;
  transition: height var(--transition);
}

.site-header.shrunk .logo img {
  height: 56px;
}

/* Desktop nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-hover);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Nav CTA button */
.main-nav a.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 0.5rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.main-nav a.nav-cta::after { display: none !important; }
.main-nav a.nav-cta:hover {
  background: var(--gold-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 58, 92, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav .nav-cta {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197,152,62,0.35);
}

/* ============================================================
   HERO BANNER (Home)
   ============================================================ */
.hero-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(27,58,92,0.15) 0%, rgba(27,58,92,0.45) 100%);
}

/* ============================================================
   PAGE BANNER (Inner pages)
   ============================================================ */
.page-banner {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.page-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-banner .overlay {
  position: absolute; inset: 0;
  background: rgba(27,58,92,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner h1 {
  font-size: 2.8rem;
  color: #fff;
  text-align: center;
}

/* Per-page overlay tints */
.page-banner--hiw .overlay {
  background: linear-gradient(160deg, rgba(27,58,92,0.6) 0%, rgba(18,41,63,0.7) 100%);
}

.page-banner--services .overlay {
  background: linear-gradient(160deg, rgba(92,122,92,0.5) 0%, rgba(27,58,92,0.65) 100%);
}

.page-banner--insights .overlay {
  background: linear-gradient(160deg, rgba(168,126,42,0.4) 0%, rgba(27,58,92,0.6) 100%);
}

/* ============================================================
   SECTIONS — shared patterns
   ============================================================ */
.section { padding: 5rem 0; }
.section--white { background: var(--warm-white); }
.section--cream { background: var(--cream); }

.section-heading {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtext {
  text-align: center;
  color: var(--text-mid);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   HOME — Intro
   ============================================================ */
.home-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
}

.home-intro h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.home-intro .lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.home-intro p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.home-intro .waterwheel-ref {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 1.75rem 0 1.75rem;
}

.home-intro-image img {
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   HOME — Three-column card grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.card .icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* Bordered card variant */
.card--bordered {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card--bordered:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ============================================================
   HOME — Waterwheel feature
   ============================================================ */
.waterwheel-grid {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3.5rem;
  align-items: center;
}

.waterwheel-logo img { max-width: 300px; }

.waterwheel-text h2 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.waterwheel-text .tagline {
  color: var(--gold-hover);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.waterwheel-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ============================================================
   HOME — CTA
   ============================================================ */
.cta-block {
  text-align: center;
}

.cta-block h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-block p {
  color: var(--text-mid);
  max-width: 660px;
  margin: 0 auto 0.75rem;
}

.cta-block .btn { margin-top: 1.25rem; }

/* ============================================================
   HOW IT WORKS — Flow steps
   ============================================================ */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.flow-steps .arrow {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Programme prose */
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-mid);
}
.prose p { margin-bottom: 1rem; }

/* Gains list */
.styled-list {
  max-width: 620px;
  margin: 1.5rem auto 2rem;
}
.styled-list li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  color: var(--text-mid);
  position: relative;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.note-text {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   SERVICES — Intro grid
   ============================================================ */
.services-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.services-intro-grid h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.services-intro-grid p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.services-intro-grid img {
  border-radius: var(--radius);
  width: 100%;
}

/* Service block with image */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.service-split.reverse { direction: rtl; }
.service-split.reverse > * { direction: ltr; }

.service-split img {
  border-radius: var(--radius);
  width: 100%;
}

.service-split h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.service-split .service-tagline {
  font-size: 1.05rem;
  color: var(--gold-hover);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.service-split p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ============================================================
   INSIGHTS
   ============================================================ */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}
.article-body h2 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}
.article-body p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

/* ============================================================
   CONTACT — Banner with background image
   ============================================================ */
.contact-banner {
  position: relative;
  overflow: hidden;
  background: var(--warm-white) url('/images/contact-bg.png') no-repeat center top;
  background-size: cover;
  padding: 4rem 0 3rem;
}

.contact-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-banner__logo {
  max-width: 280px;
  margin: 0 auto;
}

/* Contact content — gradient background with light text */
.contact-body {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--sage) 100%);
  padding: 5rem 0;
}

.contact-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.contact-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Contact details with icons */
.contact-details-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-detail__icon {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: #fff;
}

/* ============================================================
   CONTACT — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .contact-banner {
    padding: 3rem 0 2rem;
  }

  .contact-banner__logo {
    max-width: 200px;
  }

  .contact-body {
    padding: 3.5rem 0;
  }

  .contact-content h1 {
    font-size: 1.75rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact {
  text-align: center;
}

.footer-contact a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold-light); }

.footer-legal {
  text-align: right;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-legal a:hover { color: #fff; }

.footer-legal .pendleton {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.footer-legal .pendleton .pendleton-logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .home-intro h1 { font-size: 2.5rem; }
  .section { padding: 3.5rem 0; }

  .waterwheel-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .waterwheel-logo img { margin: 0 auto; }

  .service-split {
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-legal { text-align: center; }
  .footer-legal .pendleton { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .main-nav { display: none; }

  /* Header */
  .header-inner { padding: 15px 0; }
  .logo img { height: 132px; }
  .site-header.shrunk .logo img { height: 44px; }

  /* Hero */
  .hero-banner { height: 240px; }
  .page-banner { height: 180px; }
  .page-banner h1 { font-size: 2rem; }

  /* Home */
  .home-intro h1 { font-size: 2rem; }
  .home-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-intro-image { order: -1; }
  .home-intro-image img { max-width: 180px; }

  /* Cards → single column */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Waterwheel */
  .waterwheel-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .waterwheel-logo img { max-width: 200px; margin: 0 auto; }

  /* Services */
  .services-intro-grid,
  .service-split,
  .service-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  /* Section spacing */
  .section { padding: 3rem 0; }
  .section-heading { font-size: 1.75rem; }

  /* Flow steps */
  .flow-steps { font-size: 1.25rem; gap: 0.75rem; }

  /* Contact hero */
  .contact-hero { padding: 3.5rem 0; }
  .contact-hero h1 { font-size: 1.85rem; }
  .contact-hero .logo-lg { max-width: 180px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-brand img { margin: 0 auto 0.75rem; }
  .footer-legal { text-align: center; }
  .footer-legal .pendleton { justify-content: center; }
}

/* ============================================================
   MODAL — Discovery Call
   ============================================================ */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 41, 63, 0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
  background: rgba(18, 41, 63, 0.55);
  backdrop-filter: blur(3px);
}

/* Animate in — need a tiny delay so display:flex is applied first */
.modal-overlay.open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Modal box */
.modal {
  position: relative;
  background: var(--warm-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2rem;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition), transform var(--transition);
}
.modal-close:hover {
  color: var(--text);
  transform: scale(1.15);
}

/* Title & intro */
.modal-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal-intro {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Honeypot — must be invisible but present in DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group .req {
  color: #c44;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,152,62,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* Character count */
.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.char-count--warn {
  color: var(--gold-hover);
}
.char-count--zero {
  color: #c44;
  font-weight: 600;
}

/* Error message */
.form-error {
  display: none;
  background: #fdf2f2;
  border: 1px solid #f0c0c0;
  border-radius: var(--radius);
  color: #a33;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-cancel {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-cancel:hover {
  background: #f5f3ef;
  color: var(--text);
}

/* Submit disabled state */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Success view */
.modal-success-view {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 2rem;
  line-height: 64px;
  margin: 0 auto 1.5rem;
}

/* ============================================================
   MODAL — Mobile full-screen
   ============================================================ */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* ============================================================
   ANIMATIONS (subtle fade-in on scroll)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
