/* Da'Filling · Heritage Luxury, Texas-Rooted
 * Shared stylesheet for dafilling.com
 */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Palette & tokens */
:root {
  --cream: #F7F0E1;
  --cream-warm: #F2E8D4;
  --ivory: #FAF5E9;
  --espresso: #2B1D14;
  --espresso-soft: #3E2C1C;
  --gold: #B08D3C;
  --gold-bright: #C9A96E;
  --honey: #C67F3A;
  --bordeaux: #5B1A20;
  --ink: #1F1A14;
  --ink-soft: #4A3F32;
  --muted: #7A6B56;
  --hairline: rgba(31, 26, 20, 0.12);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Italiana', var(--serif);

  --radius: 4px;
  --radius-lg: 10px;

  --container: 1200px;
  --container-narrow: 780px;
}

/* Typography */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; }
p { font-size: 1.02rem; color: var(--ink-soft); }
a { color: var(--espresso); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-block;
}

/* Layout helpers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }

.split-rule {
  border: 0;
  height: 1px;
  background: var(--hairline);
  max-width: 80px;
  margin: 0 auto;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 225, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo em { font-style: italic; color: var(--gold); }
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .nav-logo img { height: 44px; }
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--espresso);
  border-bottom-color: var(--gold);
}
.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream) !important;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold); color: var(--ivory) !important; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--espresso); margin: 5px 0;
  transition: transform 0.25s;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 24px 28px;
    border-bottom: 1px solid var(--hairline);
    gap: 18px;
  }
  .nav.open .nav-cta {
    display: inline-block;
    position: absolute; top: calc(100% + 240px); left: 28px; right: 28px;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--espresso);
  color: var(--ivory) !important;
  box-shadow: 0 4px 14px rgba(43, 29, 20, 0.18);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(176, 141, 60, 0.3); }
.btn-outline {
  background: transparent;
  color: var(--espresso) !important;
  border: 1.5px solid var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--ivory) !important; }
.btn-gold {
  background: var(--gold);
  color: var(--ivory) !important;
  box-shadow: 0 4px 14px rgba(176, 141, 60, 0.25);
}
.btn-gold:hover { background: var(--espresso); transform: translateY(-2px); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--espresso);
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,29,20,0.65) 0%, rgba(91,26,32,0.35) 100%);
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 28px;
  text-align: center;
  color: var(--ivory);
  z-index: 1;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 {
  color: var(--ivory);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero h1 em { color: var(--gold-bright); font-style: italic; }
.hero p.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: rgba(250, 245, 233, 0.85);
  max-width: 620px;
  margin: 0 auto 40px;
  font-style: italic;
  line-height: 1.5;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Section headers */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* Story preview */
.story-preview {
  background: var(--ivory);
  text-align: center;
}
.story-preview blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 40px;
}
.story-preview blockquote::before { content: '“'; font-size: 3rem; color: var(--gold); display: block; line-height: 0.5; margin-bottom: 18px; font-family: var(--serif); }

/* Pies grid */
.pies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.pie-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--hairline);
}
.pie-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 29, 20, 0.12); }
.pie-card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-warm);
}
.pie-card-body { padding: 26px 24px 28px; }
.pie-card-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 6px;
}
.pie-card-price {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.pie-card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 56px 40px;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step p { font-size: 0.95rem; }

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.location {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.location h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 4px;
}
.location p { font-size: 0.9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--espresso);
  color: var(--ivory);
  text-align: center;
  padding: 100px 28px;
}
.cta-band h2 { color: var(--ivory); margin-bottom: 18px; font-weight: 300; }
.cta-band h2 em { color: var(--gold-bright); font-style: italic; }
.cta-band p { color: rgba(250, 245, 233, 0.78); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* Footer */
.footer {
  background: var(--ivory);
  padding: 72px 0 32px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--espresso);
  display: block;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 280px;
  font-size: 0.98rem;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a {
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.footer a:hover { color: var(--espresso); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .section { padding: 72px 0; }
  .hero-inner { padding: 96px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Fade-in on scroll (intersection observer target) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 56px; }
.gold { color: var(--gold); }
