:root {
  /* Font families */
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Responsive heading scale */
  --h1: clamp(2.2rem, 5vw + 1rem, 4rem);
  --h2: clamp(2.1rem, 4vw + 1rem, 3.5rem);
  --h3: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);

  /* Wrap and Centre */
  --content-gutter: 1rem; /* mobile */
  --content-max: 1300px;

  /* Section Padding */
  --section-padding-y: 4rem; /* 24px */
}

.content-wrap {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

@media (min-width: 768px) {
  :root {
    --content-gutter: 2rem;
  }
}
@media (min-width: 992px) {
  :root {
    --content-gutter: 3rem;
  }
}
@media (min-width: 1200px) {
  :root {
    --content-gutter: 4rem;
  }
}
@media (min-width: 1400px) {
  :root {
    --content-gutter: 5rem;
  }
}

.navbar-toggler-icon {
  display: inline-block;
  width: 2.5em;
  height: 2.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* ---------- PAGE FADE TRANSITIONS ---------- */

#page {
  opacity: 0;
  transition: opacity 300ms ease;
}

#page.is-visible {
  opacity: 1;
}

#page.is-fading-out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #page {
    transition: none;
  }
}

/* ---------- BODY ---------- */

body {
  font-family: var(--font-body);
  line-height: 1.6;
}

#find-us {
  background-color: #25336f;
  /*max-width: 700px;*/
}

#find-us .tab-pane.fade {
  transition:
    opacity 350ms ease,
    transform 350ms ease;
  transform: translateY(6px);
}

#find-us .tab-pane.fade.show {
  transform: translateY(0);
}

#find-us #locationTabsContent {
  min-height: 640px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  font-family: inherit;
  font-weight: 300;
  font-size: 1.25rem;
}

.welcome {
  letter-spacing: 0.05em;
  font-weight: 200;
}

.hero {
  margin-top: 2rem;
}

/* BUTTONS */

button {
  height: 40px;
  padding: 0 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
}

.view-menu {
  background-color: #f9f9ee;
  min-width: 193px;
}

.cakes-menu {
  background-color: #f9f9ee;
  min-width: 193px;
  border: none;
  box-shadow: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.cakes-menu:hover,
.cakes-menu:focus {
  background-color: #3b55a5;
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.cakes-menu:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.our-story {
  background-color: #3b55a5;
  width: 100%;
  max-width: 193px;
}

/* Scope styles to this specific nav */
#locationTabs {
  gap: 12px;
}

/* Base pill style */
#locationTabs .nav-link {
  color: #f9f9ee;
  border: 1px solid #f9f9ee;
  background-color: transparent;
  font-weight: 600;
}

/* Active pill */
#locationTabs .nav-link.active {
  background-color: #f9f9ee;
  color: #3b55a5;
  border-color: #3b55a5;
}

/* Optional: hover state for inactive */
#locationTabs .nav-link:not(.active):hover {
  background-color: rgba(59, 85, 165, 0.08);
}

/* General CSS */

.location-img {
  /*max-height: 400px;*/
  width: 100%;
  object-fit: cover;
  display: block;
  margin-inline: auto;
  box-shadow: 5px 5px 10px #00000050;
  /*border: 1px solid #f9f9ee;*/
}

section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

section + section {
  margin-bottom: 4rem;
}

.find-us-inner {
  max-width: 800px; /* prevents oversized layout */
  margin-inline: auto;
}

.home-section {
  padding-bottom: 4rem;
}

/* NAV ELEMENTS */

.offcanvas {
  --bs-offcanvas-bg: #f9f9ee;
}

#mobileNav nav a {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  text-align: center;
  padding-block: 0.75rem;
}

#mobileNav nav {
  gap: 0.75rem;
}

#mobileNav nav a {
  color: #333333;
  border-color: transparent;
  background-color: transparent;
}

.social-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

/* NAV ACTIVE STATE */
header nav a.active,
#mobileNav nav a.active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}

/* CONTACT FORM */

#contact {
  margin-top: 8rem;
}

#contact .form-control {
  color: #ffffff;
}

/* Placeholder text colour */
#contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Firefox placeholder fix */
#contact .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

/* MENU PAGE */
.menu-page .menu-inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 0;
}

.menu-section {
  padding-bottom: 4rem;
}

.menu-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.download-menu-btn {
  background: #2f3f8f;
  color: #fff;
  border: 0;
  border-radius: 0.15rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.download-menu-btn:hover,
.download-menu-btn:focus {
  background-color: #25336f; /* darker shade */
  color: #ffffff;
}

/* -------------------- FOOD MENU -------------------- */

.menu-page .menu-inner {
  max-width: 1300px;
  margin-inline: auto;
}

.menu-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.menu-rule {
  margin: 0 0 1.25rem;
  border: 0;
  border-top: 1px solid #000;
  opacity: 1;
}

.menu-item {
  margin-bottom: 1.25rem;
}

.menu-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  gap: 1rem;
}

.menu-item-name {
  font-weight: 200;
}

.menu-item-price {
  white-space: nowrap;
  font-weight: 200;
}

.menu-item-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 0.25rem;
  line-height: 1.35;
}

#freshLocalCarousel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#freshLocalCarousel {
  max-width: 100%;
}

/* Desktop */
@media (min-width: 757px) {
  #freshLocalCarousel {
    min-width: 600px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  #freshLocalCarousel {
    min-width: 800px;
  }
}

#freshLocalCarousel .carousel-control-prev,
#freshLocalCarousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
