/* ---- Base ---- */
:root {
  --bg: #f8f6f2;
  --bg-soft: #ede9e1;
  --bg-light: #f6f4ef;
  --fg: #1c1a17;
  --fg-muted: #7a7570;
  --fg-dark: #1a1a1a;
  --accent: #b8924a;
  --max: 1400px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .65; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 400;
}

.lede { font-size: 1.1rem; color: var(--fg-muted); max-width: 38rem; margin: 1.5rem 0; }

.muted { color: var(--fg-muted); font-size: .85rem; letter-spacing: .05em; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: all .3s;
  margin-top: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.btn-ghost { border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg-light); }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad);
  transition: background .3s, padding .3s;
}
.nav.scrolled { background: rgba(248,246,242,.95); backdrop-filter: blur(12px); padding: 1rem var(--pad); box-shadow: 0 1px 0 rgba(0,0,0,.08); }

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .15em;
  font-weight: 400;
}
.logo span { color: var(--accent); }
.logo-img { height: 62px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter .3s; }
.nav.scrolled .logo-img { filter: brightness(0); }
.footer-logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: .5rem; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Nav starts white over dark hero, turns dark when scrolled */
.nav { color: #fff; }
.nav .logo span { color: var(--accent); }
.nav-toggle span { background: #fff; }
.nav.scrolled { color: var(--fg); }
.nav.scrolled .nav-toggle span { background: var(--fg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 1px; background: var(--fg); transition: .3s; }

/* Hero text stays white over dark overlay */
.hero-content,
.hero-content h1 { color: #fff; }
.hero-content .lede { color: rgba(255,255,255,.75); }
.hero-content .eyebrow { color: var(--accent); }
.hero .btn { border-color: var(--accent); color: var(--accent); }
.hero .btn:hover { background: var(--accent); color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--pad);
  overflow: hidden;
  background: #171512;
}
.hero-slides { position: absolute; right: 0; top: 0; bottom: 0; width: 68%; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 10s ease-in-out forwards; }

.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right,
    #171512 28%,
    rgba(23,21,18,0.88) 42%,
    rgba(23,21,18,0.45) 58%,
    rgba(23,21,18,0.05) 78%
  );
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-stats {
  position: absolute;
  bottom: 4rem;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 3;
  text-align: right;
}
.hero-stat { color: #fff; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .3rem;
}
.hero-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 40%, rgba(14,14,15,.9) 100%),
    linear-gradient(135deg, #2a2522 0%, #0e0e0f 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 34rem; }
.hero-content h1 { margin-bottom: 1.5rem; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ---- Sections ---- */
.section {
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-dark {
  background: var(--bg-soft);
  max-width: none;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { max-width: 24rem; margin: 0 auto; }

/* ---- Filter ---- */
.filter-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: .5rem 0;
  border-bottom: 1px solid transparent;
  transition: .3s;
}
.filter:hover { color: var(--fg); }
.filter.active { color: var(--accent); border-color: var(--accent); }

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #e0dbd2;
  border-radius: 18px;
  transition: transform .35s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Landscape */
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* Portrait */
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

/* Standard */
.gallery-item:not(.wide):not(.tall) {
  aspect-ratio: 3 / 4;
}

.gallery-item.hidden {
  display: none;
}

/* Placeholder */
.gallery-item.placeholder {
  background: linear-gradient(135deg, #e0dbd2, #d4cfc6);
}

.gallery-item.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(184,146,74,.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(184,146,74,.04), transparent 50%);
}

/* Mobile */
@media (max-width: 768px) {

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

}


/* ---- Video ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
    aspect-ratio: 16/9;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    transition: transform .3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.65),
        rgba(0,0,0,.05)
    );
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    z-index: 2;
    backdrop-filter: blur(8px);
}
/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-img {
  aspect-ratio: 4 / 5;
  background: #e0dbd2;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 1rem; color: var(--fg-muted); }
.about-text em { color: var(--fg); font-style: italic; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: none;
  border: none;
}
.service {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow .3s, transform .3s;
}
.service:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.service-icon { color: var(--accent); margin-bottom: 1.25rem; display: flex; justify-content: center; }
.service h3 { font-size: 1.3rem; margin-bottom: .75rem; color: var(--fg); }
.service-divider { width: 2rem; height: 1px; background: var(--accent); margin: .75rem auto 1.25rem; }
.service p { color: var(--fg-muted); font-size: .9rem; line-height: 1.7; }

/* ---- Contact ---- */
.contact-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-form label { display: block; }
.contact-form span {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: .5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding: .75rem 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: center; }
.form-note { text-align: center; color: var(--accent); font-size: .85rem; min-height: 1.2em; }

.whatsapp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.1);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2rem;
  border: 1px solid #25d366;
  color: #25d366;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: all .3s;
  cursor: pointer;
  opacity: 1;
}
.btn-whatsapp:hover { background: #25d366; color: #fff; opacity: 1; }

/* ---- Footer ---- */
.footer {
  background: #1c1a17;
  color: #d4cfc8;
  padding: 4rem var(--pad) 2rem;
}
.footer .muted { color: #7a7570; }
.footer a { color: #d4cfc8; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-cols .muted { margin-bottom: .5rem; }
.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  text-align: center;
  font-size: .8rem;
  color: var(--fg-muted);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lb-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 0; right: 0;
  text-align: center;
  font-size: .85rem;
  color: var(--fg-muted);
  letter-spacing: .1em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--fg);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.lb-close { top: 1rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 768px) {

    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1.5rem;
    }

    .hero-slides {
        width: 100%;
    }

    .hero-gradient {
        background: linear-gradient(
          to bottom,
          rgba(23,21,18,0.55) 0%,
          rgba(23,21,18,0.15) 40%,
          rgba(23,21,18,0.85) 75%,
          #171512 100%
        );
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-stats {
        display: none;
    }

    .video-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .video-card {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-soft);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right .4s ease;
        color: var(--fg);
    }

    .nav-links.open {
        right: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form .row {
        grid-template-columns: 1fr;
    }
}




/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;

    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

.video-modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 16px;
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}
