:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-ink: #23282f;
  --color-ink-soft: #565f6b;
  --color-navy: #1f2937;
  --color-navy-soft: #2c3644;
  --color-accent: #b3874a;
  --color-accent-soft: #d9b98a;
  --color-border: #e6ded2;
  --shadow-card: 0 12px 30px -18px rgba(31, 41, 55, 0.35);
  --shadow-header: 0 8px 24px -16px rgba(0, 0, 0, 0.4);
  --radius: 6px;
  --max-width: 1180px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.9em;
}

.btn {
  display: inline-block;
  padding: 0.9em 1.9em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn_accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(179, 135, 74, 0.65);
}
.btn_accent:hover {
  background: #9c7440;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(179, 135, 74, 0.75);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 41, 55, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-solid {
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding 0.3s ease;
}
.site-header.is-solid .site-header__inner {
  padding: 0.7rem 1.5rem;
}

.site-header__logo img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}
.site-header.is-solid .site-header__logo img {
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}
.nav__link:hover,
.nav__link_active {
  opacity: 1;
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-navy);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav.is-open {
    max-height: 480px;
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav__list { flex-direction: column; gap: 1rem; width: 100%; }
  .site-nav__cta { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 7.5rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
  background: var(--color-navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(20, 26, 36, 0.78) 0%, rgba(24, 31, 42, 0.88) 55%, rgba(31, 41, 55, 0.96) 100%), url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center 65%;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero__eyebrow {
  color: var(--color-accent-soft);
}
.hero__title {
  color: #fff;
  margin-bottom: 0.25em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero__tagline {
  color: var(--color-accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.3em;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2.2em;
}

/* ---------- Services (home) ---------- */
.services {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  text-align: center;
}
.services__intro {
  max-width: 620px;
  margin: 0 auto 3rem;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  text-align: left;
}
.service-card {
  position: relative;
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px -18px rgba(31, 41, 55, 0.5);
  border-color: var(--color-accent-soft);
}
.service-card__title {
  color: var(--color-navy);
  margin-bottom: 0.5em;
  font-size: 1.4rem;
}
.service-card__link {
  display: inline-block;
  margin-top: 1em;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}
.service-card__link::after {
  content: "\2192";
  margin-left: 0.4em;
  display: inline-block;
  transition: transform 0.25s ease;
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}
.breadcrumb a {
  color: var(--color-ink-soft);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}
.page-header__lead {
  max-width: 720px;
  font-size: 1.08rem;
}

/* ---------- Product sections & galleries ---------- */
.product-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  border-top: 1px solid var(--color-border);
}
.product-section h2 {
  color: var(--color-navy);
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.product__title {
  color: var(--color-ink);
  margin-bottom: 0.75em;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.product__title::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-border);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover img {
  transform: scale(1.08);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 24, 0.92);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav_prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav_next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox__close { width: 38px; height: 38px; top: 1rem; right: 1rem; }
}

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.contact__details {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}
.contact__details h3 {
  color: #fff;
}
.contact__details p {
  color: rgba(255, 255, 255, 0.75);
}
.contact__details p a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}
.contact__details p a:hover {
  color: var(--color-accent-soft);
}
.contact__map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}
.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.5rem;
  padding: 0.75em 1.3em;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.contact__whatsapp:hover { background: rgba(255, 255, 255, 0.16); }
.contact__whatsapp svg { width: 20px; height: 20px; fill: var(--color-accent-soft); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 0.6rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7em 0.85em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(179, 135, 74, 0.18);
}
.contact-form button {
  margin-top: 1rem;
  align-self: flex-start;
}
.contact-form__status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}
.contact-form__status[data-state="ok"] { color: #2f7d4f; }
.contact-form__status[data-state="error"] { color: #b3352f; }

@media (max-width: 700px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-soft) 50%, var(--color-accent) 100%);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__col img { margin-bottom: 1rem; opacity: 0.9; }
.site-footer__heading {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1em;
}
.site-footer__col p { color: rgba(255, 255, 255, 0.72); }
.site-footer__col a,
.site-footer__legal a {
  color: var(--color-accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__col a:hover,
.site-footer__legal a:hover { color: #fff; }
.site-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-soft);
}
.site-footer__whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__legal p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 980px;
}

@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
  z-index: 90;
}
.back-to-top:hover { background: #9c7440; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 90;
}
.whatsapp-float svg { width: 26px; height: 26px; fill: var(--color-accent-soft); }
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: var(--color-navy-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__bg { animation: none; }
}
