/* ============================================================
   Alpaca Family Homes — Shared Stylesheet
   Used by: index.html, contact.html, properties/*.html
   ============================================================ */

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

:root {
  --primary: #1a1a1a;
  --primary-fg: #ffffff;
  --bg: #fafaf9;
  --bg-secondary: #f4f3f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --border: #e5e4e0;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
a { color: inherit; }

/* ============================================================
   SITE HEADER / NAV  (new — shared across pages)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 20px;
  color: var(--primary); text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { opacity: 0.85; }
.site-nav {
  display: flex; align-items: center; gap: 28px;
}
.site-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text-muted); }
.site-nav a.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary);
  border-radius: 1px;
}
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 36px; height: 36px;
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 700px) {
  .site-header-inner { padding: 12px 20px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 0; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 20px; width: 100%; }
}

/* ============================================================
   HERO  (used by property pages)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #111;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-img.active { opacity: 1; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 20px;
  transition: background 0.2s, transform 0.15s;
}
.hero-nav:hover { background: rgba(255,255,255,0.32); transform: translateY(-50%) scale(1.06); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 7px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active { background: #fff; transform: scale(1.3); }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 0 40px 52px;
  max-width: 1100px; margin: 0 auto;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  max-width: 700px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: rgba(255,255,255,0.92); font-size: 14px; font-weight: 500;
  margin-bottom: 24px;
}
.hero-meta-item { display: flex; align-items: center; gap: 7px; }
.hero-meta-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.star-fill { fill: #facc15; color: #facc15; }
.btn-airbnb {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #111;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn-airbnb:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.22); }

/* ============================================================
   HOME HERO  (new)
   ============================================================ */
.home-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111;
}
.home-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.home-hero-bg.active { opacity: 0.7; }
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}
.home-hero-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.home-hero-content h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.home-hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 640px;
  margin: 0 auto 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.home-hero-cta {
  display: inline-flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 40px; }
.section-alt { background: var(--bg-secondary); }
.section-tight { padding: 48px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }
.section-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 36px; }
.section-title-center { text-align: center; }
.section-sub {
  text-align: center; color: var(--text-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 620px; margin: -24px auto 36px;
}

/* ============================================================
   FEATURED PROPERTY CARDS  (homepage + listing page)
   ============================================================ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.property-card-img {
  width: 100%; height: 280px;
  object-fit: cover;
  display: block;
}
.property-card-body { padding: 24px 26px 28px; }
.property-card-loc {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.property-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.property-card-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 14px;
}
.property-card-specs {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 18px;
}
.property-card-spec { display: flex; align-items: center; gap: 6px; }
.property-card-spec svg { width: 15px; height: 15px; flex-shrink: 0; }
.property-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--primary);
}
.property-card-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.property-card:hover .property-card-cta svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .property-grid { grid-template-columns: 1fr; gap: 20px; }
  .property-card-img { height: 220px; }
}

/* ============================================================
   ABOUT / VALUE PROPS  (homepage)
   ============================================================ */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-item { text-align: center; padding: 8px; }
.value-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.value-icon svg { width: 26px; height: 26px; }
.value-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.value-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   DETAIL CARDS GRID  (property pages)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 520px;
  overflow-y: auto;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.property-highlights-list { list-style: none; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.property-highlight-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.property-highlight-item:last-child { border-bottom: none; }
.property-highlight-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }
.property-highlight-item span { color: var(--text); font-weight: 500; }
.card-price-val {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700;
  color: var(--primary); margin-bottom: 6px; text-align: center;
}
.card-price-label { color: var(--text-muted); font-size: 14px; text-align: center; margin-bottom: 6px; }
.card-price-sub { color: var(--text-light); font-size: 12px; text-align: center; }
.card-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.fee-list { list-style: none; }
.fee-item {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.fee-item:last-child { border-bottom: none; }
.fee-item strong { color: var(--text); font-weight: 600; }
.card-about-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   AMENITIES  (kept for future use)
   ============================================================ */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.amenity-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border-radius: var(--radius);
  transition: background 0.15s;
}
.amenity-row:hover { background: var(--bg-secondary); }
.amenity-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.amenity-icon svg { width: 20px; height: 20px; color: var(--primary); }
.amenity-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.amenity-desc { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   MAP
   ============================================================ */
.map-embed {
  width: 100%; height: 380px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.map-info { margin-top: 20px; display: flex; align-items: flex-start; gap: 12px; }
.map-pin-icon { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.map-pin-icon svg { width: 22px; height: 22px; }
.map-address { font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.map-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.btn-directions {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
  padding: 9px 18px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.btn-directions:hover { background: #333; transform: translateY(-1px); }

/* ============================================================
   CALENDAR
   ============================================================ */
.cal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.cal-month-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.cal-nav-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 14px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
.cal-nav-btn:hover { background: var(--border); box-shadow: var(--shadow); }
.cal-nav-btn svg { width: 14px; height: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--text-muted); padding: 6px 0; letter-spacing: 0.04em;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  transition: transform 0.1s;
}
.cal-day.avail { background: #dcfce7; color: #14532d; cursor: pointer; }
.cal-day.avail:hover { transform: scale(1.1); background: #bbf7d0; }
.cal-day.booked { background: #fee2e2; color: #7f1d1d; }
.cal-day.past { background: var(--bg-secondary); color: var(--text-light); }
.cal-legend {
  display: flex; gap: 20px; margin-top: 20px;
  justify-content: center; font-size: 13px; color: var(--text-muted);
}
.cal-legend-item { display: flex; align-items: center; gap: 7px; }
.cal-dot { width: 13px; height: 13px; border-radius: 3px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  background: var(--bg); color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; line-height: 1.5; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.01em;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: var(--shadow);
}
.btn-submit:hover { background: #2d2d2d; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-submit:active { transform: translateY(0); }
.btn-submit.success { background: #15803d; }
.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  text-align: center; margin-bottom: 10px;
}
.form-section-sub {
  text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 36px;
}

/* Contact page contact-info block */
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 40px;
}
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.contact-info-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none;
  word-break: break-word;
}
.contact-info-value:hover { color: var(--text-muted); }
@media (max-width: 700px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1a1a1a; color: #fff;
  padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 999; opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--primary); color: var(--primary-fg);
  padding: 36px 40px 28px;
  font-size: 13px; letter-spacing: 0.02em;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: #fff; }
.site-footer-copy { opacity: 0.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { height: 480px; }
  .hero-content { padding: 0 20px 40px; }
  .home-hero { height: 460px; }
  .home-hero-content { padding: 0 20px; }
  .section { padding: 52px 20px; }
  .section-tight { padding: 36px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .map-embed { height: 260px; }
  .cal-card { padding: 20px; }
  .form-card { padding: 24px; }
  footer.site-footer { padding: 28px 20px; }
}
