/*
Theme Name: Sarina Farming House
Theme URI: https://sfh.abipay.co.id
Author: Sarina Farming House
Description: A professional sustainable agriculture theme for Sarina Farming House.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: sarina-farming-house
*/
/* =============================
   GOOGLE FONTS
============================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');
/* =============================
   COLOR PALETTE (Sage + Nude)
   --green-dark:   #4a6650
   --green-mid:    #7a9e72
   --green-light:  #b2c9a8
   --nude-dark:    #a08060
   --nude-mid:     #c9b090
   --nude-light:   #e8ddd0
   --cream:        #f5f0e8
   --dark:         #2e3a2e
============================= */
/* =============================
   RESET & BASE
============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', 'Segoe UI', sans-serif;
  background-color: #f5f0e8;
  color: #3a3028;
  font-size: 16px;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
/* =============================
   TYPOGRAPHY
============================= */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #2e3a2e;
  line-height: 1.25;
}
h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.4rem; font-weight: 600; }
h3 { font-size: 1.6rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin-bottom: 1.2rem; color: #5a5048; font-weight: 300; }
/* =============================
   CONTAINER
============================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* =============================
   HEADER & NAVIGATION
============================= */
#site-header {
  background-color: #f5f0e8;
  border-bottom: 2px solid #c9b090;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.75rem 0;
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative; /* needed so the open nav can position: absolute relative to this */
}
/* Logo */
.site-logo {
  flex-shrink: 0;
  max-width: 60%;
}
.site-logo img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* Nav */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#primary-nav ul li a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a6650;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
#primary-nav ul li a:hover { color: #7a9e72; }
#primary-nav ul li.contact-btn a {
  background-color: #7a9e72;
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  transition: background-color 0.2s;
}
#primary-nav ul li.contact-btn a:hover { background-color: #4a6650; }
/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #4a6650;
  border-radius: 2px;
}
/* =============================
   HERO SECTION
============================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,30,20,0.45) 0%, rgba(20,30,20,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}
.hero-content .hero-logo-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-content .hero-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-shadow: 2px 4px 16px rgba(0,0,0,0.5);
}
.hero-content .hero-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  color: #e0ddd0;
  font-weight: 300;
}
.hero-content .hero-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #d8d2c5;
  font-weight: 300;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.8rem;
  background-color: #7a9e72;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s;
}
.hero-content .hero-cta:hover { background-color: #4a6650; }
/* =============================
   SECTION GENERIC
============================= */
.section { padding: 5rem 0; }
.section-alt { background-color: #ede7db; }
.section-nude { background-color: #e8ddd0; }
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p {
  font-size: 1rem;
  color: #7a7060;
  max-width: 580px;
  margin: 0 auto;
}
.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, #7a9e72, #c9b090);
  margin: 0.9rem auto 1.3rem;
  border-radius: 2px;
}
/* =============================
   ABOUT PREVIEW (Homepage)
============================= */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-preview img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
}
.about-preview-text h2 { margin-bottom: 1rem; }
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2.2rem;
  background-color: #7a9e72;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s;
}
.btn-primary:hover { background-color: #4a6650; }
/* =============================
   PRODUCTS GRID
============================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(60,50,30,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(60,50,30,0.13);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.product-card-body { padding: 1.75rem; }
.product-card-body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.product-card-body p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: #7a7060;
}
.product-derivatives {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.product-tag {
  background-color: #e8ddd0;
  color: #4a6650;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: 'Jost', sans-serif;
}
.product-tag-arrow {
  color: #c9b090;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
}
/* =============================
   VISION & MISSION
============================= */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.vision-box, .mission-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(60,50,30,0.07);
}
.vision-box .vm-icon,
.mission-box .vm-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.vision-box h3,
.mission-box h3 {
  margin-bottom: 0.75rem;
  color: #4a6650;
  font-size: 1.4rem;
}
.mission-list { margin-top: 0.75rem; }
.mission-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.mission-number {
  background: #7a9e72;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.mission-item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #2e3a2e;
}
.mission-item-text p {
  font-size: 0.8rem;
  color: #7a7060;
  margin: 0;
  line-height: 1.6;
}
/* =============================
   CONTACT SECTION
============================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; color: #4a6650; }
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.contact-detail .icon {
  font-size: 1.2rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #d8cfc0;
  background: #fff;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7a9e72;
  outline: none;
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form button {
  padding: 0.9rem 2.5rem;
  background-color: #7a9e72;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background-color: #4a6650; }
/* =============================
   PAGE HERO
============================= */
.page-hero {
  background: linear-gradient(135deg, #4a6650 0%, #7a9e72 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: 3rem; }
.page-hero p { color: #d8ecd0; max-width: 600px; margin: 1rem auto 0; font-weight: 300; }
/* =============================
   ABOUT PAGE
============================= */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-story img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(60,50,30,0.07);
}
.value-card .value-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; color: #4a6650; }
.value-card p { font-size: 0.9rem; color: #7a7060; margin: 0; }
/* =============================
   SHOP PAGE
============================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.shop-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(60,50,30,0.08);
  transition: transform 0.25s;
}
.shop-card:hover { transform: translateY(-5px); }
.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.shop-card-body { padding: 1.75rem; }
.shop-card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.shop-card-body p { font-size: 0.9rem; color: #7a7060; margin-bottom: 1rem; }
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid #7a9e72;
  color: #4a6650;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.2s;
}
.btn-outline:hover { background: #7a9e72; color: #fff; }
/* =============================
   FOOTER
============================= */
#site-footer {
  background-color: #2e3a2e;
  color: #a8b898;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; color: #7a8870; line-height: 1.7; font-weight: 300; }
.footer-col h4 {
  color: #c8d8b8;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: #7a8870; font-size: 0.88rem; transition: color 0.2s; font-weight: 300; }
.footer-col ul li a:hover { color: #b2c9a8; }
.footer-col ul li { color: #7a8870; font-size: 0.88rem; font-weight: 300; margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid #3a4a3a;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #5a6850;
  font-weight: 300;
}
/* =============================
   PRODUCT CATEGORY
============================= */
.product-category { margin-bottom: 4rem; }
.product-category-header { margin-bottom: 2rem; }
.product-category-header h2 { font-size: 2rem; }
.product-category-header p { max-width: 680px; color: #7a7060; }
.product-flex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
/* =============================
   RESPONSIVE — TABLET
============================= */
@media (max-width: 960px) {
  .about-preview,
  .about-story,
  .contact-grid,
  .vision-mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content .hero-logo-text { font-size: 3rem; }
}
/* =============================
   RESPONSIVE — MOBILE
============================= */
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }

  /* --- NAV: hide on mobile by default --- */
  #primary-nav {
    display: none;
  }

  /* --- NAV: open state — drops BELOW the header bar --- */
  #primary-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f5f0e8;
    border-top: 1px solid #e0d8c8;
    border-bottom: 2px solid #c9b090;
    padding: 0.5rem 1.5rem 1rem;
    z-index: 998;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }

  #primary-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  #primary-nav ul li a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e8e0d0;
    font-size: 0.85rem;
    width: 100%;
  }

  #primary-nav ul li:last-child a { border-bottom: none; }

  #primary-nav ul li.contact-btn { margin-top: 0.75rem; }
  #primary-nav ul li.contact-btn a {
    text-align: center;
    border-radius: 3px;
    padding: 0.75rem;
    border-bottom: none;
  }

  /* --- LOGO: shrink on mobile so hamburger stays on same row --- */
  .site-logo img {
    height: 44px;
  }

  /* --- HAMBURGER: show on mobile --- */
  .menu-toggle { display: flex; }

  /* --- GRIDS: force single column on mobile (important overrides inline styles) --- */
  .products-grid,
  .shop-grid,
  .values-grid,
  .product-flex-grid { grid-template-columns: 1fr !important; }

  /* --- FOOTER --- */
  .footer-grid { grid-template-columns: 1fr; }

  /* --- TYPOGRAPHY --- */
  h1, .hero-content .hero-logo-text { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }

  /* --- SECTIONS --- */
  .section { padding: 3.5rem 0; }

  /* --- HERO --- */
  .hero-section { height: 90vh; min-height: 500px; }
  .hero-content .hero-logo-img { width: 110px; height: 110px; }

  /* --- PAGE HERO --- */
  .page-hero { padding: 3rem 0 2.5rem; }
  .page-hero h1 { font-size: 2rem; }

  /* --- ABOUT IMAGES --- */
  .about-preview img,
  .about-story img { height: 260px; }

  /* --- VISION/MISSION --- */
  .vision-box, .mission-box { padding: 1.75rem; }

  /* --- PRODUCTS PAGE GRID --- */
  .shop-grid {
    padding: 0 1rem 3rem;
    gap: 1.25rem;
  }
}