:root {
  --green-deep: #1f3d2e;
  --green-mid: #2f5640;
  --sand: #e7ddc9;
  --sand-light: #f3eee2;
  --cream: #f8f5ec;
  --graphite: #232323;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--green-deep);
}

p { line-height: 1.7; color: #4a4a44; }

/* cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,86,64,0.10), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(248, 245, 236, 0.88);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark-wrap { position: relative; display: inline-block; height: 38px; width: 38px; }
.brand-mark {
  position: absolute;
  top: 0; left: 0;
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.brand-mark-dark { opacity: 0; }
.brand-mark-white { opacity: 1; }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.08); }
.site-header.scrolled .brand-mark-white { opacity: 0; }
.site-header.scrolled .brand-mark-dark { opacity: 1; }
.brand-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color 0.4s var(--ease);
}
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.4s var(--ease);
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a.nav-cta {
  background: var(--white);
  color: var(--green-deep) !important;
  padding: 12px 30px;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s var(--ease), color 0.3s;
}
.nav-cta:hover { background: var(--sand); transform: translateY(-2px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: background 0.4s var(--ease); }

.site-header.scrolled .brand-name,
.site-header.scrolled .main-nav a:not(.nav-cta) {
  color: var(--green-deep);
}
.site-header.scrolled .nav-cta {
  background: var(--green-deep);
  color: var(--cream) !important;
}
.site-header.scrolled .nav-cta:hover { background: var(--green-mid); }
.site-header.scrolled .nav-toggle span { background: var(--green-deep); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroZoom 7s linear forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.16); }
}
@media (max-width: 760px) {
  .hero-slide { transform: scale(1.02); }
  .hero-slide.is-active { animation: heroZoomMobile 7s linear forwards; }
  @keyframes heroZoomMobile {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,33,24,0.55) 0%, rgba(20,33,24,0.35) 45%, rgba(20,33,24,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  color: var(--cream);
}
.hero-content .eyebrow { color: var(--sand); justify-content: center; }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.hero-sub {
  color: #e7e3d6;
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn-primary {
  background: var(--sand);
  color: var(--green-deep);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--sand);
}
.scroll-cue span {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--sand));
  animation: cueMove 2s ease-in-out infinite;
}
.scroll-cue small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes cueMove {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* SECTION generic */
.section { padding: 120px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head.light .eyebrow { color: var(--sand); }
.section-head.light h2 { color: var(--cream); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 22px; }
.about-text p { margin-bottom: 16px; max-width: 480px; }
.about-stats { display: flex; gap: 36px; margin-top: 32px; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--green-deep); }
.stat span { font-size: 0.8rem; color: #6b6b62; }
.about-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(31,61,46,0.35);
}
.about-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about-media:hover img { transform: scale(1.06); }

/* PRODUCTS */
.products { background: var(--sand-light); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -16px rgba(31,61,46,0.25);
}
.product-media { height: 220px; overflow: hidden; }
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.1); }
.product-info { padding: 22px 22px 26px; }
.product-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product-desc { font-size: 0.86rem; margin-bottom: 16px; min-height: 60px; }
.product-specs { list-style: none; border-top: 1px solid #ece6d8; padding-top: 12px; }
.product-specs li {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; padding: 4px 0; color: #6b6b62;
}
.product-specs li strong { color: var(--graphite); font-weight: 600; }

/* DIFF */
.diff { background: var(--green-deep); color: var(--cream); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 26px;
  transition: background 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.diff-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(231,221,201,0.4);
  transform: translateY(-6px);
}
.diff-icon { font-size: 1.6rem; color: var(--sand); margin-bottom: 16px; }
.diff-card h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 10px; }
.diff-card p { color: #cfd6c9; font-size: 0.88rem; }

/* PUBLICOS */
.publicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.publico-card {
  background: var(--white);
  border-radius: 16px;
  padding: 34px 28px;
  border-left: 3px solid var(--green-mid);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.publico-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(31,61,46,0.2); }
.publico-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.publico-card p { font-size: 0.92rem; }

/* GALLERY */
.gallery { padding: 0; background: var(--cream); }
.gallery-carousel { overflow: hidden; width: 100%; height: 480px; }
.gallery-track {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.gallery-item { flex: none; overflow: hidden; position: relative; width: 33.33vw; height: 100%; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 760px) {
  .gallery-carousel { height: 280px; }
  .gallery-item { width: 80vw; }
}

/* CONTACT */
.contact { background: var(--sand-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}
.contact-text h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.contact-text p { max-width: 420px; margin-bottom: 30px; }
.contact-info { display: flex; align-items: center; gap: 14px; }
.contact-info a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--white);
  border: 1px solid #ddd6c4;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.contact-info a svg { width: 20px; height: 20px; }
.contact-info a:hover {
  background: var(--green-deep);
  color: var(--cream);
  border-color: var(--green-deep);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px -24px rgba(31,61,46,0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--green-deep);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd6c4;
  background: var(--sand-light);
  color: var(--graphite);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--green-mid);
  background: var(--white);
}
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--green-mid); min-height: 1em; }

/* FOOTER */
.site-footer { background: var(--green-deep); padding: 48px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 36px; width: auto; object-fit: contain; opacity: 0.92; }
.footer-brand span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.site-footer p { color: #b9c3b6; font-size: 0.82rem; }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .publicos-grid { grid-template-columns: 1fr; }
  .gallery-track { grid-template-columns: 1fr; height: auto; }
  .gallery-item { height: 280px; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--cream); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 40px; gap: 28px; transform: translateX(100%); transition: transform 0.5s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a:not(.nav-cta) { color: var(--green-deep); }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .cursor-glow { display: none; }
}
