/* Brand overrides on Bootstrap 5.3 RTL — not a second design system */
:root {
  --bs-body-font-family: "Assistant", "Segoe UI", sans-serif;
  --bs-body-color: #1c1916;
  --bs-body-bg: #f7f4ef;
  --bs-primary: #6b4e3d;
  --bs-primary-rgb: 107, 78, 61;
  --bs-link-color: #6b4e3d;
  --bs-link-hover-color: #4e3a2e;
  --bs-border-radius: 6px;
  --linen: #f7f4ef;
  --linen-deep: #e8e2d6;
  --ink: #1c1916;
  --ink-soft: #3a342e;
  --bronze: #6b4e3d;
  --wa: #25d366;
  --wa-dark: #1da851;
  --serif: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", sans-serif;
  --header-h: 72px;
  /* Physical-left gap for labeled pill FAB (~104–116px wide), not the old 56 circle */
  --fab-clear: 124px;
}

html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
body {
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--sans);
  background:
    repeating-linear-gradient(90deg, var(--linen) 0, var(--linen) 48px, #f3efe8 48px, #f3efe8 96px);
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
body.nav-open { overflow: hidden; }
h1, h2, h3, .brand-name, .section-title, .hero-title, .trust-label {
  font-family: var(--serif);
}
img { max-width: 100%; height: auto; }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section-eyebrow {
  font-weight: 600; letter-spacing: 0.18em; font-size: 0.78rem;
  color: var(--bronze); margin: 0 0 10px;
}
.section-title { font-size: clamp(1.85rem, 4vw, 2.75rem); color: var(--ink); margin-bottom: 1rem; }

/* ---------- Navbar (Bootstrap) ---------- */
.navbar-brand-site {
  display: flex; flex-direction: column; line-height: 1.05;
  color: var(--ink) !important; text-decoration: none;
}
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand-tag {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--bronze); text-transform: none;
}
.navbar.bvh-nav {
  min-height: var(--header-h);
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107, 78, 61, 0.12);
  z-index: 1030;
}
.navbar.bvh-nav .nav-link {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.65rem 0.85rem !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.navbar.bvh-nav .nav-link:hover,
.navbar.bvh-nav .nav-link:focus { color: var(--bronze); }
.navbar.bvh-nav .btn-wa-nav {
  background: var(--wa); color: #fff !important; border: 0;
  font-weight: 600; min-height: 44px;
}
.navbar.bvh-nav .btn-wa-nav:hover { background: var(--wa-dark); color: #fff !important; }
.navbar-toggler {
  border-color: rgba(107, 78, 61, 0.35);
  min-width: 44px; min-height: 44px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(107, 78, 61, 0.2); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(28, 25, 22, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Legacy class aliases used by landings/blog until fully converted */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h);
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(247, 244, 239, 0.96);
  border-bottom: 1px solid rgba(107, 78, 61, 0.12);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; color: inherit; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav a { font-weight: 600; color: var(--ink-soft); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-cta, .nav-cta-wa, .nav-wa {
  background: var(--wa) !important; color: #fff !important; border-radius: var(--bs-border-radius);
  padding: 10px 14px !important;
}
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.btn-primary {
  --bs-btn-bg: var(--bronze);
  --bs-btn-border-color: var(--bronze);
  --bs-btn-hover-bg: #563e31;
  --bs-btn-hover-border-color: #563e31;
  --bs-btn-active-bg: #4a352a;
  --bs-btn-active-border-color: #4a352a;
  --bs-btn-disabled-bg: var(--bronze);
  --bs-btn-disabled-border-color: var(--bronze);
}
.btn-whatsapp, .btn-wa {
  background: var(--wa) !important;
  border-color: var(--wa) !important;
  color: #fff !important;
}
.btn-whatsapp:hover, .btn-wa:hover { background: var(--wa-dark) !important; border-color: var(--wa-dark) !important; color: #fff !important; }
.btn-whatsapp-lg { width: 100%; max-width: 420px; }
.btn-ghost, .btn-outline-light, .landing-ghost-dark {
  background: rgba(28, 25, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
}
.btn-ghost:hover { background: rgba(28, 25, 22, 0.4); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 28%;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,12,10,0.25) 0%, rgba(14,12,10,0.55) 45%, rgba(14,12,10,0.9) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1120px; margin: 0 auto;
  padding: calc(var(--header-h) + 24px) clamp(16px, 4vw, 48px) 48px;
  text-align: start;
}
.hero-title { font-size: clamp(2.6rem, 10vw, 4.4rem); font-weight: 900; margin-bottom: 0.25rem; }
.hero-subtitle { font-family: var(--sans); letter-spacing: 0.12em; opacity: 0.9; margin-bottom: 0.75rem; }
.hero-lead { max-width: 28rem; opacity: 0.95; margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-cue { display: none; }

@media (max-width: 720px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-content { padding-bottom: 120px; }
}

/* ---------- Gallery ---------- */
.gallery, .about, .trust, .catalogs, .contact { padding: 64px 0; }
#gallery, #about, #catalog, #contact, #trust, #quote {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.gallery-note, .catalogs-note, .contact-sub { color: var(--ink-soft); margin-bottom: 1rem; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gallery-tab {
  border: 1px solid rgba(107, 78, 61, 0.25);
  background: transparent; border-radius: 999px;
  padding: 10px 14px; min-height: 44px; font-weight: 600; color: var(--ink-soft);
}
.gallery-tab.active, .gallery-tab:hover { border-color: var(--bronze); color: var(--ink); background: rgba(107,78,61,0.08); }
.tab-count { display: none; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}
.gallery-item {
  position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer;
  background: var(--linen-deep); opacity: 0; animation: fadeIn 0.35s ease forwards;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item-cap {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(28,25,22,0.78));
  color: #fff; font-size: 0.85rem;
}
.gallery-end-cta {
  margin-top: 20px; padding: 18px; text-align: center;
  background: rgba(107, 78, 61, 0.06); border: 1px solid rgba(107, 78, 61, 0.14);
}
.gallery-empty { text-align: center; color: var(--ink-soft); padding: 40px 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- About / trust ---------- */
.about { background: linear-gradient(180deg, transparent, rgba(232,226,214,0.55), transparent); }
.about-text { color: var(--ink-soft); max-width: 36rem; }
.craft-line {
  margin: 0; padding-top: 16px; border-top: 1px solid rgba(138,115,85,0.35);
  color: var(--bronze); font-size: 0.98rem;
}
.about-panel {
  background-size: cover; background-position: center;
  min-height: 220px; border-radius: 4px; aspect-ratio: 4/5;
}
.about-panel-a, .about-panel-b { margin: 0; }
.trust-item {
  padding: 18px 0; border-top: 1px solid rgba(138,115,85,0.35);
  border-bottom: 1px solid rgba(138,115,85,0.35);
  display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none;
}
.trust-meta { color: var(--ink-soft); font-size: 0.92rem; }
.trust-photo { margin: 0; overflow: hidden; background: var(--linen-deep); }
.trust-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.occasions-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
.occasions-nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 12px; color: var(--bronze); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Catalog / contact ---------- */
.catalog-primary { margin-bottom: 16px; }
.catalog-name { font-family: var(--serif); font-size: 1.35rem; }
.catalog-desc, .catalog-meta { color: var(--ink-soft); }
.catalog-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.catalog-more summary { cursor: pointer; color: var(--bronze); font-weight: 600; min-height: 44px; padding: 10px 0; }
.fold-wa { padding: 18px 0; text-align: center; }
.fold-wa-soft { background: rgba(37, 211, 102, 0.08); }
.contact-inner { text-align: center; }
.phone { display: inline-flex; min-height: 44px; align-items: center; font-size: 1.2rem; margin: 12px 0; direction: ltr; }
.contact-divider { margin: 24px 0 16px; color: var(--ink-soft); }
.contact-divider span {
  display: inline-block; padding: 0 12px; position: relative;
}
.quote-form { text-align: start; max-width: 640px; margin: 0 auto; }
.quote-form .form-label, .quote-field label { font-weight: 600; color: var(--ink-soft); }
.quote-form .form-control, .quote-form .form-select,
.quote-field input, .quote-field select, .quote-field textarea {
  border-color: rgba(107, 78, 61, 0.25);
  background: rgba(255,255,255,0.72);
  min-height: 48px; font-size: 16px;
}
.quote-field { margin-bottom: 12px; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .quote-form-grid { grid-template-columns: 1fr; } }
.quote-more { margin-top: 4px; }
.quote-more summary {
  cursor: pointer; color: var(--bronze); font-weight: 600;
  min-height: 44px; display: flex; align-items: center; margin-bottom: 8px;
}
.quote-more-grid { margin-top: 8px; }
.quote-submit { width: 100%; margin-top: 8px; }
.privacy-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }
.quote-feedback { margin-top: 14px; padding: 12px; border-radius: var(--bs-border-radius); }
.quote-feedback.ok { background: rgba(37,211,102,0.12); color: #146c38; }
.quote-feedback.err { background: rgba(160,40,40,0.1); color: #8a1f1f; }
.hp-field {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; border: 0 !important;
}

/* FAB clearance for full-width CTAs (physical left) */
@media (max-width: 720px) {
  .fab-clear,
  .contact .btn-whatsapp-lg,
  .landing-links .btn,
  .landing-links-secondary .btn,
  .quote-submit {
    width: 100%;
    max-width: calc(100% - var(--fab-clear));
    margin-inline-end: 0;
    margin-left: var(--fab-clear);
    margin-right: 0;
    box-sizing: border-box;
  }
  .catalog-primary-actions { flex-direction: column; align-items: stretch; }
  .catalog-primary-actions .btn { width: 100%; }
}

/* ---------- FAB WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  z-index: 1040;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  min-height: 52px;
  padding: 0 16px 0 14px;
  background: var(--wa) !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.22);
  font-weight: 600;
  text-decoration: none !important;
  overflow: hidden;
  touch-action: manipulation;
}
.fab-whatsapp svg { width: 24px; height: 24px; flex-shrink: 0; }
.fab-whatsapp:hover { background: var(--wa-dark) !important; color: #fff !important; }
body.nav-open .fab-whatsapp,
.navbar-collapse.show ~ * .fab-whatsapp { /* fallback */ }
body.nav-open .fab-whatsapp { display: none !important; }

/* ≤480: labeled pill (not 56 circle + spill). Icon-only option via .fab-icon-only */
@media (max-width: 480px) {
  .fab-whatsapp {
    height: 52px;
    min-height: 52px;
    width: auto;
    max-width: calc(100vw - 28px);
    padding: 0 14px 0 12px;
    border-radius: 999px;
  }
  .fab-whatsapp .fab-label { display: inline; font-size: 0.85rem; white-space: nowrap; }
  .fab-whatsapp.fab-icon-only {
    width: 56px; height: 56px; min-width: 56px; padding: 0; border-radius: 50%;
  }
  .fab-whatsapp.fab-icon-only .fab-label { display: none; }
}

/* ---------- Footer / lightbox ---------- */
.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid rgba(107, 78, 61, 0.14);
  background: rgba(232, 226, 214, 0.45);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-legal { color: var(--ink-soft); font-size: 0.92rem; }
.footer-legal a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.footer-occasions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.footer-occasions a { min-height: 44px; display: inline-flex; align-items: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(14, 12, 10, 0.92); padding: 16px;
}
.lightbox.is-open { display: flex; }
.lb-figure { margin: 0; max-width: min(920px, 100%); text-align: center; }
.lb-img { max-height: 70vh; max-width: 100%; object-fit: contain; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: rgba(255,255,255,0.12); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lb-close { top: 12px; left: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-meta, .lb-counter { color: #fff; margin-top: 8px; }
.lb-actions { margin-top: 12px; }
.lb-action-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body.lightbox-open .fab-whatsapp { display: none !important; }

.pdf-followup {
  position: fixed; z-index: 1050; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: #fff; border: 1px solid rgba(107,78,61,0.2); border-radius: 8px;
  padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-width: calc(100vw - 24px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.pdf-followup.is-visible { opacity: 1; pointer-events: auto; }
