@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
/* ============================================
   BRAINOSYS — Design System
   Colors anchored to the brand logo (teal #1bb0ce)
   ============================================ */

:root {
  --brand-teal: #1bb0ce;
  --brand-teal-dark: #128caa;
  --brand-teal-light: #5dcce5;
  --brand-teal-bg: #e8f7fb;
  --navy: #0a2540;
  --navy-soft: #14365e;
  --ink: #0d1b2a;
  --paper: #ffffff;
  --mist: #f5f9fb;
  --fog: #eef2f5;
  --line: #e2e8ec;
  --muted: #6b7a86;
  --text: #1a2937;
  --accent: #ff7a59;
  --accent-dark: #e55a3c;
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem;
  --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 28px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.12);
  --shadow-teal: 0 16px 40px rgba(27, 176, 206, 0.28);
  --container: 1200px;
  --container-narrow: 920px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-teal); margin-bottom: var(--sp-4);
}
.eyebrow.light { color: var(--brand-teal-light); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-9); position: relative; }
.section.tight { padding-block: var(--sp-8); }
.section.bg-mist { background: var(--mist); }
.section.bg-navy { background: var(--navy); color: #cfdbe6; }
.section.bg-navy h1, .section.bg-navy h2, .section.bg-navy h3, .section.bg-navy h4 { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--brand-teal); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-teal { background: var(--brand-teal); color: #fff; }
.btn-teal:hover { background: var(--brand-teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-teal); color: var(--brand-teal); transform: translateY(-2px); }
.btn-arrow::after { content: "→"; display: inline-block; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 236, 0.6);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: var(--sp-6);
  max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.45rem; color: var(--navy); letter-spacing: -0.02em;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-teal); position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.4), transparent 60%);
}
.logo-text { letter-spacing: -0.025em; }
.logo-text span { color: var(--brand-teal); }

.nav-links { display: flex; align-items: center; gap: var(--sp-4); list-style: none; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 2px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--brand-teal); }
.nav-links a.current { color: var(--brand-teal); }
.nav-links a.current::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--brand-teal);
  border-radius: 2px;
}

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: " ⌄"; font-size: 0.7rem; opacity: 0.6;
  display: inline-block; transform: translateY(-2px);
}
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: var(--sp-3); min-width: 260px;
  list-style: none;
  opacity: 0; visibility: hidden;
  transition: all 0.25s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.9rem; color: var(--text);
}
.dropdown li a:hover { background: var(--brand-teal-bg); color: var(--brand-teal-dark); }

.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta.btn-primary {
  background: var(--brand-teal);
  color: #fff;
}
.nav-cta.btn-primary:hover {
  background: var(--brand-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px; background: var(--mist);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }

  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 78px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #ffffff !important;
    padding: 24px 20px !important;
    gap: 0 !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    list-style: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    transform: translateX(0) !important;
  }

  /* Each nav item */
  .nav-links > li {
    display: block !important;
    border-bottom: 1px solid #e2e8ec;
    width: 100% !important;
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a {
    display: block !important;
    font-size: 1.1rem !important;
    padding: 14px 0 !important;
    color: #0a2540 !important;
    font-weight: 500 !important;
    background: none !important;
    border-radius: 0 !important;
  }

  /* "Get a Quote" CTA in mobile menu */
  .nav-links > li > a.nav-cta {
    display: block !important;
    background: #1bb0ce !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 999px !important;
    padding: 14px 20px !important;
    font-weight: 600 !important;
    margin-top: 16px !important;
    border: none !important;
  }

  /* Services dropdown: always visible in mobile */
  .has-dropdown > a::after { display: none !important; }
  .dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 8px 16px !important;
    margin-top: 0 !important;
    min-width: auto !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .dropdown li { display: block !important; }
  .dropdown li a {
    display: block !important;
    font-size: 0.95rem !important;
    padding: 8px 0 !important;
    color: #6b7a86 !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .dropdown li a:hover { color: #1bb0ce !important; }
}

/* HERO */
.hero {
  position: relative;
  padding-block: var(--sp-9);
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute;
  top: -10%; right: -8%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(27, 176, 206, 0.18) 0%, transparent 65%);
  border-radius: 50%; filter: blur(40px);
}
.hero-bg::after {
  content: ""; position: absolute;
  bottom: -20%; left: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.12) 0%, transparent 65%);
  border-radius: 50%; filter: blur(40px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8); align-items: center;
}
.hero-content { max-width: 580px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  margin-bottom: var(--sp-5); font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--brand-teal); font-weight: 400; }
.hero-lead { font-size: 1.18rem; color: var(--muted); margin-bottom: var(--sp-6); max-width: 520px; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: var(--sp-7);
  display: flex; gap: var(--sp-7); flex-wrap: wrap;
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.hero-meta div strong {
  display: block; font-family: var(--font-display);
  font-size: 1.85rem; color: var(--navy); line-height: 1; margin-bottom: 4px;
}
.hero-meta div span { font-size: 0.85rem; color: var(--muted); }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1.05;
  max-width: 520px; margin-left: auto;
}
.hero-card { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-card.main { inset: 8% 12% 22% 8%; background: var(--navy); }
.hero-card.main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.hero-card.main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,37,64,0.6) 100%);
}
.hero-stat {
  position: absolute; background: #fff;
  padding: 18px 20px; border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.hero-stat.s1 { top: 8%; right: 0; animation-delay: 0s; }
.hero-stat.s2 { bottom: 14%; left: 0; animation-delay: -3s; }
.hero-stat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-teal-bg); color: var(--brand-teal);
  display: grid; place-items: center; font-size: 1.2rem;
}
.hero-stat-icon.coral { background: rgba(255, 122, 89, 0.12); color: var(--accent); }
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.3rem; color: var(--navy); line-height: 1;
}
.hero-stat span { font-size: 0.78rem; color: var(--muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.page-hero {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
  padding-block: var(--sp-8) var(--sp-7);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute;
  top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27,176,206,0.14) 0%, transparent 70%);
  filter: blur(30px);
}
.page-hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  text-align: center; max-width: 760px; margin: 0 auto;
}
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero p { color: var(--muted); font-size: 1.12rem; }
.breadcrumb {
  font-size: 0.85rem; color: var(--muted);
  display: flex; gap: 8px; justify-content: center; margin-bottom: var(--sp-3);
}
.breadcrumb a:hover { color: var(--brand-teal); }
.breadcrumb span { color: var(--brand-teal); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--sp-7); }
.section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); }
.service-card {
  position: relative;
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand-teal-bg);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  color: var(--brand-teal);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
  background: var(--brand-teal); color: #fff;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.service-card p { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: var(--sp-4); }
.service-card .read-more {
  font-size: 0.88rem; font-weight: 600; color: var(--brand-teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .read-more::after { content: "→"; transition: transform 0.25s var(--ease); }
.service-card:hover .read-more::after { transform: translateX(4px); }

/* FEATURE BLOCK */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-img-wrap {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
}
.feature-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feature-img-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(27,176,206,0.18) 100%);
  z-index: 1; pointer-events: none;
}
.feature-block ul { list-style: none; margin-top: var(--sp-4); }
.feature-block ul li {
  position: relative;
  padding-left: 28px; margin-bottom: var(--sp-3);
  color: var(--text);
}
.feature-block ul li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-teal-bg); color: var(--brand-teal);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
}

/* STATS BAND */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-7);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27,176,206,0.25) 0%, transparent 60%);
  filter: blur(40px);
}
.stat { position: relative; text-align: center; color: #fff; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, var(--brand-teal-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: rgba(207, 219, 230, 0.85); font-size: 0.95rem; }

/* PORTFOLIO */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.portfolio-item {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--fog); cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portfolio-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,37,64,0.7) 100%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item:hover::after { opacity: 1; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: '\201C';
  position: absolute; top: 12px; right: 22px;
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: 1;
  color: var(--brand-teal-bg); z-index: 0;
}
.testimonial p {
  position: relative; z-index: 1;
  color: var(--text); margin-bottom: var(--sp-4);
  font-size: 0.97rem;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1rem;
  font-family: var(--font-display);
}
.testimonial-author strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--muted); }

/* VIDEO TESTIMONIALS */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.video-card {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-md); overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.video-card iframe { width: 100%; height: 100%; border: 0; }

/* CLIENT LOGO MARQUEE */
.logo-marquee {
  overflow: hidden; position: relative;
  padding-block: var(--sp-5);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  display: flex; gap: var(--sp-7);
  animation: scroll 35s linear infinite;
  width: max-content;
  align-items: center;
}
.logo-track img {
  height: 50px; width: auto;
  opacity: 0.5; filter: grayscale(1);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.logo-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll {
  to { transform: translateX(calc(-50% - var(--sp-7) / 2)); }
}

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-5); }
.blog-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fog); }
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: var(--sp-2);
  display: flex; gap: 10px; align-items: center;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.blog-card h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); flex: 1; }
.blog-card .read-more {
  font-size: 0.88rem; font-weight: 600; color: var(--brand-teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-card .read-more::after { content: "→"; transition: transform 0.25s var(--ease); }
.blog-card:hover .read-more::after { transform: translateX(4px); }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6); align-items: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,37,64,0.2) 0%, transparent 60%);
}
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,0.92); margin-top: var(--sp-3); position: relative; z-index: 1; }
.cta-band-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: #fff; color: var(--brand-teal); }

/* FORMS */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--mist); color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(27,176,206,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status {
  margin-top: var(--sp-3);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: rgba(27,176,206,0.12); color: var(--brand-teal-dark); }
.form-status.error { display: block; background: rgba(255,122,89,0.12); color: var(--accent-dark); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-7); }
.contact-info ul { list-style: none; margin-top: var(--sp-5); }
.contact-info ul li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-teal-bg); color: var(--brand-teal);
  display: grid; place-items: center; font-size: 1.1rem;
}
.contact-info strong { display: block; color: var(--navy); margin-bottom: 2px; }
.contact-info span, .contact-info a { color: var(--muted); font-size: 0.95rem; }
.contact-info a:hover { color: var(--brand-teal); }

/* Job cards (career) */
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job-card:hover { transform: translateY(-4px); border-color: var(--brand-teal); box-shadow: var(--shadow-md); }
.job-card .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-teal-bg); color: var(--brand-teal-dark);
  margin-bottom: var(--sp-3);
}
.job-card h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.job-card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--sp-3); }
.job-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: var(--sp-4); }

/* FOOTER */
.site-footer {
  background: var(--navy); color: #cfdbe6;
  padding-block: var(--sp-8) var(--sp-5);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,176,206,0.12) 0%, transparent 60%);
  filter: blur(40px);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-7); margin-bottom: var(--sp-7);
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text span { color: var(--brand-teal-light); }
.footer-brand p {
  margin-top: var(--sp-4); color: rgba(207,219,230,0.78);
  font-size: 0.95rem; max-width: 340px;
}
.footer-social { margin-top: var(--sp-5); display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  color: #cfdbe6;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--brand-teal); color: #fff; transform: translateY(-2px); }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(207,219,230,0.78);
  font-size: 0.93rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-teal-light); }
.footer-col p { color: rgba(207,219,230,0.78); font-size: 0.93rem; line-height: 1.7; }
.footer-bottom {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: 0.85rem; color: rgba(207,219,230,0.6);
}
.footer-bottom a:hover { color: var(--brand-teal-light); }

/* PROSE */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.85rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { font-size: 1.4rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose p { margin-bottom: var(--sp-4); font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.prose ul, .prose ol { margin-bottom: var(--sp-4); padding-left: var(--sp-5); }
.prose li { margin-bottom: 8px; line-height: 1.8; }
.prose img { border-radius: var(--r-md); margin: var(--sp-5) 0; }
.prose blockquote {
  border-left: 3px solid var(--brand-teal);
  padding: var(--sp-3) var(--sp-5);
  background: var(--mist);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-5) 0;
  font-style: italic; color: var(--navy);
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .feature-block { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature-block.reverse { direction: ltr; }
  .feature-block.reverse .feature-img-wrap { order: -1; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding-block: var(--sp-7); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-meta { gap: var(--sp-5); }
  .stats-band { padding: var(--sp-5); }
  .cta-band { padding: var(--sp-6); }
}

/* ============================================
   ADDITIONS — classes used by the new HTML
   ============================================ */

/* Google Fonts import */

/* Aliases for the new HTML class names */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 42px; width: auto; display: block; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: var(--sp-4);
}
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto var(--sp-7);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.section-tinted { background: var(--mist); }
.section-dark { background: var(--navy); color: #cfdbe6; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* Hero new classes */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: var(--sp-4);
}
.hero-subtitle {
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: var(--sp-6);
  max-width: 520px;
}
.hero-cta-group { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-stats {
  margin-top: var(--sp-7);
  display: flex; gap: var(--sp-7); flex-wrap: wrap;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem; color: var(--navy); line-height: 1;
  margin-bottom: 4px;
  font-weight: 500;
}
.hero-stat-num .plus { font-size: 1.4rem; color: var(--brand-teal); }
.hero-stat-label { font-size: 0.85rem; color: var(--muted); }

.hero-visual {
  position: relative;
  display: grid; gap: var(--sp-4);
}
.hero-visual-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-card.hv-1 { aspect-ratio: 16/10; }
.hero-visual-card.hv-2 { aspect-ratio: 16/7; }
.hv-badge {
  position: absolute;
  bottom: 15%; right: -8px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.hv-badge-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-teal-bg);
  color: var(--brand-teal);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.hv-badge-text { font-size: 0.82rem; color: var(--navy); font-weight: 600; line-height: 1.3; }
.hv-badge-text small { font-weight: 400; color: var(--muted); }

/* Service grid (alias for services-grid) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}
.service-card h4 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.service-card p { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: var(--sp-4); }
.service-card-link {
  font-size: 0.88rem; font-weight: 600; color: var(--brand-teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.service-card:hover .service-card-link::after { transform: translateX(4px); }

.service-icon svg { width: 26px; height: 26px; }

/* Two-col layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: center;
}
.two-col-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.two-col-img img { width: 100%; height: auto; display: block; }

/* Feature list (check-mark list) */
.feature-list {
  list-style: none; margin-top: var(--sp-4); padding: 0;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-teal-bg); color: var(--brand-teal);
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.stat-block { position: relative; color: #fff; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, var(--brand-teal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}
.stat-label { color: rgba(207, 219, 230, 0.85); font-size: 0.95rem; }

/* Blog card variations */
.blog-card-link {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  height: 100%;
}
.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--fog);
}
.blog-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: var(--sp-2);
}
.blog-card h4 { margin-bottom: var(--sp-2); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.cta-banner h2 { color: #fff; position: relative; z-index: 1; margin-bottom: var(--sp-3); }
.cta-banner p { color: rgba(255,255,255,0.92); position: relative; z-index: 1; margin-bottom: var(--sp-5); }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner .btn-primary { background: var(--navy); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--brand-teal); }

/* Footer new classes */
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-brand p {
  margin-top: var(--sp-4); color: rgba(207,219,230,0.78);
  font-size: 0.95rem; max-width: 340px;
}
.footer-socials {
  margin-top: var(--sp-5);
  display: flex; gap: 10px;
}
.footer-socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  color: #cfdbe6;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-socials a:hover {
  background: var(--brand-teal); color: #fff;
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { color: rgba(207,219,230,0.78); font-size: 0.93rem; }
.footer-col a {
  color: rgba(207,219,230,0.78);
  font-size: 0.93rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-teal-light); }
.footer-bottom {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: 0.85rem;
  color: rgba(207,219,230,0.6);
}
.footer-bottom a { color: rgba(207,219,230,0.6); }
.footer-bottom a:hover { color: var(--brand-teal-light); }
.footer-bottom-links { display: flex; gap: var(--sp-4); }

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
  padding-block: var(--sp-8) var(--sp-7);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-banner::before {
  content: ""; position: absolute;
  top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(27,176,206,0.14) 0%, transparent 70%);
  filter: blur(30px);
}
.page-banner .container { position: relative; }
.page-banner h1 { margin-bottom: var(--sp-3); }
.page-banner p { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin-inline: auto; }
.breadcrumb {
  font-size: 0.85rem; color: var(--muted);
  display: flex; gap: 8px; justify-content: center; margin-bottom: var(--sp-3);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-teal); }
.breadcrumb-sep { opacity: 0.4; }

/* Contact info blocks */
.contact-info-block {
  display: flex; gap: 14px; align-items: flex-start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-block:last-child { border-bottom: none; }
.contact-info-block .contact-info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-teal-bg);
  color: var(--brand-teal);
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.contact-info-block h5 { margin-bottom: 2px; color: var(--navy); font-size: 0.95rem; }
.contact-info-block p, .contact-info-block a { color: var(--muted); font-size: 0.95rem; }
.contact-info-block a:hover { color: var(--brand-teal); }

/* Form styles */
.form { display: grid; gap: var(--sp-4); }
.form-msg {
  margin-top: var(--sp-3);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-msg.success { display: block; background: rgba(27,176,206,0.12); color: var(--brand-teal-dark); }
.form-msg.error { display: block; background: rgba(255,122,89,0.12); color: var(--accent-dark); }

/* Article / blog post */
.article-meta-bar {
  padding: var(--sp-8) 0 var(--sp-5);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.article-meta-bar .meta {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: var(--sp-4);
}
.article-meta-bar h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-teal-bg);
  color: var(--brand-teal-dark);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.article-body {
  max-width: 720px; margin: 0 auto;
  padding-bottom: var(--sp-8);
}
.article-body h2 { font-size: 1.85rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.article-body p { margin-bottom: var(--sp-4); font-size: 1.05rem; line-height: 1.8; }

/* Utility classes */
.text-center { text-align: center; }
.mt-3 { margin-top: var(--sp-5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-outline:hover { border-color: var(--brand-teal); color: var(--brand-teal); transform: translateY(-2px); }
.accent { color: var(--brand-teal); }

/* Responsive additions */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-stats { gap: var(--sp-5); }
}

/* Reveal with inline --delay support */
.reveal { transition-delay: var(--delay, 0s); }

/* ============================================
   MOBILE FIXES — comprehensive responsive
   ============================================ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  /* Hero grid stacks */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-6);
    text-align: center;
  }
  .hero-subtitle { margin-inline: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }

  /* Two-col stacks */
  .two-col { grid-template-columns: 1fr !important; }

  /* Service grid: 2 columns on tablet */
  .service-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Contact grid stacks */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Footer: 2 columns on tablet */
  .footer-grid { grid-template-columns: 1fr 1fr !important; }

  /* CTA banner: single column */
  .cta-band { grid-template-columns: 1fr !important; text-align: center; }
}

/* ── Mobile (max-width: 600px) ── */
@media (max-width: 600px) {
  /* Reduce section padding */
  .section { padding-block: var(--sp-7) !important; }
  .hero { padding-block: var(--sp-7) !important; }

  /* Page banner: smaller padding */
  .page-banner { padding-block: var(--sp-6) var(--sp-5) !important; }
  .page-banner h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Hero: tighter spacing */
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem) !important; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { text-align: center; justify-content: center; }
  .hero-stats { 
    flex-direction: column; 
    align-items: center; 
    gap: var(--sp-4) !important; 
    text-align: center; 
  }
  .hero-visual { max-width: 100%; }

  /* Service grid: 1 column on phone */
  .service-grid { grid-template-columns: 1fr !important; }

  /* Blog grid: 1 column */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Video grid: 1 column */
  .video-grid { grid-template-columns: 1fr !important; }

  /* Portfolio grid: 2 columns on phone */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Stats row: 2 columns on phone */
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }

  /* Footer: 1 column */
  .footer-grid { grid-template-columns: 1fr !important; gap: var(--sp-5) !important; }

  /* Form: single column rows */
  .form-row { grid-template-columns: 1fr !important; }

  /* CTA banner: less padding */
  .cta-banner { padding: var(--sp-6) var(--sp-5) !important; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Article body: tighter */
  .article-meta-bar { padding: var(--sp-6) 0 var(--sp-4); }
  .article-meta-bar h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .article-meta-bar .meta { flex-wrap: wrap; justify-content: center; }

  /* Logo: slightly smaller on mobile */
  .nav-logo img { height: 34px; }

  /* Two-col image: full width */
  .two-col-img { max-width: 100%; }

  /* Section headings: smaller */
  h2 { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }

  /* Container: slightly less padding */
  .container { padding-inline: var(--sp-4) !important; }

  /* Buttons: full width on mobile for primary CTAs */
  .text-center .btn { width: 100%; justify-content: center; }
}

/* ── Very small phones (max-width: 380px) ── */
@media (max-width: 380px) {
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: 1fr !important; }
  .hero-stat-num { font-size: 1.5rem; }
  .nav-logo img { height: 28px; }
  .nav { height: 64px; }
  .nav-links { top: 64px; }
}

/* ── Mobile menu open state ── */
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* Prevent body scroll when mobile menu is open */
body.menu-open { overflow: hidden; }
