/* ============================================================
   StoryGrow Africa — Main Stylesheet
   Primary: #C8611B | Accent: #2D6A4F | Gold: #E9C46A
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #C8611B;
  --primary-dark: #A04E16;
  --primary-light: #E8793A;
  --green: #2D6A4F;
  --green-light: #40916C;
  --gold: #E9C46A;
  --cream: #FAF7F2;
  --dark: #1C1208;
  --dark-2: #2C1E0F;
  --text: #3D2B1F;
  --text-light: #7A6055;
  --text-lighter: #A89080;
  --border: #EAD8CC;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(200,97,27,0.08);
  --shadow-md: 0 8px 32px rgba(200,97,27,0.12);
  --shadow-lg: 0 20px 60px rgba(28,18,8,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --section-pad: 96px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
}

.text-accent { color: var(--primary); }
.text-accent-light { color: var(--gold); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-sub { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200,97,27,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,97,27,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}

/* ── Navbar floating over the dark hero (before user scrolls) ── */
.navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}
.navbar:not(.scrolled) .nav-logo-img {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 4px 10px;
}
.navbar:not(.scrolled) .nav-arrow {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff !important;
}
.navbar:not(.scrolled) .nav-cta:hover {
  background: #fff !important;
  color: var(--primary) !important;
}


.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Keep text fallback classes in case they appear elsewhere */
.logo-story { color: var(--dark); }
.logo-grow  { color: var(--primary); }
.logo-africa { color: var(--green); font-size: 1.15rem; }

@media (max-width: 768px) {
  .nav-logo-img { height: 36px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(200,97,27,0.06); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* ── Services dropdown ── */
.nav-has-dropdown { position: relative; }

.nav-dropdown {
  /* submenu is hidden by default; using !important guards
     against accidental overrides after updates */
  display: none !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(28,18,8,0.14);
  border: 1px solid var(--border);
  min-width: 256px;
  padding: 8px;
  z-index: 200;
  gap: 2px;
}

/* Small arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}

/* Desktop: show on hover / focus-within */
@media (min-width: 769px) {
  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown:focus-within .nav-dropdown { display: flex !important; }
  .nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }
}

/* always allow the `open` class to force the submenu visible */
.nav-has-dropdown.open .nav-dropdown { display: flex !important; }
.nav-has-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown li { list-style: none; }

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: rgba(200,97,27,0.07); color: var(--primary); }

.nav-dropdown .dd-icon { font-size: 1rem; flex-shrink: 0; }

/* Rotate indicator */
.nav-arrow {
  font-size: 0.65rem;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.2s;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(200,97,27,0.04);
    border-radius: 8px;
    padding: 4px;
    margin: 2px 0 6px;
  }
  .nav-dropdown::before { display: none; }
  .nav-has-dropdown.open .nav-dropdown { display: flex; }
  .nav-has-dropdown.open .nav-arrow { transform: rotate(180deg); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, #F5EDE4 60%, #EAD8CC 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -150px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--green);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--gold);
  top: 40%; left: 40%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--gold);
  position: relative;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #fff);
  border-radius: 2px;
  opacity: 0.35;
}

.hero-location {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Ghost button on dark hero background */
.hero .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Hero Visual */
.hero-visual {
  position: absolute;          /* fill whole hero section */
  inset: 0;
  z-index: 0;
}

.hero-content {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.5);
}

/* image carousel that replaces the previous floating cards */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;       /* fill area, maintain aspect ratio */
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  filter: brightness(0.65) saturate(1.1);
}
.hero-slider .slide.active {
  opacity: 1;
}

/* ── Ken Burns: four gentle pan/zoom directions, one per slide ── */
@keyframes kbZoomIn   { from { transform: scale(1)    translate(0,    0);    } to { transform: scale(1.08) translate(-1%,  -0.5%); } }
@keyframes kbPanRight { from { transform: scale(1.06) translate(-1.5%, 0);   } to { transform: scale(1)    translate( 1%,   0.5%); } }
@keyframes kbPanUp    { from { transform: scale(1)    translate(0.5%,  1%);  } to { transform: scale(1.08) translate(-0.5%,-1%);   } }
@keyframes kbZoomOut  { from { transform: scale(1.08) translate(1%,  -0.5%); } to { transform: scale(1)    translate(-0.5%, 0.5%); } }

.hero-slider .slide:nth-child(1).active { animation: kbZoomIn   6s ease-in-out forwards; }
.hero-slider .slide:nth-child(2).active { animation: kbPanRight 6s ease-in-out forwards; }
.hero-slider .slide:nth-child(3).active { animation: kbPanUp    6s ease-in-out forwards; }
.hero-slider .slide:nth-child(4).active { animation: kbZoomOut  6s ease-in-out forwards; }

/* overlay — gradient so text side stays dark, image breathes on the right */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.38) 55%,
    rgba(0,0,0,0.15) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Slide dot indicators ── */
.slider-dots {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.slider-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}
.slider-dot:hover:not(.active) {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.3);
}

/* make sure slides themselves sit beneath overlay */
.hero-slider, .hero-slider .slide { z-index: 0; }

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  animation: cardFloat 6s ease-in-out infinite;
}
.hero-card .card-icon { font-size: 1.4rem; }

.card-1 { top: 30px; left: 20px; animation-delay: 0s; }
.card-2 { top: 50%; right: 10px; transform: translateY(-50%); animation-delay: 2s; }
.card-3 { bottom: 40px; left: 40px; animation-delay: 4s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-2 { animation-name: cardFloat2; }
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 8px)) translateX(4px); }
}

.hero-badge {
  position: absolute;
  bottom: 60px; right: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-frame {
  background: linear-gradient(135deg, #EAD8CC, #F5EDE4);
  border-radius: var(--radius-xl);
  height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(200,97,27,0.04) 20px, rgba(200,97,27,0.04) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(200,97,27,0.04) 20px, rgba(200,97,27,0.04) 21px);
}

.about-img-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-stat-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 4px;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  background: rgba(200,97,27,0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(200,97,27,0.2);
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--wide {
  grid-column: 2 / 3;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== VALUES ===== */
.values {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.values-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #1A3A2A 100%);
}

.values .container { position: relative; z-index: 1; }

.section-header--light .section-eyebrow { color: var(--gold); }
.title--light { color: var(--white); }
.sub--light { color: rgba(255,255,255,0.65); }
.eyebrow--light { color: var(--gold); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.value-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: rgba(233,196,106,0.3);
}

.value-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ===== WHY US ===== */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(200,97,27,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.why-list li strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.why-list li p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.quote-block {
  background: linear-gradient(135deg, var(--cream), #F0E8DF);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 28px;
  border-left: 4px solid var(--primary);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 0.6;
  margin-bottom: 20px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-line {
  width: 32px; height: 2px;
  background: var(--primary);
}
.quote-author span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sectors-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sectors-list span {
  background: rgba(45,106,79,0.08);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(45,106,79,0.2);
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 2px;
}

.contact-details a,
.contact-details span {
  font-size: 0.97rem;
  color: var(--text);
}
.contact-details a:hover { color: var(--primary); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

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

.required { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-lighter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,97,27,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(45,106,79,0.08);
  border: 1px solid rgba(45,106,79,0.25);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* White pill behind the logo so it reads clearly on the dark footer */
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-services li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--primary-light); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .hero-container { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 260px; }
  .hero-card { font-size: 0.82rem; padding: 14px 18px; }
  .hero-badge { display: none; }
  .hero-scroll-hint { display: none; }

  /* Text sits on cream background below the 260px photo — switch to theme colours */
  .hero-content { text-shadow: none; }
  .hero-eyebrow { color: var(--primary); }
  .hero-eyebrow::before { background: var(--primary); }
  .hero-headline { color: var(--primary); }
  .hero-highlight { color: #fff; }
  .hero-highlight::after { display: none; }
  .hero-location { color: var(--primary); opacity: 1; }
  .hero-sub { color: var(--dark-2); }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame { height: 280px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: 1 / 3; justify-self: center; width: calc(50% - 12px); }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { order: -1; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .hero { padding-top: 72px; }
  .hero-container { padding: 36px 20px; }
  .hero-headline { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.2; }
  .hero-headline br { display: none; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; width: 100%; justify-self: auto; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-container { padding: 28px 16px; }
  .hero-headline { font-size: clamp(1.45rem, 8.5vw, 1.9rem); }
  .hero-location { font-size: 0.78rem; }
  .hero-sub { font-size: 0.9rem; line-height: 1.65; margin-bottom: 28px; }

  .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { max-width: 280px; }
}

/* ============================================================
   INTRO VIDEO OVERLAY
   ============================================================ */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5,5,5,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 24px 100px;
  transition: opacity 0.85s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.intro-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Video container — centred at 50% viewport width ── */
.intro-video-bg {
  position: relative;
  width: min(50vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  flex-shrink: 0;
}

.intro-video-bg iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  pointer-events: none;
}

/* ── Brand watermark — bottom-right, just above controls bar ── */
.intro-video-brand {
  position: absolute;
  bottom: 80px;
  right: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  background: rgba(5,5,5,0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
  transition: background 0.2s, border-color 0.2s;
}
.intro-video-brand:hover {
  background: rgba(200,97,27,0.75);
  border-color: rgba(200,97,27,0.5);
}
.intro-video-logo {
  height: 26px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px 6px;
  display: block;
}
.intro-video-brand span {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  white-space: nowrap;
}

/* ── Gradient overlays — not needed for centred video mode ── */
.intro-grad-top,
.intro-grad-bottom { display: none; }

/* ── Brand sits above the video ── */
.intro-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: introBrandFadeIn 1.2s ease 0.4s both;
  order: -1;
}

@keyframes introBrandFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-logo-img {
  height: clamp(60px, 10vw, 110px);
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 10px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.intro-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.75);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ── Bottom controls bar ── */
.intro-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Progress bar */
.intro-progress-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.18);
  border-radius: 99px;
  overflow: hidden;
}

.intro-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 1s linear;
}

/* Shared button style for the overlay */
.intro-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.intro-ctrl-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

.intro-mute-btn .mute-icon { font-size: 1rem; }

.intro-skip-btn {
  background: rgba(200,97,27,.75);
  border-color: rgba(200,97,27,.5);
}
.intro-skip-btn:hover {
  background: rgba(200,97,27,.95);
  border-color: var(--primary);
}

/* ── Loading state (while YouTube is buffering) ── */
.intro-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  transition: opacity 0.5s;
}
.intro-loader.loaded { opacity: 0; pointer-events: none; }

.intro-loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .intro-video-bg { width: 90vw; }
  .intro-overlay { padding: 60px 16px 90px; gap: 20px; }
}

@media (max-width: 480px) {
  .intro-controls { padding: 0 16px 20px; gap: 10px; }
  .intro-ctrl-btn { padding: 8px 14px; font-size: 0.78rem; }
  .intro-logo-text { font-size: 2.2rem; }
}
