/* ===================================================================
   Red Horizon Cyber Group — Shared Site Stylesheet
   Used by: index.html, academy.html, apex.html, quadrant.html
   ===================================================================
   HOW TO USE THIS FILE
   - Every value that controls the whole site (colors, fonts, spacing,
     layout, nav, buttons, cards, forms, etc.) lives here. Change it
     once and it updates on every page.
   - The colour palette lives in the :root block right below. Change
     a value there (e.g. --accent-critical) and it updates everywhere
     that variable is used across all four pages.
   - Each individual HTML file keeps only a tiny <style> block in its
     <head> for the handful of things that are unique to that page
     (its background logo image + position/size, and — for index.html
     only — three text-colour tweaks). Everything else has been moved
     here.
   =================================================================== */

  :root{
    --bg: #05070a;
    --panel: rgba(13,17,23,0.92);
    --panel-light: rgba(13,17,23,0.2);
    --nav-bg: rgba(28,32,38,0.88);
    --border: rgba(255,255,255,0.08);
    --text: #f2f4f7;
    --text-dim: #9aa4b2;
    --text-faint: #5c6570;
    --accent-info: #2d8ce0;
    --accent-high: #4ade80;
    --accent-critical: #e5343c;
    --accent-live: #4ade80;
    --cc-bg: #1c1f26;
    --cc-text: #f2f1ed;
    --cc-muted: #a9adb8;
    --cc-accent: #e5343c;
    --cc-accent-hover: #2d8ce0;
    --cc-decline-bg: #2c303a;
    --cc-decline-hover: #383d49;
    --cc-border: #333844;
    --cc-radius: 10px;
    --cc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }


  *{ margin:0; padding:0; box-sizing:border-box; }

  html{ scroll-behavior:smooth; overflow-x: hidden; }

  body{
    font-family:'Inter', sans-serif;
    color:var(--text);
    background:var(--bg);
    min-height:100vh;
    overflow-x: hidden;
  }


  h1,h2,h3{
    font-family:'Space Grotesk', sans-serif;
    font-weight:600;
    letter-spacing:-0.02em;
  }

  .mono{
    font-family:'IBM Plex Mono', monospace;
  }


  /* --- Cookie Banner --- */
  #cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 16px;
    font-family: var(--cc-font);
    transform: translateY(120%);
    transition: transform 0.35s ease;
  }
  #cookie-notice.is-visible {
    transform: translateY(0);
  }
  .cc-panel {
    width: 100%;
    max-width: 720px;
    background: var(--cc-bg);
    color: var(--cc-text);
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  }
  .cc-text {
    flex: 1 1 380px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--cc-text);
  }
  .cc-text a {
    color: var(--cc-text);
    text-decoration: underline;
    text-decoration-color: var(--cc-muted);
  }
  .cc-btn {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
    background: var(--cc-accent);
    color: #0d1210;
  }
  .cc-btn:hover {
    background: var(--cc-accent-hover);
  }
  .cc-btn:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
  }

  
  /* ---------- FIXED BACKGROUND (logo placeholder) ---------- */
  #bg{
    position:fixed;
    top:0; left:0;
    width:100%; height:100vh;
    z-index:-2;
    /* background-image, background-position and background-size for this
       element are intentionally NOT set here — each page sets its own
       logo image/position/size in its own small <style> block, since
       every page uses a different logo graphic. */
    background-repeat:no-repeat;
    background-color:var(--bg);
    overflow:hidden;
  }

  #bg::before{
    /* faint dual-tone glow echoing the logo's red/blue globe split */
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(ellipse 640px 460px at 44% 38%, rgba(229,52,60,0.05), transparent 60%),
      radial-gradient(ellipse 640px 460px at 58% 40%, rgba(45,140,224,0.05), transparent 60%);
  }

  #bg::after{
    /* scrim so scrolling body copy stays legible over the mark */
    content:"";
    position:absolute;
    inset:0;
    background:rgba(5,7,10,0.5);
  }

  /*--------BREADCRUMB---------*/

  nav.breadcrumb-nav .breadcrumb{
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

nav.breadcrumb-nav .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
}

nav.breadcrumb-nav .breadcrumb a {
    text-decoration: none;
}

  /* ---------- NAV ---------- */
  header{
    position:fixed;
    top:0; left:0;
    width:100%;
    z-index:100;
    background:var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--border);
  }

  nav{
    max-width:1240px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 32px;
    height:68px;
  }

  .nav-mark{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    letter-spacing:0.08em;
    text-transform:uppercase;
  }

  .nav-mark .dot{
    width:8px; height:8px;
    border-radius:50%;
    background:var(--accent-live);
    box-shadow:0 0 8px var(--accent-live);
  }

  .nav-links{
    display:flex;
    align-items:center;
    gap:8px;
    list-style:none;
  }

  .nav-links > li{
    position:relative;
  }

  .nav-links a, .nav-links button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--text);
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    background:none;
    border:none;
    cursor:pointer;
    padding:10px 16px;
    border-radius:6px;
    transition:background 0.15s ease, color 0.15s ease;
    font-family:'Inter', sans-serif;
  }

  .nav-links a:hover, .nav-links button:hover,
  .nav-links a:focus-visible, .nav-links button:focus-visible{
    background:rgba(255,255,255,0.08);
    outline:none;
  }

  .caret{
    width:9px; height:9px;
    transition:transform 0.15s ease;
  }

  .has-dropdown:hover .caret,
  .has-dropdown.open .caret{
    transform:rotate(180deg);
  }

  .dropdown{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    min-width:220px;
    background:var(--nav-bg);
    backdrop-filter: blur(10px);
    border:1px solid var(--border);
    border-radius:10px;
    padding:6px;
    opacity:0;
    visibility:hidden;
    transform:translateY(-6px);
    transition:opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown.open .dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }

  .dropdown a{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    width:100%;
    padding:10px 14px;
    border-radius:6px;
  }

  .dropdown a .sub-label{
    font-size:14px;
    font-weight:500;
    color:var(--text);
  }

  .dropdown a .sub-status{
    font-family:'IBM Plex Mono', monospace;
    font-size:10px;
    letter-spacing:0.08em;
    text-transform:uppercase;
  }

  /* Second-level menu */
.nested-dropdown {
    position: relative;
}

.explore-link {
    display: flex !important;
    justify-content: space-between;
    align-items: left;
}

.explore-link span {
    margin-left: 20px;
}


/* Submenu appearing to the RIGHT */
.nested-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #222;
}

.nested-dropdown:hover .nested-menu {
    display: block;
}

  .status-live{ color:var(--accent-live); }
  .status-building{ color:var(--accent-high); }
  .status-planned{ color:var(--accent-info); }


  /*---- new button added (next 2 nav-cta) to keep the menu cta the same padding as other menu links but in a stand out red colour ----*/
  .nav-cta{
    background:var(--accent-critical) !important;
    color:#fff !important;
  }

  .nav-cta:hover, .nav-cta:focus-visible{
    background:#f04a52 !important;
  }

  .nav-toggle{
    display:none;
  }

  /* ---------- LAYOUT / SECTIONS ---------- */
  main{
    position:relative;
    z-index:1;
  }

  section{
    padding:40px 32px;
  }

  .section-divider{
    border-top: 1px solid var(--border);
  }

  .inner{
    max-width:1080px;
    margin:0 auto;
  }

  /*---- GLOBAL: center body outside cards/forms ----*/
  .inner :is(h1, h2, h3, h4, p, ul):not(
  .service-card *,
  .service-card-no-border *,
  .feature-card *,
  form *
){
  text-align: center;
}

.inner ul:not(
  .service-card *,
  .service-card-no-border *,
  .feature-card *,
  form *
){
  list-style-position: inside;
}

  .inner h1 {
    text-align: center;
    margin-bottom: 20px;
  }

  .inner h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .inner p.lede {
    margin-bottom: 10px;
  }

  .subpage-hero{
    padding-top: 148px;
  }


  /* QUADRANT SECTION*/
  .inner-quadrant{
    text-align: center;
    margin-bottom: 20px;
  }
  .inner-quadrant h1 {
    text-align: center;
    margin-bottom: 20px;
  }
  .inner-quadrant .services-list ul li {
    margin-bottom: 10px;
  }
  .roadmap-list-quadrant {
    margin-bottom: 20px;
  }
  .roadmap-item-quadrant {
    margin-bottom: 20px;
  }
  .roadmap-item-quadrant h4 {
    margin-bottom: 20px;
    margin-top: 25px;
  }
  .section-body-quadrant h3 {
    margin-top: 25px;
    margin-bottom: 5px;
    text-align: center;
  }
  .section-body-quadrant h2 {
    margin-top: 10px;
  }
  .section-body-quadrant h1 {
    margin-bottom: 45px;
  }


  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    padding:5px 10px;
    border:1px solid var(--border);
    border-radius:5px;
    margin-bottom:20px;
  }

  .eyebrow .dot{
    width:6px; height:6px;
    border-radius:50%;
  }

  /* ---- HOME / HERO ---- */
  #home{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding-top:68px;
    
  }

  #home .inner{ max-width:760px;
    margin-top: 30px;
  }

  #home h1{
    font-size:clamp(38px, 5.2vw, 64px);
    line-height:1.06;
    margin-bottom:22px;
  }

  #home h1 .accent{ color:var(--accent-critical); }

  #home p.lede{
    font-size:18px;
    line-height:1.6;
    color:var(--text-dim);
    max-width:560px;
    margin-bottom:36px;
  }

  .cta-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
  }

  .btn{
    font-family:'Inter', sans-serif;
    font-size:14px;
    font-weight:600;
    padding:14px 24px;
    border-radius:7px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content: center;
    gap:8px;
    transition:transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .btn-primary{
    background:var(--accent-critical);
    color:#fff;
  }

  .btn-primary-blue{
    background:var(--accent-info);
    color:#fff;
  }

  .btn.disabled{
    pointer-events: none;
    opacity: 1;
    cursor: not-allowed;
  }

  .btn-primary:hover{ transform:translateY(-1px); background:#f04a52; }

  .btn-ghost{
    background:transparent;
    color:var(--text);
    border:1px solid var(--border);
  }
  .btn-ghost:hover{ border-color:rgba(255,255,255,0.3); transform:translateY(-1px); }

  .stat-strip{
    display:flex;
    gap:40px;
    margin-top:64px;
    flex-wrap:wrap;
  }

  .stat-strip div{ min-width:120px; }

  .stat-strip .num{
    font-family:'Space Grotesk', sans-serif;
    font-size:26px;
    font-weight:600;
  }

  .stat-strip .label{
    font-family:'Space Grotesk', sans-serif;
    font-size:18px;
    letter-spacing:0.06em;
    color:var(--text);
    margin-top:4px;
  }

 
  .subpage-hero h1 {
    margin-bottom: 15px;
  }
  .subpage-hero .lede {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .subpage-hero .cta-row {
    margin-bottom: 30px;
  }
  .subpage-hero h2 {
    margin-top: 0;
  }

  /* ---- SERVICES ---- */
  #services{
    background:var(--panel-light);
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
  }
  
  #services > .inner {
    margin-bottom: 60px;
  }

  #services > .inner:last-child {
    margin-bottom: 0px;
  }

  .section-head{
    max-width:100%;
    margin-bottom:15px;
  }

  .section-head h2{
    font-size:clamp(28px, 3.4vw, 40px);
    margin-bottom:14px;
  }

  .section-head p{
    color:var(--text);
    font-size:16px;
    line-height:1.6;
  }



  .service-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  .subsidiary-grid-single {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    text-align: center;
  }
  
  .subsidiary-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    align-items: stretch;
  }

  .subsidiary-grid-2-section{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:30px;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .service-card{
    background:rgba(255,255,255,0.02);
    border:1px solid var(--border);
    border-radius:12px;
    padding:28px;
    display:flex;
    flex-direction:column;
    gap:14px;
    transition:border-color 0.2s ease, background 0.2s ease;
  }
  
  .service-card .btn {
    margin-top: auto;
  }

  .service-card.core{
    grid-column:1 / -1;
  }

  .service-card:hover{
    border-color:rgba(255,255,255,0.18);
    background:rgba(255,255,255,0.035);
  }

  .badge-row{
    display:flex;
    align-items:center;
    gap:16px;
  }

  .badge-row img{
    width:64px;
    height:64px;
    object-fit:contain;
    flex-shrink:0;
    border-radius:8px;
  }

  .service-card .top-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .service-card .top-row h2 {
    width: 100%;
    text-align: center;
  }

  .service-card h3{
    font-size:19px;
  }

  .tag{
    font-family:'IBM Plex Mono', monospace;
    font-size:10px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    padding:4px 9px;
    border-radius:20px;
    white-space:nowrap;
  }

  .tag-live{ color:var(--accent-live); background:rgba(74,222,128,0.1); border:1px solid rgba(74,222,128,0.25); }
  .tag-building{ color:var(--accent-high); background:rgba(255,180,84,0.1); border:1px solid rgba(255,180,84,0.25); }
  .tag-planned{ color:var(--accent-info); background:rgba(62,166,255,0.1); border:1px solid rgba(62,166,255,0.25); }

  .service-card p{
    color:var(--text);
    font-size:14.5px;
    line-height:1.6;
    flex-grow:1;
  }

  .service-card .card-footer{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--text-faint);
    padding-top:8px;
    border-top:1px solid var(--border);
  }


  .services-list ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
  }

  .services-list li::before {
    content: ">";
    margin-right: 10px;
    margin-bottom: 8px;
  }

  .services-list + h2 {
    margin-top: 30px;
  }

  

  /* ---- SERVICES EXPLAINED ---- */
  #services-explained{
    background:var(--panel-light);
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
  }

  .section-head{
    max-width:100%;
    margin-bottom:56px;
  }

  .section-head h2{
    font-size:clamp(28px, 3.4vw, 40px);
    margin-bottom:14px;
  }

  .section-head p{
    color:var(--text);
    font-size:16px;
    line-height:1.6;
  }

  .service-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  .subsidiary-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    align-items: stretch;
  }

  .subsidiary-grid-2-section{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:30px;
    align-items: stretch;
  }

  .service-card{
    background:rgba(255,255,255,0.02);
    border:1px solid var(--border);
    border-radius:12px;
    padding:28px;
    display:flex;
    flex-direction:column;
    height: 100%;
    gap:14px;
    transition:border-color 0.2s ease, background 0.2s ease;
  }

  .title-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .service-card .title-with-logo img {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    margin-left: 15px;
  }

  .service-card .title-with-logo-headshots img {
    width: 300px !important;
    height: 300px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    margin-left: 15px;
  }

  .service-card.core{
    grid-column:1 / -1;
  }

  .service-card:hover{
    border-color:rgba(255,255,255,0.18);
    background:rgba(255,255,255,0.035);
  }

  .badge-row{
    display:flex;
    align-items:center;
    gap:16px;
  }

  .badge-row img{
    width:64px;
    height:64px;
    object-fit:contain;
    flex-shrink:0;
    border-radius:8px;
  }


  .service-card .top-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .service-card h3{
    font-size:19px;
  }

  .tag{
    font-family:'IBM Plex Mono', monospace;
    font-size:10px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    padding:4px 9px;
    border-radius:20px;
    white-space:nowrap;
  }

  .tag-live{ color:var(--accent-live); background:rgba(74,222,128,0.1); border:1px solid rgba(74,222,128,0.25); }
  .tag-building{ color:var(--accent-high); background:rgba(255,180,84,0.1); border:1px solid rgba(255,180,84,0.25); }
  .tag-planned{ color:var(--accent-info); background:rgba(62,166,255,0.1); border:1px solid rgba(62,166,255,0.25); }

  .service-card p{
    color:var(--text);
    font-size:14.5px;
    line-height:1.6;
    flex-grow:1;
  }

  .service-card .card-footer{
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    color:var(--text-faint);
    padding-top:8px;
    border-top:1px solid var(--border);
  }


  .services-list ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
  }

  .services-list li::before {
    content: ">";
    margin-right: 10px;
    margin-bottom: 8px;
  }


  /*---- EXPLAIN GROUP ----*/

  #explain-group {
    background:var(--panel-light);
  }

  #explain-group .section-head {
    max-width: 100%;
  }

  #explain-group .tag {
    white-space: normal;
    text-align: center;
  }

  #explain-group .service-grid {
    text-align: center;
  }
  #explain-group .subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  
  }
  #explain-group .section-head h2 {
    text-align: center;
  }

  #explain-group .service-card h3 {
    text-align: center;
  }

  #explain-group .badge-row h3 {
    text-align: center;
  }

  #explain-group .top-row h3 {
    width: 100%;
    text-align: center;
  }

  /* ---- MOBILE: collapse all 3-column subsidiary grids to 1 column ---- */
@media (max-width: 600px) {
  .subsidiary-grid,
  .subsidiary-grid-2-section,
  #explain-group .subsidiary-grid,
  #academy-training .subsidiary-grid-2-section {
    grid-template-columns: 1fr;
  }

  .service-card .title-with-logo-headshots {
    text-align: center;
  }

  .service-card .title-with-logo-headshots img {
    margin-left: 0;
    width: 160px !important;
    height: 160px !important;
  }
}


  /* ----- CYBER ACADEMY -----*/

  #academy-training .subsidiary-grid-2-section{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:30px;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .inner .section-head-academy {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
  }
  .inner .section-head-academy p {
    margin-bottom: 30px;
  }

  /* ---- ABOUT ---- */

  .inner-about h1,
  .inner-about h2,
  .inner-about h3,
  .section-head h2,
  .section-head h3,
  .section-head p {
    margin-top: 0;
  }
  #about,
  #about-hero,
  #about-values{
    background:var(--panel-light);
  }

  #philosophy .top-row h2 {
    width: 100%;
    text-align: center;
  }

  .about-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:60px;
    align-items:start;
  }

  .cta-row-center{
    display: flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .inner-about {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  /* margin-bottom removed — let section padding control spacing */
}

.inner-about > *:first-child { margin-top: 0; }
.inner-about > *:last-child { margin-bottom: 0; }
 
  .inner-about h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .inner-about h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .inner-about p.lede {
    margin-bottom: 10px;
  }

  .section-head{
    max-width:100%;
    margin-bottom:15px;
  }

  .section-head h2{
    font-size:clamp(28px, 3.4vw, 40px);
    margin-bottom:14px;
  }

  .section-head p{
    color:var(--text);
    font-size:16px;
    line-height:1.6;
  }

  #about h2{
    font-size:clamp(28px, 3.4vw, 40px);
    margin-bottom:20px;
  }

  #about p{
    color:var(--text-dim);
    font-size:16px;
    line-height:1.7;
    margin-bottom:16px;
  }

  .value-list{
    display:flex;
    flex-direction:column;
    gap:22px;
  }

  .value-item{
    display:flex;
    gap:14px;
    padding-bottom:22px;
    border-bottom:1px solid var(--border);
  }

  .value-item:last-child{ border-bottom:none; padding-bottom:0; }

  .value-item .idx{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    color:var(--accent-info);
    padding-top:2px;
  }

  .value-item h4{
    font-family:'Space Grotesk', sans-serif;
    font-size:15px;
    font-weight:600;
    margin-bottom:4px;
  }

  .value-item p{
    font-size:14px;
    color:var(--text-dim);
    margin:0;
    line-height:1.55;
  }

  /* ---- CONTACT ---- */
  #contact{
    background:var(--panel-light);
    border-top:1px solid var(--border);
  }

  .contact-grid{
    display:grid;
    grid-template-columns:0.85fr 1.15fr;
    gap:60px;
  }

  #contact h2{
    font-size:clamp(28px, 3.4vw, 40px);
    margin-bottom:18px;
  }

  #contact .lede{
    color:var(--text-dim);
    font-size:15.5px;
    line-height:1.6;
    margin-bottom:28px;
  }

  .contact-detail{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .contact-detail .row{
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .contact-detail .row .k{
    font-family:'IBM Plex Mono', monospace;
    font-size:10.5px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--text-faint);
  }

  .contact-detail .row .v{
    font-size:15px;
    color:var(--text);
  }

  form{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top: 32px;
  }

  .form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
  }


  label{
    font-family:'IBM Plex Mono', monospace;
    font-size:10.5px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--text);
    margin-bottom:7px;
    display:block;
  }

  input, textarea, select{
    width:100%;
    background:rgba(255,255,255,0.03);
    border:1px solid var(--border);
    border-radius:7px;
    padding:12px 14px;
    color:var(--text);
    font-family:'Inter', sans-serif;
    font-size:14px;
    resize:vertical;
  }

  select{
    color-scheme:dark;
}

select option{
    background:#12161c;
    color:var(--text);
}

  input:focus, textarea:focus, select:focus{
    outline:none;
    border-color:var(--accent-info);
    background:rgba(62,166,255,0.04);
  }

  textarea{ min-height:120px; }

  .field{ display:flex; flex-direction:column; }

  form .btn{ align-self:flex-start; margin-top:6px; }

  .form-note{
    font-size:12px;
    color:var(--text);
    margin-top:2px;
  }

  /* ---- FOOTER ---- */
  footer{
    padding:10px 20px;
    border-top:1px solid var(--border);
    background:var(--bg);
    text-align:center;
  }

  footer p{
    margin: 5px 0;
    font-family:'IBM Plex Mono', monospace;
    font-size:11.5px;
    color:var(--text-faint);
    letter-spacing:0.04em;
  }

  .footer-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:20px;
    align-items:start;
  }

  .footer-grid {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .service-card-no-border{
    
    border-radius:12px;
    padding:28px;
    display:flex;
    flex-direction:column;
    gap:14px;
    transition:border-color 0.2s ease, background 0.2s ease;
  }

  .service-card-no-border p{
    color:var(--text);
    font-size:14.5px;
    line-height:1.1;
    flex-grow:1;
  }



  .service-card-footer {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #footer_links .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #footer_links a {
  color: var(--text);
  text-decoration: none;
}

#footer_links a:visited {
  color: var(--text);
}

#footer_links a:hover {
  color: var(--text);
  text-decoration: underline;
}



  /*---------RISK REVIEW--------------*/

  .service-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  max-width: 400px; /* match your card width */
  margin: 0 auto;
}

  #explain-review .roadmap-list-risk {
    margin-bottom: 20px;
  }
  #explain-review .roadmap-item-risk h2 {
    margin-top: 20px;
  }
  #explain-review .roadmap-item-risk {
    margin-bottom: 20px;
  }
  #explain-review .roadmap-item-risk h4 {
    margin-bottom: 20px;
    margin-top: 25px;
  }

  #trust-section h4{
    margin-top: 24px;
    margin-bottom: 8px;
  }

  #trust-section h4:first-of-type{
    margin-top: 0;
  }

  #trust-section p{
    margin-bottom: 8px;
  }





  /*---------APEX CONSULTANCY---------*/

  .feature-card {
    margin-bottom: 30px;
  }


  /* ---------- POLICIES / TERMS PAGES ---------- */

  table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

@media (max-width: 600px) {
  table, tr, td, th {
    display: block;
    width: 100%;
  }

  table tr:first-child {
    display: none; /* header row hidden — labels shown per field instead */
  }

  table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
  }

  table td {
    border: none;
    padding: 8px 0;
  }

  table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 4px;
  }
}
  
  li {
    line-height: 1.6;
  }

  /*------ATTACK SURFACE REVIEW-------*/

  .breadcrumb a {
    color: var(--text);
    text-decoration: none;
}

.breadcrumb a:visited {
    color: var(--text);
}

.breadcrumb a:hover {
    color: var(--text);
    text-decoration: underline;
}

#attack-review-links a {
  color: var(--text);
  text-decoration: underline;
}

#attack-review-links a:visited {
  color: var(--text);
}

#attack-review-links a:hover {
  color: var(--text);
}


/*------CYBER ESSENTIALS READINESS-------*/

.accent{ color:var(--accent-critical);}

.readiness-section .section-head + .section-head > h2 {
  margin-top: 2.5rem;
}

/* Cyber Essentials 2-card grid: 2 columns / 1 row */
.cyber-essential-2-card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

@media (max-width:600px){
  .cyber-essential-2-card-grid{
    grid-template-columns:1fr;
  }
}

/* Cyber Essentials 5-card grid: 2 / 2 / 1 (centered) */
.cyber-essential-5-card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

/* 5th card span columns, then width constraint & center */
.cyber-essential-5-card-grid > *:nth-child(5){
  grid-column:1 / -1;
  max-width:calc(50% - 15px);
  margin:0 auto;
}

/* Cyber Essentials 6-card grid: 2 columns / 3 rows */
.cyber-essential-6-card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

@media (max-width:600px){
  .cyber-essential-6-card-grid{
    grid-template-columns:1fr;
  }
}

#five-cyber-essentials .service-card h3{
  font-size: 24px;
}

/* Spacing resolve for cards with less 'lede' classes */
#essential-readiness-process .cyber-essential-5-card-grid .service-card:nth-child(2) p.lede{
  flex-grow:0;
}

#essential-readiness-process .cyber-essential-5-card-grid .service-card:nth-child(2) .services-list{
  flex-grow:1;
  display:flex;
  align-items:center;
}

@media (max-width:600px){
  .cyber-essential-5-card-grid{
    grid-template-columns:1fr;
  }

  .cyber-essential-5-card-grid > *:nth-child(5){
    max-width:100%;
  }
}


  /* -----ORGANISATIONAL TRAINING---- */


  /* 2-card grid: 2 columns / 1 row */
.organisational-training-2-card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

.organisational-training-4-card-grid{
  display: grid;
  grid-template-columns:repeat(2, 1fr);
  gap: 30px;
}

/* 6-card grid: 2 columns / 3 rows */
.organisational-training-6-card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}


@media (max-width:600px){
  .organisational-training-2-card-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:600px){
  .organisational-training-4-card-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:600px){
  .organisational-training-6-card-grid{
    grid-template-columns:1fr;
  }
}






  /* ---------- RESPONSIVE ---------- */

  @media (max-width: 520px) {
    .cc-panel {
      flex-direction: column;
      align-items: stretch;
    }
    .cc-btn {
      margin-left: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner {
      transition: none;
    }
  }

  @media (max-width: 600px) {
  #baseline .inner > div:first-child a.btn {
    display: flex;
    width: 100%;
  }

  #baseline .inner > div:first-child a.btn + a.btn {
    margin-top: 12px;
  }
}


  @media (max-width: 860px) {
    .about-grid{ grid-template-columns:1fr; gap:36px; }
    .contact-grid{ grid-template-columns:1fr; gap:36px; }
    .form-row{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;}
    .service-card-no-border a,
    .service-card-no-border p{
      overflow-wrap: anywhere;
    }
  }

  @media (max-width: 600px) {
    .footer-grid {
    gap: 12px;
  }

  .service-card-no-border {
    padding: 16px;
    gap: 10px;
  }

  .service-card-no-border p,
  .service-card-no-border a {
    font-size: 13px;
  }

  .service-card-no-border .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 12.5px;
    white-space: normal;
  }
}

  @media (max-width: 720px){
    nav{ padding:0 18px; }
    section{ padding: 48px 18px; }
    main{ padding-top: 72px; }

    .nav-toggle{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:38px; height:38px;
      background:none;
      border:1px solid var(--border);
      border-radius:6px;
      color:var(--text);
      cursor:pointer;
    }

    .nav-links{
      position:fixed;
      top:68px; left:0;
      width:100%;
      flex-direction:column;
      align-items:stretch;
      background:var(--nav-bg);
      backdrop-filter:blur(10px);
      border-bottom:1px solid var(--border);
      padding:10px 14px 18px;
      gap:2px;
      transform:translateY(-8px);
      opacity:0;
      visibility:hidden;
      transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .nav-links.open{
      opacity:1;
      visibility:visible;
      transform:translateY(0);
    }

    .nav-links > li{ width:100%; }
    .nav-links a, .nav-links button{ width:100%; justify-content:space-between; }

    .dropdown{
      position:static;
      opacity:1;
      visibility:visible;
      transform:none;
      display:none;
      background:rgba(255,255,255,0.02);
      border:none;
      box-shadow:none;
      margin-top:2px;
    }

    .has-dropdown.open .dropdown{ display:block; }
    .has-dropdown:hover .dropdown{ display:none; }
    .has-dropdown.open:hover .dropdown{ display:block; }
    .nested-menu {
      position: static;
      left: auto;
      top: auto;
      min-width: 100%;
      display: none;
      background: rgba(255, 255, 255, 0.02);
    }
    .nested-dropdown.open .nested-menu{display: block;}
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition:none !important; scroll-behavior:auto !important; }
  }
