/* ============================================================
   RiteB4UrEyes LLC - Styles
   Earthy, soulful look: deep forest green, warm cream, gold
   script, brand red - rooted in the red/black/green of the
   riteb4ureyes logo. Organic wave dividers between sections.
   ============================================================ */

/* Self-hosted fonts (variable weight) - no third-party requests */
@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dancing-script-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
}

:root {
  --green-deep: #17331f;
  --green: #1f4a2c;
  --green-soft: #2c5e3a;
  --cream: #f7f0e1;
  --cream-soft: #efe6d2;
  --gold: #d9a441;
  --gold-soft: #e6bd6b;
  --red: #c1272d;
  --ink: #171310;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(12, 24, 15, 0.18);
  --font-script: "Dancing Script", cursive;
  --font-body: "Quicksand", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

/* ---------- Typography ---------- */
.script-xl, .script-lg, .script-md {
  font-family: var(--font-script);
  font-weight: 700;
  line-height: 1.1;
}
.script-xl { font-size: clamp(3rem, 7vw, 4.8rem); }
.script-lg { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.script-md { font-size: 1.8rem; }
.gold { color: var(--gold); }
.green { color: var(--green); }

.eyebrow {
  letter-spacing: 0.45em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 240, 225, 0.7); }
.btn-ghost:hover { background: var(--cream); color: var(--green-deep); }
.btn-green { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-green:hover { background: var(--green-soft); border-color: var(--green-soft); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--cream); }
.btn-wide { min-width: 230px; text-align: center; }

/* ---------- Waves ---------- */
.wave { line-height: 0; margin-top: auto; }
.wave svg { width: 100%; height: clamp(36px, 7vw, 90px); display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1rem, 5vw, 4rem);
  background: #ffffff;
  border-bottom: 3px solid var(--gold);
}

.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-glasses { font-size: 1.6rem; }
.brand-logo { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-cta {
  padding: 0.5rem 1.4rem;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
}
.nav-cta:hover, .nav-cta.active { background: var(--red); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(90rem 40rem at 110% -10%, rgba(217, 164, 65, 0.14), transparent 60%),
    radial-gradient(70rem 35rem at -10% 110%, rgba(193, 39, 45, 0.16), transparent 55%),
    var(--green-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}
.welcome-to {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--cream);
  opacity: 0.9;
}
.hero-statement {
  margin-top: 1.2rem;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.hero-statement .line-red { color: #e4574d; }
.hero-statement .line-cream { color: var(--cream); }
.hero-statement .line-gold { color: var(--gold); }
.hero-statement span { display: inline-block; margin-right: 0.6rem; }
.hero-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: rgba(247, 240, 225, 0.85);
}
.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  background: rgba(247, 240, 225, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.8rem;
  box-shadow: var(--shadow);
}
.hero-collage img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-collage img:nth-child(1) { border-top-left-radius: var(--radius-lg); }
.hero-collage img:nth-child(4) { border-bottom-right-radius: var(--radius-lg); }

/* ---------- Our Why ---------- */
.why { background: var(--cream); display: flex; flex-direction: column; }
.why-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}
.why .eyebrow { color: var(--red); }
.why h2 .is-heavy {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.why-text > p { margin: 1rem 0 1.5rem; max-width: 36rem; color: #3d382f; }

/* Rotating photo (crossfade layers stacked by JS) */
.why-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 40% 40% var(--radius-lg) var(--radius-lg) / 28% 28% var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--green);
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.pillars { list-style: none; display: grid; gap: 1.1rem; }
.pillars li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fffdf8;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 18px rgba(23, 51, 31, 0.08);
}
.pillars li:nth-child(2) { border-left-color: var(--green); }
.pillars li:nth-child(3) { border-left-color: var(--gold); }
.pillar-mark { font-size: 1.5rem; line-height: 1.4; }
.pillars h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pillars p { font-size: 0.92rem; color: #4a443a; }

/* ---------- Services menu ---------- */
.services {
  background:
    radial-gradient(80rem 40rem at -10% 0%, rgba(217, 164, 65, 0.12), transparent 55%),
    var(--green-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.services-head {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 0;
  max-width: 620px;
  margin: 0 auto;
}
.gold-eyebrow, .services .eyebrow { color: var(--gold); }
.services-sub { margin-top: 0.8rem; color: rgba(247, 240, 225, 0.8); }

.menu {
  max-width: 760px;
  margin: 2.5rem auto 0;
  width: 100%;
  padding: 0 1.25rem clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1.4rem;
}
.menu-item {
  background: rgba(247, 240, 225, 0.05);
  border: 1px solid rgba(247, 240, 225, 0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-item:hover { background: rgba(247, 240, 225, 0.1); border-color: rgba(217, 164, 65, 0.5); }
.menu-line { display: flex; align-items: baseline; gap: 0.8rem; }
.menu-line h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.leader { flex: 1; border-bottom: 2px dotted rgba(217, 164, 65, 0.5); transform: translateY(-4px); }
.price {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-size: 1.05rem;
}
.menu-note { font-size: 0.85rem; color: rgba(247, 240, 225, 0.7); margin-top: 0.25rem; }
.btn-book {
  margin-top: 0.7rem;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-book:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); display: flex; flex-direction: column; }
.gallery-head { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 0; }
.gallery-head .eyebrow { color: var(--red); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem);
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 51, 31, 0.14);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Booking + contact ---------- */
.booking {
  background:
    radial-gradient(70rem 35rem at 110% 100%, rgba(193, 39, 45, 0.14), transparent 55%),
    var(--green-deep);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  display: grid;
  gap: 3rem;
  justify-items: center;
}
.booking-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3.2rem);
  border-top: 6px solid var(--gold);
}
.booking-card .eyebrow { color: var(--red); font-size: 0.62rem; }
.booking-copy { margin: 1rem 0 1.6rem; color: #3d382f; }
.booking-actions { display: flex; flex-direction: column; gap: 0.85rem; align-items: center; }
.secure-note { margin-top: 1.4rem; font-size: 0.8rem; color: #6d675c; letter-spacing: 0.05em; }
.config-warning { margin-top: 1rem; font-size: 0.85rem; color: var(--red); }

.contact-block { text-align: center; }
.contact-copy { margin: 0.6rem 0 1.2rem; color: rgba(247, 240, 225, 0.8); }
.contact-list { list-style: none; display: grid; gap: 0.5rem; }
.contact-list a { color: var(--gold); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-hours { margin-top: 1.4rem; }
.hours-title {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.hours-list { list-style: none; display: grid; gap: 0.25rem; color: rgba(247, 240, 225, 0.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 240, 225, 0.75);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
.footer-crown {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.flag { display: inline-flex; border-radius: 3px; overflow: hidden; }
.flag i { width: 14px; height: 9px; display: block; }
.f-red { background: var(--red); }
.f-black { background: #000; border-top: 0; }
.f-green { background: #2e7d43; }
.footer-note { margin-top: 0.3rem; font-size: 0.75rem; }

/* ---------- Photo placeholder fallback ---------- */
.photo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #e2d9c4, #e2d9c4 12px, #ece4d1 12px, #ece4d1 24px);
  color: #6d675c;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.img-missing img { display: none; }
.img-missing .photo-placeholder { display: flex; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero-inner, .why-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 460px; }
  .why-photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .script-xl { font-size: clamp(2.4rem, 11vw, 3.2rem); }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 3px solid var(--gold);
    padding: 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }

  .menu-line { flex-wrap: wrap; }
  .leader { min-width: 40px; }
}
