:root {
  --section-heading-size: clamp(30px, 4vw, 40px);
  --site-gutter: clamp(24px, 8vw, 120px);
  --header-height: 96px;
  --navigation-offset: 160px;
  color-scheme: light;
  --butter-yellow: #FFE288;
  --dark-brown: #40291F;
  --raspberry-rose: #B34568;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  transition: transform 180ms ease;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.site-header:focus-within {
  transform: translateY(0);
}

.site-header.nav-scrolled {
  background: var(--butter-yellow);
  box-shadow: 0 2px 12px #40291F14;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  width: calc(100% - var(--site-gutter) - var(--site-gutter));
  max-width: 1240px;
  margin-inline: auto;
  padding: 16px 0;
}

.nav-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: bold;
}

.site-nav a {
  display: inline-block;
  color: var(--dark-brown);
  padding-block: 10px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: var(--dark-brown);
  font-size: 24px;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .site-nav {
    gap: 8px 12px;
  }

  .nav-brand {
    min-width: 0;
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
  }

  .menu-ready .nav-links {
    display: none;
  }

  .menu-ready.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 24px 20px;
    background: var(--butter-yellow);
    box-shadow: 0 8px 12px #40291F14;
  }

  .nav-links a {
    display: block;
    min-height: 44px;
    padding: 12px 0;
  }

  .menu-open {
    background: var(--butter-yellow);
  }
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-nav a:focus-visible,
.information-link:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 4px;
}

main section[id] {
  scroll-margin-top: var(--navigation-offset);
}

footer.contact-footer {
  position: relative;
  min-height: 0;
  /* Show the bottom 80% of the image, cropping empty background above. */
  aspect-ratio: 3840 / 1730;
  padding: 0 var(--site-gutter);
  background: #F5EBCD url('images/optimized/footer-1920.webp') center bottom / cover no-repeat;
  background-image: image-set(url('images/optimized/footer-1920.webp') 1x, url('images/optimized/footer-2560.webp') 2x);
  text-align: center;
  scroll-margin-top: var(--navigation-offset);
}

footer.contact-footer .information-content {
  position: absolute;
  bottom: 60%;
  left: var(--site-gutter);
  right: var(--site-gutter);
}

footer.contact-footer p {
  margin-inline: auto;
}

footer.contact-footer h2 {
  margin-bottom: 20px;
}

footer.contact-footer .information-content > p:not(.reply-note) {
  margin-bottom: 24px;
}

.reply-note,
footer.contact-footer .reply-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

footer.contact-footer .reply-note {
  margin-inline: auto;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  footer.contact-footer {
    aspect-ratio: auto;
    padding: 48px 24px calc(40vw + 32px);
    background-size: 100% auto;
    background-image: image-set(url('images/optimized/footer-1280.webp') 1x, url('images/optimized/footer-1920.webp') 2x);
  }

  footer.contact-footer .information-content {
    position: static;
  }
}

.information-section {
  padding: 64px clamp(24px, 8vw, 120px);
  background: #FFF8E8;
  border-top: 1px solid #E9DDC6;
}

.information-content {
  max-width: 1000px;
  margin-inline: auto;
}

.information-section h2 {
  margin: 0 0 32px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--section-heading-size);
  font-weight: normal;
  line-height: 1.2;
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

#faq-title,
#location-title {
  text-align: center;
}

.faq-item {
  border: 1px solid #E9DDC6;
  border-radius: 16px;
  background: #FFFCF5;
  text-align: left;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 3px;
}

.faq-chevron {
  flex: 0 0 9px;
  height: 9px;
  border-right: 2px solid var(--dark-brown);
  border-bottom: 2px solid var(--dark-brown);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(225deg);
}

.information-section p {
  max-width: 720px;
  margin: 0 0 24px;
  line-height: 1.7;
}

.location-section p {
  max-width: 800px;
  margin-inline: 0;
  text-align: left;
}

.collection-details {
  padding: 8px 20px 0;
  margin-bottom: 32px;
}

.collection-details h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
}

.collection-clock {
  flex: 0 0 22px;
  color: var(--raspberry-rose);
}

.location-section .collection-times {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: bold;
  line-height: 1.4;
}

.location-section .collection-note {
  margin-bottom: 8px;
}

.location-section .pickup-only {
  margin-bottom: 0;
  font-size: 14px;
}

.faq-item p {
  margin-bottom: 0;
  padding: 0 24px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .faq-chevron {
    transition: none;
  }
}

.location-section {
  background: #F5EBCD;
}

.pickup-map {
  overflow: hidden;
  border: 1px solid #E9DDC6;
  border-radius: 20px;
}

.pickup-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 450px);
  border: 0;
}

.pickup-map:focus-within {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 4px;
}

.location-section address {
  max-width: 720px;
  margin-bottom: 24px;
  font-style: normal;
  font-size: 20px;
  line-height: 1.7;
}

.information-link {
  display: inline-block;
  padding-block: 10px;
  color: var(--dark-brown);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.link-hint {
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--butter-yellow);
  color: var(--dark-brown);
  font-family: Arial, Helvetica, sans-serif;
}

.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px clamp(24px, 8vw, 120px) 80px;
}

.opening-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.opening h1 {
  max-width: 52%;
  font-size: clamp(48px, 5.5vw, 80px);
}

.catalogue-disclaimer {
  max-width: 900px;
  margin: -8px 0 32px;
  font-size: 14px;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .catalogue-disclaimer {
    max-width: none;
  }

  .catalogue-disclaimer span {
    display: block;
  }
}

.advance-notice {
  margin: 0;
  line-height: 1.7;
}

.cake-name-reset {
  display: block;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.cake-name-reset:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 4px;
}

.opening .introduction {
  max-width: 44%;
  margin: 24px 0 28px;
}

.opening-content {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-top: var(--header-height);
}

.hero-eyebrow {
  max-width: 52%;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.business-name {
  margin: 0 0 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: bold;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: normal;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.introduction {
  max-width: 560px;
  margin: 28px 0 32px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.browse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 16px 26px;
  border-radius: 16px;
  background: var(--raspberry-rose);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
}

.browse-button:hover {
  background: #993853;
}

.browse-button:focus-visible {
  outline: 3px solid var(--dark-brown);
  outline-offset: 5px;
}

@media (max-width: 600px) {
  :root {
    --site-gutter: 24px;
  }

  .opening {
    padding: 24px 24px 40px;
  }
}


.catalogue {
  background: #FFF8E8;
  padding: 56px clamp(24px, 8vw, 120px) 64px;
  scroll-margin-top: 24px;
}

.catalogue-content {
  max-width: 1240px;
  margin-inline: auto;
}

.catalogue h2 {
  margin: 0 0 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--section-heading-size);
  font-weight: normal;
  line-height: 1.2;
}

.cake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.cake-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E9DDC6;
  border-radius: 20px;
  background: #FFFCF5;
}

.photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  background: #F5EBCD;
  border-bottom: 1px dashed #C7B78F;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* Keep future photos inside this same wrapper so the badge stays over them. */
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cake-photo-button {
  width: 100%;
  border: 0;
  cursor: zoom-in;
  color: inherit;
  font-family: inherit;
}

.cake-photo-button:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: -4px;
  z-index: 2;
}

.flavour-pills.chilled-photo-flavours li {
  padding: 0;
  border: 0;
  background: transparent;
}

.chilled-photo-flavours button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #E9DDC6;
  border-radius: 999px;
  background: #FFF8E8;
  color: var(--dark-brown);
  font: inherit;
  cursor: pointer;
}

.chilled-photo-flavours button[aria-pressed="true"] {
  border-color: var(--raspberry-rose);
  background: var(--butter-yellow);
}

.chilled-photo-flavours button:focus-visible,
.photo-close:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 3px;
}

.photo-dialog {
  width: min(960px, 94vw);
  max-height: 92dvh;
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: #FFF8E8;
  color: var(--dark-brown);
}

.photo-dialog::backdrop {
  background: #24150FCC;
}

.photo-dialog figure {
  margin: 16px 0 0;
}

.photo-dialog img {
  display: block;
  width: 100%;
  max-height: 70dvh;
  object-fit: contain;
}

.photo-dialog figcaption {
  margin-top: 12px;
  line-height: 1.5;
}

.photo-close {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--dark-brown);
  border-radius: 12px;
  background: var(--butter-yellow);
  color: var(--dark-brown);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .opening {
    min-height: 620px;
    padding-bottom: 72px;
  }

  .opening::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #FFF8E8F2 0%, #FFF8E8D9 60%, #FFF8E866 100%);
  }

  .opening-image {
    position: absolute;
    z-index: -2;
    height: 100%;
    object-position: 68% center;
    border-radius: 0;
  }

  .opening h1,
  .hero-eyebrow,
  .opening .introduction {
    max-width: 100%;
  }
}

.cake-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.cake-card h3 {
  margin: 0 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bestseller {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--raspberry-rose);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: bold;
}

.flavour-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.flavour-pills li {
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #E9DDC6;
  border-radius: 999px;
  background: #FFF8E8;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cake-description {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

.cake-prices {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 16px;
}

.cake-prices div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #E9DDC6;
}

.cake-prices dd {
  margin: 0;
  font-weight: bold;
}

.seasonal {
  margin-top: 56px;
}

.seasonal h2 {
  margin-bottom: 12px;
}

.availability {
  margin: 0 0 28px;
  line-height: 1.6;
}

.catalogue-note {
  max-width: 720px;
  margin: 40px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--raspberry-rose);
  font-size: 16px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .cake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cake-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .catalogue {
    padding: 40px 24px 48px;
  }
}

.enquiry {
  scroll-margin-top: 24px;
  padding: 56px clamp(24px, 8vw, 120px) 64px;
  background: var(--dark-brown);
  border-top: 1px solid #E9DDC6;
}

.cake-enquiry-button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 16px;
  min-height: 48px;
  border: 1px solid var(--raspberry-rose);
  border-radius: 12px;
  background: var(--raspberry-rose);
  color: #FFFFFF;
  font: inherit;
  font-weight: bold;
  line-height: 1.5;
}

.cake-enquiry-button:hover {
  background: #993853;
}

.cake-selection {
  min-width: 0;
  padding: 24px;
  border: 1px solid #E9DDC6;
  border-radius: 16px;
  background: #FFFCF5;
}

.cake-selection p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.selection-label {
  font-size: 14px;
}

.selected-cake-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.catalogue-return {
  display: inline-block;
  padding-block: 8px;
  color: var(--dark-brown);
  text-underline-offset: 4px;
}

.cake-enquiry-button:focus-visible,
.catalogue-return:focus-visible,
#selected-cake-panel:focus {
  outline: 3px solid var(--dark-brown);
  outline-offset: 4px;
}

.enquiry-content {
  max-width: 960px;
  margin-inline: auto;
  border: 1px solid #D9BC69;
  border-radius: 20px;
  background: #FFF1D8;
  box-shadow: 0 16px 40px #24150F26;
}

.enquiry h2 {
  margin: 0;
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: 19px 19px 0 0;
  background: var(--butter-yellow);
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--section-heading-size);
  font-weight: normal;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .enquiry h2 {
    padding-inline: 12px;
    font-size: clamp(18px, 4.6vw, 30px);
    white-space: nowrap;
  }
}

.enquiry-form {
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 24px;
}

.enquiry-footer {
  text-align: center;
}

#enquiry-errors {
  text-align: left;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.5;
}

.field label span {
  font-weight: normal;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #9B8568;
  border-radius: 12px;
  background: #FFFCF5;
  color: var(--dark-brown);
  font: inherit;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
}

/* Keep Safari's native date content inside the same bounds as other fields. */
#pickup-date {
  -webkit-appearance: none;
  appearance: none;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  text-align: left;
}

#pickup-date::-webkit-date-and-time-value {
  min-width: 0;
  min-height: 1.5em;
  text-align: left;
}

#pickup-date::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.field select:disabled {
  background: #F5EBCD;
  color: #68513F;
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--raspberry-rose);
  outline-offset: 3px;
}

.field-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.pickup-error {
  color: var(--dark-brown);
  font-weight: bold;
}

#pickup-date[aria-invalid="true"] {
  border: 2px solid var(--raspberry-rose);
}

.enquiry-footer > p:first-child {
  margin: 0 0 24px;
  line-height: 1.7;
}

.continue-button {
  max-width: 100%;
  min-height: 54px;
  padding: 16px 24px;
  border: 1px solid var(--raspberry-rose);
  border-radius: 16px;
  background: var(--raspberry-rose);
  color: #FFFFFF;
  font: inherit;
  font-weight: bold;
  line-height: 1.4;
}

.continue-button:focus-visible {
  outline: 3px solid var(--dark-brown);
  outline-offset: 4px;
}

#enquiry-errors:not([hidden]) {
  margin-bottom: 24px;
  padding: 16px;
  border: 2px solid var(--raspberry-rose);
  border-radius: 12px;
  line-height: 1.6;
}

#enquiry-errors ul {
  margin: 0;
  padding-left: 20px;
}

@media (min-width: 768px) {
  .enquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .enquiry {
    padding: 40px 24px 48px;
  }
}

@media (max-width: 767px) {
  footer.contact-footer {
    padding: 48px 24px 200px;
    background-size: cover;
    background-position: 65% bottom;
    background-image: image-set(url('images/optimized/footer-640.webp') 1x, url('images/optimized/footer-1280.webp') 2x);
  }

  footer.contact-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FFF8E8E6 0%, #FFF8E8B3 55%, transparent 100%);
    pointer-events: none;
  }

  footer.contact-footer .information-content {
    position: relative;
    inset: auto;
    z-index: 1;
  }
}
