/* qardon.com — Shared design system v2 (Amendment A 2026-05-13)
 * Navy / Gold / Cream / White. Inter + Playfair Display + Amiri.
 * Same kit as qardon.org for family resemblance.
 */

:root {
  --navy: #0A0E1A;
  --navy-soft: #1A2236;
  --navy-line: rgba(10, 14, 26, 0.12);
  --gold: #D4AF37;
  --gold-soft: #E5C97F;
  --cream: #FAF5E8;
  --cream-soft: #F5EFDF;
  --white: #FFFFFF;
  --ink: #11151F;
  --ink-soft: #4A5060;
  --ink-mute: #6B7280;
  --border: rgba(10, 14, 26, 0.10);
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.06);
  --shadow: 0 4px 14px rgba(10, 14, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 14, 26, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand .dot { color: var(--gold); }
.brand .tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav .cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.main-nav .cta:hover { background: var(--navy-soft); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open a { padding: 10px 8px; }
  .nav-toggle { display: inline-flex; }
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 76px 0; }
section.tight { padding: 56px 0; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 90px 24px 70px;
  text-align: center;
}
.hero .container-tight { padding: 0 12px; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 30px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s, background 0.18s, color 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-soft); color: var(--white); box-shadow: var(--shadow); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

.btn-block { width: 100%; }

/* ============ DIVERT BLOCK (consumer-intent visitor) ============ */
.divert-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 28px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.divert-block .icon {
  flex: 0 0 44px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 20px;
}
.divert-block strong { color: var(--navy); display: block; margin-bottom: 4px; }
.divert-block p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.divert-block .btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 600px) {
  .divert-block { flex-direction: column; text-align: center; }
  .divert-block .btn { margin: 8px 0 0; }
}

/* ============ CARD GRID ============ */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p { color: var(--ink-soft); font-size: 14px; }

/* ============ SECTION TITLES ============ */
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 10px;
}
.section-title p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ============ TECH STACK ROW ============ */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.tech-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tech-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============ ALT BG ============ */
.bg-cream { background: var(--cream); }
.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255, 255, 255, 0.78); }
.bg-navy a { color: var(--gold-soft); }
.bg-navy .card {
  background: var(--navy-soft);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}
.bg-navy .card h3 { color: var(--white); }
.bg-navy .card p { color: rgba(255, 255, 255, 0.72); }
.bg-navy .card .card-icon { background: rgba(212, 175, 55, 0.18); color: var(--gold); }

/* ============ COMPLIANCE LIST ============ */
.compliance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.compliance-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.compliance-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.compliance-item p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ============ FORMS ============ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}
.form-status.success {
  background: rgba(16, 130, 78, 0.08);
  color: #0E6B45;
  border: 1px solid rgba(16, 130, 78, 0.18);
}
.form-status.error {
  background: rgba(184, 58, 38, 0.08);
  color: #9A2E1F;
  border: 1px solid rgba(184, 58, 38, 0.18);
}
.form-status .receipt {
  display: inline-block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-mute);
}
.form-status .mailto-fallback {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.74);
  padding: 56px 24px 32px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.site-footer .brand .tag { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.12); }
.site-footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.74); font-size: 14px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .small {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
  text-align: center;
}

/* ============ PRESS / CAREERS / ABOUT page bits ============ */
.bio-block {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 760px) { .bio-block { grid-template-columns: 1fr; } }
.bio-block h3 { font-size: 22px; margin-bottom: 10px; }
.bio-block p { color: var(--ink-soft); margin-bottom: 12px; }

.press-kit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.press-kit-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.press-kit-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.press-kit-item p { font-size: 12px; color: var(--ink-mute); margin-bottom: 10px; }

/* ============ LEGAL ============ */
.legal-body { padding: 60px 24px; max-width: 820px; margin: 0 auto; }
.legal-body h1 { font-size: 32px; margin-bottom: 14px; }
.legal-body h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-body h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 10px; font-size: 15px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 12px; }

/* ============ FAQ (accordion) ============ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}
.faq-item .faq-answer p + p { margin-top: 10px; }

/* ============ MISC ============ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: 13px; }
.xsmall { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
