/* ============================================================
   Design Spark Properties — Wintergreen content hub
   Shared brand stylesheet. Mobile-first, SEO-clean templates.
   ============================================================ */

:root {
  --coral: #E8664A;        /* primary accent, active states, section bars, CTA links */
  --coral-dark: #C9523A;   /* bold text emphasis */
  --coral-light: #F4A08D;  /* italic hero text, underlines, footer logo */
  --peach: #F5C9B3;        /* subtitles, background blobs */
  --peach-light: #FBE6DA;  /* highlight boxes, table row hover */
  --cream: #FFF8F2;        /* page background */
  --cream-deep: #FAF0E6;   /* alt rows, soft section backgrounds */
  --charcoal: #2A2A28;     /* dark bands, table headers, hero background */
  --text: #3D3833;         /* body text */
  --muted: #8A7F75;        /* secondary text, labels */
  --border: #E8DED3;       /* card and table borders */
  --white: #FFFFFF;

  --maxw: 1140px;
  --readw: 680px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(42, 42, 40, 0.04);
  --shadow-lift: 0 14px 34px -16px rgba(42, 42, 40, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; color: var(--charcoal); margin: 0; }
em { font-style: italic; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap--read { max-width: var(--readw); }

/* ---------- Reusable label / kicker ---------- */
.label {
  font-family: "DM Sans", sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--muted);
}
.label--coral { color: var(--coral); }

/* ---------- Section divider bar ---------- */
.bar { width: 48px; height: 3px; background: var(--coral); border: 0; border-radius: 3px; margin: 0 0 18px; }

/* ---------- Header / site shell ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--charcoal); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; color: var(--coral); }
.hero__logo { color: var(--coral); }
.footer-brand__mark { color: var(--coral-light); }
.brand__name { font-family: "DM Serif Display", Georgia, serif; font-size: 20px; line-height: 1; color: var(--charcoal); }
.brand__sub { display: block; font-family: "DM Sans", sans-serif; text-transform: uppercase; font-size: 9.5px; letter-spacing: 1.4px; color: var(--muted); margin-top: 3px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 8px 13px; border-radius: 999px; letter-spacing: 0.1px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--peach-light); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--coral-dark); background: var(--peach-light); }

.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--border);
  background: var(--white); border-radius: 10px; width: 42px; height: 42px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--charcoal);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--cream);
  border-top: 4px solid var(--coral);
  background-image: linear-gradient(90deg, var(--coral), var(--coral-light));
  background-size: 100% 4px; background-repeat: no-repeat; background-position: top;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 104px); }
.hero__logo { width: 46px; height: 46px; margin-bottom: 26px; }
.hero h1 { color: var(--cream); font-size: clamp(40px, 8.5vw, 86px); letter-spacing: -0.5px; }
.hero h1 em { color: var(--coral-light); }
.hero__sub { color: var(--peach); font-size: clamp(17px, 2.4vw, 21px); max-width: 44ch; margin-top: 22px; line-height: 1.5; }
.hero__meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hero__meta .label { color: var(--peach); }

/* organic blurred blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.25; pointer-events: none; z-index: 1; }
.blob--peach { background: var(--peach); }
.blob--coral { background: var(--coral-light); }

/* ---------- Buttons / CTA links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,0.32); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.arrow-link { font-weight: 600; color: var(--coral-dark); display: inline-flex; align-items: center; gap: 6px; }
.arrow-link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Section heading block ---------- */
.section { padding-block: clamp(46px, 7vw, 78px); }
.section--alt { background: var(--cream-deep); }
.section__head { margin-bottom: 30px; }
.section__head h2 { font-size: clamp(28px, 4.4vw, 40px); }
.section__head .desc { color: var(--muted); margin-top: 8px; max-width: 56ch; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background-color: var(--cream-deep);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(232,102,74,0.08) 11px 12px);
  border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 12px;
  color: var(--muted); aspect-ratio: 16 / 10;
}
.ph code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.2px; background: rgba(255,255,255,0.7); padding: 4px 8px; border-radius: 6px; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 21 / 9; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
a.card:hover, .card--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__meta { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.card__title { font-size: 23px; line-height: 1.12; color: var(--charcoal); }
.card__excerpt { color: var(--text); font-size: 15.5px; margin: 0; }
.card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Featured (latest This Week) ---------- */
.featured { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.featured__media { min-height: 320px; }
.featured__media .ph { height: 100%; border: 0; border-radius: 0; aspect-ratio: auto; }
.featured__body { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; gap: 14px; }
.featured__body h3 { font-size: clamp(30px, 4vw, 44px); }
.featured__body h3 em { color: var(--coral); }
.featured__excerpt { color: var(--text); font-size: 17px; }

/* ---------- Article (This Week template) ---------- */
.article-hero { background: var(--charcoal); color: var(--cream); border-top: 4px solid var(--coral); background-image: linear-gradient(90deg, var(--coral), var(--coral-light)); background-size: 100% 4px; background-repeat: no-repeat; background-position: top; position: relative; overflow: hidden; }
.article-hero__inner { position: relative; z-index: 2; padding-block: clamp(40px, 7vw, 76px); max-width: var(--readw); }
.article-hero h1 { color: var(--cream); font-size: clamp(36px, 6.6vw, 64px); letter-spacing: -0.4px; margin-top: 14px; }
.article-hero h1 em { color: var(--coral-light); }
.article-hero .dates { color: var(--peach); margin-top: 18px; font-size: 16px; font-weight: 500; }

.prose { max-width: var(--readw); margin-inline: auto; padding-block: clamp(36px, 6vw, 60px); }
.prose > p { font-size: 18px; }
.prose .lede { font-size: 21px; line-height: 1.5; color: var(--charcoal); }
.prose h2 { font-size: clamp(25px, 3.6vw, 32px); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 0.4em; color: var(--coral-dark); font-family: "DM Sans", sans-serif; font-weight: 600; }
.prose a { color: var(--coral-dark); text-decoration: underline; text-decoration-color: var(--coral-light); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--coral); }
.prose strong { color: var(--coral-dark); font-weight: 600; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.2em 0; }

/* highlight / callout box */
.callout { background: var(--peach-light); border-radius: var(--radius-sm); padding: 20px 24px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { color: var(--coral-dark); margin-bottom: 6px; display: block; }

/* ---------- Hours component ---------- */
.hours { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours__top { padding: 22px 22px 0; }
.hours__title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hours__title h3 { font-size: 24px; }
.hours__today { color: var(--muted); font-size: 14px; }
.hours__today b { color: var(--coral-dark); }

.daybar { display: flex; gap: 7px; padding: 18px 22px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.daybar::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto; appearance: none; cursor: pointer;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  padding: 9px 15px; border-radius: 999px; min-width: 52px; text-align: center;
  transition: all .16s var(--ease);
}
.day-chip:hover { border-color: var(--coral-light); }
.day-chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--white); }
.day-chip__dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); margin-left: 5px; vertical-align: middle; }
.day-chip[aria-pressed="true"] .day-chip__dot { background: var(--white); }

.hours__cat { padding: 4px 22px 0; }
.hours__cat:last-of-type { padding-bottom: 8px; }
.hours__cat-label { display: flex; align-items: center; gap: 10px; padding: 16px 0 8px; }
.hours__cat-label .label { color: var(--charcoal); }
.hours__cat-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.hours-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 8px; transition: background .15s var(--ease); }
.hours-row:hover { background: var(--peach-light); }
.hours-row + .hours-row { border-top: 1px solid var(--cream-deep); }
.hours-row__name { font-weight: 500; color: var(--charcoal); }
.hours-row__note { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.hours-row__time { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); text-align: right; white-space: nowrap; }
.hours-row__time.is-closed { color: var(--muted); font-weight: 400; }
.hours-row__time .open-pill { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; color: var(--white); background: var(--coral); padding: 2px 7px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

.hours__foot { padding: 16px 22px 22px; border-top: 1px solid var(--border); background: var(--cream); display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.hours__foot svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--coral); }
.hours__foot a { color: var(--coral-dark); }

/* ---------- Events list ---------- */
.bucket { display: flex; align-items: center; gap: 14px; margin: 44px 0 6px; }
.bucket:first-of-type { margin-top: 10px; }
.bucket .bar { margin: 0; flex: 0 0 auto; }
.bucket .label { color: var(--charcoal); font-size: 12px; }
.bucket::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.events { display: flex; flex-direction: column; }
.event {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--border);
  transition: background .15s var(--ease);
}
.event:hover { background: var(--peach-light); }
.event:last-child { border-bottom: 0; }
.event__date { text-align: center; background: var(--cream-deep); border-radius: 10px; padding: 10px 6px; line-height: 1; }
.event__date .m { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--coral-dark); font-weight: 600; }
.event__date .d { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 28px; color: var(--charcoal); margin-top: 4px; }
.event__name { font-size: 19px; color: var(--charcoal); margin: 0 0 3px; font-weight: 500; }
.event__meta { color: var(--muted); font-size: 14.5px; margin: 0; }
.event__cta { white-space: nowrap; }

/* ---------- Property cross-link card ---------- */
.crosslink {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.crosslink__txt .label { color: var(--coral-light); }
.crosslink__txt h3 { color: var(--cream); font-size: clamp(24px, 3.4vw, 32px); margin: 8px 0 10px; }
.crosslink__txt h3 em { color: var(--coral-light); }
.crosslink__txt p { color: var(--peach); margin: 0; max-width: 46ch; }
.crosslink__action { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream); padding-block: 54px 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand__mark { width: 34px; height: 34px; }
.footer-brand__name { font-family: "DM Serif Display", Georgia, serif; font-size: 22px; color: var(--cream); }
.site-footer p { color: var(--peach); font-size: 15px; }
.footer-col h4 { font-family: "DM Sans", sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--coral-light); font-weight: 600; margin-bottom: 14px; }
.footer-col a, .footer-col address { display: block; color: var(--cream); font-style: normal; font-size: 15px; margin-bottom: 9px; opacity: 0.86; }
.footer-col a:hover { opacity: 1; color: var(--coral-light); text-decoration: none; }
.site-footer__base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.site-footer__base .label { color: var(--muted); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.stack-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 220px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 10px 14px 16px; box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .crosslink { grid-template-columns: 1fr; gap: 18px; }
  .event { grid-template-columns: 60px 1fr; gap: 14px; }
  .event__cta { grid-column: 2; justify-self: start; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hours-row { padding: 11px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
