/* =========================================================
   Ivy House Cartagena — Shared Stylesheet
   Design language modeled on the Casa Maya Cartagena template:
   elegant serif headlines, clean sans body, warm neutral palette,
   full-bleed hero, card-based feature/room grids, simple footer.

   NOTE: exact Casa Maya brand colors/fonts could not be retrieved
   (they live in a stylesheet we didn't have direct file access to).
   The palette below is a reasonable boutique-villa placeholder —
   swap the CSS variables below for your real brand colors/fonts
   whenever you have them.
   ========================================================= */

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f1e8dc;
  --color-text: #2b2521;
  --color-text-soft: #5c5248;
  --color-accent: #b5763c;       /* warm terracotta accent — placeholder */
  --color-accent-dark: #8f5a2b;
  --color-white: #ffffff;
  --color-border: #e2d6c3;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(43, 37, 33, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { line-height: 1.65; margin: 0 0 1em; color: var(--color-text-soft); }

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 48px 0; }

.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  transition: all 0.2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-accent-dark);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a.is-active { color: var(--color-accent-dark); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-nav ul { gap: 16px; flex-wrap: wrap; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-text);
  background-size: cover;
  background-position: center;
  text-align: center;
  /* Each page sets its own background-image (gradient + photo) via an
     inline style="" on the .hero element itself, so the image path
     resolves relative to the HTML page, not to this stylesheet. */
}
.hero .container { max-width: 780px; }
.hero h1 { color: var(--color-white); }
.hero p.lead { color: #f1ece4; font-size: 1.15rem; max-width: 620px; margin: 0 auto 1.6em; }

/* Outline buttons need white/translucent styling over a photo hero,
   since the default brown outline is hard to read on busy images. */
.hero .btn--outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.85);
  background: rgba(20,16,12,0.25);
}
.hero .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-text);
}
.hero--short { min-height: 42vh; }

/* Feature grid (4-up) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards: Best Location + 4 features */
  gap: 28px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.feature-card .icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  color: var(--color-accent-dark);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Card grid (rooms / amenities) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.card .card-image {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}
.card .card-body { padding: 20px; }
.card h3 { margin-bottom: 0.3em; }
.card .meta {
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
}
.card ul.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0.6em 0 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.card ul.amenity-list li { padding: 2px 0; }

.placeholder-note {
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  background: #fbeee0;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-top: 10px;
}

/* Two-column split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .media {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--color-border);
}

/* Why choose us / 3-up */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid .why-item { text-align: center; }
.why-grid .why-item .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.3em;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.3em; }
.faq-item p { margin-bottom: 0; font-size: 0.95rem; }

/* Form */
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 700px) { .inquiry-form { grid-template-columns: 1fr; } }
.inquiry-form .field { display: flex; flex-direction: column; gap: 6px; }
.inquiry-form .field.full { grid-column: 1 / -1; }
.inquiry-form label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.inquiry-form .actions { grid-column: 1 / -1; text-align: center; margin-top: 6px; }

/* Contact strip */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
}
.contact-strip .item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 0.92rem;
}
.contact-strip .item strong { display: block; color: var(--color-text); margin-bottom: 2px; }

/* Map */
.map-embed {
  width: 100%;
  aspect-ratio: 16/7;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer {
  background: #241d17;
  color: #d9cfc2;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #f1ece4; font-size: 1rem; margin-bottom: 0.8em; }
.site-footer a { color: #d9cfc2; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #a89c8c;
}

/* Sticky WhatsApp CTA */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 60;
}
.whatsapp-float:hover { background: #1ebc59; text-decoration: none; color: #fff; }
