/* ═══════════════════════════════════════════════════════════════════════════
   NovaVision — Main Stylesheet
   Design: Clean Light Theme · NovaVision Brand Colors
   Brand Colors from Logo:
     Navy Dark:  #0B1A3B  (deep background navy)
     Cyan/Teal:  #00C8D4  (primary accent — logo teal)
     Cyan Light: #1DE9D5  (bright highlight)
     Slate:      #1C3A6A  (mid navy)
     White:      #FFFFFF
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ──────────────────────────────────────────────────────────── */
:root {
  /* Light theme surfaces */
  --surface:      #F4F7FB;
  --surface-alt:  #EBF1F8;
  --white:        #FFFFFF;
  --card-bg:      #FFFFFF;

  /* Text */
  --ink:          #0B1A3B;
  --ink-soft:     #1C3A6A;
  --muted:        #5A6B85;
  --muted-light:  #8899AA;

  /* Borders */
  --border:       rgba(11,26,59,0.1);
  --border-dk:    rgba(11,26,59,0.12);

  /* Brand accent — NovaVision Cyan/Teal */
  --cyan:         #00C8D4;
  --cyan-light:   #1DE9D5;
  --cyan-dark:    #00A8B5;
  --navy:         #0B1A3B;
  --navy-mid:     #1C3A6A;

  /* Legacy gold aliases → remapped to cyan for light theme */
  --gold:         #00C8D4;
  --gold-light:   #1DE9D5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);

  --nav-h: 80px;
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. TYPOGRAPHY SCALE ────────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

/* ── 4. LAYOUT UTILITIES ────────────────────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.section { padding: clamp(5rem, 10vw, 10rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 6rem) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── 5. SECTION LABELS ──────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--cyan);
}
.section-label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

/* ── 6. BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}
.btn-primary:hover { background: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,200,212,0.3); }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-ghost {
  color: var(--cyan-dark);
  padding: 0;
}
.btn-ghost .arrow { transition: transform 0.3s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ── 7. NAV ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(11,26,59,0.08);
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-nav-cta {
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--cyan); color: var(--navy); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--navy);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 8. HERO (index) ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,26,59,0.3) 0%,
    rgba(11,26,59,0.15) 40%,
    rgba(11,26,59,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 8rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--cyan);
}
.hero-eyebrow span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 10rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 16ch;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero h1 em { font-style: italic; color: var(--cyan); }
.hero-sub {
  max-width: 420px;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.75s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.95s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: fadeIn 1s var(--ease-out) 1.5s both;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ── 9. MARQUEE ─────────────────────────────────────────────────────────── */
.marquee-strip {
  background: var(--navy);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── 10. STATS BAR ──────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-mid);
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item {
  text-align: center;
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

/* ── 11. SERVICES SECTION ───────────────────────────────────────────────── */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.services-intro-right p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dk);
  border: 1px solid var(--border-dk);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  display: block;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--card-accent, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover { background: var(--navy); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-title { color: var(--white); }
.service-card:hover .service-desc { color: rgba(255,255,255,0.55); }
.service-card:hover .service-icon { color: var(--card-accent, var(--cyan)); }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--card-accent, var(--cyan-dark));
  transition: color 0.4s;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  transition: color 0.4s;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent, var(--cyan-dark));
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s var(--ease-out);
}

/* ── 12. PORTFOLIO SECTION ──────────────────────────────────────────────── */
.portfolio-section { background: var(--surface-alt); }
.portfolio-section .section-label span { color: var(--cyan-dark); }
.portfolio-section .display-lg { color: var(--navy); }

.portfolio-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-dk);
  border-radius: 1px;
  transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}
.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
}
.portfolio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
  filter: grayscale(20%);
}
.portfolio-card:hover img {
  transform: scale(1.07);
  filter: grayscale(0%);
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,59,0.92) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.portfolio-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 400;
}

.portfolio-card.featured { grid-column: span 2; }

/* ── 13. BLOG CARDS ─────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-dk);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(11,26,59,0.1);
}
.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-alt);
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 0.75rem;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  flex: 1;
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-dk);
  padding-top: 1rem;
  margin-top: auto;
}
.blog-author { font-size: 0.8rem; color: var(--muted); }
.blog-date   { font-size: 0.75rem; color: var(--muted); }

/* ── 14. TESTIMONIALS ───────────────────────────────────────────────────── */
.testimonials-section { background: var(--navy); overflow: hidden; }
.testimonials-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s var(--ease-out);
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 2.5rem;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.testimonial-quote::before { content: '"'; color: var(--cyan); font-size: 3rem; line-height: 0; vertical-align: -0.7rem; margin-right: 0.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.875rem; font-weight: 500; color: var(--white); }
.testimonial-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem; }

/* ── 15. CTA BAND ───────────────────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: 'START';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 18vw;
  font-weight: 300;
  color: rgba(0,200,212,0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}
.cta-band-inner { text-align: center; position: relative; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 16. CONTACT PAGE ───────────────────────────────────────────────────── */
.contact-hero { padding: calc(var(--nav-h) + 6rem) 0 6rem; background: var(--navy); }
.contact-hero h1 { color: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-detail-item p { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.contact-detail-item a { font-size: 1rem; color: var(--ink); }
.contact-detail-item a:hover { color: var(--cyan-dark); }

.contact-form {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--border-dk);
  border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(11,26,59,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-dk);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { display: none; padding: 1rem; border-radius: var(--r-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

/* ── 17. INNER PAGE HERO ────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 6rem) 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--surface));
}
.page-hero .label { color: var(--cyan); margin-bottom: 1.5rem; display: block; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 600px; margin-top: 1.25rem; font-size: 1.05rem; line-height: 1.75; }

/* ── 18. SERVICE DETAIL PAGE ────────────────────────────────────────────── */
.service-detail-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 6rem) 0 5rem;
}
.service-detail-hero h1 { color: var(--white); }
.service-detail-hero .accent { color: var(--cyan); }

.service-overview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}
.service-overview img {
  width: 100%; border-radius: var(--r-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-dk);
  border: 1px solid var(--border-dk);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 3rem;
}
.benefit-item {
  background: var(--white);
  padding: 2rem;
}
.benefit-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.benefit-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.benefit-desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

.process-steps { margin-top: 3rem; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-dk);
  align-items: start;
}
.process-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--border-dk);
  line-height: 1;
}
.process-content h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.process-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--border-dk); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  gap: 1rem;
}
.faq-icon {
  width: 24px; height: 24px;
  border: 1px solid var(--border-dk);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--muted);
}
.faq-item.open .faq-icon { background: var(--cyan); border-color: var(--cyan); color: var(--navy); transform: rotate(45deg); }
.faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.5rem; }

/* ── 19. BLOG DETAIL ────────────────────────────────────────────────────── */
.blog-hero-image {
  width: 100%; height: 55vh;
  object-fit: cover;
  margin-top: var(--nav-h);
}
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 4vw, 2rem);
}
.blog-article-cat { color: var(--cyan-dark); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.25rem; display: block; }
.blog-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.blog-article-meta { display: flex; gap: 2rem; color: var(--muted); font-size: 0.8rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-dk); }
.blog-article-body { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }
.blog-article-body p { margin-bottom: 1.5rem; }
.blog-article-body h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin: 2.5rem 0 1rem; color: var(--ink); }
.blog-article-body h3 { font-size: 1.2rem; font-weight: 500; margin: 2rem 0 0.75rem; color: var(--ink); }

/* ── 20. FOOTER ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 5rem 0 0; }
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.footer-logo .logo-text { color: var(--white); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.footer-socials a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--cyan); }

.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 0.5rem; }
.footer-contact a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-credit { font-family: var(--font-display); font-style: italic; }

/* ── 21. WHY US ─────────────────────────────────────────────────────────── */
.why-us { background: var(--surface-alt); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--border-dk);
  border-radius: var(--r-md);
  overflow: hidden;
}
.why-item {
  background: var(--white);
  padding: 3rem;
  border-right: 1px solid var(--border-dk);
  border-bottom: 1px solid var(--border-dk);
  position: relative;
  overflow: hidden;
}
.why-item:nth-child(2n) { border-right: none; }
.why-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(0,200,212,0.1);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}
.why-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.why-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--navy); margin-bottom: 0.75rem; }
.why-desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ── 22. ANIMATIONS ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollLine {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 23. PORTFOLIO PAGE ─────────────────────────────────────────────────── */
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── 24. BREADCRUMB ─────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* ── 25. NEWSLETTER INPUT (light bg) ────────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.9rem 1.25rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ── 26. RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .services-intro { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .service-overview { grid-template-columns: 1fr; gap: 3rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonials-slider { gap: 1rem; }
  .testimonial-card { flex: 0 0 calc(50% - 0.5rem); }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open .nav-link {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--navy);
  }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-full-grid { grid-template-columns: 1fr; }
  .portfolio-card.featured { grid-column: 1; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 85vw; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
  .hero-scroll { display: none; }
}

/* ── 27. CONTEXT OVERRIDES — buttons on dark navy sections ─────────────── */
.hero .btn-outline,
.cta-band .btn-outline,
.testimonials-section .btn-outline,
.why-us .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.hero .btn-outline:hover,
.cta-band .btn-outline:hover,
.testimonials-section .btn-outline:hover,
.why-us .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* ── 28. DARK SECTION TEXT FIXES ────────────────────────────────────────── */
.stats-bar .stat-item { border-right-color: rgba(255,255,255,0.08); }

/* Service cards on dark hover need white text reliably */
.service-card:hover .service-title,
.service-card:hover .service-desc { transition: color 0.3s; }

/* Why-us section heading — navy on light card bg */
.why-us .display-lg { color: var(--navy); }

/* Process steps on dark background */
.section[style*="background:var(--navy)"] .process-num { color: rgba(255,255,255,0.12); }
.section[style*="background:var(--navy)"] .process-content h4 { color: var(--white); }
.section[style*="background:var(--navy)"] .process-content p { color: rgba(255,255,255,0.55); }

/* Benefits grid on dark background */
.section[style*="background:var(--navy)"] .benefit-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.section[style*="background:var(--navy)"] .benefit-title { color: var(--white); }
.section[style*="background:var(--navy)"] .benefit-desc { color: rgba(255,255,255,0.55); }

/* ── 29. PORTFOLIO SECTION ON LIGHT BG ──────────────────────────────────── */
.portfolio-section { background: var(--surface-alt); }
.portfolio-section .display-lg { color: var(--navy); }
.portfolio-section .section-label span { color: var(--cyan-dark); }

/* ── 30. PAGE HERO BOTTOM GRADIENT FIX ─────────────────────────────────── */
.page-hero::after { background: linear-gradient(to bottom, transparent, var(--surface)); }

/* ── 31. SECTION LABEL ON DARK ─────────────────────────────────────────── */
.testimonials-section .section-label::before,
.why-us .section-label::before { background: var(--cyan); }
.testimonials-section .section-label span { color: var(--cyan); }
.why-us .section-label span { color: var(--cyan-dark); }

/* ── 32. BLOG FEATURED POST FIX ────────────────────────────────────────── */
.blog-featured-thumb { background: var(--surface-alt); }
