/* High Ridge Bakery — sample site
   Warm bakery palette with a quiet nod to the Blue Ridge. */

:root {
  --cream: #f6efe4;
  --paper: #fbf7f1;
  --foam: #fffdf9;
  --wheat: #c9a36c;
  --wheat-deep: #a07d45;
  --terracotta: #b15c38;
  --terracotta-dark: #8f4428;
  --espresso: #2a1a12;
  --ink: #1c140f;
  --mocha: #5c4030;
  --moss: #3f4c3a;
  --sage: #6d7a62;
  --muted: #6a5748;
  --line: rgba(42, 26, 18, 0.12);
  --shadow: 0 18px 50px rgba(42, 26, 18, 0.12);
  --radius: 18px;
  --header-h: 4.5rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --content: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--espresso);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--espresso);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1rem; }

.visually-hidden,
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
}

.skip-link:focus {
  top: 0.75rem;
  z-index: 100;
  background: var(--foam);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  margin: 0 0 0.7rem;
}

.ridge {
  width: 9rem;
  height: 1.25rem;
  color: var(--terracotta);
  margin: 0.25rem 0 1.4rem;
  display: block;
  opacity: 0.85;
}

/* Header
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.wordmark:hover { color: var(--terracotta-dark); }

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--mocha);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--espresso);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.site-nav a:hover { color: var(--terracotta-dark); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--terracotta);
  color: var(--foam) !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 500 !important;
}

.nav-cta:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--espresso);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--foam);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 15, 0.15) 0%, rgba(28, 20, 15, 0.2) 35%, rgba(28, 20, 15, 0.78) 100%),
    linear-gradient(90deg, rgba(28, 20, 15, 0.45) 0%, rgba(28, 20, 15, 0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--content));
  margin: 0 auto;
  padding: 5.5rem 0 4.25rem;
  max-width: 42rem;
  margin-left: max(1.25rem, calc((100% - var(--content)) / 2));
}

.hero .eyebrow {
  color: var(--wheat);
}

.hero h1 {
  color: var(--foam);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-lede {
  font-size: 1.15rem;
  color: rgba(251, 247, 241, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--foam);
}

.btn-primary:hover {
  background: #c46942;
  color: var(--foam);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(251, 247, 241, 0.45);
}

.btn-ghost:hover {
  background: rgba(251, 247, 241, 0.1);
  color: var(--foam);
}

/* Sections
   ---------------------------------------- */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.section-intro {
  color: var(--mocha);
  font-size: 1.08rem;
}

/* About
   ---------------------------------------- */
.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
}

.about-photo {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy p {
  color: var(--mocha);
}

.about-copy p:last-child { margin-bottom: 0; }

/* Menu
   ---------------------------------------- */
.menu {
  background:
    radial-gradient(circle at top left, rgba(201, 163, 108, 0.16), transparent 36%),
    var(--cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.menu-card {
  background: var(--foam);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(42, 26, 18, 0.06);
  display: flex;
  flex-direction: column;
}

.menu-card img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
}

.menu-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1;
}

.menu-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.menu-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--espresso);
  font-size: 0.97rem;
}

.menu-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.4rem;
  height: 1px;
  background: var(--wheat-deep);
}

.menu-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 1.25rem;
}

.menu-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--foam);
  border: 1px solid var(--line);
}

.menu-gallery img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.menu-gallery figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Visit / hours
   ---------------------------------------- */
.visit {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.hours th {
  font-weight: 500;
  width: 42%;
}

.hours-note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.visit-address {
  font-style: normal;
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
}

.map-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 26rem;
  height: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  border: 0;
}

/* Reviews
   ---------------------------------------- */
.reviews {
  background: var(--espresso);
  color: var(--cream);
}

.reviews .eyebrow { color: var(--wheat); }

.reviews h2,
.reviews .section-intro { color: var(--foam); }

.reviews .section-intro { color: rgba(246, 239, 228, 0.82); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  background: rgba(251, 247, 241, 0.06);
  border: 1px solid rgba(201, 163, 108, 0.28);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.4rem;
}

.review-card p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--foam);
  margin-bottom: 1.1rem;
}

.review-card footer {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wheat);
}

/* Contact
   ---------------------------------------- */
.contact {
  background:
    linear-gradient(180deg, rgba(177, 92, 56, 0.08), transparent 30%),
    var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-cards li {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.contact-cards a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-cards a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Footer
   ---------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 239, 228, 0.72);
  padding: 2rem 0 2.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--foam);
  margin-bottom: 0.6rem;
}

.photo-credits {
  max-width: 48rem;
  margin-bottom: 0.85rem;
}

.photo-credits a { color: var(--wheat); }

.designer-credit {
  margin: 0;
  color: rgba(246, 239, 228, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* Responsive
   ---------------------------------------- */
@media (max-width: 980px) {
  .menu-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .about-photo {
    max-width: 28rem;
    aspect-ratio: 4 / 5;
  }

  .menu-gallery {
    grid-template-columns: 1fr;
  }

  .menu-gallery img { height: 14rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 4.1rem; }

  .nav-toggle { display: block; z-index: 51; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    width: min(20rem, 86vw);
    height: 100svh;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.6rem 2rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
    box-shadow: var(--shadow);
    border-left: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 15, 0.35);
    z-index: 39;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .site-nav .nav-cta {
    width: auto;
    margin-top: 1.1rem;
    border: 0;
    padding: 0.7rem 1.1rem;
  }

  .hero { min-height: min(88svh, 40rem); }
  .hero-content { padding: 4.5rem 0 3rem; }
  .section { padding: 4rem 0; }
  .menu-grid,
  .review-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .wrap { width: min(calc(100% - 1.75rem), var(--content)); }
  .header-inner { width: min(calc(100% - 1.75rem), var(--content)); }
  .hero-content {
    width: min(calc(100% - 1.75rem), var(--content));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span,
  .site-nav { transition: none; }
}


/* contain off-canvas nav so it doesn't widen the page on small screens */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .site-nav {
    max-width: min(20rem, 86vw);
  }
}


.contact-cards li { min-width: 0; }
.contact-cards a, .contact-cards li { overflow-wrap: anywhere; word-break: break-word; }
.contact-cards a { font-size: 0.95rem; }
