/* ============================================================
   CCR Cards - shared design tokens + base (dark theme)
   Brand constants are verbatim from the brand guide "Web
   Starter Kit". This token + base layer is copied verbatim
   across the website, shop, and label maker; when you change
   it, change it in all three repos together.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Brand constants */
  --ccr-navy: #011135;
  --ccr-white: #FFFFFF;
  --ccr-lavender: #CAC9EF;
  --ccr-purple: #7371F4;
  --ccr-cyan: #41D3EA;
  --ccr-gradient: linear-gradient(180deg, #7371F4 0%, #41D3EA 100%);

  /* Semantic tokens (dark) */
  --text: var(--ccr-white);
  --text-muted: var(--ccr-lavender);
  --text-inverse: var(--ccr-navy);
  --link: var(--ccr-cyan);
  --surface: var(--ccr-navy);           /* page background */
  --panel: #0A1E4E;                     /* raised: cards, bands */
  --chrome: #010B24;                    /* header and footer */
  --rule: rgba(202, 201, 239, .22);     /* lavender-tinted hairline */

  --surface-raised: var(--panel);
  --surface-soft: var(--chrome);
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
  --overlay: rgba(1, 11, 36, .72);
  --focus-ring: 0 0 0 4px rgba(65, 211, 234, .28);
}

/* ----- Base ----- */

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.08;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1rem; }

p { margin: 0; }

a { color: var(--link); }

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

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

:focus-visible {
  outline: 3px solid var(--ccr-cyan);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.text-muted { color: var(--text-muted); }

.price, .numeric, .tabular { font-variant-numeric: tabular-nums; }

/* ----- Header / global nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--chrome);
  border-bottom: 1px solid var(--rule);
}

.header-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.brand img { height: 48px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  min-width: 0;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.global-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.global-nav a:hover { color: var(--link); }

.global-nav a:hover,
.global-nav a.active { border-bottom-color: var(--ccr-cyan); }

/* ----- Hero ----- */

.hero {
  background: var(--ccr-gradient);
  color: var(--ccr-white);
  padding: 58px 0 64px;
}

.hero h1,
.hero p { color: var(--ccr-white); }

.hero-logo { width: 160px; }

.hero-tagline {
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hero-copy {
  max-width: 620px;
  font-size: 1.05rem;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 10px 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease, border-color .16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary { background: var(--ccr-white); color: var(--ccr-navy); }
.btn-accent  { background: var(--ccr-gradient); color: var(--ccr-white); }
.btn-ghost   { background: transparent; border-color: var(--ccr-white); color: var(--ccr-white); }

.btn-sm {
  min-height: 34px;
  padding: 8px 12px;
  font-size: .86rem;
}

.btn-block { width: 100%; }

.btn-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
}

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

.site-footer {
  background: var(--chrome);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  padding: 40px 0;
  font-size: .95rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-tagline {
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ----- Responsive (shared chrome) ----- */

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .header-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand { justify-self: center; }

  .brand img { height: 44px; }

  .global-nav { gap: 16px; }

  .header-actions {
    justify-self: center;
    justify-content: center;
  }

  .hero { padding: 42px 0 48px; }
}

/* ============================================================
   Website components (this site only, below this line)
   ============================================================ */

/* ----- Hero (brand landing) ----- */

.hero .container {
  display: grid;
  justify-items: start;
  gap: 18px;
}

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

/* ----- Sections ----- */

.section { padding: 48px 0; }

.section h2 { margin-bottom: 20px; }

/* ----- Cards ----- */

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card h2, .card h3 { margin: 0; }

.card p { color: var(--text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

/* Equal-height cards in the grid; buttons pinned to the bottom,
   full width so every card ends on the same shape */
.card-grid .card .btn {
  margin-top: auto;
  align-self: stretch;
}

/* Hover feedback on the "Ways to shop" cards */
.card-grid .card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.card-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  border-color: var(--ccr-cyan);
}

/* ----- Raised band (community strip) ----- */

.band-navy {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 20px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.band-navy p { color: var(--text-muted); }

/* ----- Long-form content (about) ----- */

.prose h1 { margin-bottom: 18px; }

.prose h2 { margin: 26px 0 10px; }

.prose p { margin: 0 0 1em; }
