/* ======== */
/* BASE.CSS */
/* ======== */

/* Applied in base for smooth scrolling in every page */
html{
  scroll-behavior: smooth;
}

:root{
  --blue: #4575B4;     /* rgb(69,117,180) TBA's blue*/
  --blue2:#355f99;     /* rgb(53, 95, 153) */
  --ink:#0f172a;
  --muted:#526074;
  --line: rgba(15,23,42,.10);
  --soft:#f7fafc;
  --shadow: 0 18px 60px rgba(15,23,42,.08);
  --r: 18px;

  /* Global background fallback */
  --bg-main: url("../img/cubo_inv.webp");


  /* =================================================================== */
  /*                PAGE BACKGROUND (fixed + parallax)                   */
  /*   Default image = --bg-main (cubo). Pages override --page-bg-image. */
  /*   JS (main.js) updates --bg-parallax-pos.                           */
  /*   ================================================================= */

  --page-bg-image: var(--bg-main);
  --page-bg-opacity: 0.65;
  --page-bg-scale: 1.18;

  /* Manual per-page background tuning (override in page CSS) */
  --page-bg-size: cover;          /* e.g. cover, 110%, 140% */
  --page-bg-pos-x: 50%;           /* horizontal anchor */
  --page-bg-pos-y: 50%;           /* vertical anchor (parallax adds px) */

  /* Readability wash */
  --page-wash-top: rgba(255,255,255,0.40);
  --page-wash-mid: rgba(255,255,255,0.18);
  --page-wash-bot: rgba(255,255,255,0.42);

  /* Parallax controls */
  --bg-parallax-enabled: 1;     /* 0 = off, 1 = on */
  --bg-parallax-range: 260;     /* total px travel over full page scroll */
  --bg-parallax-max: 260;       /* safety clamp */


  /* Glass tokens */
  --glass-edge: rgba(255,255,255,.40);
  --glass-edge-soft: rgba(255,255,255,.28);
  --glass-tint: rgba(69,117,180,.12);
  --glass-bg: rgba(255,255,255,.20);
  --glass-bg-2: rgba(255,255,255,.10);

  /* Subtle container glass */
  --glass-card-bg: rgba(255,255,255,.90);
  --glass-card-bg2: rgba(255,255,255,.65);
  --glass-card-border: rgba(255,255,255,.55);
  --glass-card-shadow: 0 18px 60px rgba(15,23,42,.14);

  /* Subtle “frost” texture (cheap, no blur) */
  --glass-noise: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, rgba(255,255,255,0) 3px 6px);
  /* Unified baked-glass layers (no blur) — keep all components consistent */
  --glass-pane-1: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.50));
  --glass-pane-2: radial-gradient(120% 160% at 20% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
  --glass-pane-tint: linear-gradient(180deg, rgba(69,117,180,.09), rgba(69,117,180,.10));
  --glass-pane-texture: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, rgba(255,255,255,0) 2px 6px);
  /* Burger sizing */
  --burger-w: 18px;
  --burger-h: 2px;
  --burger-gap: 5px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background:#fff;
  line-height:1.6;
  font-size: 17px;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* Large screens: give the layout a bit more breathing room */
@media (min-width: 1440px){
  .container{
    width: min(1240px, calc(100% - 80px));
  }
}

@media (min-width: 1920px){
  .container{
    width: min(1400px, calc(100% - 120px));
  }
}

/* header-only container */
.container-header{
  width: min(1400px, calc(100% - 28px));
  margin: 0 auto;
}

/* ========================================================= */
/*                  GLOBAL PAGE LAYOUT                       */
/* ========================================================= */

.section{ padding: 72px 0; }

/* ============================================================ */
/*                 SECTION ALTERNATING TINTS                    */
/*  Site-wide section striping: alternates between a very light */
/*  tint and a slightly stronger tint, while keeping the single */
/*  global (parallax) page background.                          */
/*  - Default: subtle (odd sections)                            */
/*  - Even sections: a bit stronger for separation              */
/*  - Opt-out: add .section-no-tint                             */
/* ============================================================ */

:root{
  --section-tint-a1: rgba(15,23,42,.03);
  --section-tint-a2: rgba(15,23,42,.05);

  --section-tint-b1: rgba(15,23,42,.10);
  --section-tint-b2: rgba(15,23,42,.13);
}

/* Base tint (odd sections) */
.section{
  position: relative;
  --section-tint-1: var(--section-tint-a1);
  --section-tint-2: var(--section-tint-a2);
}

/* Alternate tint (even sections) */
main > section.section:nth-of-type(even){
  --section-tint-1: var(--section-tint-b1);
  --section-tint-2: var(--section-tint-b2);
}

/* Paint tint layer */
.section::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, var(--section-tint-1), var(--section-tint-2));
}

/* Ensure section content sits above tint */
.section > *{
  position: relative;
  z-index: 1;
}

/* Optional: force one of the variants */
.section-tint-light{ --section-tint-1: var(--section-tint-a1); --section-tint-2: var(--section-tint-a2); }
.section-tint-dark{ --section-tint-1: var(--section-tint-b1); --section-tint-2: var(--section-tint-b2); }

/* Optional: remove tint entirely */
.section-no-tint{ --section-tint-1: rgba(255,255,255,0); --section-tint-2: rgba(255,255,255,0); }


.section-soft{
  /* legacy helper: keep borders/spacing, but DO NOT affect tint */
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

/* Headings */
.section-head{ margin-bottom: 18px; }

.section-title{
  margin:0 0 8px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.section-subtitle{
  margin:0;
  color: var(--ink);
  max-width: 76ch;
  font-size: 17px;
}

.center{ text-align:center; }
.center .section-subtitle{ margin: 0 auto; }

/* ========================================================= */
/*                GLOBAL BACKGROUND SYSTEM                   */
/* ========================================================= */

/* ========================================================== */
/*              PAGE BACKGROUND (fixed + parallax)            */
/*  One background for the entire page (no per-section images)*/
/* ========================================================== */

body{
  position: relative;
  background: transparent;
}

/* Fixed image layer (moves via background-position parallax) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image: var(--page-bg-image, var(--bg-main));
  background-size: var(--page-bg-size, cover);
  background-repeat: no-repeat;

  opacity: var(--page-bg-opacity, 0.55);

  will-change: background-position;

  /* Parallax uses background-position (smooth) */
    background-position:
    var(--page-bg-pos-x, 50%)
    calc(var(--page-bg-pos-y, 50%) + var(--bg-parallax-pos, 0px));
}

/* Global readability wash */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    var(--page-wash-top) 0%,
    var(--page-wash-mid) 45%,
    var(--page-wash-bot) 100%
  );
}

/* Header */
.header{
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  background: linear-gradient(
    to top,
    rgba(69,117,180,0.11) 0%,
    rgba(255,255,255,0.92) 75%,
    rgba(255,255,255,0.92) 100%
  );
  border-bottom: 1px solid var(--line);
  z-index: 50;

  /* TO DELETE AFTER CONSTRUCTION BANNER GOES AWAY */

  display: flex;
  flex-direction: column;

  /* --------------------------------------------- */
}

/* ============================= */
/* Under-construction banner     */
/* ============================= */

.site-banner{
  position: relative;   /* no sticky */
  z-index: 1;

  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-banner-inner{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: rgba(15,23,42,.82);
  font-size: 14px;
}

.site-banner-inner strong{
  font-weight: 850;
}

.site-banner-close{
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(15,23,42,.75);
}

.site-banner-close:hover{
  color: rgba(15,23,42,.92);
}

@media (max-width: 520px){
  .site-banner-inner{
    font-size: 13px;
  }
}

body.menu-open .header{
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.96);
}

.header-inner{ padding: 6px 0; }

.header-grid{
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
}

/* Prevent grid stretching from making links cover the whole header */
.logo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Shrink to content (no full-cell click area) */
  width: fit-content;
  justify-self: center;
}

.logo-left{
  justify-content: flex-start;
  justify-self: start;
}

.logo-center{
  justify-content: center;
  justify-self: center;
}

.logo-og{
  width: min(132px, 36vw);
  height: auto;
  display:block;
}

.logo-cube{
  width: 48px;
  height: auto;
  display:block;
}

/* Burger button */
.nav-toggle{
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 12px;

  /* Soft edge */
  border: 1px solid rgba(255,255,255,.35);

  /* Glass */
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12)),
    linear-gradient(180deg, rgba(69,117,180,.10), rgba(69,117,180,.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 12px 28px rgba(15,23,42,.10);

  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--burger-gap);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nav-toggle:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.16)),
    linear-gradient(180deg, rgba(69,117,180,.24), rgba(69,117,180,.10));
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 16px 36px rgba(15,23,42,.12);
}

.nav-toggle span{
  width: var(--burger-w);
  height: var(--burger-h);
  background: rgba(15,23,42,.78);
  border-radius: 999px;
  transition: transform .22s ease, opacity .18s ease, width .22s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1){
  transform: translateY(calc(var(--burger-gap) + var(--burger-h))) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2){
  opacity: 0;
  transform: scaleX(0.6);
}
.nav-toggle.is-open span:nth-child(3){
  transform: translateY(calc(-1 * (var(--burger-gap) + var(--burger-h)))) rotate(-45deg);
}

/* Overlay */
.menu-overlay{
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9998;
}
.menu-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Right-side panel menu */
.site-nav{
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 86vw);
  padding: 14px;
  z-index: 9999;

  border-left: 1px solid rgba(15,23,42,.10);

  background: linear-gradient(
    180deg,
    rgba(69,117,180, 0.18),
    rgba(255,255,255, 0.96)
  );
  box-shadow: -30px 0 90px rgba(15,23,42,.18);

  display: flex;
  flex-direction: column;
  gap: 12px;

  transform: translateX(102%);
  transition: transform .22s ease;
}
.site-nav.is-open{ transform: translateX(0); }

/* Menu top row */
.menu-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 10px 6px;
}

.menu-title{
  font-weight: 850;
  color: rgba(15,23,42,.88);
  letter-spacing: .02em;
}

/* Close menu button */
.menu-close{
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 12px;

  /* softer */
  border: 1px solid rgba(255,255,255,.35);

  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12)),
    linear-gradient(180deg, rgba(69,117,180,.10), rgba(69,117,180,.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 12px 28px rgba(15,23,42,.10);

  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.menu-close:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.16)),
    linear-gradient(180deg, rgba(69,117,180,.14), rgba(69,117,180,.05));
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 16px 36px rgba(15,23,42,.12);
}

.menu-close span{
  position: absolute;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.70);
  border-radius: 999px;
}
.menu-close span:first-child{ transform: rotate(45deg); }
.menu-close span:last-child{ transform: rotate(-45deg); }

/* MENU LINKS */
.menu-links{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px 10px;
  overflow: auto;
}

.menu-section{
  width: 100%;
  padding: 10px 0 0;
  border-top: 1px solid rgba(15,23,42,.08);
}

.menu-section-title{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(15,23,42,.55);
  padding: 6px 2px 0;
  margin: 0 0 6px 0;
}

/* Menu hover chip height hugs text */
.nav-link{
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 650;
  color: rgba(15,23,42,.85);

  background: transparent;
  border: 1px solid transparent;

  /* Tighter line-height + em padding = proportional height */
  line-height: 1.2;
  padding: .45em .70em;

  transition: color .15s ease, transform .15s ease, background .15s ease, border-color .15s ease;
}

.nav-link:hover{
  color: var(--blue2);
  background: rgba(69,117,180,.10);
  border-color: rgba(69,117,180,.18);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link.active{
  color: var(--blue2);
  background: rgba(69,117,180,.12);
  border-color: rgba(69,117,180,.22);
}

.menu-section .nav-link{ margin-left: 2px; }

/* Typography helpers */
.accent{ color: var(--blue); font-weight: bold; }
.text-link{
  color: var(--blue);
  font-weight: 650;
}
.text-link:hover{ text-decoration: underline; }
.muted-p{ color: rgba(15,23,42,.70); margin: 10px 0 0; }

/* -------------------------- */
/*  Shared components (glass) */
/* -------------------------- */

/* Buttons (GLASS that shows background through) */
.btn{
display:inline-flex;
align-items:center;
justify-content:center;
text-align: center;
white-space: normal;
overflow-wrap: anywhere;
padding: 12px 16px;
border-radius: 999px;

font-weight: 800;
letter-spacing: .01em;
color: rgba(15,23,42,.88);

/* Baked glass: highlight + tint (no blur) */
/* Baked glass: unified pane stack (no blur) */
background:
  var(--glass-pane-1),
  var(--glass-pane-2),
  var(--glass-pane-tint),
  var(--glass-pane-texture),
  var(--glass-noise);


border: 1px solid rgba(255,255,255,.46);

box-shadow:
  inset 0 1px 0 rgba(255,255,255,.32),
  0 14px 34px rgba(15,23,42,.15);

transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  text-decoration:none;
  transform: translateY(-1px);

  background:
  var(--glass-pane-1),
  var(--glass-pane-2),
  linear-gradient(180deg, rgba(69,117,180,.12), rgba(69,117,180,.04)),
  var(--glass-pane-texture),
  var(--glass-noise);

  border-color: rgba(255,255,255,.42);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    0 18px 46px rgba(15,23,42,.12);
}

/* -------------------------- */
/*  Disabled / busy buttons   */
/* -------------------------- */

.btn:disabled,
.btn[aria-disabled="true"]{
  cursor: not-allowed;
  pointer-events: none; /* kills hover & clicks */

  /* Visually disabled but still glassy */
  opacity: 0.68;
  filter: grayscale(14%);

  background:
    linear-gradient(
      180deg,
      rgba(220,220,220,.40) 0%,
      rgba(220,220,220,.22) 45%,
      rgba(180,180,180,.22) 100%
    );

  border-color: rgba(255,255,255,.28);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 22px rgba(15,23,42,.10);
}

/* Explicitly remove hover effects */
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover{
  transform: none;
  box-shadow: none;
}

/* =============== */
/* Sending spinner */
/* =============== */

.btn[aria-busy="true"]{
  position: relative;
  padding-right: 44px; /* room for spinner */
}

.btn[aria-busy="true"]::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;

  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(15,23,42,.55);

  animation: btnspin .8s linear infinite;
}

@keyframes btnspin{
  to { transform: rotate(360deg); }
}


/* =============================== */

.btn-outline{
color: var(--blue2);

background:
  var(--glass-pane-1),
  var(--glass-pane-2),
  linear-gradient(180deg, rgba(69,117,180,.07), rgba(69,117,180,.02)),
  var(--glass-pane-texture),
  var(--glass-noise);


border: 1px solid rgba(255,255,255,.46);

box-shadow:
  inset 0 1px 0 rgba(255,255,255,.34),
  0 14px 34px rgba(15,23,42,.10);
}

.btn-outline:hover{
  background:
  linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.40)),
  radial-gradient(120% 160% at 20% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
  linear-gradient(180deg, rgba(69,117,180,.10), rgba(69,117,180,.03)),
  var(--glass-pane-texture),
  var(--glass-noise);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.40);
}

.btn-large{ padding: 14px 18px; }

/* Badges */
.badge{
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 170px;

  background:
  linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
  radial-gradient(120% 160% at 20% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
  linear-gradient(180deg, rgba(69,117,180,.07), rgba(69,117,180,.02)),
  var(--glass-pane-texture),
  var(--glass-noise);


  border: 1px solid rgba(255,255,255,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 14px 44px rgba(15,23,42,.10);
}

.badge-k{
  display:block;
  font-size: 14px;
  color: var(--muted);
}
.badge-v{
  display:block;
  font-weight: 800;
}

/* Marquee pills */
.pill{
display:inline-flex;
align-items:center;
padding: 9px 12px;
border-radius: 999px;

background:
  linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
  radial-gradient(120% 160% at 18% 0%, rgba(255,255,255,.50), rgba(255,255,255,0) 60%),
  linear-gradient(180deg, rgba(69,117,180,.07), rgba(69,117,180,.02)),
  var(--glass-pane-texture),
  var(--glass-noise);


border: 1px solid rgba(255,255,255,.36);

box-shadow:
  inset 0 1px 0 rgba(255,255,255,.36),
  0 12px 28px rgba(15,23,42,.10);

color: rgba(15,23,42,.82);
font-weight: 750;
white-space: nowrap;
font-size: 14px;
}

/* ======================= */
/* Subtle glass containers */
/* (Baked glass — no blur) */
/* ======================= */

.card-lite,
.feature,
.spotlight-panel,
.cta,
.marquee{
  background:
    var(--glass-pane-1),
    var(--glass-pane-2),
    var(--glass-pane-tint),
    var(--glass-pane-texture),
    var(--glass-noise);
  border: 1px solid var(--glass-card-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    var(--glass-card-shadow);
}

/* Keep existing radii/padding from page classes; this just “glasses” them */
.soft-link{
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.38)),
    radial-gradient(120% 160% at 18% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(69,117,180,.07), rgba(69,117,180,.02)),
    var(--glass-pane-texture),
    var(--glass-noise);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 10px 24px rgba(15,23,42,.10);
}


/* Responsive */

/* Tablet landscape: keep desktop layout, but place buttons side-by-side */
@media (max-width: 980px),(max-width: 1180px){
  .cta.cta-home .cta-actions{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
}

@media (max-width: 980px){

    body{
    font-size: 16px;
    }

  .header-grid{ grid-template-columns: 56px 1fr 56px; }
}

@media (max-width: 480px){
  .container-header{ width: calc(100% - 16px); }
  .logo-cube{ width: 44px; }
  .logo-og{ width: min(128px, 48vw); }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .site-nav{ transition: none; }
  .menu-overlay{ transition: none; }
  .nav-toggle span{ transition: none; }
}

/* ========================= */
/* Layout-only menu symmetry */
/* ========================= */

/* 2-column menu sections, but links DON'T stretch (hover hugs text) */
.menu-section--grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 10px;
}

/* Title spans both columns */
.menu-section--grid .menu-section-title{
  grid-column: 1 / -1;
}

/* Keep chips sized to content even inside the grid */
.menu-section--grid .nav-link{
  width: fit-content;
  height: fit-content;
  justify-self: start;
}

/* Small screens: stack */
@media (max-width: 420px){
  .menu-section--grid{
    grid-template-columns: 1fr;
  }
}

/* ================================ */
/* Footer — uniform faint blue tint */
/* ================================ */

.footer.footer-simple{
  padding: 0;
  border-top: 1px solid var(--line);

  /* uniform light blue tint */
  background: rgba(69,117,180,0.20);
}

.footer-simple .footer-wrap{
  padding: 28px 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

/* Link columns */
.footer-simple .footer-links-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px 26px;
  width: 100%;
}

.footer-simple .footer-links-col{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Muted links */
.footer-simple .footer-link{
  color: rgba(15,23,42,.62);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 0;
}
.footer-simple .footer-link:hover{
  color: rgba(15,23,42,.82);
  text-decoration: underline;
}

/* Bottom line */
.footer-simple .footer-bottom{
  padding: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: rgba(15,23,42,.58);
  font-size: 13px;
}

.footer-simple .footer-link-inline{
  color: rgba(15,23,42,.62);
  font-weight: 650;
  text-decoration: none;
}
.footer-simple .footer-link-inline:hover{
  color: rgba(15,23,42,.82);
  text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 900px){
  .footer-simple .footer-wrap{
    flex-direction: column;
  }
  .footer-simple .footer-links-grid{
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 520px){
  .footer-simple .footer-links-grid{
    grid-template-columns: 1fr;
  }
}

/* ====================== */
/* CTA (shared component) */
/* Migrated from home.css  */
/* ====================== */

.cta{
  border-radius: 18px;
  padding: 22px;
  text-align: center;
}

.cta h2{ margin: 0 0 8px; font-size: 28px; letter-spacing: -.02em; }
.cta p{ margin: 0; color: rgba(15,23,42,.72); }

.cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:center;
  margin-top: 18px;
}

.cta.cta-split{
  text-align: left;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}


/* ====================== */
/* CTA (home — new layout) */
/* ====================== */

.cta.cta-home{
  text-align: left;          /* keep copy left aligned */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Copy (left side) */
.cta-home-text{
  margin: 0;
  color: rgba(15,23,42,.72);
  max-width: 76ch;
}

/* Buttons (right side, stacked + right-aligned) */
.cta.cta-home .cta-actions{
  margin-top: 0;             /* no extra top space in split layout */
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
}

.cta.cta-home .cta-actions .btn{
  width: auto;
  max-width: none;
  min-width: 0;
  justify-content: center;
  text-align: center;
}
.cta.cta-home .cta-actions .btn *{
  text-align: center;
}


/* Mobile/tablet: keep text left, but center the buttons underneath */
@media (max-width: 1440px) and (hover: none) and (pointer: coarse), (orientation: portrait) and (max-aspect-ratio: 3/4){
  .cta.cta-home{
    flex-direction: column;
    align-items: stretch;
  }

  /* Portrait phones + tablets: buttons side-by-side, centered under the text */
  .cta.cta-home .cta-actions{
    margin-top: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  /* Keep CTA buttons side-by-side + stretched */
  .cta .cta-actions{
    flex-wrap: nowrap;
  }
  .cta .cta-actions .btn{
    flex: 1 1 0;
    min-width: 0;
  }
}