/* ==========================================================================
   Kynology Aotearoa — static site styles
   Ported from the Lovable/Tailwind build. Brand: black, bone, amber.
   ========================================================================== */

:root {
  --radius: 0.25rem;
  --background: oklch(0.14 0.005 60);   /* near-black */
  --foreground: oklch(0.96 0.01 80);    /* bone */
  --ink: oklch(0.14 0.005 60);
  --bone: oklch(0.96 0.01 80);
  --card: oklch(0.18 0.006 60);
  --primary: oklch(0.82 0.16 78);       /* amber-yellow */
  --primary-foreground: oklch(0.14 0.005 60);
  --muted-foreground: oklch(0.72 0.015 70);
  --border: oklch(1 0 0 / 10%);

  --font-display: 'Archivo', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-condensed: 'Oswald', sans-serif;
}

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

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.accent { color: var(--primary); }
.fg { color: var(--foreground); }

/* ---------- Layout containers ---------- */

.container {
  max-width: 80rem;   /* max-w-7xl */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 56rem;   /* max-w-4xl */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section { padding-top: 7rem; padding-bottom: 7rem; }
.section-tight { padding-top: 5rem; padding-bottom: 5rem; }

.section-card {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 3.75rem; }
  .section-title.faq-title { font-size: 3rem; }
}

/* ---------- Shared utilities ---------- */

.eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink);
  background: linear-gradient(90deg, oklch(0.78 0.17 75) 0%, oklch(0.88 0.16 85) 100%);
}

.chip-lead { margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-radius: calc(var(--radius) - 4px);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: gap 0.2s ease;
}

.btn:hover { gap: 1.25rem; }
.btn-spaced { margin-top: 2.5rem; }

.text-stroke {
  -webkit-text-stroke: 1px var(--bone);
  color: transparent;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: radial-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.grain-light { opacity: 0.4; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid oklch(1 0 0 / 4%);
  background-color: oklch(0.14 0.005 60 / 80%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav { display: none; }

@media (min-width: 768px) {
  .site-nav { display: flex; gap: 2rem; }
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--primary); }

.tickets-badge {
  border-radius: calc(var(--radius) - 4px);
  background-color: oklch(0.82 0.16 78 / 30%);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.14 0.005 60 / 60%);
  cursor: default;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero { padding-top: 10rem; padding-bottom: 8rem; }
}

.hero-glow {
  position: absolute;
  top: -8rem;
  right: -8rem;
  height: 500px;
  width: 500px;
  border-radius: 9999px;
  background-color: oklch(0.82 0.16 78 / 10%);
  filter: blur(64px);
}

.hero-inner { position: relative; }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-copy { grid-column: span 7 / span 7; }
  .hero-media { grid-column: span 5 / span 5; }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.lede {
  margin-top: 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
}

.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

/* ---------- Speaker ---------- */

.speaker-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .speaker-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .speaker-media { grid-column: span 5 / span 5; }
  .speaker-bio { grid-column: span 7 / span 7; }
}

.speaker-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
}

.speaker-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.speaker-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, oklch(0.14 0.005 60 / 90%), transparent);
}

.speaker-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.speaker-bio {
  margin-top: 2rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.speaker-bio p + p { margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .speaker-bio { margin-top: 2rem; }
}

/* ---------- Prose blocks (Curriculum, Dog Spots) ---------- */

.prose {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.prose p + p { margin-top: 1.5rem; }

/* ---------- Schedule ---------- */

.schedule-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.day-card {
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 2rem;
}

.day-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.day-card-day {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-card-date {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.day-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.day-list li + li { margin-top: 1rem; }

.day-list .dash {
  margin-top: 0.75rem;
  height: 1px;
  width: 1rem;
  flex-shrink: 0;
  background-color: var(--primary);
}

/* ---------- Pricing & Venue ---------- */

.pricing-venue { position: relative; overflow: hidden; }
.pv-inner { position: relative; }

.pv-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pv-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-circle {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid oklch(0.82 0.16 78 / 30%);
  background-color: oklch(0.82 0.16 78 / 10%);
  color: var(--primary);
}

.pv-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pv-lede {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.pv-details { margin-top: 1.5rem; }
.pv-details > div + div { margin-top: 1rem; }

.pv-details p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--primary);
}

.price-label {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.pv-refund-link {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.pv-refund-link a {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.pv-refund-link a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list details {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.faq-list details + details { border-top: 1px solid var(--border); }

.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-q {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .faq-q { font-size: 1.25rem; }
}

.faq-plus {
  margin-top: 0.25rem;
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-list details[open] .faq-plus { transform: rotate(45deg); }

.faq-list details p {
  margin-top: 1rem;
  max-width: 48rem;
  color: var(--muted-foreground);
}

/* ---------- Refund policy ---------- */

.refund {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.refund-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .refund-title { font-size: 2.25rem; }
}

.refund-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.refund-body > * + * { margin-top: 1rem; }
.refund-body .eyebrow + p { margin-top: 0.5rem; }

.refund-note {
  font-style: italic;
  font-size: 0.75rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-sub {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 8rem;
  width: auto;
  filter: invert(1);
}

.footer-eyebrow {
  font-weight: 400;
  opacity: 0.7;
}

.footer-email {
  margin-top: 0.5rem;
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-email:hover { text-decoration: underline; }

.footer-bar {
  margin-top: 3rem;
  border-top: 1px solid oklch(0.96 0.01 80 / 20%);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-plus, .site-nav a { transition: none; }
}
