/* ============================================================
   Self-hosted fonts (work fully offline — no internet needed)
   Files live in the fonts/ folder next to this stylesheet.
   ============================================================ */
@font-face {
  font-family: 'Sansita'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/sansita-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Sansita'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/sansita-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/nunito-sans.woff2') format('woff2');
}

/* ============================================================
   Missoula Spanish — shared stylesheet
   ------------------------------------------------------------
   EDIT COLORS & FONTS HERE (they apply to every page):
   ============================================================ */
:root {
  --cream:        #E6DCC8;  /* page background */
  --cream-light:  #F4F3E8;  /* light text on maroon, card backgrounds */
  --ink:          #212E21;  /* main text + headings (dark green) */
  --maroon:       #861B34;  /* accent: nav bar, buttons, sub-headings */
  --maroon-dark:  #6b1529;  /* button hover */
  --shadow:       0 6px 20px rgba(33, 46, 33, 0.12);
  --radius:       14px;
  --maxw:         1080px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: "Sansita", Georgia, serif; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--maroon); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--maroon); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--maroon); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top navigation ---------- */
.site-header { background: var(--maroon); position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: "Sansita", serif; font-size: 1.35rem; color: var(--cream-light); font-weight: 700; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--cream-light); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; font-size: .98rem; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.14); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0; }
.hero-top { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 40px; }
.hero-logo { text-align: center; }
.hero-logo img { margin: 0 auto; max-height: 320px; width: auto; }
.hero-img { text-align: center; }
.hero-img img { margin: 0 auto; max-height: 320px; }
.hero-text { text-align: center; max-width: 60ch; margin: 0 auto; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: 1.2rem; max-width: 55ch; margin: 0 auto 1.2em; }

/* ---------- generic section ---------- */
section { padding: 56px 0; }
.section-tint { background: var(--cream-light); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--maroon); color: #fff !important;
  text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px;
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--maroon-dark); }
.btn-outline { background: transparent; color: var(--maroon) !important; border: 2px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff !important; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--cream-light); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card img { width: 100%; height: 240px; object-fit: contain; background: var(--cream-light); }
.card .card-body { padding: 22px 24px 26px; }
.card h3 { color: var(--maroon); }

/* ---------- feature row (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 360px; object-fit: cover; }

/* ---------- price tables ---------- */
.price-list { list-style: none; margin: 0 0 1em; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed rgba(33,46,33,.25);
}
.price-list li .amt { font-weight: 800; color: var(--maroon); white-space: nowrap; }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 0 auto; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid rgba(33,46,33,.25);
  border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- blog list ---------- */
.post-list { display: grid; gap: 30px; }
.post-item { display: grid; grid-template-columns: 240px 1fr; gap: 26px; background: var(--cream-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-item img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.post-item .post-body { padding: 24px; }
.post-date { color: var(--maroon); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- article (blog post) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .post-hero { border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0 32px; max-height: 460px; width: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon); color: var(--cream-light); padding: 40px 0; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .feature, .post-item, .cards { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; }
  .feature:nth-child(even) .feature-img { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  /* Stack the header on tablets/phones so the brand and links never overlap */
  .nav { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .brand { justify-content: center; }
  .brand span { font-size: 1.2rem; }
  .nav-links { justify-content: center; gap: 4px 6px; }
  .nav-links a { padding: 7px 10px; font-size: .9rem; }
}
