/* ============================================
   MrTallTales — Design System
   Rustic / storyteller-in-the-woods aesthetic
   ============================================ */

@font-face {
  font-family: 'Royalty Free';
  src: url('../fonts/Royalty Free.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Feltful';
  src: url('../fonts/feltful_regular.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette — from client's "Rustic Earthy" board */
  --oak-bark: #371F17;
  --rustic-leather: #5E3E2E;
  --birch: #F6F0E6;
  --river-blue: #5F6D6C;
  --river-blue-tint: #A9BCBB;
  --cabin-logs: #936538;
  --sandbox: #BDAE8F;
  --evergreen: #6D6A46;
  --forest-floor: #403F34;

  /* semantic */
  --bg: var(--forest-floor);
  --bg-deep: var(--oak-bark);
  --surface: var(--birch);
  --ink: #2A211B;
  --ink-on-dark: var(--birch);
  --muted-on-dark: #C9C2B4;
  --accent: var(--cabin-logs);
  --accent-2: var(--river-blue);

  --font-display: 'Royalty Free', Georgia, 'Times New Roman', serif;
  --font-head: 'Feltful', Georgia, serif;
  --font-body: 'Fraunces', Georgia, serif;
  /* Small UI text (nav, labels, footer, chips) needs to stay legible —
     Fraunces Medium, uppercase + tracked. */
  --font-ui: 'Fraunces', Georgia, serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-on-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0 0 0.5em; letter-spacing: 0.01em; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* subtle wood-grain / vignette texture on dark sections */
.texture {
  position: relative;
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(189,174,143,0.10), transparent 55%),
    radial-gradient(ellipse at 100% 110%, rgba(0,0,0,0.35), transparent 60%);
}

/* ---------- eyebrow / label ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sandbox);
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow.on-light { color: var(--rustic-leather); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(55, 31, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(189,174,143,0.18);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--birch);
}
.brand .tagline {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sandbox);
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--river-blue); }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--birch);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.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); }

/* ---------- emblem (photo badge, seal treatment) ---------- */
.emblem {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sandbox);
  box-shadow: 0 0 0 4px rgba(42,23,16,0.55), 0 4px 12px rgba(0,0,0,0.35);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--cabin-logs);
  color: var(--birch);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(147,101,56,0.35); }
.btn-outline {
  border-color: rgba(246,240,230,0.5);
  color: var(--birch);
}
.btn-outline:hover { border-color: var(--birch); transform: translateY(-2px); }
.btn-dark {
  background: var(--oak-bark);
  color: var(--birch);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.btn-river {
  background: var(--river-blue);
  color: var(--birch);
}
.btn-river:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(95,109,108,0.4); }

/* ---------- cards ---------- */
.card-cream {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--oak-bark);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(189,174,143,0.15);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(189,174,143,0.15);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted-on-dark);
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sandbox);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-on-dark);
  font-size: 15px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--river-blue); }

/* ---------- utility ---------- */
.section { padding: 96px 0; }
.section-rule {
  width: 120px;
  height: 1px;
  background: rgba(189,174,143,0.4);
  margin: 0 auto;
}
.section-tight { padding: 64px 0; }
.center { text-align: center; }
.tag-chip {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sandbox);
  color: var(--oak-bark);
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--oak-bark);
    border-bottom: 1px solid rgba(189,174,143,0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a, .nav-links .btn {
    width: 100%;
    padding: 16px 32px;
  }
  .nav-links .btn { margin: 8px 32px 16px; width: calc(100% - 64px); justify-content: center; }
  .section { padding: 64px 0; }
  .card-cream { padding: 32px 24px; }
}

/* ============================================
   Page-load choreography (shared by all brand pages)
   ============================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: riseIn 0.9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .35s; } .d4 { animation-delay: .5s; } .d5 { animation-delay: .65s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* ============================================
   Niche landing template
   Shared skeleton for the 5 niche pages. Each page sets its identity
   with a single --accent (events-weddings additionally overrides the
   light-variant specifics inline). Class names are scoped under .niche
   so they never collide with the homepage's own .hero/etc.
   ============================================ */
.niche {
  --accent: var(--rustic-leather);
  --accent-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  --accent-link: color-mix(in srgb, var(--accent) 60%, white);
  --accent-thumb-2: var(--oak-bark);
}

/* accent button (hero CTA) */
.btn-accent { background: var(--accent); color: var(--birch); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }

/* breadcrumb */
.niche .breadcrumb { font-family: var(--font-ui); font-size: 14px; color: var(--muted-on-dark); padding: 18px 0 0; }
.niche .breadcrumb a { color: var(--accent-link); transition: color .2s; }
.niche .breadcrumb a:hover { color: var(--birch); }

/* hero */
.niche .hero {
  position: relative;
  padding: 40px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, var(--forest-floor) 0%, var(--oak-bark) 100%);
}
.niche .hero-inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.niche .hero h1 { font-family: var(--font-head); font-size: clamp(38px, 6.2vw, 64px); line-height: 1.1; color: var(--birch); margin-bottom: 18px; }
.niche .hero .tale-tag { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 42px); color: var(--sandbox); display: block; margin-bottom: 14px; }
.niche .hero p.lede { font-size: 19px; color: var(--muted-on-dark); max-width: 560px; margin: 0 auto 34px; }
.niche .hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* why it matters */
.niche .why-section { background: var(--accent); padding: 88px 0; }
.niche .why-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.niche .why-inner h2 { font-size: clamp(28px, 4vw, 38px); color: var(--birch); margin-bottom: 20px; }
.niche .why-inner p { color: rgba(246,240,230,0.9); font-size: 18px; max-width: 600px; margin: 0 auto 16px; }

.niche .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.niche .stat-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px 22px; box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.niche .stat-card .stat-icon-wrap { width: 48px; height: 48px; margin: 0 auto 16px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.niche .stat-card .stat-icon { width: 22px; height: 22px; }
.niche .stat-card h3 { font-size: 18px; color: var(--rustic-leather); margin-bottom: 8px; }
.niche .stat-card p { font-size: 14px; color: var(--ink); opacity: 0.75; margin: 0; }

/* what you get */
.niche .features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.niche .feature-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: rgba(246,240,230,0.05);
  border: 1px solid rgba(189,174,143,0.15);
  border-left: 4px solid var(--item-accent, var(--accent));
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background 0.2s ease;
}
.niche .feature-item:hover { transform: translateY(-4px); background: rgba(246,240,230,0.09); }
.niche .feature-item .icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--item-accent, var(--accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.niche .feature-item .icon svg { stroke: var(--icon-stroke, #F6F0E6); }
.niche .feature-item .tier-tag { display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sandbox); margin-bottom: 4px; }
.niche .feature-item h3 { font-size: 17px; color: var(--birch); margin-bottom: 4px; }
.niche .feature-item p { font-size: 15px; color: var(--muted-on-dark); margin: 0; }

/* packages */
.niche .pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.niche .pkg-card { background: var(--surface); color: var(--ink); border-radius: var(--radius-md); padding: 36px 28px; display: flex; flex-direction: column; position: relative; }
.niche .pkg-card.featured { outline: 3px solid var(--accent); transform: translateY(-8px); }
.niche .pkg-card .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--birch); font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.niche .pkg-card .pkg-name { font-family: var(--font-head); font-size: 22px; color: var(--rustic-leather); margin-bottom: 4px; }
.niche .pkg-card .pkg-price { font-family: var(--font-display); font-size: 40px; color: var(--accent); margin-bottom: 20px; }
.niche .pkg-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex-grow: 1; }
.niche .pkg-card li { font-size: 15px; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid rgba(94,62,46,0.1); }
.niche .pkg-card li:last-child { border-bottom: none; }
.niche .pkg-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* examples */
.niche .examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.niche .example-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(189,174,143,0.22); background: rgba(246,240,230,0.03); display: block; text-decoration: none; color: inherit; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.niche .example-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,0.28); border-color: var(--accent); }
.niche .example-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent), var(--accent-thumb-2));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  container-type: inline-size;   /* lets the preview scale to fill any card width */
}
.niche .example-thumb iframe {
  position: absolute; top: 0; left: 0;
  width: 1400px; height: 1050px;    /* render the sample at desktop layout... */
  border: 0; pointer-events: none;
  transform: scale(calc(100cqw / 1400px));  /* ...then fit it to the card at any size */
  transform-origin: top left;
  background: #fff;
}
.niche .example-thumb .frame-veil { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: rgba(20,10,5,0); transition: background 0.25s ease; }
.niche .example-card:hover .example-thumb .frame-veil { background: rgba(20,10,5,0.45); }
.niche .example-thumb .badge { position: relative; z-index: 2; opacity: 0; transition: opacity 0.25s ease; background: rgba(42,23,16,0.85); color: var(--sandbox); font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; }
.niche .example-card:hover .example-thumb .badge { opacity: 1; }
.niche .example-info { padding: 18px 20px; }
.niche .example-info h3 { font-size: 16px; color: var(--birch); margin-bottom: 4px; }
.niche .example-info p { font-size: 14px; color: var(--muted-on-dark); margin: 0; }

/* final CTA */
.niche .final-cta { background: var(--accent); border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.niche .final-cta h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 36px); color: var(--birch); margin-bottom: 12px; }
.niche .final-cta p { color: rgba(246,240,230,0.9); max-width: 480px; margin: 0 auto 28px; }

/* niche responsive scale: 3-col -> 2-col (tablet) -> 1-col (mobile),
   collapse begins at 860px so layout shifts in step with the nav */
@media (max-width: 860px) {
  .niche .stat-row,
  .niche .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .niche .pkg-grid { grid-template-columns: 1fr; }
  .niche .pkg-card.featured { transform: none; }
}
@media (max-width: 600px) {
  .niche .stat-row,
  .niche .examples-grid,
  .niche .features-grid { grid-template-columns: 1fr; }
}
