/*
Theme Name:  Mountain View Homestead Child
Theme URI:   https://mountainviewhomestead.com
Description: Custom child theme for Mountain View Homestead LLC
Author:      Mountain View Homestead
Author URI:  https://mountainviewhomestead.com
Template:    profile-lite
Version:     1.0.0
License:     GNU General Public License v2 or later
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy:       #17214e;
  --navy-mid:   #1e2d6b;
  --navy-dark:  #0e1535;
  --red:        #e93742;
  --red-light:  #f05560;
  --cream:      #F8F5F0;
  --warm-white: #FDFCFA;
  --off-white:  #F2EDE6;
  --charcoal:   #1a1a1a;
  --muted:      #6b6b6b;
  --light-gray: #e8e4de;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Montserrat', 'Gotham', 'Gotham HTF', 'Century Gothic', 'Futura', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  font-weight: 400;
}

/* paper texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; opacity: 0.5;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 56px;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
  background: rgba(23,33,78,0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(23,33,78,1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 46px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-name {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: white; line-height: 1;
}
.nav-logo-sub {
  font-size: 0.6rem; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); line-height: 1;
}
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-links a.cta {
  background: var(--red); color: white;
  padding: 10px 24px; border-radius: 2px; opacity: 1;
  transition: background 0.2s; letter-spacing: 0.14em;
}
.nav-links a.cta:hover { background: var(--red-light); color: white; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  background: var(--navy);
  display: flex; align-items: center;
}
.hero-bg-img { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(23,33,78,0.96) 0%, rgba(23,33,78,0.88) 45%, rgba(23,33,78,0.50) 100%);
}
.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 72px 100px;
  max-width: 680px;
}
.hero-left::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
}
.hero-eyebrow {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; background: var(--red); flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800; line-height: 1.05;
  color: white; margin-bottom: 10px; letter-spacing: -0.02em;
  animation: fadeUp 0.6s 0.08s ease both;
}
.hero-title .line-accent {
  color: var(--red); display: block;
  font-style: italic; font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 0.72em; letter-spacing: 0.01em; margin-top: 4px;
}
.hero-desc {
  font-size: 0.92rem; line-height: 1.85; font-weight: 300;
  color: rgba(255,255,255,0.62);
  max-width: 390px; margin-top: 24px; margin-bottom: 40px;
  animation: fadeUp 0.6s 0.16s ease both;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.24s ease both;
}
.btn-red {
  background: var(--red); color: white;
  padding: 14px 32px; text-decoration: none;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 2px; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-red:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.3); color: white;
  padding: 14px 32px; text-decoration: none;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 2px; display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: var(--red); background: rgba(233,55,66,0.1); }
.hero-stats {
  margin-top: 52px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 40px;
  animation: fadeUp 0.6s 0.32s ease both;
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -0.02em; line-height: 1; }
.stat-num span { color: var(--red); }
.stat-label { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.38); }
.hero-right { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MARQUEE ─── */
.marquee-strip {
  background: var(--red); padding: 11px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-inner { display: inline-flex; animation: marquee 20s linear infinite; }
.marquee-item {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); padding: 0 32px;
}
.marquee-dot { color: rgba(255,255,255,0.45); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SHARED SECTION STYLES ─── */
.section-eyebrow {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 2px; background: var(--red); flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.1;
  color: var(--navy); letter-spacing: -0.02em;
}
.section-title em {
  font-family: 'Playfair Display', serif;
  font-weight: 400; font-style: italic;
  color: var(--red); letter-spacing: 0;
}
.link-red {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1.5px solid var(--red); padding-bottom: 2px;
  transition: gap 0.2s, opacity 0.2s; white-space: nowrap;
}
.link-red:hover { gap: 10px; opacity: 0.8; }

/* ─── SHOP ─── */
.shop-section { padding: 96px 64px; background: var(--warm-white); }
.shop-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.shop-intro { max-width: 460px; }
.shop-intro p { margin-top: 18px; font-size: 0.9rem; line-height: 1.9; color: var(--muted); font-weight: 400; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: white; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer; border: 1px solid var(--light-gray);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(23,33,78,0.12); }
.product-image { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 0; left: 0;
  background: var(--navy); color: white;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px;
}
.product-badge.red { background: var(--red); }
.product-info { padding: 16px 18px 20px; }
.product-name { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.01em; }
.product-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.product-cta {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); text-decoration: none; transition: opacity 0.2s;
}
.product-cta:hover { opacity: 0.7; }

/* ─── PHOTO GRID ─── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 4px;
}
.pg-cell { overflow: hidden; position: relative; }
.pg-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 5s ease; display: block; }
.pg-cell:hover img { transform: scale(1.06); }
.pg-tall { grid-row: span 2; }
.pg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,33,78,0.65) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 18px;
  opacity: 0; transition: opacity 0.3s;
}
.pg-cell:hover .pg-overlay { opacity: 1; }
.pg-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: white; }
.pg-1 { background: #4A6A8A; }
.pg-2 { background: #7A5A4A; }
.pg-3 { background: #3A6A5A; }
.pg-4 { background: #8A7A5A; }
.pg-5 { background: #2A4A7A; }


/* ─── FIND US ─── */
.find-section {
  padding: 96px 64px; background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; overflow: hidden;
}
.find-watermark {
  position: absolute; top: 50%; right: -40px;
  transform: translateY(-50%);
  width: 420px; height: auto;
  opacity: 0.07; pointer-events: none; z-index: 0;
}
.find-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
}
.find-left .section-eyebrow { color: rgba(255,255,255,0.5); }
.find-left .section-eyebrow::before { background: var(--red); }
.find-left .section-title { color: white; }
.find-left .section-title em { color: var(--red); }
.find-left p { margin-top: 20px; color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.85; }
.find-cards { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.find-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  padding: 24px 26px; transition: background 0.3s, border-color 0.3s;
}
.find-card:hover { background: rgba(255,255,255,0.1); border-color: var(--red); }
.find-card-eyebrow {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 8px;
}
.find-card-name {
  font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -0.01em;
}
.badge-red {
  background: var(--red); color: white;
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px;
}
.find-card-detail { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.75; }
.find-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 13px; color: var(--red); text-decoration: none;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: gap 0.2s;
}
.find-card-link:hover { gap: 10px; }

/* ─── ABOUT ─── */
.about-section {
  padding: 96px 64px; background: var(--off-white);
  display: grid; grid-template-columns: 5fr 4fr; gap: 80px; align-items: center;
}
.about-text .section-eyebrow { color: var(--red); }
.about-text .section-title { color: var(--navy); }
.about-text p { margin-top: 18px; font-size: 0.9rem; line-height: 1.9; color: var(--muted); }
.about-text p+p { margin-top: 12px; }
.cta-row { margin-top: 32px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn-navy {
  background: var(--navy); color: white;
  padding: 13px 28px; text-decoration: none;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 2px; display: inline-block; transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); }
.about-visual { position: relative; padding-bottom: 28px; }
.about-img-wrap { border: 5px solid white; box-shadow: 0 12px 48px rgba(23,33,78,0.15); overflow: hidden; }
.about-img-wrap img { width: 100%; display: block; }
.about-float {
  position: absolute; bottom: 0; left: -24px;
  background: var(--red); color: white;
  padding: 16px 18px; border: 4px solid white; text-align: center;
}
.about-float .big { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.about-float .sm { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 5px; }

/* ─── VALUES ─── */
.values-section {
  background: white;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border-top: 3px solid var(--navy);
}
.value-card { padding: 48px 40px; background: white; position: relative; overflow: hidden; }
.value-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: var(--red); transition: width 0.5s;
}
.value-card:hover::after { width: 100%; }
.value-num {
  font-size: 3.5rem; font-weight: 800; color: var(--light-gray);
  line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px;
  transition: color 0.3s; display: block;
}
.value-card:hover .value-num { color: rgba(233,55,66,0.15); }
.value-title { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.value-text { font-size: 0.82rem; line-height: 1.85; color: var(--muted); }

/* ─── BLOG ─── */
.blog-section { padding: 96px 64px; background: var(--warm-white); }
.blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.blog-card { background: white; overflow: hidden; transition: transform 0.3s; border: 1px solid var(--light-gray); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(23,33,78,0.1); }
.blog-thumb { position: relative; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.bt-lg { height: 240px; }
.bt-sm { height: 160px; }
.btbg-1 { background: #3A5A7A; }
.btbg-2 { background: #7A5A4A; }
.btbg-3 { background: #3A6A5A; }
.blog-info { padding: 18px 20px 22px; }
.blog-cat { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.blog-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 10px; }
.blog-card:first-child .blog-title { font-size: 1.1rem; }
.blog-excerpt { font-size: 0.78rem; line-height: 1.75; color: var(--muted); }

/* ─── NEWSLETTER ─── */
.newsletter-section {
  padding: 80px 64px; background: var(--navy-dark); text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--red); opacity: 0.06;
}
.newsletter-section .section-eyebrow { justify-content: center; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.newsletter-section .section-eyebrow::before { background: var(--red); }
.nl-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: white; letter-spacing: -0.02em; margin-bottom: 14px; }
.nl-title em { font-family: 'Playfair Display', serif; font-weight: 400; font-style: italic; color: var(--red); letter-spacing: 0; }
.newsletter-section p { max-width: 440px; margin: 0 auto; color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.85; }
.nl-form { display: flex; max-width: 440px; margin: 30px auto 0; }
.nl-form input {
  flex: 1; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15); border-right: none;
  background: rgba(255,255,255,0.07); color: white;
  font-family: inherit; font-size: 0.85rem; outline: none;
  border-radius: 2px 0 0 2px;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button {
  background: var(--red); color: white; border: none;
  padding: 14px 26px; font-family: inherit;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border-radius: 0 2px 2px 0; transition: background 0.2s;
}
.nl-form button:hover { background: var(--red-light); }

/* ─── FOOTER ─── */
.footer-bar { height: 3px; background: var(--red); }
footer { background: var(--navy-dark); padding: 60px 64px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand p { font-size: 0.78rem; line-height: 1.85; color: rgba(255,255,255,0.38); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.38); text-decoration: none; font-size: 0.65rem; font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-socials a:hover { border-color: var(--red); color: white; background: var(--red); }
.footer-col-title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: white; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.38); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  background: #090d1e; padding: 16px 64px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.footer-bottom .red-dot { color: var(--red); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; padding: 44px 28px; }
  .footer-bottom { padding: 14px 28px; }
}
@media (max-width: 820px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-logo-text { display: none; }
  .nav-links { gap: 14px; }
  .nav-links li:nth-child(-n+3) { display: none; }
  .hero-left { padding: 108px 24px 68px; max-width: 100%; }
  .shop-section, .find-section, .about-section, .blog-section, .newsletter-section { padding: 68px 24px; }
  .shop-header, .blog-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .find-section { grid-template-columns: 1fr; gap: 40px; }
  .about-section { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .values-section { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pg-cell { height: 180px; }
  .pg-tall { grid-row: span 1; }
  footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer-bottom { padding: 12px 24px; flex-direction: column; gap: 6px; text-align: center; }
}
