/* ============================================================
   TOP RANK SEO — Shared stylesheet
   Edit colours, fonts and spacing here ONCE and every page updates.
   ============================================================ */

/* ---- 1. BRAND COLOURS (pulled from the logo) ---------------- */
:root {
  --dark:          #0C1E30;   /* logo navy background         */
  --darker:        #081420;   /* deeper navy for footer       */
  --primary:       #35C7D4;   /* main cyan accent             */
  --primary-light: #6FE8E6;   /* bright cyan glow             */
  --primary-dark:  #1F97A6;   /* deeper cyan for hovers       */
  --light:         #F5FAFB;   /* off-white background         */
  --white:         #FFFFFF;
  --ink:           #0C1E30;   /* main text on light           */
  --muted:         #5A6B7A;   /* soft grey text               */
  --line:          #E2ECF0;   /* hairline borders             */

  --gradient: linear-gradient(120deg, #35C7D4 0%, #6FE8E6 100%);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(12, 30, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 30, 48, 0.14);
  --maxw: 1180px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---- 2. RESET / BASE --------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---- 3. BUTTONS -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--gradient); color: var(--dark); box-shadow: 0 8px 24px rgba(53,199,212,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(53,199,212,.5); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); background: var(--darker); }

/* ---- 4. TOP OFFER BAR -------------------------------------- */
.offer-bar {
  background: var(--darker); color: var(--light);
  text-align: center; font-size: .9rem; padding: 9px 16px;
  font-family: var(--font-head); letter-spacing: .2px;
}
.offer-bar a { color: var(--primary-light); font-weight: 600; }

/* ---- 5. HEADER / NAV --------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--dark); }
.brand img { height: 42px; width: auto; }
.brand .brand-fallback { display: inline-flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--gradient); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--primary-dark); background: var(--light); }

/* dropdown */
.has-dropdown > a::after { content: "▾"; font-size: .7rem; margin-left: 4px; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; font-size: .92rem; }
.nav-cta { margin-left: 8px; }
/* keep the Free Audit button label visible (override the generic nav link colour) */
.nav-cta a.btn-dark { color: var(--white); background: var(--dark); }
.nav-cta a.btn-dark:hover { background: var(--gradient); color: var(--dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---- 6. HERO ----------------------------------------------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(53,199,212,.18), transparent 60%), var(--dark); color: var(--light); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-light); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary-light); }
.hero p.lead { font-size: 1.18rem; color: #C4D3DE; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: #AEC0CD; }
.stars { color: #FFC24B; letter-spacing: 2px; }

/* hero visual card */
.hero-visual { position: relative; }
.dash-card { background: linear-gradient(160deg, #10293D, #0A1B2A); border: 1px solid rgba(111,232,230,.18); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-head .title { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--light); }
.dash-dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; background: #35506A; }
.dash-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .9rem; color: #C4D3DE; }
.dash-row .kw { color: var(--light); }
.rank-badge { font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: rgba(53,199,212,.15); color: var(--primary-light); }
.rank-badge.up { background: rgba(76,217,145,.15); color: #7BE8B0; }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 16px; }
.dash-chart i { flex: 1; background: var(--gradient); border-radius: 6px 6px 0 0; opacity: .85; }

/* ---- 7. GENERIC SECTION HEADINGS --------------------------- */
.section { padding: 84px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); letter-spacing: -.5px; margin-bottom: 14px; }
.section p.sub { font-size: 1.1rem; color: var(--muted); }

/* ---- 8. SERVICE CARDS -------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(53,199,212,.4); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--dark); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; stroke: var(--primary-light); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.card .more { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); font-size: .95rem; }
.card .more::after { content: " →"; transition: margin .15s; }
.card:hover .more::after { margin-left: 4px; }

/* ---- 9. WHY / FEATURE ROWS --------------------------------- */
.bg-light { background: var(--light); }
.feature-list { display: grid; gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .tick { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: var(--dark); font-weight: 800; font-size: .8rem; margin-top: 3px; }
.feature h4 { font-size: 1.08rem; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---- 10. PROCESS STEPS ------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 20px; border-top: 3px solid var(--line); }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--primary-dark); margin-bottom: 10px; }
.step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- 11. STATS BAND ---------------------------------------- */
.stats-band { background: var(--dark); color: var(--light); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary-light); }
.stat .l { color: #AEC0CD; font-size: .95rem; margin-top: 4px; }

/* ---- 12. FAQ ----------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 14px; }

/* ---- 13. CTA BAND ------------------------------------------ */
.cta-band { background: var(--gradient); color: var(--dark); text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; opacity: .85; }

/* ---- 14. FOOTER -------------------------------------------- */
.site-footer { background: var(--darker); color: #AEC0CD; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { font-family: var(--font-head); color: var(--white); font-size: .95rem; letter-spacing: .5px; margin-bottom: 16px; text-transform: uppercase; }
.footer-grid a { display: block; padding: 5px 0; font-size: .95rem; transition: color .15s; }
.footer-grid a:hover { color: var(--primary-light); }
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 280px; }
.footer-contact a { color: var(--primary-light); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.social-link { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: transform .15s, background .2s; }
.social-link:hover { transform: translateY(-2px); background: rgba(53,199,212,.2); }
.social-link svg { width: 20px; height: 20px; fill: var(--light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

/* ---- 15. FLOATING CALL BUTTON ------------------------------ */
.float-call {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient); color: var(--dark); font-family: var(--font-head); font-weight: 700;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(53,199,212,.45);
  transition: transform .15s;
}
.float-call:hover { transform: translateY(-3px) scale(1.03); }
.float-call svg { width: 18px; height: 18px; fill: var(--dark); }

/* ---- 16. REVEAL ANIMATION ---------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- 17. FORMS --------------------------------------------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: var(--light); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,199,212,.18); }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success.show { display: block; }
.form-success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.8rem; color: var(--dark); }

/* ---- 18. CONTACT DETAILS BOX ------------------------------- */
.detail-box { background: var(--dark); color: var(--light); border-radius: var(--radius); padding: 32px; }
.detail-box h3 { color: var(--white); margin-bottom: 20px; }
.detail-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.detail-row:first-of-type { border-top: 0; }
.detail-row .ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: rgba(53,199,212,.15); display: grid; place-items: center; }
.detail-row .ico svg { width: 20px; height: 20px; stroke: var(--primary-light); }
.detail-row .t { font-size: .82rem; color: #8CA2B2; text-transform: uppercase; letter-spacing: .5px; }
.detail-row a, .detail-row span { color: var(--light); font-size: 1.02rem; }

/* ---- 19. BREADCRUMBS --------------------------------------- */
.crumbs { padding: 16px 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--primary-dark); }
.crumbs span { margin: 0 6px; opacity: .5; }

/* ---- 20. INNER PAGE HERO ----------------------------------- */
.page-hero { background: radial-gradient(900px 400px at 85% -20%, rgba(53,199,212,.16), transparent 60%), var(--dark); color: var(--light); padding: 60px 0 68px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.5px; margin-bottom: 16px; }
.page-hero p { color: #C4D3DE; font-size: 1.15rem; max-width: 620px; }

/* ---- 21. RESPONSIVE ---------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .grid-3, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 74px); overflow-y: auto; transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
  .nav-links a { padding: 14px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .has-dropdown > a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-2, .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .float-call span { display: none; }
  .float-call { padding: 14px; }
}

/* ---- 22. REDUCED MOTION ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
