:root {
  --bg: #f2e9dc;
  --content-bg: #f7f7f5;
  --text: #1f1f1f;
  --accent: #1a759f;
  --muted: #6b7280;
}

* { box-sizing: border-box; }

html {
  font-size: clamp(15px, 1vw, 18px);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- TYPOGRAPHY (MOBILE FIRST) ---------- */

h1 {
  font-size: 18px;
}

h2 {
  font-size: 26px;
  margin-bottom: 16px;
  font-family: "Playwrite ES", sans-serif;
  font-weight: 600;
}

h3 {
  font-size: 18px;
}

p {
  font-size: 15px;
}

/* ---------- HEADER ---------- */

.header-wrap {
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}

header h1 {
  margin: 0;
  font-family: "Playwrite ES", sans-serif;
  font-weight: 400;
}

nav a {
  margin-left: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}

/* ---------- HERO ---------- */

.hero {
  width: 100%;
  height: 70vh;
  background: url("Roots_Files/Playa_San_Antoni.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-inner {
  max-width: 600px;
}

.hero h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero p {
  font-size: 16px;
}

/* ---------- PAGE CONTAINER ---------- */

.page {
  background: var(--content-bg);
  margin: 0;
  border-radius: 0;
}

/* ---------- SECTIONS ---------- */

section {
  padding: 40px 20px;
}

/* ---------- FEATURES ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.feature {
  background: white;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- CARDS ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 { margin: 12px; }
.card p { margin: 0 12px 12px; font-size: 14px; color: var(--muted); }

/* ---------- GALLERY ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- MAP ---------- */

.map iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: none;
}

/* ---------- HOST ---------- */

.host-card { 
  background: white;
  padding: 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0 20px;
}

.host-card h3 {
    margin: 0;
}

.host-card img {
  width: 110px;
  height: 110px;
  aspect-ratio: 1 / 1;   /* ensures perfect square */
  border-radius: 50%;
  object-fit: cover;     /* prevents stretching */
  object-position: center;
  display: block;
}

.host-card div {
  margin-top: 15px;
}

.host-card div p {
  font-style: italic;
}

/* ---------- FORM ---------- */

.contact-box {
  background: white;
  padding: 20px;
  border-radius: 14px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

button {
  margin-top: 10px;
  padding: 12px;
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
}

/* ---------- CTA ---------- */

.cta-social a {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 30px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

/* ---------- FOOTER ---------- */

footer {
  text-align: center;
  padding: 25px;
  font-size: 13px;
  color: var(--muted);
}

/* ========================================================= */
/* =================== DESKTOP ENHANCEMENTS ================= */
/* ========================================================= */

@media (min-width: 369px) {
.hero h2 {
    font-size: 28px;
  }
}

@media (min-width: 410px) {
.hero h2 {
    font-size: 32px;
  }
}

@media (min-width: 768px) {

  h1 { font-size: 20px; }
  h2 { font-size: 34px; }
  h3 { font-size: 20px; }
  p  { font-size: 16px; }

  header {
    padding: 15px 40px;
  }

  nav a {
    margin-left: 20px;
    font-size: 14px;
  }

  .hero {
    height: 85vh;
    background-attachment: fixed;
  }

  .hero h2 {
    font-size: 48px;
  }

  .hero-inner {
    max-width: 900px;
  }

  .page {
    max-width: 1300px;
    margin: -80px auto 0 auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  section {
    padding: 60px 80px;
  }

  .features {
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 20px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 10px;
  }

  .gallery img {
    height: 220px;
  }

  .host-card {
    flex-direction: row;
    text-align: left;
  }

  .host-card img {
    width: 120px;
    height: 120px;
  }

  .host-card div {
    margin-top: 0;
  }
}