/* =============================================
   Ranch Hand Rendering — Main Stylesheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown-dark:   #2C1A0E;
  --brown-mid:    #4A2C17;
  --brown-warm:   #7A4A28;
  --gold:         #C8922A;
  --gold-light:   #E8B96A;
  --cream:        #F5EFE4;
  --cream-dark:   #EDE3D0;
  --white:        #FFFFFF;
  --text-dark:    #1C1008;
  --text-mid:     #4A3728;
  --text-light:   #7A6255;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --max-w:        1200px;
  --section-pad:  100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--brown-dark);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--text-mid); }

.lead {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 1.5rem 0 3rem;
  color: var(--text-mid);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--brown-warm);
  border-color: var(--brown-warm);
}

.btn-secondary {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-mid);
}
.btn-secondary:hover {
  background: var(--brown-mid);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: var(--brown-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

#logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  background: var(--brown-dark);
  padding: 0 40px 20px;
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    160deg,
    var(--brown-dark) 0%,
    var(--brown-mid) 50%,
    #3A2010 100%
  );
  overflow: hidden;
}

/* Subtle texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(200, 146, 42, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,16,8,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
}

.hero-logo-wrap {
  margin-bottom: 2rem;
}
.hero-logo {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

#hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* =============================================
   WHY TALLOW
   ============================================= */
#why-tallow {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 2.5rem;
}

.why-text p + p { margin-top: 1.2rem; }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 1.5rem;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.stat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}

.stat-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =============================================
   PRODUCTS
   ============================================= */
#products {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.product-cards.two-up {
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,26,14,0.1);
}

.product-card.featured {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200, 146, 42, 0.15);
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--brown-warm);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.product-card.featured .product-badge {
  background: var(--gold);
  color: var(--white);
}

.product-card h3 { margin-bottom: 0.4rem; }

.product-tagline {
  font-size: 0.9rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.product-card > p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.product-features li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =============================================
   OUR STANDARD
   ============================================= */
#difference {
  padding: var(--section-pad) 0;
  background: var(--brown-dark);
}

#difference .section-label { color: var(--gold-light); }
#difference h2 { color: var(--white); }

.difference-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2.5rem;
}

.difference-text {
  max-width: 760px;
}

.difference-text p { color: rgba(255,255,255,0.7); }
.difference-text .lead { color: rgba(255,255,255,0.9); }
.difference-text p + p { margin-top: 1.2rem; }
.difference-text em { color: var(--gold-light); font-style: normal; font-weight: 600; }

.difference-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  padding: 1.75rem 2rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.pillar:nth-child(3n+1) {
  border-left: none;
  padding-left: 0;
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pillar h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.pillar p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -0.5rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.contact-block p, .contact-block a {
  color: var(--text-mid);
  font-size: 0.95rem;
}

.contact-block a:hover { color: var(--gold); }

.contact-block.ethos {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 4px 4px 0;
  margin-top: 1rem;
}

.contact-block.ethos blockquote {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  font-style: italic;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--brown-dark);
  padding: 50px 0;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-tagline {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .difference-pillars { grid-template-columns: repeat(2, 1fr); }

  .product-cards { grid-template-columns: 1fr 1fr; }
  .product-cards.two-up { grid-template-columns: 1fr; }

  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px; }

  .container { padding: 0 24px; }

  .nav-inner { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { padding: 0 24px 20px; }

  .hero-content { padding: 100px 24px 60px; }

  .product-cards { grid-template-columns: 1fr; }

  .why-stats { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .difference-pillars { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; }
  .pillar:first-child { border-top: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
