/* ============================================================================
   CABLELYTICS — MAIN STYLESHEET
   ----------------------------------------------------------------------------
   This one file controls the look of every page. It is organized top-to-bottom:
     1. BRAND SETTINGS  (colors, fonts, spacing — EDIT THESE to re-theme)
     2. Base & resets
     3. Layout helpers
     4. Header / navigation
     5. Buttons & calls-to-action
     6. Hero
     7. Sections (solutions, stats, testimonials, etc.)
     8. Forms
     9. Footer
    10. Animations & responsive (mobile) rules

   NON-DEVELOPER TIP: To change brand colors or fonts, you ONLY need section 1.
   ========================================================================== */


/* ============================================================================
   1. BRAND SETTINGS  ←★ EDIT HERE to recolor or re-font the whole site
   ----------------------------------------------------------------------------
   These are "CSS variables." Change a value once here and it updates sitewide.
   Colors are pulled from the official Cablelytics logo.
   ========================================================================== */
:root {
  /* ---- Brand colors (from the logo) ---- */
  --gold:        #F1CC01;   /* Cablelytics yellow/gold — primary accent */
  --gold-dark:   #D4B200;   /* Slightly darker gold for hovers */
  --blue:        #2E3A90;   /* Cablelytics deep blue — primary brand color */
  --blue-light:  #4757C4;   /* Lighter blue for accents/gradients */
  --navy:        #141B3C;   /* Very dark navy — used for dark sections/hero */
  --navy-deep:   #0C1129;   /* Deepest navy — hero overlay base */

  /* ---- Neutrals ---- */
  --ink:         #1A1E2E;   /* Main dark text color */
  --slate:       #5A6178;   /* Secondary/muted text */
  --line:        #E4E7F0;   /* Light hairline borders */
  --cloud:       #F5F7FB;   /* Light section background */
  --white:       #FFFFFF;

  /* ---- Typography ---- */
  --font-display: 'Sora', system-ui, -apple-system, sans-serif;  /* Headlines */
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;/* Body text */

  /* ---- Layout ---- */
  --maxw:        1200px;    /* Max content width (the centered column) */
  --radius:      14px;      /* Rounded-corner size for cards/buttons */
  --radius-sm:   8px;
  --gap:         24px;      /* Default spacing unit */

  /* ---- Effects ---- */
  --shadow:      0 10px 30px rgba(20, 27, 60, 0.08);
  --shadow-lg:   0 24px 60px rgba(20, 27, 60, 0.16);
  --ease:        cubic-bezier(.22, .61, .36, 1);
}


/* ============================================================================
   2. BASE & RESETS
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--slate); }

/* Keyboard accessibility: visible focus ring */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ============================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {            /* Centered content column — wrap page content in this */
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {              /* Standard vertical spacing for a page section */
  padding-block: clamp(64px, 9vw, 120px);
}

.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section--dark {        /* Dark navy section (light text) */
  background: var(--navy);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.72); }

.section--cloud { background: var(--cloud); }

/* Eyebrow = the small uppercase label above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
}
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: 14px; }

.lede { font-size: 1.2rem; color: var(--slate); }


/* ============================================================================
   4. HEADER / NAVIGATION
   ----------------------------------------------------------------------------
   Light, clean header. All nav items are plain links.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.nav__logo img { height: 56px; width: auto; }  /*  ←★ Header logo size. Increase/decrease this height to resize the logo. */

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--blue); background: var(--cloud); }
.nav__link.is-active { color: var(--blue); }


/* Mobile hamburger button (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease);
}


/* ============================================================================
   5. BUTTONS & CALLS-TO-ACTION
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

/* ---- Centered button wrapper ----------------------------------------------
   Wrap any .btn in <div class="btn-center"> to center it horizontally,
   regardless of how the surrounding text is aligned. Used on the home page
   for "Learn About Our Company" and "See What We Deliver on Sites Like Yours".
   -------------------------------------------------------------------------- */
.btn-center { display: flex; justify-content: center; width: 100%; }

/* Long button labels must not overflow narrow screens: allow the text to wrap
   onto a second line and cap the button at the container width. */
@media (max-width: 760px) {
  .btn {
    max-width: 100%;
    white-space: normal;      /* let long labels wrap instead of overflowing */
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.btn:active { transform: translateY(0); }

/* Primary = gold "Book a meeting" — the main action everywhere */
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(241,204,1,0.35);
}
.btn--gold:hover { background: var(--gold-dark); box-shadow: 0 12px 30px rgba(241,204,1,0.45); }

/* Blue solid */
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: #25307a; }

/* Outline (on light bg) */
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }

/* Outline on dark bg */
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }


/* ============================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {                 /* Background photo */
  position: absolute;
  inset: 0;
  background-image: url('hero.jpg');   /*  ←★ Hero image lives here. Replace assets/hero.jpg to change it. */
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero__overlay {            /* Dark gradient so text stays readable */
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(12,17,41,0.96) 0%, rgba(12,17,41,0.82) 45%, rgba(46,58,144,0.55) 100%);
}
.hero__grid {               /* subtle tech grid texture */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 30%, black, transparent 75%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 13vw, 160px);
  max-width: 780px;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(255,255,255,0.82);
  margin-top: 22px;
  max-width: 620px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Trust strip under the hero (credentials/badges) */
.hero__trust {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__trust span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 600;
}
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }


/* ============================================================================
   7. SECTIONS
   ========================================================================== */

/* ---- Solutions grid (cards) ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.solution-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.solution-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.solution-card:hover .solution-card__media img { transform: scale(1.06); }
.solution-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.solution-card__body h3 { margin-bottom: 10px; }
.solution-card__body p { font-size: 0.95rem; flex: 1; }
.solution-card__link {
  margin-top: 18px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; color: var(--blue); display: inline-flex; align-items: center; gap: 7px;
}
.solution-card__link::after { content: "→"; transition: transform .2s var(--ease); }
.solution-card:hover .solution-card__link::after { transform: translateX(4px); }

/* Icon-only solution list (compact, on Solutions page) */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.feature {
  display: flex; gap: 16px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ico {
  flex: none; width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center; color: var(--blue);
  background: rgba(46,58,144,0.08);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { font-size: 0.93rem; }

/* ---- Stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: center; padding: 16px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 20%; height: 60%;
  width: 1px; background: rgba(255,255,255,0.14);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.stat__num .suffix { color: var(--white); }
.stat__label {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  font-weight: 600;
}

/* ---- Split feature (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split--reverse .split__media { order: 2; }
.checklist { margin-top: 24px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.8rem;
  display: grid; place-items: center; margin-top: 2px;
}

/* ---- Testimonials ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 5rem; color: var(--gold);
  position: absolute; top: 6px; left: 22px; line-height: 1; opacity: 0.5;
}
.testimonial__quote { position: relative; font-size: 1.05rem; color: var(--ink); margin-bottom: 22px; padding-top: 18px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--blue); color: var(--gold); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial__author b { font-family: var(--font-display); display: block; font-size: 0.96rem; }
.testimonial__author span { font-size: 0.85rem; color: var(--slate); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }

/* ---- Logo / clients strip ---- */
.clients { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.clients span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--slate); opacity: 0.7;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(241,204,1,0.18), transparent 50%);
}
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); position: relative; margin: 14px auto 30px; max-width: 560px; }
.cta-band .btn { position: relative; }

/* ---- Process / steps (Quality Assurance) ---- */
.steps { display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
}
.step h3 { margin-bottom: 8px; }

/* ---- Cablelytics 360 badge (circular signature) ---- */
.badge360 {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.badge360__ring {                 /* rotating dashed ring */
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(241,204,1,0.55);
  animation: spin360 40s linear infinite;
}
.badge360__ring--inner {
  inset: 34px;
  border-style: solid;
  border-color: rgba(255,255,255,0.14);
  animation-duration: 26s;
  animation-direction: reverse;
}
@keyframes spin360 { to { transform: rotate(360deg); } }
.badge360__core {
  text-align: center;
  z-index: 2;
}
.badge360__core .n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 5.4rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.badge360__core .t {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
}
/* Little dots that sit on the ring */
.badge360__dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); z-index: 2;
  box-shadow: 0 0 0 5px rgba(241,204,1,0.15);
}
.badge360__dot.d1 { top: -6px; left: 50%; transform: translateX(-50%); }
.badge360__dot.d2 { top: 50%; right: -6px; transform: translateY(-50%); }
.badge360__dot.d3 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.badge360__dot.d4 { top: 50%; left: -6px; transform: translateY(-50%); }

/* ---- 360 pillar cards (People / Partnership / Technology / Data) ---- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.pillar {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; color: var(--blue);
  background: rgba(46,58,144,0.08);
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pillar p { font-size: 0.93rem; }

/* ---- Pricing cards ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
}
.price-card--featured { border-color: var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.price-card--featured::before {
  content: "Most Requested"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; }
.price-card__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 14px 0 4px; }
.price-card__price small { font-size: 0.95rem; color: var(--slate); font-weight: 500; }
.price-card__note { font-size: 0.85rem; color: var(--slate); margin-bottom: 22px; }
.price-card ul { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink); }
.price-card li::before { content: "✓"; color: var(--blue); font-weight: 800; }


/* ============================================================================
   8. FORMS  (Netlify-ready)
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; margin-bottom: 8px; color: var(--ink);
}
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(46,58,144,0.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 6px; }
/* Honeypot anti-spam field — must stay hidden */
.hidden-field { position: absolute; left: -9999px; }


/* ============================================================================
   9. FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 {
  color: var(--white); font-family: var(--font-display); font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,0.7); transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--gold); }
.footer-col ul { display: grid; gap: 11px; font-size: 0.94rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; background: transparent; padding: 0; }
.footer-brand p { font-size: 0.94rem; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.94rem; align-items: flex-start; }
.footer-contact .ico { color: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges span {
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 5px 13px; font-size: 0.76rem; color: rgba(255,255,255,0.65);
}


/* ============================================================================
   10. ANIMATIONS & RESPONSIVE
   ========================================================================== */

/* Scroll-reveal: elements with .reveal fade up when they enter the viewport.
   (Triggered by the tiny script in assets/main.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Tablet ---- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stat:nth-child(2)::after { display: none; }
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Show hamburger, hide desktop links */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 14px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav__cta { margin-top: 8px; }
  .nav__cta .btn { width: 100%; }


  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; }
}


/* ============================================================================
   11. SECTOR MARQUEE (home page "Where We Work" auto-scrolling carousel)
   ----------------------------------------------------------------------------
   An infinite, automatically moving row of site-type cards. The track holds the
   same list of cards TWICE; the animation slides it left by exactly 50% and
   loops, so the seam is invisible. Pauses on hover/focus.
   To add a card: add it to BOTH copies of the list in index.html.
   ========================================================================== */
/* The carousel is a horizontally scrolling row of cards with prev/next arrows
   and clickable dots. It auto-advances slowly, pauses on hover/focus/touch,
   and uses native scrolling (not a CSS transform animation) — which is far
   smoother on phones and lets users flick through it directly.
   ---------------------------------------------------------------------------
   SPEED: change AUTOPLAY_MS in assets/main.js (higher = slower).
   ========================================================================== */
.section--marquee { overflow: hidden; }

.carousel { position: relative; display: flex; align-items: center; gap: 8px; }

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;           /* IE/Edge */
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0 14px;
}
.carousel__viewport::-webkit-scrollbar { display: none; }   /* Chrome/Safari */

.carousel__track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  gap: 24px;
  padding: 0 4px;
}

/* ---- Arrows ---- */
.carousel__arrow {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
  z-index: 2;
}
.carousel__arrow:hover { background: var(--blue); color: var(--white); }
.carousel__arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.carousel__arrow[disabled] { opacity: .35; cursor: default; }
.carousel__arrow[disabled]:hover { background: var(--white); color: var(--blue); }

/* ---- Dots ---- */
.carousel__dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 14px;
}
.carousel__dot {
  width: 9px; height: 9px; padding: 0;
  border-radius: 999px; border: none; cursor: pointer;
  background: rgba(46,58,144,.22);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.carousel__dot:hover { background: rgba(46,58,144,.45); }
.carousel__dot[aria-current="true"] { background: var(--blue); transform: scale(1.35); }
.carousel__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Cards ---- */
.sector-card {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 320px;
  flex: 0 0 320px;
  width: 320px;
  scroll-snap-align: start;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
/* Fallback for browsers without aspect-ratio support (older Safari/Firefox) */
@supports not (aspect-ratio: 16/10) {
  .sector-card__media { height: 0; padding-top: 62.5%; }
  .sector-card__media img { position: absolute; inset: 0; }
}
.sector-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-card__body { padding: 20px 22px 24px; }
.sector-card__tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: rgba(46,58,144,.08);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.sector-card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sector-card__body p  { font-size: 0.92rem; margin: 0; }

@media (max-width: 760px) {
  /* One card fills most of the screen so it reads cleanly on a phone. */
  .sector-card { flex: 0 0 82vw; width: 82vw; max-width: 330px; }
  .carousel__track { gap: 16px; }
  .carousel__arrow { width: 38px; height: 38px; }
  .carousel { gap: 4px; }
}

/* ============================================================================
   12. SECTOR DETAIL BLOCKS (Customer Success page)
   ----------------------------------------------------------------------------
   Alternating image / text rows describing each site type we build for.
   Add class "sector--flip" to reverse the image to the right side.
   ========================================================================== */
.sector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.sector:first-of-type { border-top: none; padding-top: 12px; }
.sector--flip .sector__media { order: 2; }
.sector__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/2;
  background: var(--navy);
}
.sector__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector__body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.sector__body p { margin-bottom: 16px; }
.sector__body .checklist { margin-top: 4px; }

/* Text-only sectors (no photo) sit in a simple card grid */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 24px; }
.sector-brief {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sector-brief:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sector-brief h3 { font-size: 1.12rem; margin-bottom: 10px; }
.sector-brief p { font-size: 0.94rem; margin: 0; }

@media (max-width: 860px) {
  .sector { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .sector--flip .sector__media { order: 0; }
}
