/* ============================================================
   Gifted Horse Haven — Global Stylesheet
   Pasture, rehab & therapeutic boarding in Longmont, Colorado
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Color palette (sampled directly from your site's Site Styles panel) ---------- */
:root {
  /* Dark brown — matches your buttons/headings */
  --forest:        #583b1f;
  --forest-light:  #7d5a38;
  --forest-dark:   #3d2814;

  /* Moss/olive green — your site's accent + paragraph tint */
  --saddle:        #7e7b46;
  --saddle-light:  #a8a476;

  /* Backgrounds — your two cream swatches */
  --cream:         #eae6e1;
  --cream-dark:    #e0dbcf;
  --white:         #fdfcfa;

  /* Text — dark brown headings, darkened-olive body copy (kept readable) */
  --barn:          #3d2c1c;
  --barn-mid:      #5a5832;

  /* Accents */
  --sky:           #7fa3c2;
  --gold:          #b6b2c3;
  --gold-light:    #d8d5e0;

  /* Borders / dividers — your dusty lavender-grey swatch */
  --mist:          #c2bfcb;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--barn);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--barn);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 500; }

em, .accent-italic {
  font-style: italic;
  color: var(--forest);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saddle);
  display: inline-block;
  margin-bottom: 14px;
}

p { font-weight: 300; color: var(--barn-mid); }
p.lead { font-size: 1.1rem; line-height: 1.8; }

/* ---------- Hyperlinks ---------- */
a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--saddle); }

.content a {
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
}
.content a:hover { text-decoration-color: var(--saddle); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 90px 0; }
section.tight { padding: 60px 0; }

.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .wrap { padding: 0 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--forest);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--forest-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--white) !important;
}
.btn-gold:hover { background: #9a96a8; }

.btn-ghost {
  background: none;
  border: 1px solid var(--mist);
  color: var(--barn) !important;
}
.btn-ghost:hover { border-color: var(--forest); color: var(--forest) !important; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 36px 32px;
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 100px;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}
.hero h1 { max-width: 760px; margin: 0 auto 22px; }
.hero p.lead { max-width: 600px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero with a real photo background */
.hero-photo {
  position: relative;
  padding: 210px 0 120px;
  text-align: center;
  background: url('/images/pasture-view.webp') center 65% / cover no-repeat;
  isolation: isolate;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,40,20,0.72) 0%, rgba(61,40,20,0.55) 45%, rgba(61,40,20,0.85) 100%);
  z-index: -1;
}
.hero-photo .eyebrow { color: var(--gold-light); }
.hero-photo h1, .hero-photo h1 em { color: var(--white); }
.hero-photo p.lead { color: var(--cream-dark); }

/* ---------- Photo showcase ---------- */
.photo-showcase {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mist);
}
.photo-showcase img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.photo-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--barn-mid);
  font-style: italic;
}

/* ---------- Section dividers ---------- */
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-forest {
  background: var(--forest);
  color: var(--cream);
}
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: var(--cream-dark); }

/* ---------- Content pages (About / Philosophy) ---------- */
.content { max-width: 760px; margin: 0 auto; }
.content p { margin-bottom: 20px; }
.placeholder-note {
  background: var(--cream-dark);
  border: 1px dashed var(--saddle-light);
  border-radius: 6px;
  padding: 24px 28px;
  font-size: 0.85rem;
  color: var(--barn-mid);
  margin-top: 20px;
}

/* ============================================================
   NAV (injected via nav-loader.js from nav.html)
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream) !important;
  border-bottom: 1px solid var(--mist);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-icon { width: 58px; height: 58px; flex-shrink: 0; }
.nav-icon svg { width: 100%; height: 100%; }

footer .nav-icon { width: 68px; height: 68px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--barn);
  letter-spacing: 0.01em;
}
.nav-slogan {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saddle);
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barn-mid) !important;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--forest);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--forest-dark) !important; }
.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 11px 24px;
  border-radius: 3px;
  letter-spacing: 0.12em;
}
.nav-links a.nav-cta:hover { background: var(--forest-dark); }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-name { font-size: 1.05rem; }
}

/* ============================================================
   FOOTER (injected via nav-loader.js from footer.html)
   ============================================================ */
footer {
  background: var(--forest-dark);
  color: var(--cream-dark);
  padding: 70px 0 28px;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247,241,230,0.14);
}
footer .nav-name, footer .nav-slogan { color: var(--white); }
footer .nav-slogan { color: var(--gold-light); }

footer .footer-address { min-width: 220px; }
footer .footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer .footer-address p {
  color: var(--cream-dark);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
footer .footer-map {
  width: 260px;
  max-width: 100%;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(247,241,230,0.18);
}
footer .footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

footer .footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}
footer .footer-links a {
  color: var(--cream-dark) !important;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
footer .footer-links a:hover { color: var(--gold-light) !important; }

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(247,241,230,0.65);
}
footer .footer-bottom a {
  color: rgba(247,241,230,0.65) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer .footer-bottom a:hover { color: var(--gold-light) !important; }
footer .legal-links a { margin: 0 6px; }

@media (max-width: 700px) {
  footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barn-mid);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--barn);
  padding: 13px 14px;
  border: 1px solid var(--mist);
  border-radius: 4px;
  background: var(--cream);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.field textarea { resize: vertical; min-height: 120px; }

.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--barn);
  cursor: pointer;
}
.radio-option input { accent-color: var(--forest); width: 16px; height: 16px; }

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--barn-mid);
  cursor: pointer;
  margin-bottom: 24px;
}
.checkbox-option input { accent-color: var(--forest); width: 16px; height: 16px; margin-top: 2px; }

.form-status {
  margin-top: 16px;
  font-size: 0.88rem;
  display: none;
}
.form-status.success { color: var(--forest); display: block; }
.form-status.error { color: #a94040; display: block; }

/* Step 2 — thank you / calendly */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 { margin-bottom: 14px; }
.form-success p { margin-bottom: 26px; }

/* Map + address panel */
.contact-info-panel {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  overflow: hidden;
}
.contact-info-panel .map-embed {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}
.contact-info-panel .address-block {
  padding: 26px 30px;
}
.contact-info-panel .address-block h3 { margin-bottom: 8px; }
.contact-info-panel .address-block p { margin-bottom: 0; }
