/*
Theme Name: Yin's Nyonya Bites
Theme URI: https://yinsnyonyabites.com
Author: Yin's Nyonya Bites
Description: Custom WordPress theme for Yin's Nyonya Bites - Premium Peranakan Pineapple Tarts. Single-page scrollable layout.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yins-nyonya-bites
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --color-gold:       #c49a3e;
  --color-gold-dark:  #a07830;
  --color-gold-light: #e8c97a;
  --color-brown:      #8b5e3c;
  --color-dark:       #3d2b1f;
  --color-cream:      #fdf6ed;
  --color-cream-alt:  #fff9f2;
  --color-white:      #ffffff;
  --color-border:     #e8d5b0;
  --color-text-muted: #8a7060;

  --font-heading: 'Amarante', cursive;
  --font-body:    'Lato', 'Open Sans', Arial, sans-serif;

  --shadow-card: 0 4px 20px rgba(61,43,31,0.10);
  --shadow-hover: 0 8px 32px rgba(61,43,31,0.18);
  --radius: 6px;
  --transition: 0.3s ease;

  --max-width: 1200px;
  --section-padding: 90px 0;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-dark);
}

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; margin-bottom: 0.5rem; }
h5 { font-size: clamp(0.85rem, 1.2vw, 1rem); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.5rem; }
h6 { font-size: clamp(0.8rem, 1vw, 0.9rem); font-weight: 500; }

/* Semantic replacements for eyebrow labels (were h5/h6, now <p>) */
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.card-label {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

p { margin-bottom: 1rem; color: var(--color-dark); }
p:last-child { margin-bottom: 0; }

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h5, .section-header .section-eyebrow { margin-bottom: 8px; }

.section-header h2 { margin-bottom: 16px; }

.section-header .divider {
  width: 64px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,154,62,0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* WhatsApp icon */
.btn .whatsapp-icon { width: 18px; height: 18px; fill: currentColor; }

/* ===========================
   NAVIGATION
   =========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253,246,237,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
  transform: translateZ(0);
}

/* Push header down when WP admin bar is visible */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(61,43,31,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-logo img {
  height: 68px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-menu a:hover,
.nav-menu a.active { color: var(--color-gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO SECTION
   =========================== */
#hero {
  padding-top: 88px;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  width: 100%;
  padding: 48px 0 60px;
}

.hero-text {
  z-index: 1;
  align-self: start;
  margin-top: 0;
}

.hero-brand-logo {
  display: block;
  height: 260px;
  width: auto;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-text h6 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--color-brown);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.hero-image-badge {
  position: absolute;
  bottom: 28px;
  left: -20px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-image-badge .badge-icon {
  width: 42px;
  height: 42px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.hero-image-badge .badge-text strong {
  font-size: 1rem;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ===========================
   OUR STORY SECTION
   =========================== */
#story {
  padding: var(--section-padding);
  background: var(--color-cream-alt);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.story-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  border: 3px solid var(--color-gold);
  border-radius: 8px;
  z-index: -1;
}

.story-logos {
  margin-top: 14px;
}

.story-logos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: block;
}

.story-content h5, .story-content .section-eyebrow { margin-bottom: 8px; }
.story-content h2 { margin-bottom: 20px; }

.story-content p {
  font-size: 1.02rem;
  color: var(--color-brown);
  margin-bottom: 16px;
}

.story-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(196,154,62,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.story-content blockquote p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-dark);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ===========================
   WHAT MAKES US SPECIAL
   =========================== */
#special {
  padding: var(--section-padding);
  background: var(--color-cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.feature-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-card-body {
  padding: 28px 24px 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,154,62,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.feature-card-body h6, .feature-card-body .card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.feature-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ===========================
   SIGNATURE PRODUCT
   =========================== */
#products {
  padding: var(--section-padding);
  background: var(--color-cream-alt);
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.product-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-images img {
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.product-images img:hover { transform: scale(1.03); }

.product-images img:first-child {
  grid-column: 1 / -1;
  height: auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.product-images img:not(:first-child) { height: 180px; }

.product-content h5, .product-content .section-eyebrow { margin-bottom: 8px; }
.product-content h2 { margin-bottom: 6px; }
.product-content h3 { color: var(--color-gold); margin-bottom: 20px; }

.product-content > p {
  font-size: 1rem;
  color: var(--color-brown);
  margin-bottom: 28px;
  line-height: 1.8;
}

.product-meta {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.product-meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.product-meta-row:last-child { margin-bottom: 0; }

.product-meta-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-dark);
  min-width: 120px;
}

.product-meta-value {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 20px;
}

.product-price-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.product-price-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  line-height: 1;
}

.product-price-amount span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-storage {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-collection-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ===========================
   CRAFTING PROCESS
   =========================== */
#process {
  padding: var(--section-padding);
  background: var(--color-dark);
  color: var(--color-white);
}

#process h2, #process h3, #process h4, #process h6, #process .card-label { color: var(--color-white); }
#process p { color: rgba(253,246,237,0.80); }
#process h5, #process .section-eyebrow { color: var(--color-gold-light); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.process-step-image {
  border-radius: 10px;
  overflow: hidden;
}

.process-step-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition);
}

.process-step-image:hover img { transform: scale(1.04); }

.process-step-content { }

.process-step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(196,154,62,0.25);
  line-height: 1;
  margin-bottom: 8px;
}

.process-step-content h6, .process-step-content .card-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.process-step-content h3 {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.process-step-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(253,246,237,0.80);
}

.process-divider {
  height: 1px;
  background: rgba(232,213,176,0.2);
  margin: 60px 0;
}

/* ===========================
   GALLERY
   =========================== */
#gallery {
  padding: var(--section-padding);
  background: var(--color-cream);
}

/* Gallery Carousel */
.gallery-carousel-wrap {
  position: relative;
  isolation: isolate;
}

/* Overlay arrow buttons inside gallery */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.88);
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  pointer-events: all;
}
.gallery-arrow:hover {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(196,154,62,0.35);
}
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-arrow-prev { left: 10px; }
.gallery-arrow-next { right: 10px; }

@media (max-width: 600px) {
  .gallery-arrow { width: 36px; height: 36px; }
  .gallery-arrow svg { width: 16px; height: 16px; }
}

.gallery-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.gallery-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-carousel-track .gallery-item {
  flex-shrink: 0;
  /* width set by JS */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,43,31,0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(61,43,31,0.35);
}

.gallery-item-overlay svg {
  color: white;
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* ===========================
   NEWS / EVENT SECTION
   =========================== */
/* ===========================
   INSTAGRAM FEED SECTION
   =========================== */
#instagram {
  padding: var(--section-padding);
  background: var(--color-white);
}

.instagram-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.instagram-feed-wrap {
  max-width: 1100px;
  margin: 0 auto 32px;
  /* Smash Balloon outputs its own grid — we just contain it */
}

/* Override Smash Balloon defaults to match site style */
.instagram-feed-wrap .sbi_follow_btn a,
.instagram-feed-wrap #sbi_load .sbi_load_btn {
  background-color: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

.instagram-feed-wrap #sbi_images .sbi_item .sbi_photo_wrap {
  border-radius: 8px !important;
  overflow: hidden !important;
}

.instagram-cta {
  text-align: center;
  margin-top: 8px;
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

@media (max-width: 600px) {
  .instagram-subtitle { font-size: 0.9rem; }
}

#news {
  padding: var(--section-padding);
  background: var(--color-cream-alt);
}

.news-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 860px;
  margin: 0 auto;
  transition: box-shadow var(--transition);
}

.news-card:hover { box-shadow: var(--shadow-hover); }

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.news-card-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.news-card-body h3,
.news-card-body h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.news-link:hover { color: var(--color-gold-dark); gap: 10px; }

/* ===========================
   FIND OUR OUTLETS SECTION
   =========================== */
#outlets {
  padding: var(--section-padding);
  background: var(--color-cream);
}

.outlets-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: -8px;
  margin-bottom: 20px;
}

.outlets-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.outlet-card {
  flex: 1 1 340px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.outlet-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.outlet-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .outlet-card { padding: 20px 24px; }
}

/* ===========================
   CONTACT SECTION
   =========================== */
#contact {
  padding: var(--section-padding);
  background: var(--color-cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h5, .contact-info .section-eyebrow { margin-bottom: 8px; }
.contact-info h2 { margin-bottom: 20px; }

.contact-info > p {
  font-size: 1rem;
  color: var(--color-brown);
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(196,154,62,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-gold);
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.6;
}

.contact-item-text a:hover { color: var(--color-gold); }

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--color-cream-alt);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-dark);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Contact CTA card */
.contact-cta-card {
  background: var(--color-gold);
  border-radius: 14px;
  padding: 48px 40px;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.cta-logo {
  height: 120px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(61,43,31,0.20));
}

.contact-cta-card h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.contact-cta-card p {
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.contact-cta-card .btn-primary {
  background-color: #25D366;
  border-color: #25D366;
  color: #ffffff;
  border-radius: 6px;
}

.contact-cta-card .btn-primary:hover {
  background-color: #128C7E;
  border-color: #128C7E;
}

.contact-cta-card .company-reg {
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(61,43,31,0.60);
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
#site-footer {
  background: #2a1d14;
  color: rgba(253,246,237,0.65);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.8;
  filter: brightness(1.2);
}

.footer-copy {
  font-size: 0.82rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(253,246,237,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-gold-light); }

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-design-credit {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(253,246,237,0.22);
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}
.footer-design-credit a {
  color: rgba(253,246,237,0.22);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-design-credit a:hover { color: rgba(253,246,237,0.55); }

/* ===========================
   GOOGLE REVIEWS SECTION
   =========================== */
#reviews {
  padding: var(--section-padding);
  background: var(--color-cream-alt);
}

/* Overall rating badge */
.reviews-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.reviews-overall-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-score {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.reviews-stars {
  display: flex;
  gap: 2px;
}

.reviews-stars span {
  font-size: 1.5rem;
  color: #fbbc04;
  line-height: 1;
}

.reviews-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.google-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

/* Carousel wrapper */
.reviews-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Prev / Next arrow buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  box-shadow: var(--shadow-card);
}
.carousel-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(196,154,62,0.30);
}

/* Viewport — clips the overflowing track */
.carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

/* Track — all cards in a single flex row */
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

/* Individual card — width driven by JS */
.carousel-track .review-card {
  flex-shrink: 0;
  /* JS sets the width based on viewport */
}

/* Dot navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 40px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}
.carousel-dot.active {
  background: var(--color-gold);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .carousel-btn { width: 38px; height: 38px; }
}
@media (max-width: 600px) {
  .reviews-carousel-wrap { gap: 8px; }
  .carousel-btn { width: 34px; height: 34px; }
}

/* Single review card */
.review-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Google G mark in top-right corner */
.review-card-google {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

/* Reviewer info row */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.review-author-info { flex: 1; min-width: 0; }

.review-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Star row */
.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars span {
  font-size: 1rem;
  color: #fbbc04;
}

.review-stars span.empty { color: #e0d0b8; }

/* Review text */
.review-text {
  font-size: 0.9rem;
  color: #5a4a3a;
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

/* Google Review label */
.review-source-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 4px;
}

/* CTA row */
.reviews-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* No reviews message */
.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-overall { gap: 14px; }
  .reviews-score { font-size: 2.2rem; }
}

/* ===========================
   LIGHTBOX (simple)
   =========================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .story-inner { gap: 48px; }
  .product-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card-image { max-height: 240px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    width: 100%;
    background: var(--color-cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(61,43,31,0.10);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-brand-logo { margin-left: auto; margin-right: auto; display: block; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-image img { height: 360px; }
  .hero-image-badge {
    left: auto;
    right: 12px;
    bottom: 16px;
    padding: 8px 12px;
    gap: 8px;
  }
  .hero-image-badge .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .hero-image-badge .badge-text strong { font-size: 0.8rem; }

  .story-inner { grid-template-columns: 1fr; }
  .story-image img { height: 320px; }
  .story-image-accent { display: none; }

  .product-inner { grid-template-columns: 1fr; }
  .product-images img:first-child { height: auto; aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }

  /* Gallery: square images on mobile */
  .gallery-item img { height: auto; aspect-ratio: 1 / 1; width: 100%; }

  .features-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  /* Gallery: 1 image visible on mobile — make it square */
  .gallery-item img { height: auto; aspect-ratio: 1 / 1; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-images img:first-child { height: auto; aspect-ratio: 1 / 1; width: 100%; }
  .product-images img:not(:first-child) { height: 140px; }
  .contact-cta-card { padding: 32px 24px; }
  .news-card-body { padding: 24px; }
}

/* -----------------------------------------------
   FAQ Accordion
----------------------------------------------- */
#faq {
  padding: 80px 0;
  background: var(--color-cream);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(196,154,62,0.35);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.faq-question {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.5;
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.faq-icon-h {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}

.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-trigger[aria-expanded="true"] .faq-question { color: var(--color-gold-dark); }

.faq-body {
  /* Answers stay in the DOM — Google indexes them in full.
     JS toggles .is-open; without JS all answers are visible. */
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  border-top: 1px solid transparent;
  transition:
    max-height 0.35s ease,
    padding    0.35s ease,
    visibility 0s   linear 0.35s,
    border-top-color 0s linear 0.35s;
}

.faq-body.is-open {
  max-height: 1200px;
  padding: 0 28px 22px;
  visibility: visible;
  border-top-color: var(--color-border);
  transition:
    max-height 0.35s ease,
    padding    0.35s ease,
    visibility 0s,
    border-top-color 0s;
}

/* No-JS fallback: show all answers if JS never runs */
.no-js .faq-body {
  max-height: none;
  visibility: visible;
  padding: 0 28px 22px;
  border-top-color: var(--color-border);
}

.faq-body p {
  font-size: 0.95rem;
  color: var(--color-brown);
  line-height: 1.8;
  margin: 14px 0 0;
}

@media (max-width: 600px) {
  .faq-trigger       { padding: 18px 20px; }
  .faq-body          { padding: 0 20px; }
  .faq-body.is-open  { padding: 0 20px 18px; }
  .faq-question      { font-size: 0.93rem; }
}

/* -----------------------------------------------
   Visible FAQ — semantic, always readable
   (used by search crawlers and AI)
----------------------------------------------- */
.ynb-faq-section {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ynb-faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.ynb-faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.ynb-faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  line-height: 1.45;
}

.ynb-faq-item p {
  font-size: 0.95rem;
  color: var(--color-brown);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 600px) {
  .ynb-faq-item { padding: 20px 0; }
  .ynb-faq-item h3 { font-size: 0.95rem; }
  .ynb-faq-item p  { font-size: 0.9rem; }
}

/* -----------------------------------------------
   SEO Landing Page Templates
----------------------------------------------- */
.ynb-page-hero {
  background: var(--color-cream);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(196,154,62,0.15);
}
.ynb-page-hero .ynb-breadcrumb {
  font-size: 0.8rem;
  color: var(--color-brown);
  opacity: 0.7;
  margin-bottom: 28px;
}
.ynb-page-hero .ynb-breadcrumb a {
  color: var(--color-gold);
  text-decoration: none;
}
.ynb-page-hero .ynb-breadcrumb a:hover { text-decoration: underline; }
.ynb-page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-dark);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.2;
}
.ynb-page-hero p {
  font-size: 1.05rem;
  color: var(--color-brown);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}
.ynb-page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.ynb-page-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--color-dark);
  margin-top: 56px;
  margin-bottom: 16px;
  line-height: 1.25;
}
.ynb-page-body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 36px;
  margin-bottom: 10px;
}
.ynb-page-body p {
  color: var(--color-brown);
  line-height: 1.85;
  margin-bottom: 20px;
}
.ynb-page-body ul, .ynb-page-body ol {
  padding-left: 22px;
  color: var(--color-brown);
  line-height: 1.85;
  margin-bottom: 20px;
}
.ynb-page-body li { margin-bottom: 8px; }
.ynb-page-body a { color: var(--color-gold); }
.ynb-page-body a:hover { text-decoration: underline; }
.ynb-page-cta {
  background: var(--color-cream);
  border: 1px solid rgba(196,154,62,0.25);
  border-radius: 14px;
  padding: 44px 40px;
  text-align: center;
  margin-top: 60px;
}
.ynb-page-cta h2 {
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 14px;
}
.ynb-page-cta p {
  color: var(--color-brown);
  margin-bottom: 28px;
}
.ynb-page-cta .btn { justify-content: center; }
@media (max-width: 600px) {
  .ynb-page-hero { padding: 56px 0 40px; }
  .ynb-page-body { padding: 48px 20px 60px; }
  .ynb-page-cta { padding: 32px 24px; }
}

/* ===========================
   PERFORMANCE: content-visibility
   Skip layout/paint for off-screen sections until they scroll near.
   Supported: Chrome 85+, Edge 85+, Safari 15.4+. Firefox: no-op (renders normally).
   contain-intrinsic-size: auto → remembers actual size after first render (reduces CLS).
   =========================== */
#story,
#products,
#special,
#process,
#gallery,
#reviews,
#faq,
#news,
#instagram,
#outlets,
#contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ===========================
   FADE-IN ANIMATION (moved from JS injection)
   JS adds .ynb-fade, then .visible when element enters viewport
   =========================== */
.ynb-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.ynb-fade.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   PICTURE ELEMENT — preserve img behaviour inside <picture>
   =========================== */
picture img {
  display: block;
  max-width: 100%;
  height: auto;
}
.hero-image picture,
.hero-image picture img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 768px) {
  .hero-image picture,
  .hero-image picture img {
    height: 360px;
  }
}
.hero-brand-logo,
picture.hero-brand-logo img {
  display: block;
  height: 260px;
  width: auto;
  margin-bottom: 20px;
}
