/* ── Casa Escondida PV — Global Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --sand:       #C9A882;
  --sand-light: #F5EDE3;
  --sand-pale:  #FAF7F2;
  --ocean:      #1B6B93;
  --ocean-deep: #145374;
  --ocean-light:#E8F4F8;
  --terra:      #B8623B;
  --green:      #3A7D44;
  --charcoal:   #2C2C2C;
  --grey:       #6B6B6B;
  --grey-light: #E0DCD6;
  --white:      #FFFFFF;
  --nav-height: 72px;
  --page-max:   1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--sand-pale);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: var(--ocean); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ocean-deep); }

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

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: background .3s;
}
.site-nav.scrolled { background: rgba(250,247,242,.98); box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--charcoal);
  letter-spacing: .01em;
}
.nav-brand span { color: var(--ocean); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .85rem; font-weight: 500; color: var(--grey);
  text-transform: uppercase; letter-spacing: .06em;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--ocean); transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ocean); color: var(--white) !important;
  padding: 10px 22px; border-radius: 6px; font-size: .85rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--ocean-deep); color: var(--white) !important; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .3s; }

/* ── HERO ── */
.hero {
  position: relative; width: 100%; height: 85vh; min-height: 500px;
  overflow: hidden; margin-top: var(--nav-height);
}
.hero video, .hero img.hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.50) 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 clamp(16px,4vw,40px) clamp(40px,6vh,80px);
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; margin-bottom: .25em;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300; opacity: .92;
  max-width: 600px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.hero-badge {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 30px;
  font-size: .8rem; font-weight: 500; color: var(--white);
}

/* ── SECTIONS ── */
.section {
  padding: clamp(48px, 8vh, 80px) clamp(16px, 4vw, 40px);
  max-width: var(--page-max);
  margin: 0 auto;
}
.section-wide {
  padding: clamp(48px, 8vh, 80px) clamp(16px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ocean); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: .4em;
}
.section-intro {
  font-size: 1.05rem; color: var(--grey); max-width: 680px;
  margin-bottom: 40px; line-height: 1.7;
}

/* ── FEATURE GRID ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--grey-light);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--ocean-light); color: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
}
.feature-card p { font-size: .9rem; color: var(--grey); line-height: 1.6; }

/* ── PHOTO GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
/* hero-sized first image */
.gallery-grid .gallery-hero {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: white; font-size: 2rem;
  cursor: pointer; opacity: .7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: white;
  font-size: 2rem; padding: 12px 18px; cursor: pointer;
  border-radius: 8px; opacity: .7; transition: opacity .2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── AMENITIES ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.amenity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-radius: 8px; border: 1px solid var(--grey-light);
  font-size: .9rem;
}
.amenity-item .amenity-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── RECOMMENDATIONS ── */
.rec-card {
  background: var(--white);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: transform .2s, box-shadow .2s;
}
.rec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.rec-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rec-card-body { padding: 20px; }
.rec-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 6px;
}
.rec-card .rec-type {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ocean); font-weight: 600; margin-bottom: 8px;
}
.rec-card p { font-size: .88rem; color: var(--grey); line-height: 1.6; }
.rec-card .rec-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: .85rem; font-weight: 500;
}

/* ── AVAILABILITY / BOOKING ── */
.booking-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.booking-card {
  background: var(--white); border-radius: 12px;
  padding: 32px; text-align: center;
  border: 1px solid var(--grey-light);
  transition: transform .2s, box-shadow .2s;
}
.booking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.booking-card .booking-logo { font-size: 2.5rem; margin-bottom: 12px; }
.booking-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 8px;
}
.booking-card p { font-size: .9rem; color: var(--grey); margin-bottom: 20px; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; transition: all .2s;
  text-transform: uppercase; letter-spacing: .04em;
}
.btn-primary { background: var(--ocean); color: var(--white); }
.btn-primary:hover { background: var(--ocean-deep); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--ocean);
  border: 2px solid var(--ocean);
}
.btn-outline:hover { background: var(--ocean); color: var(--white); }

/* ── INFO BANNER ── */
.info-banner {
  background: var(--ocean-light); border-left: 4px solid var(--ocean);
  padding: 20px 24px; border-radius: 0 8px 8px 0;
  margin: 32px 0;
}
.info-banner p { font-size: .92rem; color: var(--ocean-deep); }

/* ── LIVE VIEW ── */
.live-placeholder {
  background: var(--charcoal); border-radius: 12px;
  aspect-ratio: 16/9; max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white); text-align: center; padding: 40px;
}
.live-placeholder .live-icon { font-size: 3rem; margin-bottom: 16px; opacity: .6; }
.live-placeholder h3 { font-size: 1.3rem; margin-bottom: 8px; }
.live-placeholder p { font-size: .9rem; opacity: .6; max-width: 360px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal); color: rgba(255,255,255,.7);
  padding: 48px clamp(16px, 4vw, 40px) 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--page-max); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--white);
  margin-bottom: 12px;
}
.footer-brand span { color: var(--sand); }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.site-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--white); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--page-max); margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; }
.footer-credit a { color: rgba(255,255,255,.4); font-size: .75rem; }
.footer-credit a:hover { color: rgba(255,255,255,.7); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--sand-pale);
    padding: 20px clamp(16px,4vw,40px);
    border-bottom: 1px solid var(--grey-light);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    gap: 16px;
  }
  .nav-cta { display: none; }
  .hero { height: 70vh; min-height: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid .gallery-hero { aspect-ratio: 16/10; }
}

@media (max-width: 480px) {
  .hero { height: 60vh; }
  .hero-badges { gap: 6px; }
  .hero-badge { padding: 6px 12px; font-size: .72rem; }
}

/* ── Booking / inquiry forms (added for Casa launch) ── */
.inquiry-form { max-width: 680px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.form-group { flex: 1 1 200px; display: flex; flex-direction: column; }
.form-group.full { flex-basis: 100%; }
.form-group label { font-size: .8rem; font-weight: 600; margin-bottom: 7px; color: var(--charcoal); letter-spacing: .01em; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-light);
  border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--charcoal);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(27,107,147,.14);
}
.inquiry-form textarea { min-height: 120px; resize: vertical; }
.form-submit {
  display: inline-block; margin-top: 4px; background: var(--ocean); color: var(--white);
  border: none; padding: 14px 34px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .15s, opacity .15s;
}
.form-submit:hover { background: var(--ocean-deep); }
.form-submit:disabled { opacity: .55; cursor: default; }
.form-note { font-size: .85rem; color: var(--grey); margin-top: 14px; line-height: 1.5; }
@media (max-width: 560px) { .form-row { gap: 0; margin-bottom: 0; } .form-group { margin-bottom: 16px; } }
