/* =========================================================
   BASHITHA DIGITAL — Stylesheet
   Design system: dark navy / electric blue / light sections
   Fonts: Manrope (display), Inter (body)
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  /* Core palette */
  --navy-950: #060911;
  --navy-900: #0a0f1c;
  --navy-800: #0f1626;
  --navy-700: #161f35;
  --navy-600: #232f4d;
  --line-on-dark: rgba(255,255,255,0.09);

  --white: #ffffff;
  --paper: #f6f7fb;
  --paper-2: #eef1f7;
  --ink: #0a0f1c;
  --ink-muted: #4d566b;
  --ink-faint: #8891a3;

  --blue-500: #2f6bff;
  --blue-400: #4f8bff;
  --blue-300: #7aa8ff;
  --cyan-400: #38d6f2;

  --grad-accent: linear-gradient(120deg, #2f6bff 0%, #38d6f2 100%);
  --grad-dark: radial-gradient(120% 140% at 85% 0%, #10203f 0%, #0a0f1c 45%, #060911 100%);

  /* Type */
  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", "Manrope", sans-serif;

  /* Radii / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 20px 50px -20px rgba(10,15,28,0.25);
  --shadow-dark: 0 30px 60px -25px rgba(0,0,0,0.55);

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5{ font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p{ margin: 0; }
input, textarea, select{ font-family: inherit; font-size: 16px; }

:focus-visible{
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Utility ---------- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section{ padding: var(--section-y) 0; }
.section-dark{ background: var(--grad-dark); color: var(--white); position: relative; }
.section-paper{ background: var(--paper); }
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-500);
  margin-bottom: 18px;
}
.eyebrow::before{ content:""; width: 18px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.section-dark .eyebrow{ color: var(--cyan-400); }

.section-head{ max-width: 720px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(30px, 4.2vw, 46px); }
.section-head .lead{ margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }
.section-dark .section-head .lead{ color: rgba(255,255,255,0.68); }

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

/* ---------- Buttons ---------- */
.btn{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translate(3px,-3px); }
.btn:active{ transform: scale(.97); }

.btn-primary{
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(47,107,255,0.55);
}
.btn-primary:hover{ box-shadow: 0 18px 40px -12px rgba(47,107,255,0.75); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: rgba(10,15,28,0.16);
}
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-2px); }

.section-dark .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.28); }
.section-dark .btn-ghost:hover{ border-color: #fff; }

.btn-outline-light{
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover{ background: rgba(255,255,255,0.08); border-color: #fff; transform: translateY(-2px); }

.btn-block{ width: 100%; }
.btn-lg{ padding: 17px 34px; font-size: 15px; }

/* ---------- Navbar ---------- */
.navbar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar .wrap{ display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar.is-scrolled{
  padding: 13px 0;
  background: rgba(6,9,17,0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
.brand{
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em; color: #fff; display: flex; align-items: center; gap: 10px;
}
.brand .mark{
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47,107,255,0.7);
}
.brand span{ opacity: .55; font-weight: 600; }

.nav-links{ display: flex; align-items: center; gap: 38px; }
.nav-links a{
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after{
  content:""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad-accent); border-radius: 2px; transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }

.nav-cta{ display: flex; align-items: center; gap: 14px; }
.nav-cta .btn-primary{ padding: 12px 24px; font-size: 13.5px; }

.hamburger{
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hamburger span{ width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.hamburger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  position: fixed; inset: 0; z-index: 999;
  background: var(--grad-dark);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a{
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff;
  padding: 14px 0; opacity: 0.9;
}
.mobile-nav a:hover{ opacity: 1; color: var(--blue-300); }
.mobile-nav .btn{ margin-top: 20px; }
.mobile-nav .mobile-contact{
  margin-top: 34px; text-align: center; color: rgba(255,255,255,0.5);
  font-size: 13.5px; letter-spacing: .04em;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: clamp(150px, 20vw, 210px) 0 clamp(80px, 10vw, 120px);
  color: #fff;
  overflow: hidden;
}
.hero-grid{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy .eyebrow{ color: var(--cyan-400); }
.hero h1{
  font-size: clamp(38px, 5.6vw, 68px);
  color: #fff;
}
.hero h1 em{
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead{
  margin-top: 24px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.68);
  max-width: 540px;
}
.hero-actions{ margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual{ position: relative; height: clamp(320px, 36vw, 460px); }
.hero-visual svg{ width: 100%; height: 100%; }
.node{ animation: pulse 3.6s ease-in-out infinite; transform-origin: center; }
.node-2{ animation-delay: .5s; }
.node-3{ animation-delay: 1s; }
.node-4{ animation-delay: 1.5s; }
.node-5{ animation-delay: 2s; }
@keyframes pulse{
  0%, 100%{ opacity: .55; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.35); }
}
.link-line{ stroke-dasharray: 6 6; animation: dash 20s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset: -400; } }
.hero-orb{
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  animation: float 9s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-18px) translateX(10px); }
}
.hero-bg-grid{
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, black 10%, transparent 75%);
}

/* ---------- Trust strip ---------- */
.trust-strip{
  background: var(--navy-950); border-top: 1px solid var(--line-on-dark);
  padding: 30px 0;
}
.trust-strip ul{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.trust-strip li{
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  color: rgba(255,255,255,0.42);
  display: flex; align-items: center; gap: 10px;
}
.trust-strip li::before{
  content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400);
}

/* ---------- About intro (split) ---------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse{ grid-template-columns: 1fr 1fr; }
.split.reverse .split-visual{ order: 2; }
.split-copy h2{ font-size: clamp(28px, 3.6vw, 42px); }
.split-copy .lead{ margin-top: 20px; font-size: 16.5px; line-height: 1.8; color: var(--ink-muted); }
.split-copy .btn{ margin-top: 30px; }

.visual-card{
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-dark);
  aspect-ratio: 4/3.1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-dark);
}
.visual-card .grid-lines{
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.visual-card .glow{
  position: absolute; width: 60%; height: 60%; border-radius: 50%;
  background: var(--grad-accent); filter: blur(70px); opacity: .45;
}
.visual-stat{
  position: relative; z-index: 2; text-align: center; color: #fff;
}
.visual-stat .badge{
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .06em;
  backdrop-filter: blur(6px);
}

/* ---------- Service Cards ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card{
  padding: 34px 28px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid rgba(10,15,28,0.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: rgba(47,107,255,0.25); }
.service-card .num{
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--blue-500);
  letter-spacing: .06em;
}
.service-card h3{ margin-top: 16px; font-size: 21px; }
.service-card p{ margin-top: 12px; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }
.service-card ul{ margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.service-card ul li{
  font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px;
}
.service-card ul li::before{
  content:""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad-accent); flex-shrink: 0;
}
.services-cta{ text-align: center; margin-top: 48px; }

/* ---------- Portfolio ---------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn{
  padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid rgba(10,15,28,0.14);
  background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--ink-muted); transition: all .3s var(--ease);
}
.filter-btn:hover{ border-color: var(--ink); color: var(--ink); }
.filter-btn.active{ background: var(--ink); color: #fff; border-color: var(--ink); }
.section-dark .filter-btn{ color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.18); }
.section-dark .filter-btn.active{ background: var(--grad-accent); border-color: transparent; color: #fff; }

.portfolio-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-grid.is-filtering .project-card{ transition: opacity .35s var(--ease), transform .35s var(--ease); }
.project-card{
  border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  border: 1px solid rgba(10,15,28,0.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.project-card.is-hidden{ display: none; }
.project-media{
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-media .mono{
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: rgba(255,255,255,0.85);
  letter-spacing: .08em; z-index: 2;
}
.project-media .grid-lines{
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-media .glow{ position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(60px); opacity: .55; }
.project-body{ padding: 24px 26px 28px; }
.project-tag{
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-500);
}
.project-body h3{ margin-top: 10px; font-size: 21px; }
.project-body p{ margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-muted); }
.project-link{
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.project-link svg{ width: 14px; height: 14px; transition: transform .3s var(--ease); }
.project-link:hover svg{ transform: translate(3px,-3px); }

/* project media color variants */
.media-1{ background: linear-gradient(135deg, #163a2e, #0a0f1c); }
.media-1 .glow{ background: #23c58f; }
.media-2{ background: linear-gradient(135deg, #1a2340, #0a0f1c); }
.media-2 .glow{ background: #2f6bff; }
.media-3{ background: linear-gradient(135deg, #2a1740, #0a0f1c); }
.media-3 .glow{ background: #8b5cf6; }
.media-4{ background: linear-gradient(135deg, #3a2412, #0a0f1c); }
.media-4 .glow{ background: #f2a03d; }
.media-5{ background: linear-gradient(135deg, #1f1414, #0a0f1c); }
.media-5 .glow{ background: #ef4d5e; }
.media-6{ background: linear-gradient(135deg, #142035, #0a0f1c); }
.media-6 .glow{ background: #38d6f2; }

/* ---------- Process ---------- */
.process-list{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative; }
.process-list::before{
  content:""; position: absolute; top: 30px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.16) 15%, rgba(255,255,255,0.16) 85%, rgba(255,255,255,0));
}
.process-item{ padding: 0 20px 0 0; position: relative; }
.process-num{
  width: 60px; height: 60px; border-radius: 50%; background: var(--navy-800); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--cyan-400);
  position: relative; z-index: 2; margin-bottom: 26px;
}
.process-item h3{ font-size: 19px; color: #fff; }
.process-item p{ margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.6); }

/* ---------- Why choose us ---------- */
.benefits-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card{
  padding: 30px; border-radius: var(--r-lg); background: var(--paper);
  border: 1px solid rgba(10,15,28,0.06);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.benefit-card:hover{ transform: translateY(-6px); background: var(--white); box-shadow: var(--shadow-soft); }
.benefit-icon{
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.benefit-icon svg{ width: 22px; height: 22px; stroke: #fff; }
.benefit-card h3{ font-size: 18px; }
.benefit-card p{ margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-muted); }

/* ---------- Testimonial ---------- */
.testimonial-note{
  font-size: 12.5px; letter-spacing: .03em; color: var(--ink-faint); text-align: center;
  margin-top: 28px; font-style: italic;
}
.section-dark .testimonial-note{ color: rgba(255,255,255,0.4); }
.testimonial-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card{
  padding: 32px 28px; border-radius: var(--r-lg); background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
}
.testimonial-card .quote-mark{ font-family: var(--font-display); font-size: 40px; color: var(--blue-400); line-height: 1; }
.testimonial-card p{ margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.82); }
.testimonial-card .who{ margin-top: 20px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: rgba(255,255,255,0.45); letter-spacing: .03em; }

/* ---------- CTA banner ---------- */
.cta-banner{
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-dark);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  text-align: center; color: #fff;
}
.cta-banner h2{ font-size: clamp(28px, 4vw, 44px); }
.cta-banner .lead{ max-width: 560px; margin: 20px auto 0; color: rgba(255,255,255,0.68); font-size: 16.5px; line-height: 1.7; }
.cta-actions{ margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner .glow{
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: var(--grad-accent); filter: blur(110px); opacity: .35; top: -160px; right: -80px; pointer-events: none;
}
.cta-whatsapp{
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,0.5); letter-spacing: .02em;
}
.cta-whatsapp a{ color: var(--cyan-400); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list{ max-width: 820px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid rgba(10,15,28,0.1); }
.faq-question{
  width: 100%; background: none; border: none; text-align: left;
  padding: 24px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.faq-question .icon{
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(10,15,28,0.16);
  display: flex; align-items: center; justify-content: center; position: relative; transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.faq-question .icon::before, .faq-question .icon::after{
  content:""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-question .icon::before{ width: 12px; height: 2px; }
.faq-question .icon::after{ width: 2px; height: 12px; }
.faq-item.is-open .faq-question .icon{ background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item.is-open .faq-question .icon::before, .faq-item.is-open .faq-question .icon::after{ background: #fff; }
.faq-item.is-open .faq-question .icon::after{ opacity: 0; }
.faq-answer{
  max-height: 0; overflow: hidden; transition: max-height .45s var(--ease);
}
.faq-answer-inner{ padding: 0 34px 24px 4px; font-size: 15px; line-height: 1.75; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.footer{ background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 72px 0 28px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand p{ font-size: 14.5px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.48); }
.footer-social{ display: flex; gap: 10px; margin-top: 24px; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease);
}
.footer-social a:hover{ background: var(--grad-accent); border-color: transparent; transform: translateY(-3px); }
.footer-social svg{ width: 16px; height: 16px; stroke: rgba(255,255,255,0.75); }
.footer-social a:hover svg{ stroke: #fff; }
.footer-col h4{
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 20px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 13px; }
.footer-col a{ font-size: 14.5px; color: rgba(255,255,255,0.52); transition: color .3s var(--ease); }
.footer-col a:hover{ color: #fff; }
.footer-col .contact-line{ font-size: 14.5px; color: rgba(255,255,255,0.52); }
.footer-bottom{
  padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.38);
}
.footer-bottom a{ color: rgba(255,255,255,0.5); }
.footer-bottom a:hover{ color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  box-shadow: var(--shadow-soft);
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--blue-500); }
.back-to-top svg{ width: 18px; height: 18px; }

/* ---------- Inner page hero (services/portfolio/about/contact) ---------- */
.page-hero{
  position: relative; color: #fff; padding: clamp(140px, 18vw, 190px) 0 clamp(60px, 8vw, 90px);
  overflow: hidden;
}
.page-hero h1{ font-size: clamp(34px, 5vw, 58px); max-width: 780px; }
.page-hero .lead{ margin-top: 20px; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,0.68); max-width: 560px; }
.page-hero .crumb{
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-400); margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.page-hero .crumb a{ color: rgba(255,255,255,0.45); }
.page-hero .crumb a:hover{ color: #fff; }

/* ---------- Services page detail blocks ---------- */
.service-detail{
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px;
  padding: clamp(48px, 6vw, 76px) 0; border-bottom: 1px solid rgba(10,15,28,0.08);
  align-items: start;
}
.service-detail:last-child{ border-bottom: none; }
.service-detail-head .num{
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--blue-500); letter-spacing: .06em;
}
.service-detail-head h2{ margin-top: 14px; font-size: clamp(24px, 3vw, 32px); }
.service-detail-head .lead{ margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: var(--ink-muted); }
.service-detail-head .btn{ margin-top: 26px; }
.service-detail-body{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.detail-block h4{
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
}
.detail-block ul{ display: flex; flex-direction: column; gap: 12px; }
.detail-block ul li{
  font-size: 14.5px; color: var(--ink-muted); padding-left: 20px; position: relative; line-height: 1.6;
}
.detail-block ul li::before{
  content:""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad-accent);
}

/* ---------- About page ---------- */
.values-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-chip{
  padding: 26px 18px; text-align: center; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid rgba(10,15,28,0.06);
}
.value-chip .n{ font-family: var(--font-display); font-weight: 800; color: var(--blue-500); font-size: 13px; }
.value-chip h4{ margin-top: 10px; font-size: 15.5px; }

.approach-flow{ display: flex; align-items: center; flex-wrap: wrap; gap: 0; justify-content: center; }
.approach-step{
  padding: 16px 22px; border-radius: var(--r-pill); background: var(--navy-800); border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
}
.approach-arrow{ color: rgba(255,255,255,0.3); padding: 0 14px; font-size: 18px; }

.mission-block{
  border-radius: var(--r-lg); background: var(--grad-dark); color: #fff;
  padding: clamp(40px, 6vw, 64px); text-align: center;
}
.mission-block .eyebrow{ justify-content: center; color: var(--cyan-400); }
.mission-block p{ font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; max-width: 760px; margin: 0 auto; }

.philosophy-quote{
  border-left: 3px solid var(--blue-500); padding-left: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; color: var(--ink);
}

/* ---------- Contact page ---------- */
.contact-layout{ display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-info-card{
  padding: 34px 30px; border-radius: var(--r-lg); background: var(--navy-800); color: #fff;
  border: 1px solid rgba(255,255,255,0.08); position: sticky; top: 110px;
}
.contact-info-card h3{ font-size: 20px; }
.contact-info-card p{ margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.contact-info-list{ margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-item{ display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ico{
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .ico svg{ width: 17px; height: 17px; stroke: var(--cyan-400); }
.contact-info-item .label{ font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.contact-info-item .val{ font-weight: 700; font-size: 14.5px; margin-top: 3px; }
.contact-info-item .val a:hover{ color: var(--cyan-400); }
.contact-info-card .btn{ margin-top: 26px; }

.form-card{
  padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid rgba(10,15,28,0.06);
}
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); }
.field .req{ color: var(--blue-500); }
.field input, .field select, .field textarea{
  padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid rgba(10,15,28,0.14);
  background: var(--white); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea{ resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,107,255,0.12); outline: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: #e0475a; }
.field .error-msg{ font-size: 12.5px; color: #e0475a; display: none; }
.field.has-error .error-msg{ display: block; }
.form-success{
  display: none; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(47,107,255,0.08); border: 1px solid rgba(47,107,255,0.25); margin-bottom: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.form-success.is-visible{ display: flex; }
.form-success svg{ width: 22px; height: 22px; stroke: var(--blue-500); flex-shrink: 0; }
.form-note{ font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .services-grid, .portfolio-grid, .benefits-grid, .testimonial-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-list{ grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-list::before{ display: none; }
  .values-grid{ grid-template-columns: repeat(3, 1fr); }
  .service-detail{ grid-template-columns: 1fr; }
  .contact-layout{ grid-template-columns: 1fr; }
  .contact-info-card{ position: static; }
}

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-cta .btn-primary{ display: none; }
  .hamburger{ display: flex; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ height: 280px; order: -1; }
  .split, .split.reverse{ grid-template-columns: 1fr; }
  .split.reverse .split-visual{ order: -1; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 640px){
  .services-grid, .portfolio-grid, .benefits-grid, .testimonial-grid, .process-list, .values-grid{ grid-template-columns: 1fr; }
  .service-detail-body{ grid-template-columns: 1fr; }
  .btn-primary{ display: none; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-actions, .hero-actions{ flex-direction: column; align-items: stretch; }
  .cta-actions .btn, .hero-actions .btn{ width: 100%; }
  .approach-flow{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .approach-arrow{ display: none; }
  .trust-strip ul{ justify-content: center; text-align: center; }
}
