/* ============================================================
   1419 Gaston & Hearth-Crown Pie Co. — Austin, TX
   Modern American timber-and-stone rotunda market hall aesthetic
   Palette: parchment cream #FAF8F2 · hearth-charcoal #1B2522
            san-marzano crimson #C63B2B · toasted-oregano gold #DA9A28
   ============================================================ */

:root {
  --cream: #FAF8F2;
  --cream-2: #F3EFE4;
  --charcoal: #1B2522;
  --charcoal-2: #2A3833;
  --crimson: #C63B2B;
  --crimson-dark: #A02D20;
  --gold: #DA9A28;
  --gold-dark: #B67F1B;
  --ink: #1B2522;
  --muted: #5C6660;
  --line: #E4DECF;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow-lg: 0 24px 60px rgba(27, 37, 34, .16);
  --shadow-md: 0 12px 32px rgba(27, 37, 34, .12);
  --radius: 14px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .accent-serif { font-family: var(--serif); line-height: 1.2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--crimson); color: #fff; box-shadow: 0 8px 20px rgba(198, 59, 43, .3); }
.btn--primary:hover { background: var(--crimson-dark); transform: translateY(-2px); }
.btn--secondary { background: var(--charcoal); color: var(--cream); }
.btn--secondary:hover { background: var(--charcoal-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--charcoal); color: var(--cream);
  overflow: hidden; white-space: nowrap; padding: 8px 0;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 3px solid var(--gold);
}
.ticker__inner { display: inline-block; padding-left: 100%; animation: tickerScroll 38s linear infinite; }
.ticker__inner span { margin: 0 28px; }
.ticker__inner b { color: var(--gold); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__inner { animation: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 242, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(27, 37, 34, .08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { border-radius: 50%; box-shadow: 0 2px 8px rgba(27,37,34,.2); }
.brand__text { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand__text em { color: var(--crimson); font-style: normal; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a:not(.btn) { font-size: .92rem; font-weight: 600; color: var(--charcoal); position: relative; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--crimson); transition: width .2s ease;
}
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav__toggle span { width: 24px; height: 3px; background: var(--charcoal); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(218, 154, 40, .14), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 90%, rgba(198, 59, 43, .08), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 16px;
}
.hero__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.accent-serif { color: var(--crimson); font-style: italic; }
.hero__sub { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 40px; list-style: none; }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--charcoal); }
.hero__stats span { font-size: .82rem; color: var(--muted); }

.hero__visual { position: relative; min-height: 560px; }
.hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo--main { width: 82%; margin-left: auto; }
.hero__photo--main img { width: 100%; height: 620px; object-fit: cover; }
.hero__photo--small {
  position: absolute; left: 0; bottom: 24px; width: 42%;
  border: 6px solid var(--cream);
}
.hero__photo--small img { width: 100%; height: 260px; object-fit: cover; }
.hero__badge {
  position: absolute; top: -36px; left: -20px; z-index: 3;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--cream); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  animation: badgeSpin 40s linear infinite;
}
.hero__badge img { width: 106px; height: 106px; border-radius: 50%; }
@keyframes badgeSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }

/* ---------- Calculator bar ---------- */
.calcbar {
  background: var(--charcoal); color: var(--cream);
  border-top: 4px solid var(--gold);
  box-shadow: 0 -12px 40px rgba(27, 37, 34, .14);
}
.calcbar__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.calcbar__head { min-width: 180px; }
.calcbar__title { font-size: 1.3rem; color: var(--gold); }
.calcbar__hint { font-size: .85rem; color: rgba(250,248,242,.72); }
.calcbar__control { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 18px; }
.calcbar__control input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--crimson) 100%); outline: none;
}
.calcbar__control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--crimson); cursor: grab;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.calcbar__control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--cream);
  border: 4px solid var(--crimson); cursor: grab;
}
.calcbar__guests { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--gold); min-width: 130px; text-align: right; }
.calcbar__results { display: flex; gap: 22px; }
.calc-result { text-align: center; min-width: 76px; }
.calc-result__num {
  display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 800; color: var(--cream);
  transition: transform .15s ease;
}
.calc-result.is-bump .calc-result__num { transform: scale(1.18); }
.calc-result__label { font-size: .74rem; color: rgba(250,248,242,.72); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Pairing builder ---------- */
.builder { padding: 88px 0; }
.builder__panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-md);
}
.builder__group { margin-bottom: 30px; }
.builder__label { font-size: 1rem; margin-bottom: 14px; color: var(--charcoal); }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--cream); font-size: .88rem; font-weight: 600; color: var(--charcoal);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.chip.is-active { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: 0 6px 16px rgba(198,59,43,.28); }
.builder__verdict {
  display: flex; gap: 28px; align-items: center;
  background: var(--cream-2); border-radius: 16px; padding: 26px; margin-top: 8px;
}
.builder__verdict img { width: 200px; height: 200px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.builder__result { font-size: 1.05rem; line-height: 1.6; margin: 6px 0 18px; font-style: italic; color: var(--charcoal-2); }

/* ---------- Craft strip ---------- */
.craft { padding: 88px 0; background: var(--cream-2); }
.craft__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.craft__card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.craft__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.craft__card img { width: 100%; height: 190px; object-fit: cover; }
.craft__num {
  position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--charcoal); font-weight: 800; font-family: var(--serif);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.craft__card h3 { font-size: 1.08rem; padding: 18px 20px 6px; }
.craft__card p { padding: 0 20px 22px; color: var(--muted); font-size: .92rem; }

/* ---------- Packages / tabs ---------- */
.spreads { padding: 88px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tab {
  padding: 12px 20px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; font-weight: 700; font-size: .9rem; color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 10px; transition: all .18s ease;
}
.tab:hover { border-color: var(--gold); }
.tab.is-active { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.tab__badge {
  background: var(--gold); color: var(--charcoal); font-size: .74rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
}
.panels { max-width: 1040px; margin: 0 auto; }
.panel {
  display: none; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.panel.is-active { display: grid; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.panel__body { padding: 44px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.panel__body h3 { font-size: 1.6rem; margin-bottom: 10px; }
.panel__badge {
  background: rgba(198,59,43,.1); color: var(--crimson); font-weight: 800; font-size: .8rem;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.panel__body > p { color: var(--muted); margin-bottom: 18px; }
.panel__list { list-style: none; margin-bottom: 26px; }
.panel__list li { padding: 8px 0 8px 28px; position: relative; font-size: .95rem; }
.panel__list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: inset 0 0 0 4px var(--cream-2);
}

/* ---------- Occasions ---------- */
.occasions { padding: 88px 0; background: var(--charcoal); color: var(--cream); }
.occasions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.occasions__media img { border-radius: 20px; box-shadow: var(--shadow-lg); height: 480px; width: 100%; object-fit: cover; }
.occasions .eyebrow { color: var(--gold); }
.occasions .section-title { color: var(--cream); text-align: left; }
.occasions__lead { color: rgba(250,248,242,.8); margin-bottom: 24px; }
.occasions__list { list-style: none; margin-bottom: 24px; }
.occasions__list li {
  padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(250,248,242,.14); position: relative;
}
.occasions__list li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--crimson); box-shadow: inset 0 0 0 4px rgba(218,154,40,.9);
}
.occasions__note { font-size: .88rem; color: rgba(250,248,242,.65); margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact { padding: 88px 0; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 2px solid var(--line);
  font-family: inherit; font-size: .95rem; background: var(--cream);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(198,59,43,.12);
}
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success {
  background: rgba(218,154,40,.15); border: 2px solid var(--gold); color: var(--charcoal);
  padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-top: 14px; display: none;
}
.form-success.is-visible { display: block; animation: panelIn .3s ease; }

.contact__info { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-md); }
.info-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.info-list div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list div:last-child { border-bottom: none; }
.info-list dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.info-list dd { font-size: .98rem; font-weight: 600; margin-top: 2px; }
.info-list a:hover { color: var(--crimson); }
.info-card--compliance { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.info-card--compliance h3 { color: var(--gold); }
.info-card--compliance ul { list-style: none; }
.info-card--compliance li { padding: 8px 0 8px 26px; position: relative; font-size: .93rem; color: rgba(250,248,242,.85); }
.info-card--compliance li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800;
}

/* ---------- Footer ---------- */
.footer { background: #14201C; color: rgba(250,248,242,.85); padding: 48px 0 32px; border-top: 4px solid var(--gold); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__crest { border-radius: 50%; }
.footer__name { font-family: var(--serif); font-weight: 700; }
.footer__addr { font-size: .84rem; color: rgba(250,248,242,.6); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: .88rem; font-weight: 600; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { width: 100%; text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(250,248,242,.12); font-size: .82rem; color: rgba(250,248,242,.55); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 32, 28, .7); backdrop-filter: blur(4px); }
.modal__card {
  position: relative; background: var(--cream); border-radius: 20px; max-width: 640px;
  width: calc(100% - 48px); max-height: 80vh; overflow-y: auto; padding: 40px;
  box-shadow: var(--shadow-lg); animation: panelIn .3s ease;
}
.modal__card h2 { font-size: 1.6rem; margin-bottom: 16px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--cream-2); font-size: 1.3rem; color: var(--charcoal);
}
.modal__close:hover { background: var(--crimson); color: #fff; }
.modal__body p { margin-bottom: 14px; color: var(--charcoal-2); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--crimson); color: #fff; font-size: 1.3rem;
  box-shadow: 0 10px 26px rgba(198,59,43,.4);
  transition: transform .18s ease;
}
.totop:hover { transform: translateY(-4px); }
.totop[hidden] { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin-top: 12px; }
  .hero__photo--main img { height: 440px; }
  .craft__grid { grid-template-columns: repeat(2, 1fr); }
  .occasions__grid, .contact__grid { grid-template-columns: 1fr; }
  .occasions__media img { height: 340px; }
  .panel { grid-template-columns: 1fr; }
  .panel__media img { min-height: 260px; max-height: 300px; }
  .builder__verdict { flex-direction: column; text-align: center; }
  .builder__verdict img { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 20px 24px; gap: 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { justify-content: center; }
  .hero { padding: 48px 0 72px; }
  .hero__photo--small { display: none; }
  .hero__badge { width: 96px; height: 96px; top: -24px; left: -8px; }
  .hero__badge img { width: 78px; height: 78px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .calcbar__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .calcbar__guests { text-align: center; }
  .calcbar__results { justify-content: center; flex-wrap: wrap; }
  .craft__grid { grid-template-columns: 1fr; }
  .builder__panel { padding: 24px; }
  .panel__body { padding: 28px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
}
