/* ============================================
   Eraa Village — Stylesheet
   Warm garden-lodge elegance for the hills of
   Mount Ayliff.
   ============================================ */

:root {
  --ink: #22261f;
  --bg: #fbf8f2;
  --accent: #7a3b2e;
  --muted: #6e6a5c;
  --surface: #eee7d8;

  --accent-dark: #5e2c22;
  --accent-light: #9a5646;
  --olive: #4c5236;
  --border: #ddd3ba;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', Helvetica, Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;

  --radius: 6px;
  --shadow: 0 6px 24px rgba(34, 38, 31, 0.08);
}

/* ============================================
   Reset & base
   ============================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 640px) {
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.6rem; }
}

@media (min-width: 1000px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.6rem; }
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

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

/* ============================================
   Layout helpers
   ============================================ */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
}

.section-alt {
  padding: var(--space-lg) 0;
  background: var(--surface);
}

@media (min-width: 768px) {
  .section,
  .section-alt {
    padding: var(--space-xl) 0;
  }
}

/* ============================================
   Site header & nav
   ============================================ */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* Nav toggle button — visible on small screens */
.nav-toggle {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Mobile-first nav: stacked, always visible, no hiding trick.
   This is a simple wrapping list of links that sits below the
   brand row — functional without JS. If a nav-toggle is used to
   add/remove an "open" class via JS, we still keep the nav
   reachable by default (no display:none by default). */

.site-nav {
  width: 100%;
  margin-top: var(--space-xs);
  border-top: 1px solid var(--border);
  padding-top: var(--space-xs);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.4rem;
  color: var(--ink);
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--surface);
  color: var(--accent);
}

.site-nav a.active {
  color: var(--accent);
  font-weight: 700;
  background: var(--surface);
}

@media (min-width: 768px) {
  .site-header .container {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0.3rem;
  }

  .site-nav a {
    padding: 0.5rem 0.85rem;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: var(--space-lg) 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-xl) 0;
  }
}

.hero-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

@media (min-width: 1000px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ============================================
   Grids & cards
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(34, 38, 31, 0.14);
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.card-body {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   Feature blocks
   ============================================ */

.feature {
  padding: var(--space-sm) 0;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

/* ============================================
   Stats
   ============================================ */

.stat {
  text-align: center;
  padding: var(--space-sm);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   Quote
   ============================================ */

.quote {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-attr {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================
   Lead & eyebrow text
   ============================================ */

.lead {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 700px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

/* ============================================
   Checklist
   ============================================ */

.list-checks {
  list-style: none;
  padding-left: 0;
}

.list-checks li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   Buttons / CTA
   ============================================ */

.cta {
  text-align: center;
  padding: var(--space-lg) 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--olive);
  color: var(--surface);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

.site-footer a {
  color: var(--surface);
  text-decoration: underline;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  color: var(--surface);
}

/* ============================================
   Misc responsive tweaks
   ============================================ */

@media (min-width: 1000px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .quote {
    font-size: 1.2rem;
  }
}