/* Jackie & Jewel — warm antique / restoration aesthetic */

:root {
  --color-bg: #f7f3eb;
  --color-bg-alt: #efe8dc;
  --color-surface: #fffcf7;
  --color-text: #2c241c;
  --color-muted: #5c534a;
  --color-accent: #8b6914;
  --color-accent-hover: #6d5210;
  --color-border: #d4c4b0;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --shadow-soft: 0 4px 24px rgba(44, 36, 28, 0.08);
  --radius: 6px;
  --max-width: 72rem;
  --content-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  /* Matches footer so any sub-pixel gap at the document end is not a cream strip */
  background-color: #2c241c;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(139, 105, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(44, 36, 28, 0.04) 0%, transparent 45%);
}

#main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

#site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(44, 36, 28, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav__link:hover {
  background: rgba(139, 105, 20, 0.1);
  color: var(--color-accent-hover);
}

.nav__link.is-active {
  color: var(--color-accent);
  background: rgba(139, 105, 20, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(247, 243, 235, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  #site-header.nav-open .nav {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav__link {
    padding: 0.75rem 0.5rem;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 1.25rem 4rem;
}

.hero--home {
  min-height: clamp(22rem, 55vh, 36rem);
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #3d3429 0%, #2c241c 45%, #4a3f32 100%);
  color: #f7f3eb;
  position: relative;
  overflow: hidden;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.75rem;
}

.hero--home h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-style: italic;
  opacity: 0.95;
  margin: 0 0 1rem;
}

.hero__sub {
  max-width: 38ch;
  opacity: 0.9;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero--home a {
  color: #fff8e8;
}

.hero--home .btn {
  color: var(--color-text);
}

.hero--home .btn--ghost {
  color: #f7f3eb;
  border-color: rgba(247, 243, 235, 0.45);
}

.hero--home .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 3rem 1.25rem;
}

.section--alt {
  background: var(--color-bg-alt);
  border-block: 1px solid rgba(212, 196, 176, 0.6);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prose {
  max-width: var(--content-width);
}

.prose--split {
  max-width: var(--max-width);
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .prose--split {
    grid-template-columns: 1fr 1fr;
  }
}

.section__cta {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.callout {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.callout__stat {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.callout__text {
  margin: 0;
  font-size: 0.98rem;
}

.callout__actions {
  margin: 1.25rem 0 0;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.65rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.page-hero .section__inner {
  max-width: var(--max-width);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero__lede {
  max-width: 55ch;
  font-size: 1.125rem;
  margin: 0;
  color: var(--color-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
}

.btn--secondary:hover {
  background: rgba(139, 105, 20, 0.1);
  color: var(--color-accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost:hover {
  background: rgba(139, 105, 20, 0.08);
}

/* Testimonials */
.testimonials {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial.testimonial--solo {
    grid-column: 1 / -1;
    max-width: var(--content-width);
    justify-self: center;
    width: 100%;
  }
}

.testimonial {
  margin: 0;
  padding: 1.35rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.testimonial p {
  margin: 0 0 0.75rem;
}

.testimonial footer {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Steps — .section__inner.prose matches other sections; list + CTA share the same column */
.section--steps ol.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 1rem;
}

/* Location grid */
.location-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-grid--compact .location-card {
  padding: 1.25rem;
}

.card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.location-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.location-card__booth {
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.location-card address {
  font-style: normal;
  margin: 0 0 1rem;
}

.location-card__hours {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.location-card__directions {
  margin-bottom: 0;
}

.location-card__photo-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
}

.location-card__photo-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
}

.location-card__photo-placeholder {
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.75rem;
}

.location-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0.25rem 0 0;
}

.contact-note {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.9rem;
}

/* Footer — no margin-top (avoids a cream “bar” above the dark band); spacing is padding inside the footer */
#site-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 4.5rem 1.25rem 1.5rem;
  background: #2c241c;
  color: #e8e0d5;
}

#site-footer a {
  color: #e8d4a8;
}

#site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(232, 212, 168, 0.95);
  margin: 0 0 0.65rem;
}

.footer-tagline {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
}

.footer-locs h3,
.footer-contact h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.footer-locs p,
.footer-contact p {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.footer-social {
  margin-top: 0.5rem;
}

.footer-meta {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-copy {
  margin: 0;
  opacity: 0.65;
}

/* Legal */
.legal h2 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.back-to-top[hidden] {
  display: none;
}

/* Story page */
.story-prose {
  margin-left: auto;
  margin-right: auto;
}

.story-gallery-section h2 {
  margin-bottom: 0.35rem;
}

.story-gallery-intro {
  margin: 0 0 1.25rem;
  max-width: 65ch;
}

.story-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.story-gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .story-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .story-photo--wide {
    grid-column: 1 / -1;
  }
}

.story-photo {
  margin: 0;
}

.story-photo__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
}

.story-photo--wide .story-photo__frame {
  aspect-ratio: 21 / 9;
}

.story-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before/after flip (e.g. Second Chances gallery) */
.story-photo--flip .story-photo__flip {
  position: relative;
  perspective: 1000px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  cursor: pointer;
}

.story-photo--flip .story-photo__flip:focus {
  outline: none;
}

.story-photo--flip .story-photo__flip:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.story-photo__flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.story-photo--flip.is-flipped .story-photo__flip-inner {
  transform: rotateY(180deg);
}

.story-photo__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.story-photo__label {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.story-photo__face-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.story-photo__face--back {
  transform: rotateY(180deg);
}

.story-photo__face-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .story-photo__flip-inner {
    transition: none;
  }
}

.story-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.45;
}
