/* ============================================================
   RED DIRT RETREATS — style.css
   ============================================================ */

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

:root {
  --brown-deep:   #2B1F14;
  --brown-mid:    #5A4030;
  --brown-warm:   #8A7060;
  --terra:        #B05C2E;
  --terra-light:  #C4815A;
  --cream:        #F5EFE6;
  --cream-muted:  #C8B89A;
  --off-white:    #FAF7F3;
  --text-dark:    #1A1210;
  --text-mid:     #4A3828;
  --text-muted:   #7A6858;
  --border:       rgba(90, 64, 48, 0.18);
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --transition:   0.3s ease;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- CONTAINER ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---- SECTION BASE ---- */
.section { padding: 80px 0; }
.section-dark { background: var(--brown-deep); color: var(--cream); }
.section-contact { background: var(--off-white); border-top: 0.5px solid var(--border); }

.section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-label.light { color: var(--terra-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.section-title.light { color: var(--cream); }
.section-title em { font-style: italic; color: var(--terra); }
.section-title.light em { color: var(--terra-light); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--terra);
  color: var(--cream);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: #943F18; }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream-muted);
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  border: 0.5px solid rgba(200, 184, 154, 0.45);
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.btn-outline:hover { color: var(--cream); border-color: var(--cream-muted); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(43, 31, 20, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.logo em { font-style: italic; color: var(--terra-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: rgba(245, 239, 230, 0.7);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--cream); }
.nav-links .nav-cta {
  background: var(--terra);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 500;
}
.nav-links .nav-cta:hover { background: #943F18; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  /* Fallback gradient when no image is present */
  background-color: var(--brown-deep);
}
.slide.active { opacity: 1; }

/* Fallback gradient for placeholder (no actual image) */
.slide:nth-child(1) { background-image: linear-gradient(135deg, #2B1F14 0%, #5A3018 40%, #8B4513 70%, #3D2B1A 100%); }
.slide:nth-child(2) { background-image: linear-gradient(160deg, #1A3020 0%, #2B4A2A 40%, #3D6030 70%, #1A2820 100%); }
.slide:nth-child(3) { background-image: linear-gradient(145deg, #1A2040 0%, #204060 40%, #1A4060 70%, #102030 100%); }
.slide:nth-child(4) { background-image: linear-gradient(150deg, #3A2818 0%, #6B4226 40%, #8B5E3A 70%, #4A3020 100%); }
/* Real images override the gradient when present */
.slide[style*="url('images/"] { background-image: var(--bg-img, none); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 12, 6, 0.72) 0%,
    rgba(20, 12, 6, 0.45) 60%,
    rgba(20, 12, 6, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--nav-h);
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-content h1 em { font-style: italic; color: var(--terra-light); }

.hero-sub {
  font-size: 16px;
  color: var(--cream-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 239, 230, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--terra-light);
  transform: scale(1.3);
}

/* Badge */
.hero-badge {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 120px;
  height: 120px;
  border: 0.5px solid rgba(196, 129, 90, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.badge-top, .badge-bot {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-light);
}
.badge-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
}

/* ============================================================
   PROPERTIES
   ============================================================ */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.prop-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.prop-card:hover {
  box-shadow: 0 12px 40px rgba(43, 31, 20, 0.12);
  transform: translateY(-2px);
}

.prop-gallery {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.prop-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-color: var(--brown-deep);
}
.prop-slide.active { opacity: 1; }

/* Fallback gradients for property images */
#gallery-1 .prop-slide:nth-child(1) { background-image: linear-gradient(160deg, #3D2B1A, #7B4820, #5A3018); }
#gallery-1 .prop-slide:nth-child(2) { background-image: linear-gradient(145deg, #2B3D4A, #3A5A6B, #2B4050); }
#gallery-1 .prop-slide:nth-child(3) { background-image: linear-gradient(155deg, #4A3828, #7B5A40, #5A4030); }
#gallery-2 .prop-slide:nth-child(1) { background-image: linear-gradient(160deg, #1A3020, #2B5030, #1A3820); }
#gallery-2 .prop-slide:nth-child(2) { background-image: linear-gradient(145deg, #203818, #345A20, #284018); }
#gallery-2 .prop-slide:nth-child(3) { background-image: linear-gradient(155deg, #182818, #2A4820, #203020); }

.prop-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 12, 6, 0.5);
  color: var(--cream);
  border: 0.5px solid rgba(245, 239, 230, 0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.prop-arrow:hover { background: rgba(20, 12, 6, 0.8); }
.prop-prev { left: 12px; }
.prop-next { right: 12px; }

.prop-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.8);
  background: rgba(20, 12, 6, 0.45);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.prop-body { padding: 22px 24px 24px; }
.prop-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.prop-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.prop-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
}
.prop-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--terra);
  margin-bottom: 16px;
}
.prop-price span {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}
.prop-book-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--off-white);
  border: 0.5px solid var(--terra-light);
  color: var(--brown-deep);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.prop-book-btn:hover { background: var(--terra); color: var(--cream); border-color: var(--terra); }

/* ============================================================
   WHY BOOK DIRECT
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.why-body {
  font-size: 15px;
  color: var(--cream-muted);
  line-height: 1.8;
  font-weight: 300;
}
.why-right { padding-top: 8px; }
.perk {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.perk:first-child { padding-top: 0; }
.perk:last-child { border-bottom: none; }
.perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(176, 92, 46, 0.25);
  color: var(--terra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 4px;
}
.perk p {
  font-size: 13px;
  color: var(--cream-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(145deg, #3D2B1A, #6B4226, #4A3020);
}
.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-placeholder.no-img::after {
  content: 'about.jpg';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(245,239,230,0.4);
  letter-spacing: 0.1em;
}
.about-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 32px;
}
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.contact-method a {
  font-size: 15px;
  color: var(--terra);
  font-weight: 500;
}
.contact-method a:hover { text-decoration: underline; }
.platform-links { display: flex; gap: 16px; }
.platform-links a {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 1px;
}
.platform-links a:hover { color: var(--terra); border-color: var(--terra); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra-light);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #B0A090; }
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brown-deep);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--cream);
}
.footer-logo em { font-style: italic; color: var(--terra-light); }
.footer-tagline {
  font-size: 13px;
  color: var(--brown-warm);
  font-weight: 300;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-size: 12px;
  color: var(--brown-warm);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cream-muted); }
.footer-copy {
  font-size: 11px;
  color: var(--brown-mid);
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(43, 31, 20, 0.98);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 0;
    border-top: 0.5px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 0.5px solid rgba(255,255,255,0.05);
  }
  .nav-links .nav-cta {
    margin-top: 16px;
    padding: 12px;
    text-align: center;
  }

  .hero-badge { display: none; }
  .hero-content h1 { font-size: 36px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }

  .properties-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}
