:root {
  --cream: #F7F2E9;
  --cream-2: #FFF9EF;
  --white: #FFFFFF;
  --ink: #2B2B2B;
  --muted: #6E6258;
  --wood: #A36A3D;
  --accent: #D58B45;
  --brand-dark: #3F302C;
  --brand-cream: #F2DFB8;
  --logo-copper: #B9784C;
  --mgh-yellow: #F5C42C;
  --mgh-red: #DF1F36;
  --mgh-blue: #0B9EC1;
  --line: rgba(63, 48, 44, 0.14);
  --shadow: 0 24px 70px rgba(63, 48, 44, 0.13);
  --paper-shadow: 0 18px 46px rgba(63, 48, 44, 0.1);
  --radius: 8px;
  --max-width: 1180px;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 139, 69, 0.08), transparent 30vw),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--brand-dark);
  background: rgba(247, 242, 233, 0.96);
  box-shadow: 0 12px 34px rgba(63, 48, 44, 0.08);
  backdrop-filter: blur(14px);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 10px;
  box-shadow: 0 12px 34px rgba(63, 48, 44, 0.12);
}

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.logo-image {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(63, 48, 44, 0.12);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(63, 48, 44, 0.16);
}

.logo-text,
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 0.94rem;
  font-weight: 750;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(118px, 13vw, 170px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
  color: var(--brand-dark);
  background:
    radial-gradient(circle at top right, rgba(213, 139, 69, 0.16), transparent 34vw),
    linear-gradient(135deg, var(--cream-2), var(--cream));
}

.hero-content {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.hero-logo {
  width: min(180px, 42vw);
  border: 2px solid rgba(63, 48, 44, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-hours {
  display: grid;
  gap: 2px;
  width: min(290px, 100%);
  padding: 22px;
  border: 1px solid rgba(63, 48, 44, 0.12);
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.hero-hours span,
.hero-hours em {
  color: rgba(247, 242, 233, 0.84);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-hours strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--wood);
  box-shadow: 0 14px 34px rgba(163, 106, 61, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-secondary {
  color: var(--brand-dark);
  border-color: rgba(63, 48, 44, 0.22);
  background: rgba(255, 255, 255, 0.42);
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

.split-layout,
.soup-card,
.feature-grid,
.gallery-grid,
.contact-layout,
.promise-layout {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.split-layout,
.soup-card,
.promise-layout,
.contact-layout {
  display: grid;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.split-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.soup-card {
  grid-template-columns: 1fr 0.92fr;
}

.soup-image,
.soup-content {
  min-width: 0;
}

.soup-content h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.soup-content .main-title {
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

.soup-content .sub-title {
  display: inline-block;
  margin-top: 0.3em;
  color: inherit;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
}

.promise-layout {
  grid-template-columns: 0.95fr 0.7fr;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.section-copy p,
.section-heading p,
.soup-content p,
.contact-copy p,
.promise-copy p {
  color: var(--muted);
  font-size: 1.07rem;
}

.brand-line,
.soup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brand-line span,
.soup-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(213, 139, 69, 0.3);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(213, 139, 69, 0.08);
  font-size: 0.86rem;
  font-weight: 850;
}

.about,
.story,
.gallery {
  background: var(--cream-2);
}

.about-panel,
.feature-card,
.contact-card,
.map-card,
.map-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--paper-shadow);
}

.about-panel {
  padding: clamp(26px, 4vw, 40px);
  border-top: 5px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(213, 139, 69, 0.06), transparent 50%),
    var(--white);
}

.about-logo {
  width: min(180px, 48vw);
  margin: 0 0 24px;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(63, 48, 44, 0.16);
}

.panel-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--wood);
  font-weight: 850;
}

.about-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-panel li {
  position: relative;
  padding-left: 28px;
  color: var(--brand-dark);
  font-weight: 750;
}

.about-panel li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  transform: translateY(-50%);
}

.story-layout {
  width: min(900px, 100%);
  margin: 0 auto;
}

.story-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background:
    linear-gradient(180deg, rgba(213, 139, 69, 0.05), transparent 42%),
    var(--white);
  box-shadow: var(--paper-shadow);
}

.story-card p {
  max-width: 74ch;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.story-card p:first-child,
.story-card p:last-child {
  color: var(--brand-dark);
  font-weight: 800;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.soup {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.76), rgba(247, 242, 233, 0)),
    var(--cream);
}

.soup-image,
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
}

.soup-image img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
}

.soup-note {
  margin: 24px 0 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--brand-dark);
  background: #F0DDC4;
}

.brand-promise {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0), rgba(213, 139, 69, 0.08)),
    var(--cream);
}

.promise-image {
  width: min(360px, 100%);
  justify-self: center;
  border: 1px solid rgba(63, 48, 44, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
}

.why {
  color: var(--cream);
  background:
    radial-gradient(circle at top left, rgba(213, 139, 69, 0.2), transparent 28vw),
    linear-gradient(135deg, rgba(213, 139, 69, 0.12), rgba(63, 48, 44, 0)),
    var(--brand-dark);
}

.why h2,
.why h3 {
  color: var(--cream);
}

.why .eyebrow {
  color: var(--brand-cream);
}

.why .section-heading p,
.feature-card p {
  color: rgba(251, 247, 238, 0.78);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.feature-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(242, 223, 184, 0.3);
  border-radius: 50%;
  color: var(--brand-cream);
  font-size: 1.25rem;
  font-weight: 850;
}

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

.gallery-item {
  position: relative;
  min-height: 240px;
  max-height: 360px;
  margin: 0;
  color: var(--cream);
  background: var(--brand-dark);
}

.gallery-item img {
  height: 100%;
  min-height: inherit;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}

.gallery-item figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 223, 184, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(63, 48, 44, 0.72);
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.contact-copy {
  padding-right: clamp(0px, 4vw, 36px);
}

.contact-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-details p,
address {
  color: var(--brand-dark);
  font-weight: 750;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

address {
  margin-top: 0;
  font-style: normal;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-card .button {
  width: fit-content;
  margin-top: 10px;
}

.phone-link {
  color: var(--wood);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.mgh-location,
.mgh-partner {
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
  margin-top: 22px;
}

.mgh-location span,
.mgh-partner span,
.footer-partner span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mgh-partner img {
  width: min(280px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(63, 48, 44, 0.1);
  border-radius: var(--radius);
  background: var(--white);
}

.map-card {
  grid-column: 1 / -1;
  min-height: 240px;
  overflow: hidden;
}

.map-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(45deg, rgba(163, 106, 61, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(163, 106, 61, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(163, 106, 61, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(163, 106, 61, 0.08) 75%),
    #eadcc8;
  background-position: 0 0, 0 18px, 18px -18px, -18px 0;
  background-size: 36px 36px;
}

.map-placeholder span {
  display: grid;
  min-width: 128px;
  min-height: 54px;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--wood);
  font-weight: 850;
}

.map-placeholder p {
  max-width: 360px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 750;
}

.map-link {
  color: var(--wood);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.legal-layout {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-layout h2 {
  overflow-wrap: anywhere;
}

.legal-card {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: var(--paper-shadow);
}

.legal-card h3 {
  margin-bottom: 12px;
}

.legal-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong,
.legal-card a {
  color: var(--brand-dark);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(43, 34, 30, 0.72);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(242, 223, 184, 0.28);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background:
    linear-gradient(180deg, rgba(213, 139, 69, 0.08), transparent 34%),
    var(--cream-2);
  box-shadow: 0 32px 90px rgba(18, 13, 10, 0.34);
  overscroll-behavior: contain;
}

.legal-dialog .legal-layout {
  margin: 0;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 0 0 auto;
  border: 1px solid rgba(63, 48, 44, 0.18);
  border-radius: var(--radius);
  color: var(--cream);
  background: var(--brand-dark);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(63, 48, 44, 0.18);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--wood);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 64px);
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(163, 106, 61, 0.24), rgba(63, 48, 44, 0)),
    var(--brand-dark);
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: rgba(251, 247, 238, 0.78);
}

.footer-partner {
  display: grid;
  gap: 8px;
  width: min(250px, 100%);
}

.footer-partner span {
  color: rgba(251, 247, 238, 0.66);
}

.footer-partner img {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--white);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  font-weight: 750;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero,
  .split-layout,
  .soup-card,
  .promise-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-hours {
    width: min(420px, 100%);
  }

  .hero {
    padding: 108px 38px 58px;
  }

  .contact-copy {
    padding-right: 0;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--brand-dark);
    background: var(--cream-2);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px;
  }

  .hero {
    padding: 92px 18px 36px;
    gap: 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(106px, 34vw);
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-hours {
    padding: 16px;
  }

  .hero-hours strong {
    font-size: 1.55rem;
  }

  .hero-actions,
  .button,
  .contact-card .button {
    width: 100%;
  }

  .button {
    padding-inline: 16px;
  }
}

@media (max-width: 560px) {
  .logo-text {
    max-width: 132px;
    font-size: 0.98rem;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }

  .soup-content h2 {
    font-size: 1.95rem;
  }

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

  .gallery-item {
    min-height: 210px;
    max-height: 280px;
  }

  .gallery-item img {
    max-height: 280px;
  }

  .map-card {
    min-height: 220px;
  }

  .map-card iframe {
    min-height: 300px;
  }

  .legal-modal {
    align-items: stretch;
    padding: 10px;
  }

  .legal-dialog {
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .modal-close {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
