/* =========================================================================
   CCell website, 2026 - shared chrome
   -------------------------------------------------------------------------
   Fonts, colour tokens, buttons, header, the CCell wave and footer.
   Loaded by every page, before ccell-site.css.

   Colours follow the CCell Style Guide (v2, Feb 2023): Navy Blue, CCell
   Yellow, Medium Blue and Sea Blue, with warm sand neutrals for light
   sections. Type: Avenir (Book / Medium / Black).
   Shapes: rounded corners, pill buttons, circles - no ellipses.
   ========================================================================= */

/* Avenir (CCell's licensed brand font, per the Style Guide): Book for body copy, Medium for
   subheadings, Black for headings. Self-hosted so every visitor sees it, not only Mac users. */
@font-face { font-family: "Avenir CCell"; src: url(/assets/fonts/avenir-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir CCell"; src: url(/assets/fonts/avenir-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir CCell"; src: url(/assets/fonts/avenir-500.woff2) format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir CCell"; src: url(/assets/fonts/avenir-900.woff2) format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  /* Style guide primary palette */
  --navy:   #101230;   /* Navy Blue - main dark */
  --sea:    #1b3764;   /* Medium Blue */
  --teal:   #1d4b9a;   /* Sea Blue - eyebrows, links, numbers on light backgrounds */
  --yellow: #f7ec13;   /* CCell Yellow - accent and primary buttons */
  /* Style guide secondary palette (sparingly) */
  --sky:    #66c9e2;
  --green:  #5da960;
  --orange: #f27f20;
  /* Supporting colours */
  --ocean:  #1485B0;   /* the CCell wave */
  --abyss:  #090a1f;   /* footer and wave band */
  --panel:  #1b2450;   /* raised panels on navy */
  --sand:   #F6F3EC;
  --sand2:  #EDE7DA;
  --line:   #D9D3C6;
  --text:   #101230;   /* body copy is navy, per the style guide */
  --muted:  #4d5068;   /* navy at ~75% */
  --onnavy: #C9D2E3;   /* secondary text on navy */
  --review: #E8462B;   /* red box around images whose licence needs checking */

  --max: 1280px;
  --gutter: 20px;
  --radius: 14px;
  --section: 88px;
  --font: "Avenir CCell", Avenir, "Avenir Next", system-ui, sans-serif;
}
@media (min-width: 700px)  { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 80px; } }
@media (max-width: 700px)  { :root { --section: 60px; } }

.site-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons (pill shaped) ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.2; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-y { background: var(--yellow); color: var(--navy); }
.btn-y:hover { background: #fff35a; }
.btn-o { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-o:hover { background: rgba(255,255,255,.1); }
.btn-d { background: var(--navy); color: #fff; }
.btn-d:hover { background: var(--sea); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.link:hover { color: var(--navy); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; font-family: var(--font); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: #fff; }
.site-header .brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.site-nav > a, .menu-group > button { color: #fff; padding: 10px 12px; border-radius: 8px; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.site-nav > a:hover, .menu-group > button:hover { color: var(--yellow); }
.site-nav > a.active, .menu-group > button.active { color: var(--yellow); }
.menu-group { position: relative; }
.menu-group > button::after { content: ""; display: inline-block; margin-left: 7px; border: 4.5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu-panel { position: absolute; left: 0; top: calc(100% + 6px); min-width: 330px; background: #fff; color: var(--text); border-radius: var(--radius); padding: 8px; box-shadow: 0 24px 50px rgba(9,10,31,.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.menu-group:hover .menu-panel, .menu-group:focus-within .menu-panel, .menu-group.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel a { display: block; padding: 11px 14px; border-radius: 10px; }
.menu-panel a:hover { background: var(--sand); }
.menu-panel a b { display: block; font-size: 15px; }
.menu-panel a span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.menu-panel a.sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; border-radius: 0 0 10px 10px; }
.nav-cta { margin-left: 12px; }
.site-nav > a.btn-y { background: var(--yellow); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.site-nav > a.btn-y:hover { background: #fff35a; color: var(--navy); }
.site-menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 1080px) {
  .site-menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--navy); max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .site-nav.open { display: flex; }
  .site-nav > a, .menu-group > button { text-align: left; width: 100%; padding: 12px 4px; font-size: 16px; }
  .menu-group > button::after { float: right; margin-top: 8px; }
  .menu-panel { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; margin: 0 0 8px; background: rgba(255,255,255,.05); color: #fff; }
  .menu-group.open .menu-panel { display: block; }
  .menu-group:hover .menu-panel { display: none; }
  .menu-group.open:hover .menu-panel { display: block; }
  .menu-panel a:hover { background: rgba(255,255,255,.06); }
  .menu-panel a span { color: #A9B3CC; }
  .menu-panel a.sub { border-top-color: rgba(255,255,255,.12); }
  .nav-cta { margin: 14px 0 0; }
}

.site-flash { padding-top: 18px; padding-bottom: 4px; }
.site-flash p { margin: 0 0 8px; padding: 14px 20px; border-radius: 12px; font-weight: 600; }
.site-flash .ok { background: #E7F3E7; color: #1d4d20; }
.site-flash .warn { background: #FFF6CF; color: #5b4a00; }
.site-flash a { text-decoration: underline; }

/* ---------- The CCell wave ---------- */

.ccwave { position: absolute; left: 0; right: 0; height: 220px; pointer-events: none; }
.ccwave svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ccwave path { fill: none; stroke: #fff; }
.ccwave path.blur   { stroke: var(--ocean); stroke-width: 10px; filter: var(--wave-blur); }
.ccwave path.sline  { stroke: #fff5; stroke-width: 1px; }
.ccwave path.sline2 { stroke: #fff; stroke-width: 1px; }
.ccwave path.grey   { stroke: #aaa2; stroke-width: 1px; }
.ccwave path.dash   { stroke: var(--ocean); stroke-width: 2px; stroke-dasharray: 5 200; }

.footwave { position: relative; height: 200px; background: var(--abyss); overflow: hidden; }
.footwave .ccwave { top: 0; height: 200px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--abyss); color: #A9B3CC; font-size: 14px; padding: 10px 0 40px; font-family: var(--font); }
.site-footer a { color: #A9B3CC; }
.site-footer a:hover { color: var(--yellow); }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 30px; }
.foot-cols b { color: #fff; display: block; margin-bottom: 10px; font-size: 15px; }
.foot-cols a { display: block; margin-bottom: 6px; }
.foot-brand p { margin-bottom: 12px; }
.foot-copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.foot-mini { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 16px; }
.foot-mini b { color: #fff; }
.foot-mini a { text-decoration: underline; }

@media (max-width: 1100px) {
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

.site-header, .site-header *, .site-header *::before, .site-header *::after,
.site-footer, .site-footer *, .footwave, .site-flash, .site-wrap { box-sizing: border-box; }
.site-header .menu-group > button { padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 15px; font-weight: 600; }
.site-header .menu-group > button:hover, .site-header .menu-group > button.active { color: var(--yellow); }
.site-header .site-menu-btn { padding: 8px 18px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; background: none; color: #fff; font-weight: 700; }
@media (max-width: 1080px) { .site-header .menu-group > button { padding: 12px 4px; font-size: 16px; width: 100%; text-align: left; } }
