/* ==========================================================================
   HOT Q® — site styles
   Colors, type and spacing mirror the original Lovable design.
   ========================================================================== */

:root {
  /* Palette */
  --background: oklch(12% 0.005 30);        /* near-black, warm */
  --foreground: oklch(95% 0.01 60);         /* warm off-white */
  --card: oklch(16% 0.006 30);
  --muted: oklch(20% 0.008 30);
  --muted-foreground: oklch(65% 0.01 50);   /* warm grey */
  --hot: oklch(64% 0.23 32);                /* signature HOT Q red-orange */
  --primary: var(--hot);
  --primary-foreground: var(--background);
  --border: oklch(95% 0.01 60 / 0.14);
  --gradient-fade: linear-gradient(180deg, transparent 0%, var(--background) 100%);

  /* Type */
  --font-display: "Anton", Impact, sans-serif;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 80rem;
  --gutter: 1.5rem;
  --header-h: 4rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
::selection { background: var(--hot); color: var(--background); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* ---------- Type primitives ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  font-weight: 400;
}
.label {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  line-height: 1.5;
}
.text-hot { color: var(--hot); }
.text-muted { color: var(--muted-foreground); }
.text-fg { color: var(--foreground); }

/* Tailwind-equivalent sizes (size / line-height) */
.t-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.t-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.t-xl  { font-size: 1.25rem;  line-height: 1.75rem; }
.t-2xl { font-size: 1.5rem;   line-height: 2rem; }
.t-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.t-4xl { font-size: 2.25rem;  line-height: 2.5rem; }
.t-5xl { font-size: 3rem;     line-height: 1; }
.t-6xl { font-size: 3.75rem;  line-height: 1; }
@media (min-width: 768px) {
  .md-t-5xl { font-size: 3rem;    line-height: 1; }
  .md-t-6xl { font-size: 3.75rem; line-height: 1; }
  .md-t-7xl { font-size: 4.5rem;  line-height: 1; }
  .md-t-8xl { font-size: 6rem;    line-height: 1; }
  .md-t-9xl { font-size: 8rem;    line-height: 1; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 6rem; }
.grid-2 { display: grid; gap: 3rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.items-center { align-items: center; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.5rem; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-inline: auto; }
.max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; } .max-w-xl { max-width: 36rem; } .max-w-4xl { max-width: 56rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom-width: 1px;
  background: oklch(12% 0.005 30 / 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.logo { font-size: 1.5rem; line-height: 2rem; }
.nav { display: none; gap: 2rem; }
.nav a { color: var(--muted-foreground); transition: color .15s; }
.nav a:hover { color: var(--foreground); }
.nav a[aria-current="page"] { color: var(--hot); }
.menu-toggle { display: inline-block; }
.mobile-nav { display: none; border-top-width: 1px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 1.5rem; }
.mobile-nav a { color: var(--muted-foreground); }
.mobile-nav a[aria-current="page"] { color: var(--hot); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 100vh; min-height: 100svh;
  /* Shown until a photo is added (or if it fails to load) */
  background:
    radial-gradient(60% 50% at 70% 30%, oklch(64% 0.23 32 / 0.35), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, oklch(64% 0.23 32 / 0.12), transparent 70%),
    var(--background);
}
.hero--page { min-height: 70vh; padding-top: 6rem; }
.hero--plain { background: var(--background); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--page .hero__img { opacity: 0.5; }
.hero__fade { position: absolute; inset: 0; background: var(--gradient-fade); }
.hero__inner { position: relative; padding-bottom: 4rem; }
.hero--home .hero__inner { padding-top: 8rem; }
.hero__title { font-size: 11vw; margin-top: 1.5rem; }
@media (min-width: 768px) { .hero__title { font-size: 8rem; } }
.hero__foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.hero--page h1 { font-size: 3.75rem; line-height: 1; margin-top: 1rem; }
@media (min-width: 768px) { .hero--page h1 { font-size: 8rem; } }

.eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.pulse-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.2; } }

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--foreground); padding: 1rem 1.5rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--hot); background: var(--primary); color: var(--primary-foreground); }
.btn-solid { background: var(--primary); color: var(--primary-foreground); padding: 1rem 1.5rem; transition: opacity .15s; }
.btn-solid:hover { opacity: 0.9; }
.link-muted { color: var(--muted-foreground); display: inline-block; transition: color .15s; }
.link-muted:hover { color: var(--hot); }

/* ---------- Numbered columns (pillars / values) ---------- */
.cols { display: grid; }
.cols > * { padding: 2rem; }
.cols--3 > * { padding: 2.5rem; }
@media (min-width: 768px) {
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols > * { border-right-width: 1px; }
  .cols > *:last-child { border-right-width: 0; }
}
.pillar h3 { margin-top: 2rem; transition: color .15s; }
.pillar:hover h3 { color: var(--hot); }

/* ---------- Image pair (home "experience") ---------- */
.img-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.img-pair .ph:nth-child(2) { margin-top: 4rem; }
.ph { /* image placeholder frame */
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 20%, oklch(64% 0.23 32 / 0.28), transparent 70%),
    var(--card);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Signup form ---------- */
.signup { display: flex; flex-direction: column; width: 100%; max-width: 32rem; border-width: 1px; margin-inline: auto; text-align: left; }
.signup input { flex: 1; padding: 1rem 1.25rem; outline: none; min-width: 0; }
@media (min-width: 640px) { .signup { flex-direction: row; } }
::placeholder { color: var(--muted-foreground); opacity: 1; }

/* ---------- Events list ---------- */
.events { border-top-width: 1px; }
.event { display: grid; align-items: baseline; gap: 0.5rem; border-bottom-width: 1px; padding-block: 2rem; }
.event__name { transition: transform .15s; }
.event:hover .event__name { transform: translateX(0.5rem); }
@media (min-width: 768px) {
  .event { grid-template-columns: 8rem 1fr 16rem 10rem; }
  .event .label { text-align: right; }
}

/* ---------- Perks list (community) ---------- */
.perks { border-top-width: 1px; }
.perks li { display: flex; gap: 1.5rem; border-bottom-width: 1px; padding-block: 1.25rem; align-items: baseline; }

/* ---------- Contact form ---------- */
.contact-form > * + * { margin-top: 1rem; }
.field { width: 100%; border-bottom-width: 1px; padding-block: 1rem; outline: none; transition: border-color .15s; border-radius: 0; }
.field:focus { border-color: var(--hot); }
select.field { color: var(--muted-foreground); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%), linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: var(--card); color: var(--foreground); }
textarea.field { resize: vertical; }
.contact-form .btn-solid { margin-top: 1.5rem; padding-inline: 2rem; }
.form-status { min-height: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top-width: 1px; }
.marquee-wrap { overflow: hidden; border-bottom-width: 1px; padding-block: 1.5rem; }
.marquee { display: flex; width: max-content; gap: 3rem; white-space: nowrap; font-size: 3rem; line-height: 1;
  color: var(--muted-foreground); animation: marquee 30s linear infinite; }
.marquee > span { display: flex; gap: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-tagline { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee, .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}
