/* Cyber Essentials Landing - site.css */
:root{
  /* Palette */
  --yellow:#e94c3a;
  --yellow-600:#e94c3a;
  --green:#94b43f;
  --green-700:#94b43f;
  --blue:#1f4384;
  --ink:#1C1C1C;
  --muted:#6b7280;
  --grey:#9CA3AF;
  --bg:#FFFFFF;
  --bg-accent:#FFFFFF;
}
*{box-sizing:border-box}
/* Global link styling */
a{color:var(--yellow);text-decoration:none}
a:hover{color:var(--yellow-600)}
html,body{margin:0;padding:0;background:linear-gradient(180deg,var(--bg),var(--bg-accent));color:var(--ink);font-family:Poppins,Arial,sans-serif;font-weight:400;scroll-behavior:smooth}
h1,h2,h3,.h1{font-family:"Space Grotesk",Inter,system-ui,sans-serif}
.kicker,.tagline{font-family:"Space Grotesk",Inter,system-ui,sans-serif}
img{max-width:100%;height:auto}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* Header */
.header{position:sticky;top:0;background:#fff;border-bottom:1px solid #eef2ff;z-index:30}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand .logo-box{width:36px;height:36px;border:2px dashed var(--muted);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted)}
.brand img.logo-box{display:block;border:none;border-radius:8px;padding:0;background:transparent;object-fit:contain;height:36px;width:auto}
.nav{display:flex;gap:18px;align-items:center}
.nav a{text-decoration:none}
.nav a:not(.btn){color:var(--blue);font-size:16px;font-weight:600}
.nav a:not(.btn):hover{color:var(--blue)}
/* Ensure the CTA button text inside header nav stays white */
.nav a.btn{color:#fff}
.menu-btn{display:none}

/* Use Space Grotesk for main menu header and mobile menu */
.brand, .nav, .nav a, .menu-btn, .mobile-nav a{font-family:"Space Grotesk",Inter,system-ui,sans-serif}

/* Mobile nav hidden by default (prevents duplicate links on desktop) */
.mobile-nav{display:none}
.mobile-nav.open{display:flex}

/* Hero */
.hero{background:linear-gradient(180deg,#173566 15%, #1f4281 35%, #1f4384 100%);border-bottom:1px solid #f3f4f6}
.hero-inner{display:grid;grid-template-columns:1fr;justify-items:center;gap:28px;align-items:center;padding:56px 0}
.kicker{display:inline-flex;align-items:center;gap:8px;background:#ecfccb;border:1px solid #d9f99d;color:#14532d;padding:6px 10px;border-radius:999px;font-size:12px}
.h1{font-size:40px;line-height:1.1;margin:12px 0 8px}
.h1 b{color:var(--green-700)}
.tagline{font-size:16px;margin-left:74px;color:#fff}
.hero-overlay .msg .tagline{margin-top:0}
.hero-icon{width:64px;height:64px;display:block;color:#fff;background:transparent;border:none;border-radius:0;padding:0;flex:0 0 auto}
.msg-body{display:block}
.cta-row{display:flex;gap:10px;margin-top:18px}
.btn{display:inline-block;border-radius:999px;padding:12px 22px;font-weight:700;text-decoration:none;transition:transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;font-family:"Space Grotesk",Inter,system-ui,sans-serif}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 8px 20px -6px rgba(30,133,31,.35);border:2px solid transparent}
.btn-primary:hover{background:var(--green-700);box-shadow:0 10px 26px -8px rgba(30,133,31,.45)}
.btn-secondary{background:var(--yellow);border:2px solid var(--yellow);color:#fff}
.btn-secondary:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.hero-media{position:relative;border-radius:14px;overflow:hidden;border:1px solid #e5e7eb;background:#000;min-height:640px;aspect-ratio:16/9;width:100%;max-width:1100px}
.hero video{width:100%;height:100%;display:block;background:#000;object-fit:cover}
.hero-overlay{position:absolute;inset:0;display:flex;align-items:stretch}
.hero-overlay .inner{position:relative;width:100%;height:100%}
.hero-overlay .msg{position:absolute;left:24px;top:24px;transform:none;max-width:820px;width:auto;max-width:calc(100% - 48px);text-align:left;background:#94b43fdb;color:#fff;padding:16px 28px 20px 20px;border-radius:16px;border:1px solid #94b43fdb;backdrop-filter:saturate(140%) blur(2px);font-size:18px;line-height:1}
/* Per-slide accent colours for hero messages */
.hero-overlay .msg[data-delay="0"]{background:#94b43fdb;border-color:#94b43fdb} /* green */
.hero-overlay .msg[data-delay="3000"]{background:rgba(233,76,58,.86);border-color:rgba(233,76,58,.86)} /* red */
.hero-overlay .msg[data-delay="6000"]{background:rgba(31,67,132,.86);border-color:rgba(31,67,132,.86)} /* blue */
.msg-title{display:flex;align-items:center;gap:10px;margin:0 0 2px}
.hero-overlay .msg .h1,.hero-overlay .msg h1{color:#fff;font-family:"Space Grotesk",Inter,system-ui,sans-serif}
.hero-overlay .msg .h1{font-size:32px}
.hero-overlay .msg b{color:#fff}
/* Special strapline colour (Get your digital ducks in a row) */
.hero-overlay .msg .strapline{color:var(--green-700)}
.hero-overlay .actions{margin-top:10px;display:flex;gap:10px}
.hero-overlay .cta-sticky{position:absolute;left:50%;transform:translateX(-50%);bottom:20px;pointer-events:auto;z-index:2}
.hero-overlay .cta-sticky .btn-secondary{color:#fff;border-color:var(--yellow)}
/* In hero CTA, both buttons turn blue on hover; keep text white */
.hero-overlay .cta-sticky .btn-primary:hover,
.hero-overlay .cta-sticky .btn-secondary:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.fade{opacity:0;transform:translateY(6px);transition:opacity 1s ease, transform 1s ease}
.fade.show{opacity:1;transform:translateY(0)}
.hero .placeholder{display:flex;align-items:center;justify-content:center;min-height:260px;color:#6b7280}

/* Hero video watermark */
.hero-media{position:relative}
.hero-watermark{position:absolute;right:12px;bottom:12px;width:clamp(44px,7vw,68px);height:auto;z-index:3;pointer-events:none;user-select:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}

/* Sections */
.section{padding:52px 0}
.section.alt{background:#f9fafb}
.section h2{font-size:26px;margin:0 0 38px;color:#383838;position:relative}
.section h2:after{content:"";position:absolute;left:0;bottom:-6px;width:72px;height:4px;background:var(--yellow);border-radius:999px}
.section p{color:#374151;font-weight:400}

/* Promo band with image and CTA */
.promo-band{background:var(--green);border-radius:14px;overflow:hidden}
.promo-band .inner{display:grid;grid-template-columns:1.1fr .9fr;align-items:center}
.promo-copy{padding:28px;color:#fff}
.promo-copy h3{margin:0 0 10px;font-size:26px;color:#fff}
.promo-copy p{margin:0 0 14px;color:#ffffff}
.promo-copy .promo-icon{width:34px;height:34px;color:#fff;display:block;margin:0 0 8px}
.promo-media{position:relative;height:100%}
.promo-media img{display:block;width:100%;height:100%;object-fit:cover}

/* Light button for dark backgrounds */
.btn-light{display:inline-block;background:#fff;color:var(--blue);border:2px solid #fff;padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.btn-light:hover{background:#f3f4f6;border-color:#f3f4f6;color:var(--blue)}

/* Impact / Benefits stats */
.stats-hero{display:flex;align-items:center;justify-content:center;gap:16px;text-align:center;background:#f3f4f6;padding:16px 18px;border-radius:12px;border:1px solid #e5e7eb;font-size:22px}
.stats-icon{width:2.6em;height:2.6em;color:var(--blue)}
.stats-headline{font-size:22px;line-height:1.25;color:var(--blue)}
.stats-headline b{font-size:56px;line-height:1;color:var(--blue);display:inline-block;margin-right:8px}
.stats-headline .highlight-red{color:var(--yellow)}

.stats-grid{gap:20px}
.stat-row{display:flex;align-items:center;gap:18px}
.stat-badge{width:110px;height:110px;flex:0 0 110px;aspect-ratio:1/1;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-family:"Space Grotesk",Inter,system-ui,sans-serif;font-size:40px;box-shadow:0 10px 24px -12px rgba(0,0,0,.35)}
.badge-blue{background:var(--blue)}
.badge-yellow{background:var(--yellow)}
.badge-green{background:var(--green)}
.badge-red{background:var(--yellow)}
.badge-grey{background:var(--grey)}
.stat-copy h3{margin:0 0 6px}
.stat-copy p{margin:0;color:#374151}
.grid{display:grid;gap:18px}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px;box-shadow:0 6px 14px -10px rgba(0,0,0,.2);transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 30px -16px rgba(0,0,0,.25)}
/* Optional utility classes to color card top borders */
.bar-blue{border-top:4px solid var(--blue)}
.bar-yellow{border-top:4px solid var(--yellow)}
.bar-green{border-top:4px solid var(--green)}
.bar-grey{border-top:4px solid var(--grey)}
.card .card-icon{width:32px;height:32px;display:block;margin:8px 0 10px;color:#374151}
.card.bar-blue .card-icon{color:var(--blue)}
.card.bar-yellow .card-icon{color:var(--yellow)}
.card.bar-green .card-icon{color:var(--green)}
.card.bar-grey .card-icon{color:var(--grey)}
.card h3{margin:0 0 6px;font-size:18px}
.step-num{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;font-weight:800;font-size:22px;color:#fff;margin-bottom:8px}
.step-blue{background:var(--blue)}
.step-yellow{background:var(--yellow)}
.step-green{background:var(--green)}
.card.cta-green{background:var(--green);border-color:var(--green);color:#fff}
.card.cta-green .card-icon{color:#fff}
.card.cta-green h3,
.card.cta-green p,
.card.cta-green li{color:#fff}
.card.cta-green .cta-link{display:inline-block;margin-top:10px;padding:8px 14px;border:2px solid #fff;border-radius:999px;color:#fff;text-decoration:none;font-weight:700}
.card.cta-green .cta-link:hover{background:#fff;color:var(--blue)}
.quote-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:16px 18px;margin-bottom:18px}
.quote-box .muted{color:#6b7280}
.map-arrow{opacity:.8}
.mapping-grid{align-items:stretch}
.map-card{padding:16px;min-height:150px}
.map-row{display:flex;align-items:center;gap:10px}
.map-icon{width:30px;height:30px;color:#374151;flex:0 0 auto}
.map-card.bar-blue .map-icon{color:var(--blue)}
.map-card.bar-yellow .map-icon{color:var(--yellow)}
.map-card.bar-green .map-icon{color:var(--green)}
.map-split{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:12px}
.map-left{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.map-right{display:flex;align-items:center;gap:10px;justify-content:flex-start;align-self:start;padding-top:28px}
.map-copy{flex:1}
.map-lead{font-weight:600;color:#111827}
.map-sub{font-size:12px;color:#6b7280}
.map-to{color:#9CA3AF;font-weight:700}
.map-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;border:2px solid transparent;white-space:nowrap}
.pill-green{background:#dcfce7;color:#166534;border-color:#dcfce7}
.pill-yellow{background:#fef3c7;color:#92400e;border-color:#fef3c7}

/* Utility */
.nowrap{white-space:nowrap}

@media (max-width: 720px){
  .map-split{grid-template-columns:1fr}
  .map-right{justify-content:flex-start}
}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;font-size:12px}
.badge.green{background:#dcfce7;color:#166534}
.badge.yellow{background:#fef3c7;color:#92400e}
.list{padding-left:18px}
.list li{margin:6px 0;font-weight:400}

/* Embedded app */
.embed{border:1px solid #e5e7eb;border-radius:3px;overflow:hidden;box-shadow:0 10px 16px -8px rgb(0 0 0 / 0.1);padding:2px;background:#e5e7eb}
.app-frame{display:block;width:100%;height:875px;background:#fff;border:0}

/* Footer */
.footer{background:#111827;color:#d1d5db;padding:28px 0;margin-top:20px;border-top:20px solid var(--yellow)}
.footer{padding:40px 0}
.footer .footer-logos img{height:34px;display:block}
/* Make CE (second link) larger */
.footer .footer-logos a:nth-child(2) img{height:48px}
.footer .footer-logos a{display:inline-flex;align-items:center}
.footer .privacy{flex:1;text-align:center;font-size:16px}
.footer .privacy a{color:var(--yellow);font-size:inherit;text-decoration:none}
.footer a{color:var(--yellow)}

/* Footer layout (shared) */
.footer-cols{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer-col{min-width:220px}
.footer-col.resources{min-width:260px}
.footer-title{font-weight:700}
.footer-links{display:block;text-align:left}
.footer-links a{display:block}

/* Cookie Consent */
.cookie-banner{position:fixed;left:20px;right:20px;bottom:20px;z-index:60;background:#111827;color:#e5e7eb;border:1px solid #1f2937;border-radius:12px;box-shadow:0 18px 40px -16px rgba(0,0,0,.5);display:none}
.cookie-inner{display:flex;gap:16px;align-items:flex-start;padding:16px}
.cookie-text{flex:1}
.cookie-text h4{margin:0 0 6px;color:#fff}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn-consent{padding:8px 12px;border-radius:10px;border:2px solid transparent;font-weight:700;cursor:pointer}
.btn-accept{background:var(--green);color:#fff;border-color:var(--green)}
.btn-reject{background:#1f2937;color:#fff;border-color:#374151}
.btn-manage{background:#fff;color:var(--blue);border-color:#fff}
.cookie-banner a{color:var(--yellow)}

/* Preferences modal */
.consent-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;z-index:70}
.consent-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:14px;border:1px solid #e5e7eb;box-shadow:0 20px 44px -18px rgba(0,0,0,.4);width:min(640px,92vw);z-index:75;display:none}
.consent-modal .head{padding:16px 18px;border-bottom:1px solid #eef2ff;display:flex;justify-content:space-between;align-items:center}
.consent-modal .body{padding:16px 18px;display:grid;gap:10px}
.consent-row{display:flex;justify-content:space-between;align-items:center;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}
.consent-row .label{font-weight:600}
.toggle{appearance:none;width:46px;height:26px;border-radius:999px;background:#e5e7eb;position:relative;outline:none;cursor:pointer}
.toggle:after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;background:#fff;border-radius:999px;transition:transform .2s ease}
.toggle:checked{background:var(--green)}
.toggle:checked:after{transform:translateX(20px)}
.consent-modal .actions{padding:0 18px 16px;display:flex;gap:10px;justify-content:flex-end}
.btn-save{background:var(--blue);border:2px solid var(--blue);color:#fff}
.btn-accept-all{background:var(--green);border:2px solid var(--green);color:#fff}

/* Scroll to top */
.to-top{position:fixed;right:20px;bottom:24px;width:44px;height:44px;border-radius:999px;background:var(--blue);color:#fff;display:none;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 12px 30px -12px rgba(0,0,0,.45);z-index:58}
.to-top:hover{background:#153268}
.to-top.show{display:flex}
.to-top svg{width:20px;height:20px}

/* Responsive */
@media (max-width:960px){
  .hero-inner{grid-template-columns:1fr}
  .hero-media{min-height:520px}
}
@media (max-width:720px){
  .nav{display:none}
  .menu-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e7eb;padding:8px 10px;border-radius:8px;background:#fff}
  .mobile-nav{display:none;flex-direction:column;gap:12px;padding:12px 0}
  .mobile-nav.open{display:flex}
  .app-frame{height:1055px}
  .hero-media{min-height:460px}
}
