/* ============================================
   Quinta da Vitória — tokens
   ============================================ */
:root {
  --ivy: #24342A;
  --ivy-deep: #17211B;
  --stone: #EFE9DD;
  --stone-warm: #E4DCC9;
  --paper: #FAF8F2;
  --brass: #A9824F;
  --brass-light: #C9A876;
  --terracotta: #A85338;
  --ink: #1C2119;
  --ink-soft: #4A5248;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ivy-deep);
  line-height: 1.12;
  margin: 0;
  font-weight: 500;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.3rem; font-weight: 500; }

p { margin: 0; }

a { color: inherit; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85em 1.7em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--brass); color: var(--ivy-deep); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-full { width: 100%; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(23,33,27,0.75), rgba(23,33,27,0));
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--brass-light); }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.5em 1.1em;
  border-radius: 2px;
}
.nav-cta:hover { background: rgba(255,255,255,0.12); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-top: 0.75rem; text-align: center; }
}

/* ============================================
   Hero — contained frame, not stretched full-bleed,
   so a modest source photo still reads crisp.
   ============================================ */
.hero {
  background: var(--ivy-deep);
  padding: 9.5rem 1.5rem 5rem;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--brass-light);
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  color: #fff;
  max-width: 11ch;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 42ch;
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.82);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.1rem;
  flex-wrap: wrap;
}
.hero-frame {
  margin: 0;
  max-width: 440px;
  width: 100%;
  justify-self: end;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,0.55);
  aspect-ratio: 382 / 510;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { justify-self: center; max-width: 340px; order: -1; }
  .hero { padding-top: 7.5rem; }
}

/* ============================================
   Intro
   ============================================ */
.intro { padding: 6.5rem 1.5rem; background: var(--paper); }
.intro-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
}
.intro-text p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.intro-text h2 { margin-bottom: 1.3rem; max-width: 16ch; }
.intro-text p + p { margin-top: 1.1rem; }

.intro-stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--stone-warm);
  padding-left: 2rem;
}
.intro-stats dt {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  margin: 0;
}
.intro-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .intro-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-stats { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--stone-warm); padding-left: 0; padding-top: 1.5rem; }
  .intro-stats > div { flex: 1 1 30%; }
}

/* ============================================
   Section heads
   ============================================ */
.section-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 0.6rem;
  max-width: 50ch;
}
.section-head-light h2, .section-head-light p { color: #fff; }
.section-head-light p { color: rgba(255,255,255,0.78); }

/* ============================================
   Gardens grid
   ============================================ */
.gardens { padding: 6.5rem 0; background: var(--stone); }
.garden-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 1.1rem;
}
.g-item { margin: 0; position: relative; overflow: hidden; border-radius: 2px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-tall { grid-column: 1 / 3; grid-row: 1 / 3; }
.g-wide { grid-column: 3 / 5; grid-row: 1 / 2; }
.garden-grid .g-item:nth-child(2) { grid-column: 3 / 4; grid-row: 2 / 3; }
.garden-grid .g-item:nth-child(3) { grid-column: 4 / 5; grid-row: 2 / 3; }

.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(23,33,27,0.78), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--sans);
}

@media (max-width: 820px) {
  .garden-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .g-tall, .g-wide, .garden-grid .g-item:nth-child(2), .garden-grid .g-item:nth-child(3) {
    grid-column: auto; grid-row: auto;
  }
  .g-tall { grid-column: 1 / 3; }
  .g-item { aspect-ratio: 4/3; }
}

/* ============================================
   Events
   ============================================ */
.events { background: var(--ivy); padding: 6.5rem 0; }
.events-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.event-row {
  padding: 2.4rem 2.4rem 2.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.event-row:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.14); padding-right: 2.4rem; }
.event-row:nth-child(even) { padding-left: 2.4rem; }
.event-row h3 { color: #fff; margin-bottom: 0.7rem; }
.event-row p { color: rgba(255,255,255,0.75); font-size: 0.98rem; max-width: 46ch; }

@media (max-width: 820px) {
  .events-list { grid-template-columns: 1fr; }
  .event-row, .event-row:nth-child(odd), .event-row:nth-child(even) {
    border-right: none; padding: 2rem 0;
  }
}

/* ============================================
   Salon
   ============================================ */
.salon { padding: 6.5rem 0 0; background: var(--paper); }
.salon-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.s-item { margin: 0; aspect-ratio: 16/10; overflow: hidden; border-radius: 2px; background: var(--stone); }
.s-item img { width: 100%; height: 100%; object-fit: cover; }

/* Some source photos are low-resolution; stretching them edge-to-edge
   looks blurry. Shown at (near) native size on a soft backdrop instead —
   reads as an inset print rather than a soft, over-enlarged crop. */
.frame-contain { display: flex; align-items: center; justify-content: center; background: var(--stone-warm); }
.frame-contain img {
  width: auto; height: auto;
  max-width: 78%; max-height: 78%;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  border-radius: 1px;
}

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

/* ============================================
   Table / gastronomy
   ============================================ */
.table { padding: 4rem 0 6.5rem; background: var(--paper); }
.table-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.t-item { margin: 0; aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; background: var(--stone); }
.t-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .table-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Ambience — mirrors the hero's contained-frame
   treatment, so the DJ photo stays crisp too.
   ============================================ */
.ambience { background: var(--ivy); padding: 5.5rem 1.5rem; }
.ambience-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.ambience-frame {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 680 / 453;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.5);
}
.ambience-img { width: 100%; height: 100%; object-fit: cover; }
.ambience-copy h2 { color: #fff; max-width: 13ch; }
.ambience-copy p { margin-top: 0.8rem; color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 34ch; }

@media (max-width: 900px) {
  .ambience-inner { grid-template-columns: 1fr; }
}

/* ============================================
   Contact
   ============================================ */
.contact { padding: 6.5rem 0 5rem; background: var(--stone); }
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
}
.contact-info h2 { max-width: 14ch; margin-bottom: 1rem; }
.contact-info p { color: var(--ink-soft); max-width: 42ch; }

.contact-details { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.2rem; }
.cd-label { font-family: var(--serif); color: var(--brass); font-size: 0.95rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--brass); }

.map-frame {
  margin-top: 2.2rem;
  height: 300px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--stone-warm);
  filter: grayscale(0.15) contrast(1.02);
}

.contact-form {
  background: var(--paper);
  padding: 2.2rem;
  border-radius: 2px;
  border: 1px solid var(--stone-warm);
}
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-split { flex-direction: row; gap: 1rem; }
.form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label { font-size: 0.88rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.7em 0.85em;
  border: 1px solid var(--stone-warm);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.form-note { font-size: 0.9rem; color: var(--ivy); margin-top: 0.9rem; min-height: 1.2em; }

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================
   WhatsApp floating button
   ============================================ */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75em 1.1em;
  border-radius: 999px;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(0,0,0,0.45); }
.whatsapp-fab svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 560px) {
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.85em; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ivy-deep);
  color: rgba(255,255,255,0.6);
  padding: 2.2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer p { margin: 0.3rem 0; }
.footer-fine { color: rgba(255,255,255,0.4); }
