/* =========================================================
   Crossroads Restaurant — Rosseau, Ontario
   Shared stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:         #ffffff;   /* page background (white) */
  --bg-white:   #ffffff;
  --bg-sand:    #ece7da;
  --text:       #1b1a18;   /* near-black body text */
  --heading:    #141312;
  --muted:      #57534c;   /* secondary text */
  --accent:     #a3514a;   /* brick / terracotta (eyebrows, labels, links) */
  --accent-dark:#8a433d;
  --btn-green:  #2f4a3c;   /* dark forest green — primary buttons */
  --btn-green-dark:#243a2f;
  --footer-bg:  #2a2724;   /* dark charcoal-brown */
  --footer-gold:#a98a5c;   /* muted bronze for footer logo */
  --footer-text:#c9c4bc;
  --footer-muted:#8c877e;
  --line:       rgba(20,19,18,0.14);
  --line-light: rgba(255,255,255,0.14);

  --font-sans:  "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;

  --maxw: 1200px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p  { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section   { padding: clamp(60px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.bg-white  { background: var(--bg-white); }
.center    { text-align: center; }
.lead      { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
.eyebrow   {
  color: var(--btn-green);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: none;
  margin: 0 0 0.6em;
}
.maxw-measure { max-width: 760px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 18px 34px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--btn-green); color: #fff; }
.btn--accent:hover { background: var(--btn-green-dark); }
.btn--dark { background: #1f1d1b; color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #f4f1e8; color: #1f1d1b; }
.btn--light:hover { background: #fff; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1500px; padding: 0 20px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--heading);
}
.brand-sub {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--btn-green);
  margin-top: 5px;
}
@media (max-width: 480px){
  .brand-name { font-size: 1.2rem; letter-spacing: 0.16em; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.26em; }
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 1.02rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { border-bottom-color: var(--text); }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit; font-size: 1.02rem; color: inherit; cursor: pointer; padding: 6px 0; }
.dropdown-toggle .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(-135deg) translateY(-1px); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(0);
  margin: -1px 0 0;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  min-width: 210px; padding: 8px;
  list-style: none;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 9px 14px; border: 0; border-radius: 3px;
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--heading);
}
.dropdown a:hover { background: var(--bg); color: var(--accent); }

.nav-social { display: flex; align-items: center; gap: 14px; }
.nav-social a { color: var(--heading); display: inline-flex; }
.nav-social a:hover { color: var(--accent); }
.nav-social svg { width: 22px; height: 22px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* True-center the nav links between the logo and the social icons
   (desktop only — mobile stacks the links full-width, see below) */
@media (min-width: 961px) {
  .brand { flex: 1 1 0; }
  .nav-links { flex: 0 0 auto; }
  .nav-social { flex: 1 1 0; justify-content: flex-end; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; order: 3; }
  .nav-social { order: 2; margin-left: auto; }
  .nav-links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column; align-items: flex-start; gap: 4px;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 640px; padding-bottom: 18px; }
  .nav-links > li { width: 100%; }
  .nav-links a, .dropdown-toggle { width: 100%; padding: 12px 2px; font-size: 1.1rem; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 8px 8px; padding: 0 0 0 10px; min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(90vh, 860px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #fff;
}
.hero__media { position: absolute; inset: clamp(10px, 2.2vw, 28px); border-radius: 2px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after { content: ""; position: absolute; inset: clamp(10px, 2.2vw, 28px); background: rgba(0,0,0,0.42); }
.hero__inner { position: relative; z-index: 2; padding: 40px 24px; max-width: 900px; }
.hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.25em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 400;
  margin: 0 0 1.8em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero__inner .btn-row { justify-content: center; }

.notice-card {
  display: inline-block;
  margin: 22px auto 0;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.notice-card--closed {
  background: var(--btn-green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* smaller page hero (interior pages) */
.page-hero { text-align: center; padding: clamp(56px, 9vw, 120px) 0 clamp(20px, 4vw, 48px); }
.page-hero h1 { margin-bottom: 0.25em; }
.page-hero .lead { max-width: 720px; margin-left: auto; margin-right: auto; }

/* snowy backgrounds — AI-composed watercolor scenes */
.page-hero--snow,
.page-hero--snow-cabin {
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 100%, cover;
  background-color: var(--bg);
  min-height: clamp(320px, 42vw, 440px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* two trees, open center — reservations page */
.page-hero--snow {
  background-image:
    radial-gradient(ellipse 55% 85% at center, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 48%, rgba(255,255,255,0) 78%),
    url("../images/reservations-hero-bg.jpg");
}
/* lit restaurant + tree — contact page */
.page-hero--snow-cabin {
  background-image:
    radial-gradient(ellipse 55% 85% at center, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 48%, rgba(255,255,255,0) 78%),
    url("../images/contact-hero-bg.jpg");
}

/* =========================================================
   Image placeholders (swap for real photos later)
   ========================================================= */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #e7e1d3 0 12px, #ece7da 12px 24px);
  border: 1px dashed #b9b09a;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #8a8372; text-align: center;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 24px; min-height: 180px;
  overflow: hidden;
}
.ph::before {
  content: "⌧";
  position: absolute; font-size: 2.2rem; opacity: 0.25; top: 14px; left: 16px;
}
.ph span { max-width: 90%; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--3x4  { aspect-ratio: 3 / 4; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--wide { aspect-ratio: 21 / 9; }

/* =========================================================
   Generic content blocks
   ========================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--text-first .split__text { order: 1; }
.split__media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.split__text h2 { margin-bottom: 0.4em; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: -1; }
}

.cards {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,19,18,0.06);
  display: flex; flex-direction: column;
}
.card__body { padding: 26px 24px 30px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }
.card .ph { border-radius: 0; }

.notes { list-style: none; padding: 0; margin: 0; }
.notes li { position: relative; padding: 0 0 18px 26px; color: var(--muted); }
.notes li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.notes li strong { color: var(--text); }

.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Info / contact rows */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.info-grid h3 { font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6em; }
.info-grid a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.info-grid a:hover { color: var(--accent); }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }

/* Simple contact form */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-white); color: var(--text);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form .form-row { grid-template-columns: 1fr; } }

/* OpenTable widget box */
.ot-box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.ot-box .ot-note { color: var(--muted); font-size: 0.95rem; max-width: 320px; }
.ot-box .ot-note code { background: var(--bg); padding: 2px 6px; border-radius: 3px; font-size: 0.85em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--font-serif); font-weight: 600; font-size: 1.9rem; color: var(--footer-gold); margin-bottom: 10px; }
.footer-tag { color: var(--footer-text); letter-spacing: 0.04em; }
.site-footer h4 { color: var(--footer-text); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer address { font-style: normal; line-height: 1.8; color: var(--footer-text); }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-phone { display: inline-block; margin: 14px 0 6px; text-decoration: underline; text-underline-offset: 3px; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { color: var(--footer-text); }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 24px; height: 24px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-light);
  color: var(--footer-muted); font-size: 0.9rem;
}
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* =========================================================
   Events page — deep burgundy & gold accents
   ========================================================= */
:root { --maroon: #6e2d2b; --maroon-dark: #5a2422; }

.btn--maroon { background: var(--btn-green); color: #fff; }
.btn--maroon:hover { background: var(--btn-green-dark); }
.btn--gold-outline { background: transparent; color: #8a6a3a; border-color: #b4914f; }
.btn--gold-outline:hover { background: #b4914f; color: #fff; border-color: #b4914f; }
.btn--upper { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }

/* burgundy full-width section (enquiry form) */
.section--maroon { background: var(--maroon); color: #f3e9e2; }
.section--maroon h2 { color: #fff; }
.section--maroon .eyebrow { color: #e6b968; }
.section--maroon .lead { color: #ecd9d2; }
.section--maroon a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* form on dark background */
.form--on-dark { max-width: 820px; }
.form--on-dark label { color: #fff; }
.form--on-dark input, .form--on-dark textarea, .form--on-dark select { background: #efe7df; border-color: transparent; }

/* two-up card grid (sample menu) */
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); max-width: 1120px; margin-left: auto; margin-right: auto; gap: 36px; }
.card .eyebrow { margin-bottom: 0.5em; }
.card__body .btn { margin-top: 22px; }

/* disc bullet list */
.bullets { padding-left: 1.3em; margin: 0; }
.bullets li { margin-bottom: 12px; color: var(--muted); }
.subhead { font-weight: 700; margin-bottom: 0.4em; }
.note-italic { font-style: italic; color: var(--muted); margin: 0 0 0.4em; }

/* menu PDF scans */
.menu-section { margin-bottom: 72px; scroll-margin-top: 90px; }
.menu-section > h2 { margin-bottom: 0.6em; }
.menu-scans { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.menu-scan {
  display: block; width: 100%; max-width: 860px; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(20,19,18,0.10);
}
.menu-pending {
  max-width: 860px; margin: 0 auto;
}

/* =========================================================
   Carousel (seating options)
   ========================================================= */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.carousel-head .eyebrow { margin-bottom: 0.4em; }
.carousel-head h2 { margin: 0; }
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-white);
  font-size: 1.5rem; line-height: 1; color: var(--heading); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.carousel { overflow: hidden; }
.carousel-track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.seat-card {
  flex: 0 0 320px; max-width: 85%; scroll-snap-align: start;
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,19,18,0.07);
  display: flex; flex-direction: column;
}
.seat-card__media { position: relative; aspect-ratio: 4 / 3; }
.seat-card__media .ph { height: 100%; border-radius: 0; min-height: 0; }
.seat-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.seat-tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 18px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.seat-card__body { padding: 24px 24px 28px; }
.seat-card__body .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5em; }
.seat-card__body h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; font-size: 1.7rem; margin-bottom: 0.4em; }
.seat-card__body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 560px){ .seat-card { flex-basis: 80%; } .carousel-head { flex-direction: column; align-items: flex-start; } }

/* two-photo band */
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.photo-duo__item { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; min-height: 0; }
.photo-duo__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-duo--single { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
@media (max-width: 700px){ .photo-duo { grid-template-columns: 1fr; } }

/* floated photo — text wraps around it */
.float-photo {
  float: right;
  width: 54%;
  max-width: 540px;
  margin: 6px 0 24px 32px;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 680px){
  .float-photo { float: none; width: 100%; max-width: none; margin: 0 0 24px; }
}
