/* ========================================
   The Kiota Place — Stylesheet
   Brand palette driven by CSS custom properties
   ======================================== */

:root {
  --green: #576041;
  --green-dark: #444d32;
  --orange: #8d643f;
  --orange-dark: #6f4c2c;
  --yellow: #f3a825;
  --bg: #f3e9d3;
  --text: #2b2a26;
  --muted: #6e6a5e;
  --white: #ffffff;
  --card: #fbf5e5;
  --shadow-sm: 0 2px 8px rgba(87, 96, 65, 0.08);
  --shadow-md: 0 8px 24px rgba(87, 96, 65, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 80px;
  --header-h-lg: 96px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--green); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-align: center; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.section-title { margin-bottom: 0.5rem; }
.section-intro { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; min-height: 44px;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe59; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
@media (min-width: 1024px) { .site-header .container { height: var(--header-h-lg); } }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.logo-art { height: 56px; width: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; min-width: 0; }
.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; color: var(--green);
  font-size: 1.15rem; letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; color: var(--orange);
  font-size: 0.8rem; margin-top: 2px;
  white-space: nowrap;
}
/* Hide tagline on very small screens so the header doesn't overflow */
@media (max-width: 479px) { .logo-tagline { display: none; } }
/* Hide name on extra-small screens; art stays */
@media (max-width: 359px) { .logo-text { display: none; } }
/* Scale up on tablet */
@media (min-width: 768px) {
  .logo { gap: 0.9rem; }
  .logo-art { height: 64px; }
  .logo-name { font-size: 1.35rem; }
  .logo-tagline { font-size: 0.9rem; }
}
/* Scale up on desktop */
@media (min-width: 1024px) {
  .logo-art { height: 76px; }
  .logo-name { font-size: 1.55rem; }
  .logo-tagline { font-size: 0.95rem; }
}
.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.header-cta .call-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--green); font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 999px;
}
.header-cta .call-link:hover { color: var(--green-dark); background: rgba(87, 96, 65, 0.08); }
.header-cta .call-link .call-text { display: none; }
@media (min-width: 640px) { .header-cta .call-link .call-text { display: inline; } }
.header-cta .btn-whatsapp { padding: 0.6rem 1rem; font-size: 0.95rem; }
.header-cta .btn-whatsapp .wa-text { display: none; }
@media (min-width: 640px) { .header-cta .btn-whatsapp .wa-text { display: inline; } }

/* --- Hero --- */
.hero { position: relative; }
.hero .swiper { height: 60vh; min-height: 420px; }
@media (min-width: 1024px) { .hero .swiper { height: 85vh; max-height: 760px; } }
.hero-slide { position: relative; background-size: cover; background-position: center; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 42, 38, 0.35) 0%, rgba(43, 42, 38, 0.65) 100%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.25rem; color: var(--white);
  pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }
.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin-bottom: 0.75rem;
}
.hero-overlay p {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 640px; margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet { background: var(--white); opacity: 0.6; }
.swiper-pagination-bullet-active { background: var(--yellow); opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--white); display: none; }
@media (min-width: 1024px) { .swiper-button-next, .swiper-button-prev { display: flex; } }

/* --- About --- */
.about-grid {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.about-copy h2 { text-align: left; }
.about-copy .lead { font-size: 1.15rem; color: var(--text); }
.about-image {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; background: var(--card);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Virtual Tour --- */
.tour-section { background: var(--bg); }
.video-wrap {
  position: relative; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tour-video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; cursor: pointer;
}
.video-unmute {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; min-height: 40px;
  background: rgba(0, 0, 0, 0.65); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
  font: 600 0.9rem 'Inter', sans-serif; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.15s ease;
}
.video-unmute:hover { background: rgba(0, 0, 0, 0.85); transform: translateY(-1px); }
.video-unmute i { color: var(--yellow); font-size: 1rem; }
@media (max-width: 479px) {
  .video-unmute span { display: none; }
  .video-unmute { padding: 0.6rem; }
}

/* --- Amenities --- */
.amenities {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(243, 168, 37, 0.08) 100%);
}
.amenities-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.amenity-card {
  background: var(--card); padding: 2rem 1.5rem; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.amenity-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--yellow); color: var(--green);
  font-size: 1.75rem; margin-bottom: 1rem;
}
.amenity-card h3 { color: var(--green); margin-bottom: 0.35rem; }
.amenity-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* --- Gallery --- */
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem;
}
.filter-chip {
  background: transparent; color: var(--green); border: 1.5px solid var(--green);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; min-height: 40px; transition: background 0.15s ease, color 0.15s ease;
}
.filter-chip:hover { background: rgba(87, 96, 65, 0.1); }
.filter-chip.is-active { background: var(--green); color: var(--white); }
.gallery-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.is-hidden { display: none; }

/* --- Contact --- */
.contact-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; background: var(--card);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-form {
  background: var(--card); padding: 2rem 1.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 600px) { .contact-form { padding: 2.5rem; } }
.contact-form h3 { text-align: left; margin-bottom: 0.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.9rem; font-weight: 500; color: var(--green); }
.form-field input, .form-field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 8px;
  border: 1.5px solid rgba(87, 96, 65, 0.25); background: var(--white);
  color: var(--text); min-height: 44px; transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 500px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-success { color: var(--green); }
.form-status.is-error   { color: #b1432d; }

/* --- Footer --- */
.site-footer {
  background: var(--green); color: #eadfc4;
  padding: 2.5rem 1.25rem; text-align: center;
}
.site-footer strong { color: var(--white); font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.site-footer p { margin: 0.35rem 0; font-size: 0.95rem; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: var(--white); }
.site-footer .copy { margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.social-links {
  display: flex; justify-content: center; gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow) !important; font-size: 1.15rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.social-links a:hover {
  background: var(--yellow);
  color: var(--green) !important;
  transform: translateY(-2px);
}

/* --- Utility --- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
