/* =============================================================
   Valley Roots Supply — styles.css
   Design: Field to Market | Agriculture Premium
   Palette: Forest green, sage, warm brown, cream/tan
   ============================================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --green-dark:    #2C5F2E;
  --green-mid:     #3A7D3D;
  --green-sage:    #7A9E5C;
  --green-light:   #B8D4A0;
  --brown:         #6B4226;
  --brown-light:   #A0714F;
  --cream:         #F5F0E8;
  --cream-dark:    #EAE3D5;
  --white:         #FFFFFF;
  --charcoal:      #1A1A1A;
  --text-mid:      #4A4A4A;
  --text-light:    #6B6B6B;
  --border:        #D8D0C4;
  --shadow-sm:     0 2px 8px rgba(44,95,46,0.10);
  --shadow-md:     0 6px 24px rgba(44,95,46,0.14);
  --shadow-lg:     0 16px 48px rgba(44,95,46,0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.25s ease;
  --header-h:      76px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
p { margin-bottom: 0; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}
.btn-full { width: 100%; }

/* ===== SECTION SHARED ===== */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header--light h2,
.section-header--light .section-label,
.section-header--light .section-sub {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 10px;
}
.section-sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== LEAF DIVIDER SVG BG ===== */
.section::before {
  content: none;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.transparent {
  background: transparent;
}
.site-header.solid {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img   { height: 72px; width: auto; transition: filter var(--transition); }
.site-header.transparent .logo-img { filter: brightness(0) invert(1); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  color: var(--text-mid);
}
.site-header.transparent .main-nav a { color: rgba(255,255,255,0.88); }
.site-header.transparent .main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.main-nav a:hover { color: var(--green-dark); background: var(--cream); }

.main-nav a.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 8px 20px;
  font-weight: 600;
}
.main-nav a.nav-cta:hover { background: var(--green-mid); }

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
  transition: color var(--transition);
}
.site-header.transparent .header-phone { color: rgba(255,255,255,0.9); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header.transparent .hamburger span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* Fixes iOS Safari — excludes browser chrome from height */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Placeholder gradient — replace with a real farm photo */
  background:
    linear-gradient(
      160deg,
      #1a3a1b 0%,
      #2C5F2E 40%,
      #3d7a40 70%,
      #4a8f4d 100%
    );
  overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(122,158,92,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107,66,38,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative leaf shapes */
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0; right: 0;
  height: 120px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 160px;
  max-width: 900px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em {
  font-style: italic;
  color: var(--green-light);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--green-light);
  margin-bottom: 16px;
  margin-top: -8px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  width: 28px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== WHO WE SERVE ===== */
.who-we-serve { background: var(--white); }
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.serve-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.serve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.serve-icon {
  width: 52px;
  height: 52px;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.serve-icon svg { width: 100%; height: 100%; }
.serve-card h3 { margin-bottom: 10px; color: var(--green-dark); }
.serve-card p  { font-size: 0.95rem; color: var(--text-mid); }

/* ===== PRODUCTS ===== */
.products { background: var(--cream); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-sage);
}
.product-icon {
  width: 64px;
  height: 64px;
  color: var(--green-dark);
}
.product-icon svg { width: 100%; height: 100%; }
.product-card h3 { color: var(--green-dark); margin: 0; }
.product-card p  { font-size: 0.95rem; color: var(--text-mid); flex: 1; }
.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  background: rgba(107,66,38,0.08);
  border-radius: 50px;
  padding: 4px 12px;
}

.product-card--bulk {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}
.product-card--bulk .product-icon { color: var(--green-light); }
.product-card--bulk h3 { color: var(--white); }
.product-card--bulk p  { color: rgba(255,255,255,0.85); }
.product-card--bulk .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  margin-top: auto;
}
.product-card--bulk .btn-primary:hover { background: var(--cream); }

/* ===== WHY US ===== */
.why-us {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 80%, rgba(122,158,92,0.25) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(107,66,38,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.why-us .section-label { color: var(--green-light); }
.why-us h2            { color: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 24px;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(184,212,160,0.4);
}
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-light);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}
.why-card h3 { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.why-card p  { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ===== SERVICE AREA ===== */
.service-area { background: var(--white); }
.service-area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-area-text .section-label { color: var(--green-sage); }
.service-area-text h2 { margin-bottom: 18px; }
.service-area-text > p {
  color: var(--text-mid);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 36px;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--charcoal);
}
.area-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-sage);
  flex-shrink: 0;
}
.service-area-visual {
  display: flex;
  justify-content: center;
}
.map-placeholder {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bc-map-svg { width: 100%; max-width: 240px; }

/* ===== ABOUT ===== */
.about { background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}
.about-logo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-logo-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.about-text .section-label { color: var(--green-sage); }
.about-text h2  { margin-bottom: 10px; }
.about-tagline  {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 24px;
}
.about-text p { color: var(--text-mid); margin-bottom: 16px; }
.about-contact-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-light);
}
.about-contact-line a { color: var(--green-dark); font-weight: 500; }
.about-contact-line a:hover { text-decoration: underline; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-label { color: var(--green-sage); }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-mid); margin-bottom: 32px; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--text-mid);
}
.contact-details li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--green-dark); }
.contact-details a { color: var(--green-dark); font-weight: 500; }
.contact-details a:hover { text-decoration: underline; }

.social-links { display: flex; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: background var(--transition), border-color var(--transition);
}
.social-link:hover { background: var(--cream-dark); border-color: var(--green-light); }
.social-link svg { width: 18px; height: 18px; color: #1877F2; }

/* Contact Form */
.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(122,158,92,0.18);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #B0A898; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
}
.hidden { display: none !important; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
}
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-nav h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-nav a:hover { color: var(--green-light); }
.footer-contact p { font-size: 0.92rem; margin-bottom: 6px; line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact a:hover { color: var(--green-light); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .serve-grid     { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .service-area-inner { gap: 40px; }
  .about-inner    { gap: 40px; }
  .contact-inner  { gap: 40px; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .service-area-inner { grid-template-columns: 1fr; }
  .service-area-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-logo-wrap { max-width: 400px; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .hamburger { display: flex; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { color: var(--charcoal) !important; }
  .main-nav a:hover { color: var(--green-dark) !important; }

  .hero-content { padding: 88px 20px 48px; }
  .hero-btns { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .hero-scroll-indicator { display: none; }

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

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .area-list { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}
