/*
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
*/

/* Navbar hover animation */
.nav-link {
  color: #fcf6ef;
  transition: color 0.35s ease, border-color 0.35s ease;
  border-bottom: 4px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-family: 'Caveat Brush', cursive;
  font-size: 0.8rem;
}

/* Global page loader */
body.is-loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5e6c8;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader dotlottie-wc {
  width: 260px;
  height: 260px;
}

#loading-text {
  margin-top: 15px;
  font-family: 'Ruslan Display', cursive;
  font-size: 26px;
  color: #6b3e1d;
  letter-spacing: 1.5px;
  animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.nav-link:hover {
  color: #d89e48;
  border-bottom-color: #d89e48;
}

/* Responsive font sizes */
@media (min-width: 768px) {
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1rem;
  }
}

@media (min-width: 1400px) {
  .nav-link {
    font-size: 1.1rem;
  }
}

@media (min-width: 1920px) {
  .nav-link {
    font-size: 1.25rem;
  }
}

/* Responsive nav text - single line on large screens, two lines on small */
.nav-text-full {
  display: inline;
}

.nav-text-break {
  display: none;
  line-height: 1.4;
}

@media (max-width: 1400px) {
  .nav-text-full {
    display: none;
  }
  .nav-text-break {
    display: inline;
  }
}

/* Mobile navigation links */
.nav-link-mobile {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding-top: 24px;
  padding-bottom: 24px;
  display: block;
  text-align: center;
  color: rgb(216, 158, 72);
  width: 100%;
  transition: opacity 0.3s ease;
}

.nav-link-mobile:hover {
  opacity: 0.7;
}

/* Responsive navbar visibility */
@media (max-width: 991.98px) {
  .nav-link-full {
    display: none !important;
  }
  .mobile-nav-button {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .nav-link-full {
    display: flex !important;
  }
  .mobile-nav-button {
    display: none !important;
  }
}

/* Shared legal pages */
.legal-page-section {
  min-height: 70vh;
  padding: calc(130px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 90px max(24px, env(safe-area-inset-left, 0px));
  background-color: #111b17;
  color: #fcf6ef;
}

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

.legal-page-header {
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(216, 158, 72, 0.42);
  text-align: center;
}

.legal-page-title {
  margin: 0 0 18px;
  color: #d89e48;
  font-family: 'Caveat Brush', cursive;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.legal-page-intro {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(252, 246, 239, 0.86);
  font-size: 1.125rem;
  line-height: 1.75;
}

.legal-content-section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(216, 158, 72, 0.2);
}

.legal-content-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-content-section h2 {
  margin: 0 0 16px;
  color: #d89e48;
  font-family: 'WinstonSans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-content-section p,
.legal-content-section li {
  color: rgba(252, 246, 239, 0.86);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.legal-content-section p {
  margin: 0 0 14px;
}

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

.legal-content-section ul {
  margin: 0;
  padding-left: 1.35rem;
}

.legal-content-section li + li {
  margin-top: 8px;
}

.legal-page-link,
.footer-legal-link {
  color: #d89e48;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page-link:hover,
.footer-legal-link:hover {
  color: #fcf6ef;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  white-space: nowrap;
}

.footer-legal-link,
.footer-legal-separator {
  font-size: 0.875rem;
}

.footer-legal-separator {
  color: rgba(216, 158, 72, 0.7);
}

@media (max-width: 600px) {
  .legal-page-section {
    padding-top: calc(108px + env(safe-area-inset-top, 0px));
    padding-bottom: 64px;
  }

  .legal-page-header {
    padding-bottom: 30px;
  }

  .legal-page-title {
    font-size: 2.65rem;
  }

  .legal-page-intro,
  .legal-content-section p,
  .legal-content-section li {
    font-size: 1rem;
  }

  .legal-content-section {
    padding: 28px 0;
  }

  .legal-content-section h2 {
    font-size: 1.4rem;
  }

  .footer-legal-links {
    gap: 6px;
  }

  .footer-legal-link,
  .footer-legal-separator {
    font-size: 0.78rem;
  }
}

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none;
}

/* Custom bakery styles */
.hero-bg {
  background: linear-gradient(to right, #FFF7ED, #ffffff, #FFF7ED);
}

/* Tailwind Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.z-10 {
  z-index: 10;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.-mt-1 {
  margin-top: -0.25rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-10 {
  height: 2.5rem;
}

.h-16 {
  height: 4rem;
}

.h-64 {
  height: 16rem;
}

.h-96 {
  height: 24rem;
}

.h-6 {
  height: 1.5rem;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.w-10 {
  width: 2.5rem;
}

.w-6 {
  width: 1.5rem;
}

.w-full {
  width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.rotate-180 {
  transform: rotate(180deg);
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-slide {
  animation: fadeSlide 600ms ease-out;
}

.cursor-pointer {
  cursor: pointer;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.bg-bakery-brown {
  background-color: #6B4C3B;
}

.bg-bakery-cream {
  background-color: #FFF7ED;
}

.bg-bakery-gold {
  background-color: #FBBF24;
}

.bg-bakery-rose {
  background-color: #E8799A;
}

.bg-black {
  background-color: #000000;
}

.bg-white {
  background-color: #ffffff;
}

.bg-opacity-30 {
  --tw-bg-opacity: 0.3;
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

.object-cover {
  object-fit: cover;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.font-sans {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.font-semibold {
  font-weight: 600;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-bakery-brown {
  color: #6B4C3B;
}

.text-bakery-gold {
  color: #FBBF24;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-white {
  color: #ffffff;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.opacity-0 {
  opacity: 0;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:bg-bakery-brown:hover {
  background-color: #5a3f2f;
}

.hover\:text-bakery-rose:hover {
  color: #E8799A;
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 3px rgba(232, 121, 154, 0.5);
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .md\:mt-0 {
    margin-top: 0px;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

/* Custom responsive navigation breakpoint at 992px (matching reference design) */
@media (max-width: 991px) {
  #navbar {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
  }

  #navbar .navbar-content {
    padding-top: 0 !important;
    padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
  }

  #navbar .navbar-content > nav {
    height: 64px;
    min-height: 64px;
  }

  .nav-link-full {
    display: none !important;
  }
  
  .mobile-nav-button {
    display: flex !important;
    align-items: center;
    margin-top: 0;
  }

  .nav-center-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .nav-link-full {
    display: flex !important;
  }
  
  .mobile-nav-button {
    display: none !important;
  }
  
  .mobile-menu-container {
    display: none !important;
  }
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2600;
  padding: 16px max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__content {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fcf6ef;
  background: rgba(17, 27, 23, 0.96);
  border: 1px solid #d89e48;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.cookie-consent__text {
  max-width: 720px;
}

.cookie-consent__text h2 {
  margin: 0 0 6px;
  color: #d89e48;
  font-family: "Caveat Brush", cursive;
  font-size: 2rem;
  line-height: 1;
}

.cookie-consent__text p {
  margin: 0;
  color: rgba(252, 246, 239, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: #d89e48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #d89e48;
  border-radius: 4px;
  background: #d89e48;
  color: #111b17;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-consent__button--secondary {
  background: transparent;
  color: #d89e48;
}

.cookie-consent__button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .cookie-consent {
    padding-top: 12px;
  }

  .cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .cookie-consent__text h2 {
    font-size: 1.75rem;
  }

  .cookie-consent__text p,
  .cookie-consent__button {
    font-size: 16px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
