:root {
  --ink: #3d2620;
  --muted: #7a6259;
  --paper: #fffaf7;
  --cream: #f8efe7;
  --rose: #cfa19a;
  --rose-dark: #a86962;
  --mint: #a8c9bd;
  --blue: #9dbfd1;
  --lemon: #ecd86e;
  --line: rgba(61, 38, 32, 0.14);
  --shadow: 0 20px 60px rgba(61, 38, 32, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 178px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: #fff;
  background: var(--rose-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.96) 0%, rgba(255, 250, 247, 0.76) 42%, rgba(255, 250, 247, 0.12) 100%),
    url("Resources/generated/hero-cake.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0), var(--paper));
}

.hero-content {
  width: min(690px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 112px);
  padding: 92px 0 150px;
}

.hero-logo {
  width: 132px;
  margin-bottom: 26px;
}

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

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

h1 {
  margin-bottom: 18px;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 7.7rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-copy {
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-grid,
.gallery-section,
.testimonials,
.faq {
  padding: clamp(68px, 10vw, 126px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.45fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.intro {
  background: var(--paper);
}

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

.service-list article,
.testimonial-grid figure,
.gallery-card,
.flavor-columns > div,
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(61, 38, 32, 0.07);
}

.service-list article {
  padding: 24px;
}

.service-list span {
  display: block;
  margin-bottom: 26px;
  color: var(--rose-dark);
  font-weight: 850;
}

.service-list p,
.section-heading p,
.quote-copy p,
.flavors p,
.faq p {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-section {
  background: var(--cream);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter.is-active {
  color: #fff;
  background: var(--ink);
}

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

.gallery-card {
  overflow: hidden;
}

.gallery-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 310px;
  padding: 0;
  border: 0;
  background: var(--blue) center / cover no-repeat;
  cursor: zoom-in;
}

.gallery-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 38, 32, 0) 34%, rgba(61, 38, 32, 0.68) 100%);
}

.gallery-image:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -6px;
}

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 10px;
  color: #fff;
  background: rgba(61, 38, 32, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-image:hover .gallery-view,
.gallery-image:focus-visible .gallery-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-body {
  padding: 20px;
}

.gallery-body p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-body .button {
  width: 100%;
  margin-top: 10px;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-actions .button[hidden] {
  display: none;
}

.cake-modal {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: var(--ink);
  background: #fffaf5;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(61, 38, 32, 0.34);
  overflow: hidden;
}

.cake-modal::backdrop {
  background: rgba(24, 18, 17, 0.72);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.modal-media {
  display: grid;
  place-items: center;
  min-height: min(68dvh, 720px);
  background: #251a18;
}

.modal-media img {
  display: block;
  width: 100%;
  height: min(68dvh, 720px);
  object-fit: contain;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 22px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 38px) 28px;
}

.modal-content .eyebrow,
.modal-content h2,
.modal-content p {
  grid-column: 1;
  margin: 0;
}

.modal-content .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.flavors {
  background: linear-gradient(135deg, rgba(168, 201, 189, 0.28), rgba(236, 216, 110, 0.18)), var(--paper);
}

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

.flavor-columns > div {
  padding: 24px;
}

.flavor-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.flavor-columns li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.flavor-columns li span {
  padding: 4px 8px;
  color: var(--ink);
  background: rgba(236, 216, 110, 0.46);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 78px);
  padding: clamp(68px, 10vw, 126px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.quote-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.quote-copy .eyebrow,
.quote-copy p {
  color: #e8c5be;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 34px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(168, 105, 98, 0.16);
}

.wide {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.testimonials {
  background: var(--paper);
}

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

.testimonial-grid figure {
  margin: 0;
  padding: 28px;
}

blockquote {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.22;
}

figcaption {
  color: var(--muted);
  font-weight: 750;
}

.faq {
  background: var(--cream);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 14px 0 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 164px;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 250, 247, 0.78) 50%, rgba(255, 250, 247, 0.18) 100%),
      url("Resources/generated/hero-cake.jpg") 62% center / cover no-repeat;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 70px;
  }

  h1 {
    max-width: 10ch;
  }

  .section-grid,
  .quote-band {
    grid-template-columns: 1fr;
  }

  .quote-copy {
    position: static;
  }

  .service-list,
  .gallery,
  .flavor-columns,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 140px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-logo {
    width: 104px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .service-list,
  .gallery,
  .flavor-columns,
  .testimonial-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    min-height: 280px;
  }

  .gallery-view {
    opacity: 1;
    transform: none;
  }

  .cake-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .modal-media {
    min-height: 54dvh;
  }

  .modal-media img {
    height: 54dvh;
  }

  .modal-content {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .modal-content .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}
