/* ===========================
   Casa Rural Haiku – Styles
   =========================== */

:root {
  --stone:    #8B7355;
  --stone-light: #C4A882;
  --cream:    #FAF6F0;
  --warm-white: #FFFDF9;
  --dark:     #2C2416;
  --charcoal: #4A3F30;
  --green:    #5C7A4E;
  --green-light: #7A9E6A;
  --terracotta: #C1603A;
  --gold:     #D4A843;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --shadow-soft: 0 4px 24px rgba(44,36,22,0.10);
  --shadow-card: 0 2px 16px rgba(44,36,22,0.13);
  --radius: 4px;
  --transition: 0.3s ease;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===========================
   Layout helpers
   =========================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--cream);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255,253,249,0.97);
  box-shadow: 0 2px 16px rgba(44,36,22,0.10);
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.navbar.scrolled .navbar__logo { color: var(--dark); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,253,249,0.9);
  transition: color var(--transition);
}

.navbar.scrolled .navbar__links a { color: var(--charcoal); }
.navbar__links a:hover { color: var(--gold); }
.navbar.scrolled .navbar__links a:hover { color: var(--terracotta); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-switcher a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,253,249,0.6);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .lang-switcher a { color: var(--stone); }
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--gold);
  background: rgba(212,168,67,0.12);
}
.navbar.scrolled .lang-switcher a:hover,
.navbar.scrolled .lang-switcher a.active {
  color: var(--terracotta);
  background: rgba(193,96,58,0.08);
}

/* Mobile menu toggle */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  transition: background var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .navbar__burger span { background: var(--dark); }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero.loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,36,22,0.30) 0%,
    rgba(44,36,22,0.55) 60%,
    rgba(44,36,22,0.72) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero__title {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.hero__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,122,78,0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn--dark:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--terracotta {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn--terracotta:hover {
  background: #a8502f;
  border-color: #a8502f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,96,58,0.35);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

/* ===========================
   About section
   =========================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 2px solid var(--stone-light);
  border-radius: var(--radius);
  z-index: 0;
}

.about__image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.about__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.about__text {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.8;
}

.about__divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* ===========================
   Amenities
   =========================== */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.amenity-card {
  background: var(--warm-white);
  border: 1px solid rgba(139,115,85,0.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.amenity-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.amenity-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.amenity-card__text {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0;
}

/* ===========================
   Pricing banner
   =========================== */
.pricing-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.pricing-banner h2 { color: #fff; margin-bottom: 1.5rem; }

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
}

.pricing-amount__from {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-serif);
  font-style: italic;
}

.pricing-amount__value {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.pricing-amount__currency {
  font-size: 2rem;
  color: var(--gold);
  font-family: var(--font-serif);
}

.pricing-amount__night {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-serif);
  font-style: italic;
}

.pricing-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}

/* ===========================
   Remote work
   =========================== */
.remote-work__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.remote-work__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.remote-work__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(92,122,78,0.1);
  color: var(--green);
  border: 1px solid rgba(92,122,78,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* ===========================
   Gallery
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 8px;
  margin-top: 3rem;
}

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
}

.gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid__item:hover img { transform: scale(1.07); }

.gallery-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem 0.8rem;
  background: linear-gradient(transparent, rgba(44,36,22,0.72));
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid__item:hover .gallery-grid__caption { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20,16,10,0.96);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  transition: background var(--transition);
  border-radius: var(--radius);
}
.lightbox__arrow:hover { background: rgba(255,255,255,0.20); }
.lightbox__arrow--prev { left: 1rem; }
.lightbox__arrow--next { right: 1rem; }

/* ===========================
   Contact
   =========================== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__info h2 { margin-bottom: 1rem; }

.contact__phone-block {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.contact__phone-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
}

.contact__phone-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 700;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.channel-btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.channel-btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.channel-btn--booking {
  background: #003580;
  color: #fff;
}
.channel-btn--booking:hover {
  background: #002a6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,53,128,0.30);
}

.channel-btn--airbnb {
  background: #FF5A5F;
  color: #fff;
}
.channel-btn--airbnb:hover {
  background: #e04a4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,90,95,0.35);
}

.channel-btn__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact__map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.contact__map-wrap iframe {
  flex: 1;
  width: 100%;
  min-height: 380px;
  border: none;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.footer__location {
  margin-bottom: 0.4rem;
}

/* ===========================
   Floating WhatsApp button
   =========================== */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.60);
}
.wa-float svg { flex-shrink: 0; }

/* Pulse ring */
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.45);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ===========================
   Scroll-reveal animations
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    gap: 1rem;
  }
  .navbar__links.open a { color: var(--charcoal); }
  .navbar__burger { display: flex; }

  .about__inner,
  .remote-work__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .about__image-wrap::before { display: none; }
  .about__image-wrap img,
  .remote-work__image { height: 320px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 560px) {
  .section { padding: 3.5rem 0; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-grid__item:first-child {
    grid-column: span 1;
  }
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
}
