/* ============================================================
   THE FOX & THE OWL — shared stylesheet
   thefoxandtheowl.net · Bulverde, TX
   ------------------------------------------------------------
   This file is the design-system contract for every page.
   Read PARTIALS.md before building a page. Do NOT edit this
   file from a page-builder task; page-specific CSS goes in the
   page's own <style> block.
   Sections:
     1. Design tokens
     2. Reset & base
     3. Typography & layout helpers
     4. Buttons
     5. Navigation (desktop + dropdown + mobile panel)
     6. Cards
     7. Section utilities & dark-context (.on-dark)
     8. Page hero (interior pages)
     9. Two-column content
    10. Pricing (cards + table)
    11. FAQ accordion (details/summary)
    12. Photo slots (placeholder blocks for future photography)
    13. Empty state
    14. Footer
    15. Reveal animation & reduced motion
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --dawn: #f7ebdf;
  --dawn-deep: #eddcc9;
  --day: #edefe2;
  --twilight: #4c4353;
  --night: #17241d;
  --night-deep: #101a15;
  --ink: #26281f;
  --ink-soft: #5c5a4c;
  --cream: #f4eddc;
  --cream-dim: #cfc7ae;
  --gold: #b98f3e;
  --gold-bright: #d8b46a;
  --gold-deep: #8a6a2a;
  --sage: #75855f;
}

/* ---------- 2. Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--dawn);
}
img, svg, video { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
.amp { color: var(--gold); font-style: italic; }

/* ---------- 3. Typography & layout helpers ---------- */
.eyebrow {
  font-family: 'Fraunces', Georgia, serif;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 500;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-head .eyebrow { color: var(--sage); margin-bottom: .9rem; }
.section-head h2 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15;
}
.lead { font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Fraunces', serif; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; font-weight: 500;
  padding: .95rem 1.7rem; border-radius: 2px; transition: all .25s ease;
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { border: 1px solid rgba(38,40,31,.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: #1c1710; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------- 5. Navigation ---------- */
.site-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem);
}
.monogram {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem;
  letter-spacing: .12em; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a, .nav-drop-btn {
  font-family: 'Fraunces', serif; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
}
.nav-links a:hover, .nav-drop-btn:hover { color: var(--gold); }
.nav-links a.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-deep);
  padding: .55rem 1rem; border-radius: 2px; transition: all .25s ease;
}
.nav-links a.nav-cta:hover { background: var(--gold); color: #fff; }

/* Dropdown ("The Spaces") */
.has-dropdown { position: relative; }
.nav-drop-btn { background: none; border: none; cursor: pointer; padding: 0; }
.nav-drop-btn::after { content: " \25BE"; color: var(--gold); font-size: .7rem; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 180px; list-style: none; padding: .7rem 0; text-align: center;
  background: rgba(247,235,223,.98);
  border: 1px solid rgba(185,143,62,.35); border-radius: 3px;
  box-shadow: 0 16px 34px -18px rgba(38,40,31,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.nav-drop-btn[aria-expanded="true"] + .dropdown {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown a { display: block; padding: .5rem 1.4rem; }

/* Mobile toggle + panel */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .55rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background:
    radial-gradient(ellipse 120% 60% at 50% 108%, rgba(216,180,106,.3), transparent 60%),
    linear-gradient(180deg, var(--dawn) 0%, var(--dawn-deep) 100%);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-panel.open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.nav-panel-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem);
}
.nav-close {
  background: none; border: none; cursor: pointer; line-height: 1;
  font-family: 'Fraunces', serif; font-size: 2rem; color: var(--ink); padding: .1rem .5rem;
}
.nav-close:hover { color: var(--gold); }
.nav-panel-links {
  list-style: none; text-align: center; display: grid; gap: 1.35rem;
  padding: 7vh 2rem 4rem;
}
.nav-panel-links a {
  font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 400;
  color: var(--ink); text-decoration: none;
}
.nav-panel-links a:hover { color: var(--gold); }
.nav-panel-links .panel-cta a {
  display: inline-block; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold-deep);
  padding: .8rem 1.6rem; border-radius: 2px; margin-top: .4rem;
}
.nav-panel-links .panel-minor { margin-top: 1.2rem; }
.nav-panel-links .panel-minor a {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 .7rem;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- 6. Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(117,133,95,.28);
  border-radius: 3px;
  padding: 2rem 1.7rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -18px rgba(38,40,31,.35); }
.card .glyph { font-size: 1.5rem; margin-bottom: 1rem; color: var(--gold); font-family: 'Fraunces', serif; }
.card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.45rem; }
.card .tag {
  font-family: 'Fraunces', serif; font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sage); margin: .35rem 0 1rem;
}
.card p { font-size: .98rem; color: var(--ink-soft); flex: 1; }
.card a {
  margin-top: 1.4rem; font-family: 'Fraunces', serif; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .2rem;
  align-self: flex-start;
}
.card a:hover { color: var(--gold); }

/* ---------- 7. Section utilities & dark context ---------- */
.section { padding: 5.5rem 0 6rem; }
.bg-dawn { background: var(--dawn); }
.bg-dawn-deep { background: var(--dawn-deep); }
.bg-day { background: var(--day); }
.bg-twilight { background: linear-gradient(180deg, var(--twilight) 0%, #33303f 100%); }
.bg-night {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(216,180,106,.14), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
/* Add class "on-dark" to any twilight/night section so shared
   components flip to light-on-dark. */
.on-dark { color: var(--cream); }
.on-dark p { color: #d8d2de; }
.on-dark .section-head .eyebrow, .on-dark .eyebrow { color: var(--gold-bright); }
.on-dark .lead { color: var(--cream-dim); }
.on-dark .card {
  background: rgba(244,237,220,.04);
  border-color: rgba(216,180,106,.35);
}
.on-dark .card h3 { color: var(--gold-bright); }
.on-dark .card p { color: #d8d2de; }
.on-dark .card a { color: var(--cream); }
.on-dark .card a:hover { color: var(--gold-bright); }

/* ---------- 8. Page hero (interior pages) ---------- */
.page-hero {
  padding: 9.5rem 0 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 70% at 50% 112%, rgba(216,180,106,.32), transparent 60%),
    linear-gradient(180deg, var(--dawn) 0%, var(--dawn-deep) 100%);
}
.page-hero .eyebrow { color: var(--gold); margin-bottom: 1.3rem; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  font-weight: 380; line-height: 1.08; letter-spacing: -.01em;
  max-width: 20ch; margin: 0 auto;
}
.page-hero h1 em { font-style: italic; font-weight: 430; color: var(--gold-deep); }
.page-hero .sub {
  margin: 1.6rem auto 0; max-width: 48ch;
  font-size: 1.13rem; color: var(--ink-soft); font-style: italic;
}
.page-hero .cta-row { margin-top: 2.2rem; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 9. Two-column content ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }
.two-col--wide-left { grid-template-columns: 1.1fr .9fr; }
.two-col--wide-right { grid-template-columns: .9fr 1.1fr; }
.two-col h2 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin-bottom: 1.1rem;
}
.two-col p + p { margin-top: .9rem; }
@media (max-width: 860px) {
  .two-col, .two-col--wide-left, .two-col--wide-right { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 10. Pricing ---------- */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.pricing-card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(117,133,95,.28);
  border-radius: 3px; padding: 2.1rem 1.7rem 1.9rem;
  text-align: center; display: flex; flex-direction: column;
}
.pricing-card .plan {
  font-family: 'Fraunces', serif; font-size: .74rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--sage); margin-bottom: .9rem;
}
.pricing-card .price {
  font-family: 'Fraunces', serif; font-size: 2.1rem; font-weight: 400;
  line-height: 1.15; color: var(--ink);
}
.pricing-card .price small { font-size: .9rem; color: var(--ink-soft); font-family: 'Newsreader', serif; }
.pricing-card ul { list-style: none; margin: 1.1rem 0 0; flex: 1; }
.pricing-card ul li { font-size: .95rem; color: var(--ink-soft); padding: .35rem 0; }
.pricing-card ul li + li { border-top: 1px solid rgba(117,133,95,.18); }
.pricing-card .btn { margin-top: 1.4rem; align-self: center; }
.pricing-card--featured { border-color: var(--gold); box-shadow: 0 14px 34px -20px rgba(185,143,62,.5); }
.on-dark .pricing-card { background: rgba(244,237,220,.04); border-color: rgba(216,180,106,.3); }
.on-dark .pricing-card--featured { border-color: var(--gold-bright); }
.on-dark .pricing-card .plan { color: var(--gold-bright); }
.on-dark .pricing-card .price { color: var(--cream); }
.on-dark .pricing-card .price small, .on-dark .pricing-card ul li { color: var(--cream-dim); }
.on-dark .pricing-card ul li + li { border-top-color: rgba(216,180,106,.18); }
.pricing-note {
  margin-top: 1.6rem; text-align: center; font-style: italic;
  font-size: .92rem; color: var(--ink-soft);
}
.on-dark .pricing-note { color: var(--cream-dim); }

/* Pricing table — always wrap in .table-scroll for mobile */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.pricing-table th {
  font-family: 'Fraunces', serif; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500; color: var(--sage);
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid rgba(117,133,95,.4);
}
.pricing-table td {
  padding: .85rem 1rem; font-size: .98rem;
  border-bottom: 1px solid rgba(117,133,95,.18); color: var(--ink);
}
.pricing-table td.num, .pricing-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pricing-table tr:hover td { background: rgba(255,255,255,.45); }
.on-dark .pricing-table th { color: var(--gold-bright); border-bottom-color: rgba(216,180,106,.4); }
.on-dark .pricing-table td { color: var(--cream); border-bottom-color: rgba(216,180,106,.15); }
.on-dark .pricing-table tr:hover td { background: rgba(244,237,220,.05); }

/* ---------- 11. FAQ accordion (details/summary) ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(38,40,31,.16); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.12rem;
  line-height: 1.4; padding: 1.15rem 2.4rem 1.15rem 0;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 300; color: var(--gold);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item .faq-body { padding: 0 0 1.3rem; color: var(--ink-soft); font-size: .98rem; }
.faq-item .faq-body p + p { margin-top: .7rem; }
.on-dark .faq-item { border-bottom-color: rgba(216,180,106,.25); }
.on-dark .faq-item summary:hover { color: var(--gold-bright); }
.on-dark .faq-item .faq-body { color: var(--cream-dim); }

/* ---------- 12. Photo slots ---------- */
/* Placeholder blocks for future photography. No stock photos, ever.
   Use as: <figure class="photo-slot"><figcaption class="caption">…</figcaption></figure>
   Variants: default 4/3, .photo-slot--169 (16/9), .photo-slot--night (dark sections). */
.photo-slot {
  position: relative; margin: 0; aspect-ratio: 4 / 3;
  border-radius: 3px; overflow: hidden;
  border: 1px solid rgba(117,133,95,.28);
  background: linear-gradient(150deg, #f3e2cd 0%, #ddd0b8 38%, #adb295 72%, var(--sage) 105%);
}
.photo-slot--169 { aspect-ratio: 16 / 9; }
.photo-slot::before {
  content: "\2726"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-size: 1.7rem; color: rgba(255,255,255,.6);
}
.photo-slot .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.1rem .75rem;
  font-style: italic; font-size: .85rem; color: rgba(255,255,255,.92);
  background: linear-gradient(transparent, rgba(38,40,31,.5));
}
.photo-slot--night {
  border-color: rgba(216,180,106,.3);
  background: linear-gradient(150deg, #3a3546 0%, #2b3237 45%, var(--night) 100%);
}
.photo-slot--night::before { color: rgba(216,180,106,.5); }

/* ---------- 13. Empty state ---------- */
.empty-state {
  max-width: 640px; margin: 0 auto; padding: 3rem 2rem; text-align: center;
  border: 1px dashed rgba(185,143,62,.55); border-radius: 3px;
  background: rgba(255,255,255,.35);
}
.empty-state .glyph { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: .8rem; }
.empty-state p { font-style: italic; color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }
.on-dark .empty-state { background: rgba(244,237,220,.04); border-color: rgba(216,180,106,.4); }
.on-dark .empty-state p { color: var(--cream-dim); }

/* ---------- 14. Footer ---------- */
footer {
  background: var(--night-deep); color: #8e8a76;
  border-top: 1px solid rgba(216,180,106,.18);
  padding: 3rem 0 2.8rem; font-size: .88rem; text-align: center;
}
footer .foot-name {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; color: var(--cream-dim); margin-bottom: 1.3rem;
}
.footer-links {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1.5rem; margin-bottom: 1.5rem;
}
.footer-links a {
  font-family: 'Fraunces', serif; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-dim); text-decoration: none;
}
footer a { color: var(--cream-dim); text-decoration: none; }
footer a:hover, .footer-links a:hover { color: var(--gold-bright); }
footer .nap { margin-top: .3rem; }
footer .social { margin-top: .7rem; }
footer .fine { margin-top: 1.3rem; font-size: .76rem; color: #6f6c5c; }

/* ---------- 15. Reveal animation & reduced motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; transition: none; }
  .nav-panel, .nav-toggle span, .dropdown, .btn,
  .faq-item summary::after { transition: none; }
}
