/*
Theme Name: Western Ghats Brew
Theme URI: https://westernghatsbrew.com
Author: Western Ghats Brew
Author URI: https://westernghatsbrew.com
Description: A premium single-page WordPress theme for Western Ghats Brew — a single-origin Arabica coffee brand from Chikkamagaluru and Hassan, Karnataka. Converted from the original static site design with an editorial hero, estate story, brew process, products, gallery, and contact sections, plus scroll-reveal animations.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: western-ghats-brew
*/

/* ===== Variables ===== */
:root {
  --ink: #1c1410;
  --paper: #faf7f2;
  --paper-alt: #f0e9dc;
  --stone: #8a7d6c;
  --stone-light: #cabfa9;
  --rust: #b1531f;
  --white: #ffffff;
  --line: rgba(28, 20, 16, 0.12);
  --line-invert: rgba(255, 255, 255, 0.16);
  --radius: 4px;
  --shadow: 0 24px 48px -28px rgba(28, 20, 16, 0.4);
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
}

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rust);
}
.eyebrow-light { color: var(--stone-light); }
.eyebrow-light::before { background: var(--stone-light); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }

.section-sub {
  color: var(--stone);
  font-size: 1.05rem;
  max-width: 560px;
  font-weight: 400;
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons & Links ===== */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--rust); }
.btn-block { width: 100%; text-align: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--rust); border-color: var(--rust); }
.link-arrow:hover span { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-name em { font-style: italic; color: var(--rust); }

.nav {
  display: flex;
  gap: 40px;
}
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--rust);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-cta { white-space: nowrap; padding: 13px 28px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 1px;
  background: var(--ink);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,10,6,0.68) 0%, rgba(15,10,6,0.5) 45%, rgba(15,10,6,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  max-width: 760px;
}
.hero h1 {
  color: var(--white);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.08rem;
  color: #e7dccb;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero .link-arrow { color: var(--white); border-color: var(--line-invert); }
.hero .link-arrow:hover { color: var(--white); border-color: var(--white); }

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: #e7dccb;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 30px;
  background: var(--line-invert);
  margin: 10px auto 0;
  animation: scrollline 2s infinite;
}
@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Sections ===== */
.section {
  padding: 130px 0;
}
.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin: 0 0 64px;
}

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.split-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.split-copy p { margin-bottom: 20px; color: var(--stone); }

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}
.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ===== Process grid ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-card {
  background: var(--paper-alt);
  padding: 40px 34px;
  position: relative;
}
.process-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  margin-bottom: 22px;
}
.process-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.process-card:hover .process-img img { transform: scale(1.06); }
.process-num {
  display: block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rust);
  margin-bottom: 10px;
}
.process-card p { color: var(--stone); font-size: 0.95rem; }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img { height: 320px; object-fit: cover; }
.product-body { padding: 40px; }
.product-tag {
  color: var(--rust);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.product-body p:not(.product-tag) { color: var(--stone); margin-bottom: 26px; }

.price-list {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.price-list li span:first-child { color: var(--ink); font-weight: 500; }
.price-list li span:last-child { color: var(--rust); font-weight: 600; font-family: var(--font-head); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 20px;
}
.gallery-large { grid-row: span 2; }
.gallery-item { overflow: hidden; height: 100%; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== Contact ===== */
.contact-list { margin-top: 28px; }
.contact-list li {
  margin-bottom: 14px;
  color: var(--stone);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: var(--rust); font-weight: 600; }

.contact-form {
  background: var(--paper);
  padding: 44px;
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 26px; }
.form-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--stone);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  resize: vertical;
  color: var(--ink);
}
.form-row select { cursor: pointer; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--rust);
}
.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--rust);
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 80px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 34px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-invert);
}
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); }
.footer-tag { font-family: var(--font-body) !important; font-size: 0.78rem !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone) !important; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.footer-nav a:hover { color: var(--rust); }
.footer-social {
  color: var(--rust);
  font-weight: 600;
  font-size: 0.85rem;
}
.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--stone);
}

/* ===== Page (fallback WP page/post templates) ===== */
.page-content { max-width: 760px; }
.page-content p { color: var(--stone); margin-bottom: 20px; }
.page-content h1 { margin-bottom: 30px; }
article + article { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--line); }

/* ===== WordPress admin bar offset ===== */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split, .product-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 220px 220px; }
  .gallery-large { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.open .nav {
    display: flex;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 28px 32px;
    gap: 22px;
    box-shadow: var(--shadow);
  }
  .header-inner.open .nav-cta {
    display: inline-block;
    position: absolute;
    top: calc(88px + 260px);
    left: 32px;
  }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-large { grid-column: span 1; }
  .gallery-item { height: 260px; }
  .stat-row { gap: 30px; }
  .split-media img { height: 320px; }
  .section { padding: 90px 0; }
}
