/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-flour) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-wheat) 60%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  display: block;
  height: 2.925rem;
  width: auto;
}

.nav-main {
  display: none;
  gap: var(--space-lg);
}

.nav-main a,
.mobile-nav a {
  font-family: var(--font-accent);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color var(--duration) var(--ease-out);
}

.nav-main a:hover,
.mobile-nav a:hover {
  color: var(--color-crust);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
}

.lang-switcher button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: calc(var(--radius-sm) - 2px);
  color: color-mix(in srgb, var(--color-espresso) 60%, transparent);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.lang-switcher button[aria-pressed="true"] {
  background: var(--color-white);
  color: var(--color-espresso);
  box-shadow: 0 1px 3px rgb(61 35 20 / 8%);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-espresso);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-flour);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid var(--color-wheat);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 2rem;
  padding-block: var(--space-xs);
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-crust);
  color: var(--color-flour);
  box-shadow: 0 4px 14px rgb(139 90 60 / 25%);
}

.btn-primary:hover {
  background: var(--color-terracotta);
}

.btn-secondary {
  background: transparent;
  color: var(--color-espresso);
  border: 1.5px solid var(--color-wheat);
}

.btn-secondary:hover {
  border-color: var(--color-crust);
  background: var(--color-cream);
}

.btn-order {
  flex-direction: column;
  gap: 0.125rem;
  min-width: 20rem;
  padding: 0.875rem 2.75rem;
}

.btn-order-main {
  font-size: 1.375rem;
  line-height: 1.2;
}

.btn-order-sub {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.88;
}

/* Hero */
.hero.section {
  padding-block: var(--space-sm) var(--space-md);
  background: var(--color-flour);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-flavors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  width: 100%;
  max-width: 58rem;
  padding-top: var(--space-sm);
  margin: 0;
}

.hero-flavor {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0;
}

.hero-donut {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0;
}

.hero-donut img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-flavor-label {
  margin-top: -1.25rem;
  font-family: var(--font-accent);
  font-size: 2.75rem;
  color: var(--color-terracotta);
  line-height: 1.2;
}

.hero-flavor-name {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--color-espresso) 62%, transparent);
  max-width: 14ch;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--color-terracotta);
  margin: 0;
}

.hero-inner h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.975rem);
  max-width: none;
  white-space: nowrap;
}

.hero-tagline {
  margin-top: var(--space-md);
  max-width: 42ch;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--color-espresso) 80%, transparent);
}

.hero-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in srgb, var(--color-white) 70%, transparent);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-wheat) 50%, transparent);
}

.hero-delivery-time {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-crust);
}

.hero-delivery-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-espresso) 70%, transparent);
}

.hero-delivery-label strong {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-espresso);
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

@media (max-width: 640px) {
  .hero-flavors {
    gap: var(--space-sm);
    padding-top: var(--space-xs);
  }

  .hero-flavor-label {
    font-size: 2.125rem;
  }

  .hero-flavor-name {
    font-size: 0.6875rem;
    max-width: none;
  }
}

/* Story */
.story.section {
  padding-block: var(--space-md);
}

.story-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.story-visual {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.story-visual .image-placeholder {
  height: 100%;
  background:
    linear-gradient(160deg, var(--color-wheat) 0%, var(--color-cream) 50%, var(--color-sage) 100%);
}

.story-points {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.story-point {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.story-point-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Products */
.products {
  background: var(--color-cream);
}

.product-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-wheat) 80%, transparent);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(61 35 20 / 8%);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--color-cream);
}

.product-donut {
  width: 5.5rem;
  height: 5.5rem;
  filter: drop-shadow(0 4px 12px rgb(61 35 20 / 12%));
}

.product-donut svg {
  width: 100%;
  height: 100%;
}

.product-card--churchkhela .product-donut-ring {
  stroke: #6b3a2a;
  fill: #8b5a3c;
}

.product-card--churchkhela .product-donut-hole,
.product-card--tarhun .product-donut-hole,
.product-card--feijoa .product-donut-hole {
  fill: var(--color-cream);
}

.product-card--tarhun .product-donut-ring {
  stroke: #3d6b4f;
  fill: #5a9168;
}

.product-card--feijoa .product-donut-ring {
  stroke: #c4784a;
  fill: #e8a855;
}

.product-flavor-label {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  color: var(--color-terracotta);
  margin-bottom: 0.125rem;
}

.product-card-image .image-placeholder {
  height: 100%;
}

.product-card-image .image-placeholder--sourdough {
  background: linear-gradient(135deg, #d4a574 0%, #8b5a3c 100%);
}

.product-card-image .image-placeholder--croissant {
  background: linear-gradient(135deg, #f5d78e 0%, #c4784a 100%);
}

.product-card-image .image-placeholder--khachapuri {
  background: linear-gradient(135deg, #f5ede0 0%, #e8a040 50%, #c4784a 100%);
}

.product-card-body {
  padding: var(--space-md);
}

.product-card-body h3 {
  margin-bottom: 0.25rem;
}

.product-card-body p {
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-espresso) 65%, transparent);
}

.product-price {
  display: block;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--color-crust);
}

.coming-soon-tag {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--color-sage) 20%, var(--color-cream));
  color: var(--color-sage);
  border-radius: var(--radius-sm);
}

/* Order CTA */
.order-cta.section {
  padding-block: var(--space-md);
}

.order-cta {
  text-align: center;
}

.order-cta-inner {
  padding: var(--space-xl);
  background: var(--color-espresso);
  color: var(--color-flour);
  border-radius: var(--radius-lg);
}

.order-cta-inner h2 {
  color: var(--color-flour);
}

.order-cta-inner p {
  margin-inline: auto;
  margin-top: var(--space-sm);
  color: color-mix(in srgb, var(--color-flour) 80%, transparent);
}

.order-cta-inner .btn-primary {
  margin-top: var(--space-lg);
  background: var(--color-terracotta);
}

.order-cta-inner .btn-primary:hover {
  background: var(--color-crust);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

.notify-form input[type="email"] {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  min-width: min(100%, 16rem);
  font: inherit;
}

/* Footer */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-wheat);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-espresso) 65%, transparent);
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--color-crust);
}

.footer-links ul {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-crust);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-wheat);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-espresso) 55%, transparent);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Image placeholder utility */
.image-placeholder {
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 50%);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-placeholder::after {
  content: attr(data-label);
}
