/* styles.css — minimal layout utilities (no Tailwind) */

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--sora-background);
  color: var(--sora-neutral-900);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: Merriweather, Georgia, serif;
  line-height: 1.2;
  margin: 0 0 .6rem;
  color: var(--sora-brand-900);
}
.h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

/* Containers & layout */
:root { --container: 72rem; } /* ~1152px */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.row { display: flex; align-items: center; justify-content: space-between; }
.center { text-align: center; }
.stack-lg { display: grid; gap: 2rem; }
.pad-y-sm { padding-block: 1rem; }
.pad-y-lg { padding-block: 4rem; }
.gap { gap: .75rem; }

/* Header / Nav / Footer */
.site-header { background: var(--sora-accent-500); color: #fff; }
.site-footer {
  background: var(--sora-accent-500);
  color: #fff; text-align: center;
  padding: 1.5rem 1rem; margin-top: 2rem;
}
.logo { width: 40px; height: auto; border-radius: 6px; }
.brand { font-weight: 600; }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: #fff; opacity: .92; text-decoration: none; }
.nav a:hover { color: var(--sora-brand-500); opacity: 1; text-decoration: underline; }
.hide-on-mobile { display: none; }
@media (min-width: 768px){ .hide-on-mobile { display: flex; } }

/* Hero (legacy single-image sizing kept for consistency) */
.hero-logo { width: 100%; max-width: 360px; border-radius: 14px; }

/* Panels / sections */
.bg-mint { background: var(--panel); }
.panel {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--sora-accent-500) 12%, white);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}
.section-divider { height: 1px; background: var(--divider); border: 0; margin: 1.25rem 0; }

/* Lists */
.bullets { list-style: disc; padding-left: 1.25rem; }
.bullets li { margin-bottom: .5rem; }
.mb { margin-bottom: 1rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-grid input, .form-grid textarea {
  padding: .75rem; border: 1px solid var(--sora-neutral-300);
  border-radius: 12px; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: 3px solid var(--sora-focus); outline-offset: 2px;
}
.span-2 { grid-column: 1 / -1; }
@media (min-width: 768px){ .form-grid { grid-template-columns: 1fr 1fr; } }

/* Grid cards */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ==== Header clamp & behavior ==== */
#site-header {
  --header-height: 56px;
  position: sticky; top: 0; z-index: 50;
}
#site-header .header-inner {
  max-width: 1200px; margin: 0 auto;
  min-height: var(--header-height);
  padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
#site-logo {
  height: calc(var(--header-height) - 16px);
  width: auto; display: block;
}
img#site-logo { width: auto !important; }

#site-header.scrolled {
  background: #ffffff;
  color: #0F5132;
  backdrop-filter: saturate(1.1) blur(6px);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
#site-header nav a { color: inherit; text-decoration: none; }
#site-header.scrolled nav a:hover { color: #9E832B; }
#site-header:not(.scrolled) nav a { color: #ffffff; }
#site-header:not(.scrolled) nav a:hover { color: #9E832B; }

.brand { font-size: 1rem; line-height: 1.25; white-space: nowrap; }

/* Safer media defaults */
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Spacing helper */
.mb-6 { margin-bottom: 1.5rem; }

/* === Hero split layout === */
.hero {
  background: transparent;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}
.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
/* Copy */
.hero-copy { text-align: center; }
.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--sora-brand-900);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 1.25rem;
  color: var(--sora-neutral-700);
}
/* Bullets (gold dots; text neutral) */
.hero-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--sora-gold);
}
.hero-bullets li {
  margin: .4rem 0;
  color: var(--sora-neutral-900);
}
/* CTAs */
.hero-ctas {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Image */
.hero-media { display: flex; justify-content: center; }
.hero-media img.hero-logo {
  max-width: clamp(220px, 38vw, 520px);
  height: auto;
  border-radius: 14px;
}
/* Image border card */
.hero-logo--border {
  border: 3px solid var(--sora-green);
  background: #fff;
  padding: .5rem;
  border-radius: 12px;
}
/* Split at ≥768px */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
  }
  .hero-copy { text-align: left; }
  .hero-ctas { justify-content: flex-start; }
}
/* === Header logo ring (make border visible on green header) === */
#site-header #site-logo.hero-logo--border {
  /* keep the small header size from .logo (width: 40px) */
  background: #fff;                 /* white card behind the logo */
  padding: 4px;                     /* space for the border */
  border: 3px solid var(--sora-green);  /* dark green ring */
  border-radius: 10px;              /* soften corners */
  box-shadow: 0 0 0 2px #fff;       /* thin white outline so the green ring pops on green header */
}
/* Puzzle image smaller */
.hero .hero-puzzle {
  max-width: clamp(140px, 25vw, 260px);
  margin: 0 auto;
  display: block;
}

/* Subtitle centered */
.hero .hero-subtitle {
  font-size: 1.25rem;
  margin-top: .5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Inverse button style: green background, black text */
.btn--inverse {
  --btn-bg: var(--sora-accent-500);   /* deep green */
  --btn-text: #222;                   /* black/grey text */
  border: 2px solid var(--sora-accent-500);
  font-weight: 600;
}
.btn--inverse:hover {
  background: var(--sora-accent-600);
  border-color: var(--sora-accent-600);
  color: #fff;                        /* white on hover */
}
/* Force hero CTA buttons: green bg + dark text; darker green + white text on hover */
.btn.btn--inverse {
  background: var(--sora-accent-500) !important;  /* green background */
  color: #222 !important;                          /* black/grey text */
  border: 2px solid var(--sora-accent-500) !important;
}

.btn.btn--inverse:hover,
.btn.btn--inverse:focus-visible {
  background: var(--sora-accent-600) !important;  /* darker green */
  border-color: var(--sora-accent-600) !important;
  color: #fff !important;                          /* white text on hover */
}
/* Hero CTA buttons: light green background + dark text; gold text on hover */
.btn.btn--inverse {
  background: var(--secondary-500) !important;   /* light green #BEE7A5 */
  color: #222 !important;                        /* black/grey text */
  border: 2px solid var(--secondary-500) !important;
}

.btn.btn--inverse:hover,
.btn.btn--inverse:focus-visible {
  background: var(--secondary-500) !important;   /* keep same light green */
  border-color: var(--secondary-500) !important;
  color: var(--sora-brand-500) !important;       /* gold #9E832B */
}
/* ==== Compact spacing pass (keep things readable, reduce scroll) ==== */

/* Section & hero padding */
.pad-y-lg { padding-block: clamp(1.5rem, 4vw, 2.5rem) !important; }
.hero { padding: clamp(1.25rem, 4vw, 3rem) 1rem !important; }

/* Stacks & grids */
.stack-lg { gap: 1.25rem !important; }
.grid { gap: .75rem !important; }
.hero-container { gap: 1.25rem !important; }

/* Panels & cards */
.panel { padding: 1.25rem 1rem !important; }
.card { padding: 1rem !important; }

/* Headings & lists */
h1, h2, h3 { margin-bottom: .4rem !important; }
.section-divider { margin: .75rem 0 !important; }
.hero-bullets { margin: .75rem 0 1rem !important; }
.hero-ctas { margin-top: .75rem !important; gap: .5rem !important; }

/* Forms */
.form-grid { gap: .75rem !important; }

/* Footer */
.site-footer { margin-top: 1rem !important; padding: 1rem !important; }

/* Slightly tighter layout on smaller phones */
@media (max-width: 480px) {
  .pad-y-lg { padding-block: 1.25rem !important; }
  .hero { padding: 1rem !important; }
}
.contact-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.contact-methods label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
}
.muted { color: var(--sora-neutral-500); font-size: .9rem; }

