/*
  Codefire Conversations — Landing Page Styles
  - Mobile-first, accessible, semantic
  - Use CSS variables for palette and spacing
*/

:root {
  /* Colors */
  --bg-0: #050505;
  --bg-1: #0b0b0b;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --text-0: #ffffff;
  --text-1: #cfcfcf;
  --muted: #9a9a9a;
  --brand-1: #ff6a00; /* ember orange */
  --brand-2: #ff3b1f; /* fire red */
  --brand-3: #c01515; /* deep red */
  --accent: #ffd166; /* warm accent */

  /* Shadows & radii */
  --shadow-soft: 0 0.625rem 1.875rem rgba(0,0,0,0.35);
  --radius: 0.625rem;

  /* Layout */
  --container: 67.5rem; /* 1080px */
  --gutter: 1.25rem; /* 20px */
  --space-1: 0.5rem; /* 8px */
  --space-2: 0.75rem; /* 12px */
  --space-3: 1rem; /* 16px */
  --space-4: 1.5rem; /* 24px */
  --space-5: 2rem; /* 32px */
  --space-6: 3rem; /* 48px */
  --space-7: 4rem; /* 64px */
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-0);
  background: radial-gradient(75rem 37.5rem at 70% 10%, rgba(255,106,0,0.15), transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(0.375rem);
  border-bottom: 0.0625rem solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-0); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 2.25rem; height: 2.25rem; filter: drop-shadow(0 0.125rem 0.375rem rgba(255,106,0,0.4)); }
.brand-name { font-weight: 700; letter-spacing: 0.0125rem; }

.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); }
.site-nav a { color: var(--text-1); }
.site-nav a:hover { color: var(--text-0); }
.nav-cta { color: #000; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); padding: 0.625rem 1rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-soft); }
.nav-cta:hover { filter: brightness(1.05); text-decoration: none; }

/* Hero */
.hero {
  background: radial-gradient(50rem 25rem at 80% 10%, rgba(255,59,31,0.2), transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  padding: var(--space-7) 0 var(--space-6);
}
.hero-inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 50rem) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; }
}
.tagline { color: var(--accent); font-weight: 600; margin-top: var(--space-2); }
.hero-image { width: 15rem; margin-inline: auto; opacity: 0.9; }
.hero-copy p { color: var(--text-1); }

.cta-button,
.secondary-button {
  display: inline-block; border: 0; cursor: pointer; font-weight: 700;
  padding: 0.875rem 1.25rem; border-radius: 999px; transition: transform .05s ease, filter .2s ease;
}
.cta-button { background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #000; box-shadow: var(--shadow-soft); }
.cta-button:hover { transform: translateY(-0.0625rem); filter: brightness(1.05); text-decoration: none; }
.secondary-button { background: #222; color: var(--text-0); border: 0.0625rem solid #333; }
.secondary-button:hover { background: #2a2a2a; text-decoration: none; }

/* Sections */
.section { padding: var(--space-6) 0; background: transparent; }
.section-what { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.section-schedule { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
.section-registration { background: var(--bg-3); }
.section-about { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.section-sessions { background: var(--bg-2); }

/* Typography */
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 var(--space-3); }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 var(--space-3); }
h3 { font-size: 1.2rem; margin: 0 0 var(--space-2); }
h4 { font-size: 1rem; margin: 0 0 var(--space-2); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 var(--space-3); color: var(--text-1); }
blockquote { margin: var(--space-4) 0 0; padding-left: var(--space-4); border-left: 0.1875rem solid var(--brand-1); color: var(--text-1); font-style: italic; }

/* Layout helpers */
.two-col { display: grid; gap: var(--space-5); }
@media (min-width: 56.25rem) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.narrow { max-width: 47.5rem; }

/* Lists */
.features, .details { color: var(--text-1); }
.features { display: grid; gap: var(--space-2); padding-left: 1.2em; }
.details { display: grid; gap: var(--space-1); padding-left: 1.2em; }

/* Forms */
.register-form { display: grid; gap: var(--space-4); padding: var(--space-5); background: #151515; border: 0.0625rem solid #262626; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; gap: var(--space-3); }
@media (min-width: 43.75rem) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-full { grid-column: 1 / -1; }
}
.form-field { display: grid; gap: var(--space-1); }
.form-field span { color: var(--text-0); font-weight: 600; }
input[type="text"], input[type="email"] {
  appearance: none; width: 100%; padding: 0.75rem 0.875rem; border-radius: 0.5rem;
  background: #0f0f0f; border: 0.0625rem solid #2a2a2a; color: var(--text-0);
}
input::placeholder { color: #7a7a7a; }
input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 0.1875rem rgba(255,59,31,0.25); }

.checkbox { display: grid; grid-template-columns: 1.25rem 1fr; align-items: start; gap: var(--space-2); color: var(--text-1); }
.checkbox input { transform: translateY(0.25rem); }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* About */
.about-media .portrait { width: 15rem; border-radius: var(--radius); border: 0.0625rem solid #2a2a2a; box-shadow: var(--shadow-soft); }

/* Sessions */
.past-sessions { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 47.5rem) {
  .past-sessions { grid-template-columns: repeat(2, 1fr); }
}
.session-card { background: #141414; border: 0.0625rem solid #262626; border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-soft); }
.session-thumb { width: 100%; height: auto; border-radius: 0.375rem; margin-bottom: var(--space-3); }
.session-title { color: var(--text-0); }
.session-desc { color: var(--text-1); }

/* Footer */
.site-footer { background: var(--bg-0); border-top: 0.0625rem solid rgba(255,255,255,0.06); }
.footer-columns { display: grid; gap: var(--space-5); padding: var(--space-6) 0; }
@media (min-width: 50rem) { .footer-columns { grid-template-columns: 2fr 1fr 1fr; } }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-nav a { color: var(--text-1); }
.footer-nav a:hover { color: var(--text-0); }
.copyright { padding: var(--space-4) 0; color: var(--muted); border-top: 0.0625rem solid rgba(255,255,255,0.06); }

/* Utilities */
.visually-hidden { position: absolute !important; clip: rect(0.0625rem, 0.0625rem, 0.0625rem, 0.0625rem); padding: 0 !important; border: 0 !important; height: 0.0625rem !important; width: 0.0625rem !important; overflow: hidden; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-1);
    color: var(--text-1);
}

.btn-primary:hover {
    background-color: var(--brand-2);
    color: var(--text-1);
}

.btn-secondary {
    background-color: var(--brand-2);
    color: var(--text-1);
}

.btn-secondary:hover {
    background-color: var(--brand-2);
    color: var(--text-1);
}

.btn-text {
    color: var(--brand-1);
    padding: 0;
    background: none;
}

.btn-text:hover {
    color: var(--accent);
    text-decoration: underline;
}
