/* The Beartooth Homestead — site styles */

/* ====================================
   1. BRAND ROOT TOKENS
   ==================================== */
:root {
  /* Brand Colors — Montana Dusk palette */
  --color-primary:       #3D5A73;   /* slate-blue mountains */
  --color-primary-dark:  #2E4558;   /* deeper mountain shadow */
  --color-primary-light: #EEF2F6;   /* near-white sky tint */
  --color-secondary:     #2A3D2E;   /* deep forest green */
  --color-accent:        #C4788A;   /* dusty rose sunset */
  --color-accent-light:  #F0DDE2;   /* pale rose tint */

  /* Neutrals — warm cream ground */
  --color-text:          #2C2417;   /* warm near-black */
  --color-text-light:    #6B5E4E;   /* warm medium brown for secondary text */
  --color-bg:            #FBF7F0;   /* warm cream */
  --color-surface:       #F5EFE4;   /* slightly deeper cream for cards/insets */
  --color-border:        #D9D0C2;   /* warm stone border */
  --color-footer-bg:     #2A3D2E;   /* deep forest green footer */
  --color-footer-text:   #EBE5D8;   /* warm cream on dark */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, -apple-system, sans-serif;
}

/* ====================================
   2. CSS BASELINE (verbatim)
   ==================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }

/* Layout Tokens */
:root {
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem;
  --space-4: 2rem; --space-5: 2.5rem; --space-6: 3rem; --space-7: 3.5rem; --space-8: 4rem; --space-12: 6rem;
  --container-max: 1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  --section-padding: clamp(3rem, 7vw, 5rem);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-full: 9999px;
  --transition: all 0.2s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* Typography Scale */
:root {
  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 2vw,   1rem);
  --text-base: clamp(1rem,     2.5vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 3vw,   1.25rem);
  --text-xl:   clamp(1.25rem,  3.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   4vw,   2rem);
  --text-3xl:  clamp(2rem,     5vw,   2.75rem);
  --text-4xl:  clamp(2.5rem,   6vw,   3.5rem);
}

/* Base body + container */
body { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7; color: var(--color-text); background: var(--color-bg); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
section { padding: var(--section-padding) 0; }

/* Typography defaults */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p  { margin-bottom: var(--space-2); }
p:last-child { margin-bottom: 0; }
a  { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link visibility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ====================================
   3. NAVIGATION
   ==================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent nav — over hero */
.site-nav[data-transparent-nav] {
  background: transparent;
  border-bottom-color: transparent;
}
.site-nav[data-transparent-nav][data-scrolled="true"] {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 56px;
  width: auto;
}

/* Transparent state: nav links and toggle in cream/white */
.site-nav[data-transparent-nav]:not([data-scrolled="true"]) .nav-links a:not(.btn) {
  color: #FBF7F0;
}
.site-nav[data-transparent-nav]:not([data-scrolled="true"]) .nav-toggle span {
  background: #FBF7F0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-primary); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--container-padding);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text) !important;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .btn { margin-top: var(--space-2); width: 100%; text-align: center; }
}

/* ====================================
   4. BUTTONS
   ==================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75em 2em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-light {
  background: var(--color-bg);
  color: var(--color-secondary);
  border-color: var(--color-bg);
}
.btn-light:hover {
  background: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--color-secondary);
}
.btn-sm { padding: 0.5em 1.5em; font-size: var(--text-xs); }
.btn-lg { padding: 1em 2.5em; font-size: var(--text-base); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ====================================
   5. SECTION HEADERS (eyebrow + heading)
   ==================================== */
.section-header {
  margin-bottom: var(--space-6);
}
.section-header.centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.section-header h2 {
  font-weight: 600;
  color: var(--color-text);
}
.section-header p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}

/* ====================================
   6. HERO
   ==================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px; /* nav height */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: var(--space-8) var(--container-padding);
}
.hero-content .section-eyebrow {
  color: var(--color-accent);
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-5);
  line-height: 1.65;
}
.hero-cta-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Torn-paper SVG divider */
.divider-torn {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.divider-torn svg {
  display: block;
  width: 100%;
}

/* ====================================
   7. PAGE HERO (inner pages)
   ==================================== */
.page-hero {
  background: var(--color-secondary);
  padding: calc(72px + var(--space-8)) var(--container-padding) var(--space-8);
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-2);
}
.page-hero p {
  color: var(--color-footer-text);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ====================================
   8. INTRO BAND
   ==================================== */
.intro-band {
  background: var(--color-bg);
}
.intro-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.intro-band .intro-text { }
.intro-band .intro-image { }

.scrapbook-frame {
  position: relative;
  display: inline-block;
}
.scrapbook-frame img {
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
}
.scrapbook-frame:hover img {
  transform: rotate(-0.5deg);
}
/* Paper tape accent — top edge */
.scrapbook-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 72px;
  height: 22px;
  background: rgba(196, 120, 138, 0.30);
  border-radius: 2px;
  z-index: 2;
}

@media (max-width: 768px) {
  .intro-band .container {
    grid-template-columns: 1fr;
  }
  .intro-band .intro-image { order: -1; }
}

/* ====================================
   9. FEATURED PRODUCTS / CATEGORY TILES
   ==================================== */
.featured-products {
  background: var(--color-secondary);
}
.featured-products .section-header h2 {
  color: var(--color-footer-text);
}
.featured-products .section-eyebrow {
  color: var(--color-accent);
}
.featured-products .section-header p {
  color: rgba(235,229,216,0.75);
}

.product-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.product-tile {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.product-tile-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface);
}
.product-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-tile:hover .product-tile-img img {
  transform: scale(1.04);
}
.product-tile-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-tile-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.product-tile-body p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  flex: 1;
}
.product-tile-price {
  display: block;
  margin-top: var(--space-2);
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .product-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .product-tiles { grid-template-columns: 1fr; }
}

/* ====================================
   10. STORY / MID-PAGE PHOTO BAND
   ==================================== */
.story-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.46));
}
.story-band .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.story-text h2 {
  color: #fff;
  margin-bottom: var(--space-3);
}
.story-text p {
  color: rgba(255,255,255,0.88);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.story-text .section-eyebrow {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .story-band .container {
    grid-template-columns: 1fr;
  }
  .story-band-image { display: none; }
}

/* ====================================
   11. TRUST SIGNALS
   ==================================== */
.trust-section {
  background: var(--color-surface);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.trust-item {
  text-align: center;
  padding: var(--space-4);
}
.trust-item i {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  display: block;
}
.trust-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.trust-item p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ====================================
   12. FAQ ACCORDION
   ==================================== */
.faq-section {
  background: var(--color-bg);
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
details {
  border-bottom: 1px solid var(--color-border);
}
details:first-of-type {
  border-top: 1px solid var(--color-border);
}
summary {
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 0 var(--space-3);
  color: var(--color-text-light);
  font-size: var(--text-base);
  line-height: 1.75;
}

/* ====================================
   13. CTA BAND
   ==================================== */
.cta-band {
  background: var(--color-primary);
  text-align: center;
  padding: var(--space-8) var(--container-padding);
}
.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-3);
  font-size: var(--text-3xl);
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-5);
}

/* ====================================
   14. ABOUT PAGE
   ==================================== */
.about-intro {
  background: var(--color-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-8);
  align-items: start;
}
.about-body h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.about-body p {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.85;
  margin-bottom: var(--space-3);
}
.about-sidebar {}

.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}
.credential-list li i {
  color: var(--color-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Animals section */
.animals-section {
  background: var(--color-surface);
}
.animals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.animals-text h2 { margin-bottom: var(--space-3); }
.animals-text p { color: var(--color-text-light); margin-bottom: var(--space-3); }

@media (max-width: 768px) {
  .animals-grid { grid-template-columns: 1fr; }
}

/* ====================================
   15. SHOP PAGE
   ==================================== */
.shop-section {
  background: var(--color-bg);
}
.shop-section + .shop-section {
  background: var(--color-surface);
}

/* Candle cards */
.candle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.candle-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3) var(--space-4);
  text-align: center;
}
.candle-card .candle-number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.candle-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}
.candle-card .candle-scent {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--space-2);
}
.candle-card .candle-desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}
.price-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.price-tag {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 0.25em 0.75em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 960px) {
  .candle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .candle-grid { grid-template-columns: 1fr; }
}

/* Wool roving table */
.wool-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.wool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-bg);
}
.wool-table th {
  background: var(--color-secondary);
  color: var(--color-footer-text);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.wool-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}
.wool-table tr:last-child td { border-bottom: none; }
.wool-table tr:hover td { background: var(--color-surface); }
.sheep-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}
.sheep-price {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Skin care section */
.skincare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.skincare-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}
.skincare-card h3 { margin-bottom: var(--space-2); }
.skincare-card p { font-size: var(--text-sm); color: var(--color-text-light); }

@media (max-width: 600px) {
  .skincare-grid { grid-template-columns: 1fr; }
}

/* Payment info bar */
.payment-bar {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.payment-bar i {
  color: var(--color-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.payment-bar p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* ====================================
   16. BLOG PAGE
   ==================================== */
.blog-index {
  background: var(--color-bg);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.blog-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.blog-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  flex: 1;
  margin-bottom: var(--space-3);
}
.blog-card .read-more {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.blog-card .read-more:hover { color: var(--color-primary-dark); }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Blog post page */
.post-content {
  background: var(--color-bg);
}
.post-article {
  max-width: 720px;
  margin: 0 auto;
}
.post-meta {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.post-article h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.post-article h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.post-article p {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.85;
  margin-bottom: var(--space-3);
}
.post-article ul, .post-article ol {
  margin: 0 0 var(--space-3) var(--space-4);
  color: var(--color-text-light);
}
.post-article li { margin-bottom: var(--space-1); }
.post-back {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* ====================================
   17. CONTACT PAGE
   ==================================== */
.contact-section {
  background: var(--color-bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Form styling */
.contact-form { }
.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61,90,115,0.12);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Contact info sidebar */
.contact-info h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
}
.contact-detail i {
  color: var(--color-accent);
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
}
.contact-detail a {
  color: var(--color-text);
}
.contact-detail a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ====================================
   18. THANKS PAGE
   ==================================== */
.thanks-section {
  background: var(--color-bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.thanks-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-8) var(--container-padding);
}
.thanks-content i {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}
.thanks-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}
.thanks-content p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* ====================================
   19. FOOTER
   ==================================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-8) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(235,229,216,0.2);
}
.footer-brand .footer-logo-wrap {
  display: inline-block;
  background: var(--color-footer-text);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-3);
}
.footer-brand .footer-logo-wrap img {
  height: 52px;
  width: auto;
}
.footer-brand p {
  color: rgba(235,229,216,0.7);
  font-size: var(--text-sm);
  max-width: 280px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(235,229,216,0.3);
  color: var(--color-footer-text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.footer-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links li {
  font-size: var(--text-sm);
  color: rgba(235,229,216,0.7);
}
.footer-links a {
  color: rgba(235,229,216,0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-footer-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(235,229,216,0.45);
}
.footer-bottom a {
  color: rgba(235,229,216,0.45);
}
.footer-bottom a:hover { color: rgba(235,229,216,0.8); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====================================
   20. SCROLL REVEAL
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ====================================
   21. COOKIE CONSENT BANNER
   ==================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  z-index: 999;
  font-size: var(--text-sm);
}
.cookie-banner p { margin: 0; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* ====================================
   22. PAGE-SPECIFIC BACKGROUND IMAGES
   ==================================== */

/* Home hero — horses at Montana sunset */
.hero-bg-home {
  background-image: url('My Photos and Logo/IMG_4108.jpeg');
}

/* Home story band — person cradling newborn lamb */
.story-bg-home {
  background-image: url('My Photos and Logo/IMG_3896.jpeg');
  background-position: center 30%;
}

/* About page photo band — sheep at sunset with pine */
.about-photo-band {
  position: relative;
  background-image: url('My Photos and Logo/IMG_4112.jpeg');
  background-size: cover;
  background-position: center 40%;
}
.about-photo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.44));
}
.about-photo-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.about-photo-band h2 { color: #fff; margin-bottom: var(--space-3); }
.about-photo-band p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); max-width: 640px; margin: 0 auto; }

/* ====================================
   23. UTILITIES
   ==================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }

/* Contact review note */
.contact-review-note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Breadcrumb */
.breadcrumb {
  font-size: var(--text-xs);
  color: rgba(235,229,216,0.6);
  margin-top: var(--space-3);
  display: flex;
  gap: 0.5em;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(235,229,216,0.6); }
.breadcrumb a:hover { color: var(--color-footer-text); }
.breadcrumb-sep { opacity: 0.4; }
