/* =====================================================================
   PEAK SEO-AEO — Service / Landing Page Stylesheet
   Shared by all PEAK SEO-AEO sub pages built for developer integration.
   Brand tokens live in :root so they can be mapped to the existing
   site variables in one place. Primary brand colour: #2f63ad
   ===================================================================== */

:root {
  /* Brand palette */
  --brand: #2f63ad;
  --brand-600: #2a5899;
  --brand-700: #214a83;
  --brand-800: #173a6b;
  --brand-900: #0f2a50;
  --accent: #16b8d4;       /* answer engine / AI highlight */
  --accent-soft: #d7f3f8;

  /* Neutrals */
  --ink: #0f1b2d;
  --ink-soft: #3c4a5e;
  --muted: #6b7888;
  --line: #e4eaf2;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #eef3f9;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 18px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px rgba(33, 74, 131, .14);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1.1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.brand-logo { display: inline-flex; align-items: center; height: 34px; }
.brand-logo img { height: 34px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a.navlink {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s ease;
}
.header-nav a.navlink:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(33, 74, 131, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(33, 74, 131, .36); }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: rgba(47, 99, 173, .35);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.btn-arrow { transition: transform .2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(22,184,212,.16), transparent 55%),
    radial-gradient(120% 120% at 0% 0%, rgba(47,99,173,.12), transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,99,173,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,99,173,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(110% 80% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; padding-block: 92px 84px; }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.65rem); margin-bottom: .35em;
}
.hero-sub {
  font-family: var(--font-display); font-weight: 600; color: var(--brand-700);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
}
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 660px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--muted); font-weight: 500; }
.trust-item strong { color: var(--ink); font-family: var(--font-display); }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Sections ---------- */
section { padding-block: 78px; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: .7rem; }
.section-head h3 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: .7rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

.alt { background: var(--surface-2); border-block: 1px solid var(--line); }

/* Split / feature card layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.feature-card .kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  display: inline-block; margin-bottom: .8rem;
}

/* Checklist */
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 160% at 90% 10%, rgba(22,184,212,.30), transparent 55%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff; border-radius: 24px; padding: 56px clamp(28px, 5vw, 64px);
  text-align: center; box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.cta-band .btn-primary:hover { background: #f0f6ff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #c4d2e8; padding-block: 60px 30px; }
.site-footer a { color: #c4d2e8; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about { max-width: 320px; margin-top: 16px; color: #9fb3d1; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8ba2c4; display: grid; gap: 8px;
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-nav .navlink { display: none; }
  section { padding-block: 58px; }
  .hero .container { padding-block: 64px 56px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}


/* =====================================================================
   "Our Services" card grid section
   ===================================================================== */
.svc-section { padding-block: 84px; background:
    radial-gradient(120% 120% at 100% 0%, rgba(22,184,212,.07), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-block: 1px solid var(--line); }
.svc-head { max-width: 720px; margin-bottom: 2.8rem; }
.svc-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: .7rem; }

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

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), box-shadow .26s ease, border-color .26s ease;
  will-change: transform;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover, .svc-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47,99,173,.35);
  outline: none;
}
.svc-card:hover::before, .svc-card:focus-visible::before { transform: scaleX(1); }

.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--surface-3); color: var(--brand);
  margin-bottom: 18px;
  transition: background .26s ease, color .26s ease, transform .26s ease;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-icon, .svc-card:focus-visible .svc-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff; transform: scale(1.05);
}

.svc-title {
  font-size: 1.18rem; margin: 0 0 .5rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.svc-desc { font-size: .96rem; color: var(--ink-soft); margin: 0 0 1.4rem; line-height: 1.55; }

.svc-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--brand);
}
.svc-arrow { transition: transform .22s ease; }
.svc-card:hover .svc-arrow, .svc-card:focus-visible .svc-arrow { transform: translateX(4px); }

@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-section { padding-block: 60px; } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-icon, .svc-arrow, .svc-card::before { transition: none; }
}

/* Header Layout */
/* =========================
   HEADER
========================= */

.site-header {
    background: #d9d9d9;
    border-bottom: 1px solid #7cd8df;
    padding: 14px 40px;
    position: relative;
    z-index: 1000;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-width: 80px;
    height: auto;
    display: block;
}

/* =========================
   NAVIGATION
========================= */

.main-nav {
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #1d1d1d;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 18px;
    transition: all .3s ease;
    border-radius: 8px;
}

.menu-link:hover {
    color: #2d63b3;
    background: rgba(45, 99, 179, 0.08);
}

/* =========================
   MEGA MENU
========================= */

.has-dropdown {
    position: relative;
}

/* Dropdown Container */
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 9999;
}

/* Hover State */
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: calc(100% + 4px);
}

/* 3 Column Grid */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
}

/* Dropdown Links */
.mega-link {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 18px;
    text-decoration: none;
    color: #1d1d1d;
    background: #f5f7fb;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    transition: all .25s ease;
}

.mega-link:hover {
    background: #2d63b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 99, 179, 0.25);
}

/* =========================
   CTA BUTTON
========================= */

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    background: #2d63b3;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all .3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #234f90;
    transform: translateY(-2px);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .mega-menu {
        width: 760px;
    }

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

    .header-inner {
        gap: 20px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .site-header {
        padding: 15px 20px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .nav-menu {
        justify-content: center;
    }

    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 15px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border-radius: 12px;
        padding: 18px;
    }

    .has-dropdown:hover .mega-menu {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
    }

    .nav-cta {
        width: 100%;
        max-width: 280px;
    }
}

/* Hide hamburger desktop */
.mobile-menu-btn{
    display: none;
}
@media (min-width: 768px) {
.mobile-services,.mobile-menu {
    display: none;
}

  }

/* Mobile */
@media (max-width: 768px) {

    .main-nav,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 32px;
        cursor: pointer;
        margin-left: auto;
    }

    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 9998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 90%;
        height: 100vh;
        background: #fff;
        padding: 30px 25px;
        overflow-y: auto;
        transition: .35s ease;
        z-index: 9999;
        box-shadow: -8px 0 30px rgba(0,0,0,.12);
    }

    .mobile-menu.active {
        right: 0;
    }

    .close-menu {
        border: none;
        background: none;
        font-size: 40px;
        cursor: pointer;
        position: absolute;
        top: 12px;
        right: 20px;
    }

    .mobile-menu h3 {
        margin-bottom: 25px;
        font-size: 24px;
    }

    .mobile-services {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-services a {
        text-decoration: none;
        color: #111;
        background: #f5f6fa;
        padding: 14px 16px;
        border-radius: 12px;
        font-weight: 500;
    }
}