/* ===========================================================
   Maison St-Augustin — shared stylesheet
   Design tokens per project CLAUDE.md: warm, restrained, human-made.
   =========================================================== */

:root {
  --bg: #F7F3EC;
  --surface: #FCFAF6;
  --text: #2A2825;
  --border: #E8E1D3;

  --accent: #B8923D;
  --accent-hover: #A17F34;
  --accent-text: #7E5F22;

  --secondary-accent: #5B6B74;
  --secondary-accent-hover: #45535B;

  --muted: #83786A;

  --forest-green: #284E1B;

  --font-display: "Lora", Georgia, serif;
  --font-body: "DM Sans", -apple-system, sans-serif;

  --space-section: clamp(3rem, 8vw, 8rem);
  --space-md: clamp(1.5rem, 4vw, 3rem);
  --container: 1180px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-primary { background: var(--accent); color: #2A2416; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--secondary-accent); color: var(--secondary-accent); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Outline buttons sit on dark hero photography — need light text/border there */
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { border-color: #fff; color: var(--accent); }

/* Disabled state — used by the booking button until BOOKING_URL is set in js/main.js */
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; }
.btn-primary.is-disabled:hover { background: var(--accent); }
.btn-outline.is-disabled:hover { border-color: var(--border); color: var(--text); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--forest-green);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--accent-text); }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.2s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-text); }

.nav-links .nav-cta a::after { display: none; }
.nav-links .nav-cta a.nav-book-btn { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
}
.lang-toggle span {
  padding: 0.4rem 0.75rem;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle span.active { background: var(--secondary-accent); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding-block: 0.75rem; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { border-bottom: none; margin-top: 0.75rem; }
  .nav-links .nav-cta a.nav-book-btn { width: auto; border-bottom: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,14,0.78) 0%, rgba(20,18,14,0.25) 55%, rgba(20,18,14,0.05) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  max-width: 760px;
}
/* Centered by default (via .container's margin: 0 auto above); the home page hero overrides this to sit on the left. */
.hero-home .hero-content { margin-left: 0; margin-right: auto; }
.hero-content .eyebrow { color: #E9D9AE; }
.hero-content p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; opacity: 0.92; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.hero.hero-short { min-height: 46vh; }

/* fade-in reveal (animation 1/3: applied to hero content on load) */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* scroll-reveal (animation 2/3: applied via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Alternating content blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: var(--space-section);
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media img { border-radius: 4px; width: 100%; height: clamp(300px, 40vw, 460px); object-fit: cover; }
.split-text h2 { margin-bottom: 0.75rem; }
.split-text p { color: var(--text); max-width: 48ch; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; padding-block: clamp(2.5rem, 10vw, 4rem); }
  .split.reverse .split-media, .split.reverse .split-text { order: initial; }
}

/* ---------- Stat bar (real numbers, not icon grid) ---------- */
.stat-bar {
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-bar .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}
.stat-bar .stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #D8D2C6;
}
@media (max-width: 720px) {
  .stat-bar { grid-template-columns: 1fr 1fr; }
}

/* ---------- Activities teaser list (typographic, no stock icons) ---------- */
.teaser-list { border-top: 1px solid var(--border); }
.teaser-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s var(--ease), color 0.2s var(--ease);
}
.teaser-row:hover { padding-left: 0.5rem; color: var(--accent-text); }
.teaser-row .drive-time { font-family: var(--font-display); color: var(--secondary-accent); font-weight: 600; min-width: 5.5rem; }
.teaser-row .place-name { flex: 1; padding-inline: 1.5rem; font-weight: 500; }

/* ---------- Activity index rows (full activities page) ---------- */
.activity-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-row .index-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--border);
  font-weight: 700;
}
.activity-row .activity-name { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.25rem; }
.activity-row .activity-desc { color: var(--muted); max-width: 60ch; font-size: 0.95rem; }
.activity-row .pills { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-self: end; }
.pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-time { background: var(--secondary-accent); color: #fff; }
.pill-season { background: var(--accent); color: #2A2416; }

@media (max-width: 720px) {
  .activity-row { grid-template-columns: 2.5rem 1fr; }
  .activity-row .pills { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
}

/* ---------- Pull-quote ---------- */
.pull-quote {
  text-align: center;
  padding: var(--space-section) 0;
  max-width: 820px;
  margin-inline: auto;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--text);
}
.pull-quote .rule { width: 48px; height: 3px; background: var(--accent); margin: 0 auto 1.5rem; }

/* ---------- Highlights list (plain, no icons) ---------- */
.highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}
.highlights-list li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 500;
}
.highlights-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 1px;
}
@media (max-width: 640px) { .highlights-list { grid-template-columns: 1fr; } }

/* ---------- Gallery page section headers ---------- */
.gallery-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.gallery-section h2 { margin-bottom: 1.25rem; }

/* ---------- Cards / gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid img { border-radius: 4px; height: 260px; width: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-grid a { overflow: hidden; border-radius: 4px; display: block; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Section helpers ---------- */
.section { padding-block: var(--space-section); }
.section-header { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-header.center { margin-inline: auto; text-align: center; }
.bg-surface { background: var(--surface); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.form-field input, .form-field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--secondary-accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.reservation-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.reservation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.quick-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.quick-facts li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.quick-facts li span:first-child { color: var(--muted); }
.quick-facts li span:last-child { font-weight: 700; }

@media (max-width: 860px) {
  .reservation-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

.confirmation-panel { display: none; text-align: center; padding: 2rem 0; }
.confirmation-panel.is-visible { display: block; }
.confirmation-panel svg { width: 56px; height: 56px; color: var(--accent-hover); margin-bottom: 1rem; }
.confirmation-panel h3 { margin-bottom: 0.5rem; }
.confirmation-panel p { max-width: 42ch; margin-inline: auto; color: var(--muted); }
.confirmation-panel .btn { margin-top: 1.25rem; }
#reservation-form.is-hidden { display: none; }

.field-error { color: #9A3B2E; font-size: 0.8rem; display: none; }
.field-error.is-visible { display: block; }

#submit-btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(42, 36, 22, 0.3);
  border-top-color: #2A2416;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.submit-error { color: #9A3B2E; font-size: 0.85rem; text-align: center; margin-top: 0.75rem; display: none; }
.submit-error:not([hidden]) { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: stretch;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail svg { width: 22px; height: 22px; color: var(--secondary-accent); flex-shrink: 0; }
.contact-detail a, .contact-detail span.value { font-weight: 700; font-size: 1.05rem; }
.contact-detail a:hover { color: var(--accent-text); }
.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(72, 128, 55, 0.4);
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.footer-grid p { color: #D8D2C6; max-width: 32ch; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid a { color: #D8D2C6; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #A9A196;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--secondary-accent);
  outline-offset: 2px;
}
