/* =========================
   Containers Club – Global UI
   Place at: /styles.css
   Images expected at: /images/cc_logo.png, /images/cc_bg.png
   ========================= */

/* ---- Theme tokens ---- */
:root {
  --sea-25: #f6fbff;
  --sea-50: #f0f9ff;
  --sea-100: #e0f2fe;
  --sea-200: #bae6fd;
  --sea-500: #0ea5e9;
  --sea-600: #0284c7;

  --ink-900: #111111;   /* body text */
  --ink-800: #1f2937;
  --ink-700: #262626;
  --ink-600: #374151;
  --ink-500: #6b7280;   /* muted */

  --card: #ffffff;
  --card-alpha: 0.96;
  --ring: #0ea5e9;
  --border: #d4dbe3;
  --table-stripe: #f8fafc;

  --radius-lg: 16px;
  --radius-md: 10px;

  --shadow-soft: 0 10px 30px rgba(2,132,199,.10);
  --shadow-btn: 0 6px 14px rgba(14,165,233,.22);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink-900);
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: url("/images/cc_bg.png") center/cover fixed no-repeat;
  position: relative;
}
body::before {
  /* veil for readability */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.50));
  z-index: 0;
}

a { color: var(--sea-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; height: auto; display: block; }

/* ---- Layout helpers ---- */
.container { position: relative; z-index: 1; max-width: 1200px; margin: 28px auto; padding: 0 16px; }
.section { padding: 32px 0; }
.hero { padding: 48px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero-ill { display: flex; align-items: center; justify-content: center; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

.grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.card {
  background: rgba(255,255,255,var(--card-alpha));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.card + .card { margin-top: 24px; }

/* ---- Header / Brand ---- */
.header {
  position: sticky; top: 0; z-index: 2;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex; gap: 14px; align-items: center;
  position: relative;                   /* anchor absolute mobile menu */
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 28px; color: var(--ink-900); }
.brand img { width: 30px; height: 30px; }
.tagline { margin-left: 8px; color: var(--ink-500); }

/* ---- Desktop nav (unchanged look) ---- */
.nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* ---- Mobile hamburger button (FIXED) ---- */
.menu-btn{
  /* hidden on desktop; shown in media query */
  display: none;
  margin-left: auto;

  /* reset native iOS/Android button styles */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;

  /* size & layout */
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;

  /* bar color follows currentColor */
  color: var(--ink-900);
  border-radius: 10px; /* just for a nicer focus ring */
}
.menu-btn:focus-visible{
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}
.menu-btn span{
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
/* animate to “X” when menu is open */
.menu-btn[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Typography ---- */
h1 { margin: .2em 0 .3em; font-size: 42px; line-height: 1.15; color: var(--ink-900); }
h2 { margin: 0 0 8px; font-size: 28px; color: var(--ink-900); }
h3 { margin: 18px 0 10px; font-size: 18px; color: var(--ink-900); }
p  { margin: .6em 0; color: var(--ink-600); }
.muted { color: var(--ink-500); font-size: .94rem; }
.req { color: #b91c1c; }

/* ---- Badges / chips ---- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badge {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: var(--sea-50); border: 1px solid var(--sea-100); color: var(--sea-600);
  font-weight: 700; font-size: 12px;
}
.status-chip {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  background: var(--sea-100); color: #065986; font-weight: 800; border: 1px solid var(--sea-200);
}

/* ---- Buttons / Links-as-buttons ---- */
button, .primary, .secondary, .button {
  font: inherit; display: inline-block; border-radius: var(--radius-md);
  padding: 12px 16px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; user-select: none;
}
button, .primary, .button {
  background: var(--sea-500); color: #fff; font-weight: 700; box-shadow: var(--shadow-btn);
}
button:hover, .primary:hover, .button:hover { background: var(--sea-600); text-decoration: none; }
.secondary {
  background: #fff; color: var(--sea-600); border: 1px solid var(--sea-200);
}
.secondary:hover { background: var(--sea-50); text-decoration: none; }

/* ---- Forms ---- */
label { display: block; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
input, select, textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fff; color: var(--ink-900); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #8a94a0; }
input:focus, select:focus, textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}
.field.small { max-width: 320px; }

/* Phone combo */
.phone-row { display: flex; gap: 8px; }
.phone-row select { max-width: 220px; }
@media (max-width: 520px) {
  .phone-row { flex-direction: column; }
  .phone-row select { max-width: 100%; }
}

/* Consent & errors */
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; color: var(--ink-900); margin: 10px 0; line-height: 1.35; }
.consent input { margin-top: 3px; }
.error { color: #b91c1c; font-weight: 700; margin: 10px 0; }

/* ---- Tables ---- */
.table {
  width: 100%; border-collapse: collapse; margin-top: 10px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
}
.table th, .table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--ink-900);
}
.table thead th { background: var(--sea-50); font-weight: 800; }
.table tbody tr:nth-child(even) { background: var(--table-stripe); }

/* ---- Feature cards (home) ---- */
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: flex-start; }
.feature-icon { font-size: 26px; line-height: 1; }

/* ---- Footer ---- */
/* ---- Footer ---- */
footer {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid var(--border);
  color: var(--ink-600);
  font-size: .92rem;
  text-align: center;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}


/* ---- Utilities ---- */
.hidden { display: none !important; }

/* ---- Footer grid (home) ---- */
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left;
}
.footer-grid a { color: var(--sea-600); }
.footer-grid .note { color: var(--ink-500); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Nav chips in top header (optional subtle look) ---- */
.header-inner nav a.secondary { font-weight: 700; }

/* =========================
   Mobile navigation
   ========================= */
@media (max-width: 768px) {
  .menu-btn { display: inline-flex; }      /* show hamburger */
  .nav {
    position: absolute;
    top: calc(100% + 8px);                 /* below header */
    right: 16px;
    left: 16px;
    display: none;                         /* hidden until open */
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    z-index: 1000;
  }
  .nav a { padding: 10px 8px; border-radius: 8px; }
  .nav.open { display: flex; }             /* toggled by JS */
}
/* --- Port page search button override --- */
#searchBtn {
  background: #1b76d3;
  color: #ffffff;
  border-color: #1b76d3;
  font-weight: 600;
  padding: 0 20px;
  box-shadow: var(--shadow-btn);
}

#searchBtn:hover {
  background: #165ea7;
  border-color: #165ea7;
}
