/* ===========================================
   Bobot's Bakery — Warm Filipino Traditional
   Bahay Kubo / Wooden aesthetic
   =========================================== */

:root {
  /* Warm wood & bamboo palette */
  --cream: #faf3e3;
  --cream-light: #fdf9ed;
  --cream-dark: #f0e4c8;
  --wood-light: #c89b6c;
  --wood: #8b5a2b;
  --wood-dark: #5c3a1e;
  --bamboo: #9caf6e;
  --bamboo-dark: #6b8049;

  /* Filipino flag accents (from logo) */
  --flag-red: #ce1126;
  --flag-blue: #0038a8;
  --flag-yellow: #fcd116;

  /* Bread-inspired tones */
  --crust: #b87a3d;
  --ube: #6b4a8a;
  --pandan: #8fb86c;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lora', 'Georgia', serif;
  --font-accent: 'Caveat', 'Brush Script MT', cursive;

  /* Layout */
  --max-w: 1200px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--wood-dark);
  background-color: var(--cream);
  line-height: 1.6;
  /* Bahay kubo bamboo weave texture using SVG pattern */
  background-image:
    repeating-linear-gradient(0deg, rgba(139,90,43,0.04) 0px, rgba(139,90,43,0.04) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(139,90,43,0.04) 0px, rgba(139,90,43,0.04) 1px, transparent 1px, transparent 28px);
}

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

a { color: var(--wood); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--flag-red); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--wood-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

.tagline {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--flag-red);
  font-weight: 400;
}

.section-title {
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--flag-red), var(--flag-yellow), var(--flag-blue));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: linear-gradient(180deg, #5c3a1e 0%, #8b5a2b 100%);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  /* Wood grain effect */
  background-image:
    linear-gradient(180deg, #5c3a1e 0%, #8b5a2b 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 8px);
  background-blend-mode: multiply;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  padding: 2px;
  border: 2px solid var(--flag-yellow);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  font-weight: 700;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--flag-yellow);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover { color: var(--flag-yellow); }

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--flag-yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  background:
    linear-gradient(rgba(250,243,227,0.85), rgba(250,243,227,0.95)),
    repeating-linear-gradient(45deg, rgba(139,90,43,0.06) 0px, rgba(139,90,43,0.06) 2px, transparent 2px, transparent 12px);
  border-bottom: 6px double var(--wood-light);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero img.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--cream-light);
  padding: 8px;
  border: 4px solid var(--wood);
  box-shadow: 0 8px 24px rgba(92,58,30,0.25);
}

.hero h1 {
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--wood);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Home page hero: ube pandesal photo background */
.hero.hero-home {
  background:
    linear-gradient(rgba(40, 20, 50, 0.65), rgba(40, 20, 50, 0.75)),
    url("images/ubepancheese.png") center / cover no-repeat;
}

.hero.hero-home .hero-inner {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero.hero-home img.hero-logo {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero.hero-home h1 {
  color: var(--cream-light);
}

.hero.hero-home .tagline {
  color: var(--cream);
}

.hero.hero-home p.lead {
  color: var(--cream-light);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--flag-red);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(206,17,38,0.3);
}
.btn-primary:hover {
  background: #a00d1e;
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(206,17,38,0.4);
}

.btn-secondary {
  background: var(--cream);
  color: var(--wood-dark);
  border: 2px solid var(--wood);
}
.btn-secondary:hover {
  background: var(--wood);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-alt {
  background: var(--cream-light);
  border-top: 3px solid var(--cream-dark);
  border-bottom: 3px solid var(--cream-dark);
}

/* ===== FEATURED CARDS (Home) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--flag-red), var(--flag-yellow), var(--flag-blue));
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(92,58,30,0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ===== MENU GRID ===== */
.menu-categories {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-item {
  background: var(--cream-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 2px 8px rgba(92,58,30,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(92,58,30,0.15);
}

.menu-item-img {
  width: 100%;
  height: 220px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.menu-item-img svg {
  width: 100%;
  height: 100%;
}

.menu-item-img .placeholder-label {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.85);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--wood-dark);
  font-style: italic;
}

.menu-item-body {
  padding: 1.2rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.menu-item-desc {
  color: var(--wood);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.menu-item-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--cream-dark);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--flag-red);
  font-weight: 700;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--wood);
  font-style: italic;
}

/* ===== ORDER PAGE ===== */
.order-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.coming-soon-banner {
  background: linear-gradient(135deg, var(--flag-yellow) 0%, #f4b942 100%);
  color: var(--wood-dark);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 2px dashed var(--wood);
  text-align: center;
}

.coming-soon-banner strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.3rem;
}

.order-form {
  background: var(--cream-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  box-shadow: 0 4px 16px rgba(92,58,30,0.1);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--wood-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--wood-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(139,90,43,0.15);
}

/* Date inputs: iOS Safari hides the native calendar icon and ignores some
   sizing rules. Reset its appearance so it matches other inputs, and draw
   our own calendar icon via background SVG. */
.form-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: calc(1rem * 1.6 + 0.7rem * 2 + 2px); /* match text-input height */
  padding-right: 2.4rem; /* room for the icon */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem 1.1rem;
}

/* Hide the desktop-Chrome native indicator since we now draw our own,
   so the icon doesn't appear twice on Chrome. */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0.85rem;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

/* Firefox-only: Gecko ignores ::-webkit-calendar-picker-indicator and has
   no equivalent pseudo-element, so the native icon can't be hidden.
   Drop our custom SVG on Firefox and let the native indicator show. */
@-moz-document url-prefix() {
  .form-group input[type="date"] {
    background-image: none;
    padding-right: 0.9rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.order-items-table th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid var(--wood);
  color: var(--wood-dark);
  font-family: var(--font-display);
}

.order-items-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--cream-dark);
}

.order-items-table input[type="number"] {
  width: 70px;
  padding: 0.4rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  background: var(--cream);
}

.disabled-overlay {
  position: relative;
}

.disabled-overlay::after {
  content: 'Online ordering coming soon';
  position: absolute;
  bottom: -2.5rem;
  left: 0; right: 0;
  text-align: center;
  font-style: italic;
  color: var(--wood);
  font-size: 0.9rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--cream-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--flag-red);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--cream-dark);
}

.contact-method:last-child { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--wood);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-method-label {
  font-size: 0.85rem;
  color: var(--wood);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wood-dark);
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--wood-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  /* Wooden plank texture */
  background-image:
    linear-gradient(180deg, #4a2e18 0%, #5c3a1e 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 6px);
  background-blend-mode: multiply;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  margin-bottom: 0.8rem;
}

.footer-grid h4 {
  color: var(--flag-yellow);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--cream); }
.footer-grid a:hover { color: var(--flag-yellow); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,243,227,0.15);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(250,243,227,0.7);
}

/* ===== DECORATIVE BAHAY KUBO ELEMENTS ===== */
.bamboo-divider {
  height: 12px;
  background:
    linear-gradient(90deg,
      var(--bamboo) 0%, var(--bamboo) 30%,
      var(--bamboo-dark) 30%, var(--bamboo-dark) 32%,
      var(--bamboo) 32%, var(--bamboo) 65%,
      var(--bamboo-dark) 65%, var(--bamboo-dark) 67%,
      var(--bamboo) 67%
    );
  border-top: 2px solid var(--bamboo-dark);
  border-bottom: 2px solid var(--bamboo-dark);
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--wood-dark);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 2px solid var(--flag-yellow);
  }

  .nav-links.open { display: flex; }

  .hero { padding: 3rem 1.5rem 4rem; }
  .hero img.hero-logo { width: 140px; height: 140px; }

  section { padding: 3rem 1.2rem; }

  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }

  .order-form { padding: 1.5rem; }
  .order-items-table { font-size: 0.9rem; }

  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .menu-item-img { height: 180px; }
  .menu-grid { grid-template-columns: 1fr; }
}

/* ===== PAYMENT OPTIONS (order page) ===== */
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.payment-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.6rem;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-align: center;
}

.payment-option:hover .payment-label {
  border-color: var(--wood-light);
  background: var(--cream-light);
}

.payment-option input[type="radio"]:checked + .payment-label {
  border-color: var(--flag-red);
  background: #fff7f7;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.15);
}

.payment-option input[type="radio"]:focus-visible + .payment-label {
  outline: 3px solid rgba(252, 209, 22, 0.6);
  outline-offset: 2px;
}

.payment-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.payment-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wood-dark);
  font-size: 1rem;
}

@media (max-width: 480px) {
  .payment-options { grid-template-columns: 1fr; }
}

/* Error state: applied to fieldset when submitted with no selection */
.payment-options.error .payment-label {
  border-color: var(--flag-red);
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.12);
}

.payment-options.shake {
  animation: payment-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes payment-shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); }
  30%      { transform: translateX(8px); }
  45%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
  75%      { transform: translateX(-3px); }
  90%      { transform: translateX(3px); }
}

.payment-error-msg {
  display: none;
  color: var(--flag-red);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.9rem;
  background: #fde2e2;
  border-radius: 8px;
  border-left: 4px solid var(--flag-red);
}

.payment-error-msg.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  .payment-options.shake { animation: none; }
}

/* ===== FAQ PAGE ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(92, 58, 30, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--flag-red), var(--flag-yellow), var(--flag-blue));
}

.faq-item:hover {
  box-shadow: 0 6px 18px rgba(92, 58, 30, 0.12);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.35;
  margin-bottom: 0;
}

.faq-question .q-mark {
  color: var(--flag-red);
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: -0.1rem;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--wood);
  line-height: 1.6;
  /* hidden state */
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  overflow: hidden;
  transition:
    opacity 0.6s ease 0.15s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s,
    max-height 0.7s ease,
    margin-top 0.4s ease;
}

.faq-answer .a-mark {
  color: var(--bamboo-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Revealed state — IntersectionObserver adds .visible */
.faq-item.visible .faq-answer {
  opacity: 1;
  transform: translateY(0);
  max-height: 600px;
  margin-top: 0.9rem;
}

/* If visitor prefers reduced motion or has JS disabled, show answers immediately */
@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    opacity: 1;
    transform: none;
    max-height: 600px;
    margin-top: 0.9rem;
    transition: none;
  }
}

.no-js .faq-answer {
  opacity: 1;
  transform: none;
  max-height: 600px;
  margin-top: 0.9rem;
}

/* FAQ intro / footer */
.faq-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--wood);
}

.faq-still-have-questions {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream-light);
  border-radius: var(--radius);
  border: 2px dashed var(--wood-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
