/* ═══════════════════════════════════════════════
   VALLEY CASITA CO. — Global Stylesheet
   valleycasitaco.com
   ═══════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --rust:        #C44B2B;
  --rust-light:  #E87455;
  --rust-dark:   #8B2E15;
  --charcoal:    #1A1410;
  --charcoal-mid:#2C2218;
  --warm-mid:    #5A4A38;
  --warm-light:  #9B8870;
  --sand:        #F5EFE0;
  --sand-dark:   #EDE4D0;
  --cream:       #FAF7F2;
  --white:       #FFFFFF;
  --gold:        #C9933A;
  --gold-light:  #E8B96A;
  --green:       #3A6B4A;
  --border:      #DED5C4;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-serif:   'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --max-width: 1160px;
  --gutter:    32px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 8px rgba(26,20,16,0.08);
  --shadow-md: 0 6px 24px rgba(26,20,16,0.12);
  --shadow-lg: 0 16px 48px rgba(26,20,16,0.16);

  --transition: 0.22s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--flush { padding: 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { line-height: 1.1; }

.display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 0.9;
}
.serif { font-family: var(--font-serif); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow--light { color: var(--rust-light); }
.eyebrow--gold  { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 10px;
  margin-bottom: 16px;
}
.section-title--light { color: var(--sand); }

.section-desc {
  font-size: 17px;
  color: var(--warm-mid);
  max-width: 620px;
  font-weight: 300;
  line-height: 1.7;
}
.section-desc--light { color: var(--warm-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--rust);
  color: var(--white);
  border: 2px solid var(--rust);
}
.btn--primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--sand);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--sand);
}
.btn--outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--border);
}
.btn--outline-dark:hover {
  border-color: var(--rust);
  color: var(--rust);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn--gold:hover {
  background: #A87830;
  border-color: #A87830;
  transform: translateY(-1px);
}
.btn--lg { padding: 18px 36px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn .arrow {
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(26,20,16,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-main {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.nav__logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,239,224,0.75);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--rust-light);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--sand); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--sand); }
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--rust);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  transition: all var(--transition);
}
.nav__cta:hover {
  background: var(--rust-dark);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── MOBILE NAV ── */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--charcoal);
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
}
.nav__mobile.open { display: block; }
.nav__mobile-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: rgba(245,239,224,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.04em;
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ── FOOTER ── */
.footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--sand);
  margin-bottom: 4px;
}
.footer__brand-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 20px;
}
.footer__desc {
  font-size: 14px;
  color: var(--warm-light);
  font-weight: 300;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}
.footer__contact-item {
  font-size: 14px;
  color: var(--warm-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__contact-item a:hover { color: var(--sand); }
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--warm-light);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--sand); }
.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 13px;
  color: var(--warm-light);
}
.footer__roc {
  font-size: 12px;
  color: var(--warm-light);
  opacity: 0.6;
}
.footer__zips {
  font-size: 11px;
  color: var(--warm-light);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ── CARDS ── */
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--sand-dark);
  position: relative;
  overflow: hidden;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 24px; }
.card__eyebrow { margin-bottom: 8px; }
.card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card__desc {
  font-size: 14px;
  color: var(--warm-mid);
  line-height: 1.6;
  font-weight: 300;
}

/* ── STAT BOXES ── */
.stat {
  text-align: center;
  padding: 32px 20px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--rust-light);
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  color: var(--warm-light);
  font-weight: 300;
  line-height: 1.4;
}

/* ── CALLOUT / BADGE ── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}
.badge--rust   { background: var(--rust);  color: var(--white); }
.badge--gold   { background: var(--gold);  color: var(--white); }
.badge--green  { background: var(--green); color: var(--white); }
.badge--sand   { background: rgba(245,239,224,0.15); color: var(--sand); border: 1px solid rgba(245,239,224,0.2); }
.badge--outline{ background: transparent; color: var(--rust); border: 1px solid var(--rust); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.divider--dark { background: rgba(255,255,255,0.08); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(196,75,43,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--charcoal);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--warm-light);
}
.trust-item__icon {
  width: 20px;
  height: 20px;
  color: var(--rust-light);
  flex-shrink: 0;
}
.trust-item strong { color: var(--sand); font-weight: 600; }

/* ── STAR RATING ── */
.stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ── FLEX UTILITIES ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm  { gap: 12px; }
.flex-gap-md  { gap: 24px; }
.flex-wrap    { flex-wrap: wrap; }

/* ── SPACING UTILITIES ── */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-rust   { color: var(--rust); }
.text-gold   { color: var(--gold); }
.text-warm   { color: var(--warm-mid); }
.text-muted  { color: var(--warm-light); }

/* ── PLACEHOLDER IMAGES (swap with real photos) ── */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--sand-dark) 0%, #E0D5C0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeup { animation: fadeUp 0.6s ease forwards; }
.animate-fadein { animation: fadeIn 0.5s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .trust-bar__inner { gap: 20px; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .btn--lg { padding: 16px 28px; font-size: 14px; }
}
