:root {
  --cream: #f5f1ea;
  --cream-deep: #ece5d8;
  --stone: #b8a990;
  --brown: #7a6a55;
  --charcoal: #2b2825;
  --charcoal-soft: #4a453f;
  --gold: #a98f5e;
  --white: #ffffff;
  --shadow: 0 18px 50px -20px rgba(43, 40, 37, 0.45);
  --radius: 14px;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", "Segoe UI", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 106, 85, 0.14);
}

.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 1.32rem; color: var(--charcoal); }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.28em; color: var(--gold); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--charcoal-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
}
.nav-cta:hover { background: var(--charcoal); color: var(--cream) !important; }

.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav-wa:hover { background: #1eb457; color: #fff; transform: scale(1.06); }

.fab-whatsapp {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fab-whatsapp svg { width: 24px; height: 24px; flex-shrink: 0; }
.fab-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); color: #fff; }
.fab-label { line-height: 1; }

@media (max-width: 480px) {
  .fab-label { display: none; }
  .fab-whatsapp { padding: 14px; border-radius: 50%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* The logo image embeds the wordmark; blur it into a pure stone texture
     so the crisp typeset hero text below stands on its own. */
  transform: scale(1.25);
  filter: blur(18px) brightness(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 48%, rgba(245, 241, 234, 0.82) 0%, rgba(245, 241, 234, 0.55) 55%, rgba(245, 241, 234, 0.35) 100%), linear-gradient(180deg, rgba(245, 241, 234, 0.5) 0%, rgba(245, 241, 234, 0.3) 45%, rgba(236, 229, 216, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 24px 80px;
}
.hero-eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brown);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  color: var(--gold);
  letter-spacing: 0.28em;
  margin: 8px 0 26px;
}
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--charcoal-soft);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--charcoal); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: var(--white); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb457; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--brown);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--brown);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- About ---------- */
.about { padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.about-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  line-height: 1.9;
  color: var(--charcoal-soft);
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Features ---------- */
.features {
  padding: clamp(70px, 10vw, 120px) 0;
  background: var(--cream-deep);
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.feature-card {
  background: var(--white);
  border: 1px solid rgba(122, 106, 85, 0.12);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 10px 30px -22px rgba(43, 40, 37, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-wide { grid-column: span 4; }
.feature-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--charcoal); }
.feature-card p { margin: 0; color: var(--charcoal-soft); font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.gallery-note { color: var(--brown); margin: -14px 0 24px; font-size: 0.95rem; }

/* Category tabs */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 38px;
}
.gallery-tab {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  background: transparent;
  border: 1px solid rgba(122, 106, 85, 0.28);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-tab:hover { border-color: var(--gold); color: var(--charcoal); }
.gallery-tab.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}
.tab-count {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(122, 106, 85, 0.16);
  color: var(--brown);
}
.gallery-tab.active .tab-count { background: rgba(245, 241, 234, 0.2); color: var(--cream); }
.gallery-empty { color: var(--brown); margin: 40px 0 0; font-size: 1.05rem; }
.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-deep);
  box-shadow: 0 8px 24px -18px rgba(43, 40, 37, 0.5);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 40, 37, 0);
  transition: background 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(43, 40, 37, 0.12); }
.gallery-item-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(43, 40, 37, 0.75));
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
  pointer-events: none;
}
.gallery-item-cap .g-title { display: block; font-weight: 600; }
.gallery-item-cap .g-price { display: block; color: var(--gold-light, #d4b86a); font-weight: 700; }
.gallery-quote-link {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.95;
}
.gallery-item:hover .gallery-quote-link { opacity: 1; }
.lb-meta {
  margin-top: 12px;
  color: var(--cream);
  text-align: center;
  line-height: 1.5;
}
.lb-meta .lb-title { display: block; font-size: 1.15rem; font-weight: 700; }
.lb-meta .lb-price { display: block; font-size: 1.25rem; color: var(--gold-light, #d4b86a); font-weight: 700; }
.lb-meta .lb-desc { display: block; font-size: 0.95rem; opacity: 0.9; margin-top: 4px; }
.lb-price-note {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.75);
  margin-top: 4px;
}
.lb-actions {
  margin-top: 16px;
  text-align: center;
}
.lb-interest {
  margin: 0 0 12px;
  color: rgba(245, 241, 234, 0.9);
  font-size: 1rem;
  font-weight: 500;
}
.lb-action-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-sm-lb {
  padding: 10px 18px;
  font-size: 0.92rem;
}

/* ---------- Catalogs / Downloads ---------- */
.catalogs { padding: clamp(70px, 10vw, 120px) 0; background: var(--cream-deep); text-align: center; }
.catalogs-note { color: var(--brown); margin: -14px auto 42px; font-size: 1rem; max-width: 620px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.catalog-card {
  background: var(--white);
  border: 1px solid rgba(122, 106, 85, 0.14);
  border-radius: var(--radius);
  padding: 36px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px -22px rgba(43, 40, 37, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.catalog-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.catalog-name { font-size: 1.35rem; color: var(--charcoal); margin-bottom: 10px; }
.catalog-desc { color: var(--charcoal-soft); font-size: 0.95rem; margin: 0 0 14px; flex: 1; }
.catalog-meta {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brown);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.catalog-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
}
.catalog-btn .dl-icon { font-weight: 700; }
.catalog-contact-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-contact-link:hover { color: var(--gold); }

/* ---------- Badges ---------- */
.badges { padding: 40px 0; background: var(--charcoal); color: var(--cream); }
.badges-row { display: flex; gap: clamp(24px, 8vw, 90px); justify-content: center; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.25rem; }
.badge-icon { font-size: 1.3rem; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(70px, 10vw, 120px) 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--cream-deep), var(--cream));
}
.contact-inner { max-width: 640px; }
.contact-sub { color: var(--charcoal-soft); font-size: 1.1rem; margin: -14px 0 28px; }

/* Quote form */
.quote-form {
  position: relative;
  text-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.quote-field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.quote-field .optional { font-weight: 400; color: var(--charcoal-soft); font-size: 0.85rem; }
.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(122, 106, 85, 0.25);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 143, 94, 0.15);
}
.quote-field-wide { grid-column: 1 / -1; }
.quote-submit { width: 100%; font-size: 1.05rem; padding: 14px 24px; }
.quote-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.quote-feedback {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
}
.quote-feedback.ok { background: #def7ec; color: #276749; }
.quote-feedback.err { background: #fde8e8; color: #9b2c2c; }
.quote-success-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(122, 106, 85, 0.15);
  text-align: center;
}
.quote-success-note { margin: 0 0 12px; font-size: 0.95rem; color: var(--charcoal-soft); }
.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 28px;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
}
.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(122, 106, 85, 0.2);
}

.phone {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.phone:hover { color: var(--gold); }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: var(--cream); }
.footer-meta { margin: 0; color: rgba(245, 241, 234, 0.7); font-size: 0.9rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 22, 20, 0.94);
  padding: 40px;
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}
.lb-counter { color: rgba(245, 241, 234, 0.75); margin-top: 14px; font-size: 0.95rem; letter-spacing: 0.1em; }
.lb-close {
  position: absolute;
  top: 22px;
  left: 26px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lb-nav {
  background: rgba(245, 241, 234, 0.1);
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: var(--cream);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(245, 241, 234, 0.24); }
.lb-prev { margin-left: 18px; }
.lb-next { margin-right: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .gallery-grid { column-count: 3; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-nav { gap: 10px; }
  .site-nav a:not(.nav-cta):not(.nav-wa) { display: none; }
  .gallery-grid { column-count: 2; }
  .quote-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}
