/* =========================
   SITE CSS (Shared)
   - Includes your existing index CSS (as-is)
   - Updated NAV: blue pill + rectangle (no pointy clip)
   - Keeps WHITE TOP BAR exactly as-is
   - Fixes “reload changes layout” by forcing desktop nav/topbar on wide screens
   - Adds page templates + text animation utilities
========================= */

:root {
  --maroon: #6e0043;
  --navy: #171b3f;
  --ink: #111111;
  --icon: #555555;

  --accent: #a24db8;

  --hero-url: url("https://images.unsplash.com/photo-1501183638710-841dd1904471?auto=format&fit=crop&w=2400&q=70");

  --bar-h: 64px;

  /* ===== TOPBAR scale knob (set by JS) ===== */
  --top-scale: 1;

  /* Topbar desktop constants */
  --info-gap-base: 84px;
  --info-x-base: 210px;
  --info-font-base: 18px;
  --icon-size-base: 34px;

  /* ===== NAV fit knobs (set by JS) ===== */
  --nav-scale: 1;
  --menu-gap-mult: 1;
  --cta-pad-mult: 1;
  --nav-font-mult: 1;

  /* Desktop constants (pixel-perfect) */
  --nav-h-base: 129px;

  --nav-diag-top-base: 768px;
  --nav-diag-bot-base: 494px;

  --menu-left-base: 815px;
  --menu-gap-base: 78px;

  --nav-font-base: 18px;

  --cta-right-base: 46px;
  --cta-py-base: 14px;
  --cta-px-base: 34px;

  /* Topbar curve reference (2048 artboard) */
  --curve-x-ref: 320;
  --join-x-ref: 720;
  --dip-y-ref: 190;

  /* Support section (Why choose us) tuning */
  --support-photo-w: 560px;
  --support-photo-h: 780px;
  /* a bit taller */
  --support-photo-top: 60px;

  /* How far the TEXT should be pushed right inside the blue card
     so it starts AFTER the photo overlap area. */
  --support-text-offset: 220px;

  /* ===== NEW NAV PILL SETTINGS ===== */
  --nav-pill-max: clamp(900px, 70vw, 1400px);
  /* max width of the pill - uses clamp for smooth scaling */
  --nav-pill-side-pad: 0px;
  /* page side padding */
  --nav-pill-radius: 34px;
  /* pill corner radius */
  --nav-pill-bg: linear-gradient(90deg, #2f66ff 0%, #2a5ae4 45%, #224bcc 100%);
  --nav-pill-shadow: 0 22px 44px rgba(12, 18, 60, 0.20);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
}

/* Keep anchors from landing behind fixed header */
html {
  scroll-padding-top: 240px;
}

/* ================= GLOBAL HEADER WRAP ================= */
.header-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1000;

  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 360ms ease;
  pointer-events: auto;
}

/* Desktop: slide to the RIGHT when hidden */
body.header-hidden .header-wrap {
  transform: translate3d(110%, 0, 0);
  pointer-events: none;
}

/* Tablet/Mobile: slide UP when hidden */
body.nav-mobile.header-hidden .header-wrap {
  transform: translate3d(0, -110%, 0);
}

/* ================= TOP WHITE BAR ================= */
.topbar {
  position: absolute;
  left: 15%;
  top: 0;
  width: 100%;
  height: var(--dipY, 190px);
  z-index: 40;
  pointer-events: none;
}

.topbar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar .info {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;

  gap: calc(var(--info-gap-base) * var(--top-scale));
  transform: translateX(calc(var(--info-x-base) * var(--top-scale)));

  font-size: clamp(13px, calc(var(--info-font-base) * var(--top-scale)), var(--info-font-base));
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  z-index: 2;
  padding: 0 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon {
  width: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
  height: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon);
  flex: 0 0 auto;
}

.icon svg {
  width: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
  height: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
  display: block;
}

/* Full-width topbar (synced with nav mode by JS) */
body.topbar-flat .topbar {
  height: var(--bar-h);
}

body.topbar-flat .topbar .info {
  justify-content: space-between;
  transform: none;
  gap: 18px;
  padding: 0 18px;
  font-size: 14px;
}

body.topbar-flat .icon,
body.topbar-flat .icon svg {
  width: 28px;
  height: 28px;
}

/* ================= NAV (UPDATED: BLUE PILL RECTANGLE) ================= */
.nav-wrap {
  position: absolute;
  left: 0;
  top: var(--bar-h);
  width: 100%;
  height: calc(var(--nav-h-base) * var(--nav-scale));
  z-index: 30;

  display: flex;
  justify-content: flex-end;

  /* flush right, keep left breathing room */
  padding-right: 0;
  padding-left: 24px;
}

/* Background pill (flush to the RIGHT) */
/* Background pill (flush right, radius only on LEFT) */
.nav-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(var(--nav-pill-max), calc(100% - 24px));

  background: var(--nav-pill-bg);
  border-radius: 28px 0 0 28px;
  /* left rounded, right square */
  box-shadow: var(--nav-pill-shadow);
  pointer-events: none;
}

/* Nav content area matches the same shape */
.nav {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(var(--nav-pill-max), calc(100% - 24px));
  border-radius: 999px 0 0 999px;
  /* optional but recommended */
  overflow: hidden;
  /* keeps hover/active inside */
}



/* Menu centered, stable across reloads/fonts */
.menu {
  position: absolute;
  left: 35%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

/* Links */
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(13px, calc(var(--nav-font-base) * var(--nav-font-mult) * var(--nav-scale)), var(--nav-font-base));
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* CTA (right side inside pill) */
.cta {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translateY(-50%);
  padding:
    clamp(10px, calc(var(--cta-py-base) * var(--cta-pad-mult) * var(--nav-scale)), var(--cta-py-base)) clamp(16px, calc(var(--cta-px-base) * var(--cta-pad-mult) * var(--nav-scale)), var(--cta-px-base));
  font-size: clamp(13px, calc(var(--nav-font-base) * var(--nav-font-mult) * var(--nav-scale)), var(--nav-font-base));
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* Burger (mobile only) */
.burger {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.burger svg {
  width: 24px;
  height: 24px;
}

.mobile-panel {
  display: none;
  position: absolute;
  right: 10px;
  top: calc(100% - 10px);
  background: rgba(33, 72, 190, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px;
  min-width: 180px;
  z-index: 60;
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.10);
}

body.mobile-open .mobile-panel {
  display: block;
}

/* JS “nav-mobile” mode (kept) */
body.nav-mobile .menu,
body.nav-mobile .cta {
  display: none;
}

body.nav-mobile .burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Measurement mode */
body.measuring .menu {
  display: flex !important;
}

body.measuring .cta {
  display: block !important;
}

body.measuring .burger {
  display: none !important;
}

body.measuring .menu,
body.measuring .cta {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================
   IMPORTANT: FIX “reload changes layout”
   If JS incorrectly toggles nav-mobile/topbar-flat on desktop,
   force desktop behavior on wide screens.
============================ */
@media (min-width: 986px) {

  /* Force desktop nav even if body.nav-mobile got added */
  body.nav-mobile .menu,
  body.nav-mobile .cta {
    display: flex !important;
  }

  body.nav-mobile .burger {
    display: none !important;
  }

  body.nav-mobile .mobile-panel {
    display: none !important;
  }

  /* Keep the curved white topbar layout on desktop */
  body.topbar-flat .topbar {
    height: var(--dipY, 190px);
  }

  body.topbar-flat .topbar .info {
    justify-content: center;
    gap: calc(var(--info-gap-base) * var(--top-scale));
    transform: translateX(calc(var(--info-x-base) * var(--top-scale)));
    padding: 0 24px;
    font-size: clamp(13px, calc(var(--info-font-base) * var(--top-scale)), var(--info-font-base));
  }

  body.topbar-flat .icon,
  body.topbar-flat .icon svg {
    width: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
    height: clamp(26px, calc(var(--icon-size-base) * var(--top-scale)), var(--icon-size-base));
  }
}


/* ============================
   RESPONSIVE HEADER FIXES
   - At <=985px: topbar + nav cover full viewport width
   - Improves behavior on small/mobile screens
============================ */
@media (max-width: 985px) {

  /* White top bar should not be shifted on smaller widths */
  .topbar {
    left: 0;
    width: 100%;
  }

  /* Blue nav should span full viewport width */
  .nav-wrap {
    padding-left: 0;
    padding-right: 0;
    justify-content: stretch;
  }

  .nav-bg,
  .nav {
    width: 100%;
    right: 0;
    border-radius: 0;
  }

  .nav {
    border-radius: 0;
  }
}

/* Mobile: prevent topbar info from being cut off */
@media (max-width: 600px) {
  :root {
    --bar-h: 104px;
  }

  /* allow 2-line info row */

  body.topbar-flat .topbar {
    height: var(--bar-h);
  }

  body.topbar-flat .topbar .info {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    row-gap: 10px;
    padding: 8px 14px;
    gap: 12px;
  }

  body.topbar-flat .info-item {
    width: calc(50% - 12px);
    justify-content: center;
    gap: 10px;
  }

  body.topbar-flat .info-item:last-child {
    width: 100%;
  }
}


/* ================= PAGE HERO (for inner pages) ================= */
.page-hero {
  position: relative;
  min-height: 72vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
    var(--hero-url) center / cover no-repeat;
  overflow: hidden;
  padding-top: 260px;
  /* compensates for fixed header */
  padding-bottom: 80px;
}

.page-hero .container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  color: #fff;
}

.page-hero .eyebrow {
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 12px 0;
  font-size: 14px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.03;
  font-weight: 900;
}

.page-hero p {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.page-hero .hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn.primary {
  background: #fff;
  color: var(--maroon);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn.ghost {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* ================= SECTION BASE ================= */
.section {
  padding: 95px 0 110px;
}

.section .container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  margin: 10px 0 18px;
  font-size: 44px;
  font-weight: 900;
  color: #111;
  line-height: 1.1;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
  color: #222;
  max-width: 900px;
  font-weight: 500;
}

/* ================= FEATURE GRID ================= */
.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  padding: 26px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.feature p {
  margin: 0;
  color: #333;
  line-height: 1.9;
  font-size: 15px;
}

/* ================= SERVICES GRID (inner pages) ================= */
.svc-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.svc .top {
  background: var(--navy);
  color: #fff;
  padding: 22px 22px 18px;
}

.svc .top h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.svc .body {
  padding: 22px;
  color: #222;
  font-size: 15px;
  line-height: 1.9;
}

.svc .body a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-style: italic;
}

/* ================= FAQ ================= */
.faq {
  margin-top: 44px;
  display: grid;
  gap: 14px;
}

.faq details {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  color: #111;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .answer {
  padding: 0 20px 18px;
  color: #222;
  line-height: 1.95;
  font-weight: 500;
  font-size: 15px;
}

/* ================= BLOG LIST ================= */
.blog-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.post .thumb {
  height: 200px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=2000&q=70") center / cover no-repeat;
}

.post .meta {
  padding: 18px 18px 0;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 800;
}

.post h3 {
  margin: 10px 18px 10px;
  font-size: 18px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}

.post p {
  margin: 0 18px 18px;
  color: #333;
  line-height: 1.9;
  font-size: 15px;
}

.post a {
  margin: 0 18px 22px;
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

/* ================= GALLERY (inner page) ================= */
.gallery-grid-2 {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid-2 .item {
  height: 280px;
  border: 8px solid #fff;
  background: #ddd;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.gallery-grid-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= CONTACT (reuse your look) ================= */
.contact {
  background: #ffffff;
  padding: 110px 0 80px;
}

.contact .container {
  width: min(1320px, 92vw);
  margin: 0 auto;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(720px, 860px);
  gap: 90px;
  align-items: center;
}

.contact-left h2 {
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--accent);
}

.contact-left p {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.95;
  color: #111;
  font-weight: 500;
}

.contact-card {
  background: var(--navy);
  color: #fff;
  padding: 44px 52px;
  width: min(860px, 100%);
  min-height: 480px;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.22);
  margin-left: auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}

.c-input,
.c-select,
.c-textarea {
  width: 100%;
  height: 54px;
  border: 0;
  outline: none;
  background: #fff;
  color: #111;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
}

.c-input::placeholder,
.c-textarea::placeholder {
  font-style: italic;
  font-weight: 500;
  color: #444;
  opacity: 0.85;
}

.c-select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #333 50%),
    linear-gradient(135deg, #333 50%, transparent 50%),
    linear-gradient(to right, #fff, #fff);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.c-textarea {
  grid-column: 1 / -1;
  height: 150px;
  padding: 18px 22px;
  resize: none;
}

.captcha-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}

.captcha-pill {
  height: 54px;
  border-radius: 999px;
  background: #d6d6dd;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.captcha-code {
  height: 54px;
  background: #fff;
  color: #111;
  border: 2px solid transparent;
  outline: none;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-code::placeholder {
  font-style: italic;
  font-weight: 500;
  color: #444;
  opacity: 0.85;
}

.captcha-code:focus {
  border-color: rgba(162, 77, 184, 0.5);
  box-shadow: 0 0 0 3px rgba(162, 77, 184, 0.1);
}

.captcha-code.captcha-error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

.captcha-code.captcha-success {
  border-color: #16a34a;
  background: rgba(34, 197, 94, 0.05);
}

.send-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.send-btn {
  width: 420px;
  max-width: 100%;
  height: 58px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ================= FOOTER (YOUR EXACT STYLES) ================= */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  padding: 70px 0 0;
  border-top: 14px solid rgba(255, 255, 255, 0.06);
}

.site-footer .container {
  width: min(1320px, 92vw);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.95fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 46px;
}

.footer-brand-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.footer-text {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.footer-heading {
  margin: 6px 0 18px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.footer-links a:hover {
  color: #fff;
}

.social-row {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.fc-ico {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.fc-ico svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

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

  .contact-card {
    margin-left: 0;
  }

  .svc-grid,
  .blog-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Mobile behavior (true mobile) */
@media (max-width: 900px) {

  /* Let JS mobile mode work, but also provide a sane fallback */
  .menu,
  .cta {
    display: none;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Make pill still look good on small screens */
  .nav-bg,
  .nav {
    width: calc(100% - (var(--nav-pill-side-pad) * 2));
  }
}

@media (max-width: 600px) {
  :root {
    --bar-h: 56px;
  }

  .info-item:nth-child(2) {
    display: none;
  }

  .site-footer {
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-text {
    max-width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-pill {
    border-radius: 16px;
  }

  .contact-left h2 {
    font-size: 42px;
  }

  .contact-left p {
    font-size: 16px;
  }

  .contact-card {
    padding: 34px 22px;
  }
}

/* ============================================================
   TEXT-FOCUSED ANIMATIONS (premium, mostly text only)
   - IntersectionObserver adds .is-in
   - Optional word splitting for dramatic stagger
============================================================ */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .split-words,
  .split-words span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* Base reveal (for paragraphs, small headings) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(10px);
  transition:
    opacity 820ms cubic-bezier(.2, .8, .2, 1),
    transform 980ms cubic-bezier(.2, .8, .2, 1),
    filter 980ms cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Word-split reveal (for big headings / hero lines) */
.split-words {
  display: block;
}

.split-words span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 22px, 0) rotate(0.6deg);
  filter: blur(12px);
  transition:
    opacity 860ms cubic-bezier(.2, .9, .2, 1),
    transform 980ms cubic-bezier(.2, .9, .2, 1),
    filter 980ms cubic-bezier(.2, .9, .2, 1);
  transition-delay: calc(var(--i) * 18ms);
  will-change: opacity, transform, filter;
}

.split-words.is-in span {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Extra “ink sweep” emphasis (still text-only) */
.ink-sweep {
  position: relative;
  display: inline-block;
}

.ink-sweep::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -6px;
  height: 14px;
  background: rgba(162, 77, 184, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(.2, .9, .2, 1);
  z-index: -1;
}

.ink-sweep.is-in::after {
  transform: scaleX(1);
}

/* Hide the white top bar on mobile (when burger/mobile nav is active) */
body.nav-mobile .topbar {
  display: none !important;
}

/* Pull the blue nav up to the very top when topbar is hidden */
body.nav-mobile .nav-wrap {
  top: 0 !important;
}

/* MOBILE ONLY: hide white top bar + pull blue nav to the top */
@media (max-width: 600px) {
  .topbar {
    display: none !important;
  }

  .nav-wrap {
    top: 0 !important;
  }
}

/* FIX: allow the mobile dropdown to render outside the pill */
body.nav-mobile .nav {
  overflow: visible !important;
}

/* Free-floating logo (left of the blue navbar) */
.floating-logo {
  position: absolute;
  left: -95px;
  /* negative offset to compensate for image whitespace */
  top: -115px;
  /* negative offset to position flush with viewport top */
  transform: none;
  z-index: 1000;
  /* ensure it floats above all elements */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* BIGGER logo */
.floating-logo img {
  height: 320px;
  /* increased size as requested */
  width: auto;
  display: block;
}

/* Tablet */
@media (max-width: 985px) {
  .floating-logo img {
    height: 90px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .floating-logo img {
    height: 68px;
  }
}