/* =========================================================
   POWERHOUSE ROASTERS — styles.css (FULL REWRITE)
   Goal: warm parchment + visible hero image + readable hero text
         + cleaner, more professional header.
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root{
  --bg: #F6F2EA;            /* warm parchment */
  --bg-alt: #E9E0CF;        /* section alt */
  --card: #FDF9F2;          /* card surface */
  --text: #2B2B2B;          /* charcoal */
  --muted: #6E7569;         /* sage-gray */
  --ink: #0A0A0A;           /* near-black */
  --white: #FFFFFF;

  --gold: #C8A24D;          /* muted gold */
  --gold-dark: #B89542;

  --border: rgba(0,0,0,0.10);
  --shadow: 0 10px 24px rgba(0,0,0,0.06);

  --radius: 14px;
  --radius-lg: 18px;

  --container: 1200px;
}

/* ---------- BASE ---------- */
*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: var(--gold);
  text-decoration: none;
}
a:hover{ opacity: 0.9; }

.container{
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Headings */
h1, h2, h3{
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

/* ---------- HEADER ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 99;

  background: rgba(10,10,10,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.header-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-area{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 220px;
}

.logo-img{
  width: 46px;
  height: auto;
}

.site-title{
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Nav: more “premium” spacing + clickable area */
.nav{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a{
  color: rgba(255,255,255,0.92);
  font-size: 0.90rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  opacity: 0.92;
}

.nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* Header CTA */
.btn-header{
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #1A1307 !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-header:hover{
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* ---------- HERO ---------- */
/* Keep image VERY visible, but create readability where text sits */
.hero{
  padding: 6.25rem 0 5.75rem;
  text-align: center;
  color: var(--white);
  position: relative;

  /* Image first (very visible) */
  background: url("images/ranch-hero.jpg") center 40% / cover no-repeat;

  /* Subtle warm tone so it matches parchment site */
  background-color: #111;
}

/* Overlay tuned for: visible photo + readable text */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Minimal top overlay (keep image visible),
     stronger around the text area,
     slightly darker at bottom */
  background:
    radial-gradient(
      circle at 50% 58%,
      rgba(0,0,0,0.20) 0%,
      rgba(0,0,0,0.35) 42%,
      rgba(0,0,0,0.55) 78%,
      rgba(0,0,0,0.68) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.20) 35%,
      rgba(0,0,0,0.40) 72%,
      rgba(0,0,0,0.62) 100%
    );
}

/* Ensure hero content sits above overlay */
.hero > *{
  position: relative;
  z-index: 1;
}

.eyebrow{
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 10px 22px rgba(0,0,0,0.55);
}

.hero-title{
  font-size: clamp(2.6rem, 4.6vw, 3.7rem);
  margin: 0.9rem 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);

  /* This is what makes the headline POP */
  text-shadow:
    0 2px 0 rgba(0,0,0,0.30),
    0 14px 34px rgba(0,0,0,0.70);
}

.hero-sub{
  max-width: 40rem;
  margin: 0.9rem auto;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.93);
  text-shadow: 0 12px 26px rgba(0,0,0,0.60);
}

/* Hero actions */
.hero-actions{
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* Optional: if you add <div class="hero-panel"> around text/buttons */
.hero-panel{
  max-width: 920px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
}

/* ---------- BUTTONS ---------- */
.btn{
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition: 0.18s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.btn-primary{
  background: var(--gold);
  color: #1E1E1E;
  border: 1px solid var(--gold);
}

.btn-primary:hover{
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline{
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--white);
  background: rgba(0,0,0,0.18);
}

.btn-outline:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.85);
}

/* ---------- SECTIONS ---------- */
.section{
  padding: 4.2rem 0;
}

.section-alt{
  background: var(--bg-alt);
}

.section-title{
  font-size: 2rem;
  margin-bottom: 0.55rem;
}

.section-lead{
  max-width: 52rem;
  margin: 0 0 2rem;
  color: rgba(43,43,43,0.90);
}

/* ---------- PILLARS ---------- */
.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.pillar{
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.pillar h3{
  margin-bottom: 0.4rem;
}

/* ---------- WYOMING BANNER / STORY ---------- */
.wyoming-banner{
  padding: 4.2rem 0;
  background:
    linear-gradient(to bottom, rgba(246,242,234,0.86), rgba(246,242,234,0.92));
}

.wyoming-banner-inner{
  max-width: 650px;
  margin: auto;
}

/* ---------- CRAFTSMANSHIP ---------- */
.craft-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.craft-img img{
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.08);
}

/* ---------- DIVIDER (If used) ---------- */
.ranch-divider{
  height: 260px;
  background:
    linear-gradient(
      to bottom,
      rgba(246,242,234,0.40),
      rgba(246,242,234,0.78)
    );
}

/* ---------- COFFEES ---------- */
.coffee-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.coffee-card{
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

.coffee-card h3{
  margin-bottom: 0.45rem;
}

.coffee-card .muted{
  color: rgba(43,43,43,0.80);
}

/* ---------- SAMPLE PACK ---------- */
.sample-layout{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.sample-list{
  margin: 0;
  padding-left: 1.1rem;
}

.sample-cta{
  min-width: 220px;
}

.sample-note{
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: rgba(43,43,43,0.86);
}

/* ---------- WHOLESALE ---------- */
.wholesale-list{
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

/* ---------- CONTACT ---------- */
.contact-form{
  max-width: 520px;
  margin-top: 1rem;
}

.form-row{
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  font: inherit;
  background: rgba(255,255,255,0.75);
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: rgba(200,162,77,0.65);
  box-shadow: 0 0 0 4px rgba(200,162,77,0.18);
}

.contact-form textarea{
  resize: vertical;
}

.contact-note{
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: rgba(43,43,43,0.86);
}

/* ---------- FOOTER ---------- */
.site-footer{
  background: var(--bg-alt);
  padding: 1.6rem 0;
  color: var(--text);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ---------- STORY PAGE HELPERS (if used) ---------- */
.story-page{
  background: var(--bg);
}

.story-divider{
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 48px 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .logo-area{
    min-width: unset;
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
  }

  .btn-header{
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 900px){
  .pillars{
    grid-template-columns: 1fr;
  }

  .craft-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .hero{
    padding: 5.2rem 0 4.8rem;
  }

  .hero-sub{
    font-size: 1.02rem;
  }

  .nav a{
    font-size: 0.88rem;
    padding: 0.42rem 0.55rem;
  }
}
