/* =====================================================
   MIX & GRO — css/style.css
   SPA Layout · Earthy Green Theme
   ===================================================== */

/* ----- Custom Properties ----- */
:root {
  --green-dark:   #1A3A0A;
  --green-mid:    #2D6010;
  --green-light:  #4A8A20;
  --gold:         #B87820;
  --gold-light:   #D4A040;
  --bg:           #F7F5EE;
  --bg-alt:       #ECF0E5;
  --text:         #1C2415;
  --text-mid:     #3A4830;
  --text-muted:   #647058;
  --white:        #FFFFFF;
  --nav-h:        68px;
  --radius:       10px;
  --shadow:       0 4px 20px rgba(26,58,10,0.12);
  --shadow-hover: 0 8px 32px rgba(26,58,10,0.22);
  --ease:         0.26s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:        1100px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--green-dark);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ----- Utility ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease);
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: var(--white); }
.btn-dark {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-dark:hover { background: var(--green-light); border-color: var(--green-light); }

/* ======================
   NAV
   ====================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(26,58,10,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.32);
}
#nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.nav-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-brand-tag {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 5px;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-links li.nav-cta a {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}
.nav-links li.nav-cta a:hover { background: var(--gold-light); }

/* ======================
   SPA APP CONTAINER
   ====================== */
#app {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

/* ======================
   PAGES
   ====================== */
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease);
  background: var(--bg);
}
.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.page.exiting {
  opacity: 0;
  transform: translateY(-10px);
  transition-duration: 0.2s;
}
.page-inner {
  padding: clamp(3rem, 5vw, 5rem) 0 4rem;
  min-height: 100%;
}

/* Page headers (reusable) */
.page-header {
  margin-bottom: 3rem;
  text-align: center;
}
.page-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--text);
  margin-top: 0.3rem;
}

/* ======================
   HOME / HERO PAGE
   ====================== */
#page-home {
  background-image: url('../Images/AlmondTrees.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* hero never scrolls */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,44,6,0.88) 0%,
    rgba(26,56,8,0.7) 55%,
    rgba(14,36,4,0.85) 100%
  );
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 3rem 0 1rem;
}
.hero-content { max-width: 660px; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.84);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Bottom page hints */
.page-nav-hints {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.25rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.12);
}
.page-nav-hint {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  transition: color var(--ease);
}
.page-nav-hint:hover { color: var(--gold-light); }

/* ======================
   PRODUCT PAGE
   ====================== */
#page-product { background: var(--bg); }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-text .eyebrow { margin-bottom: 0.5rem; }
.product-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.product-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 2.25rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,58,10,0.07);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow var(--ease);
}
.feature-card.in { opacity: 1; transform: translateY(0); }
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feature-card.in:hover { transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px;
  background: rgba(45,96,16,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  color: var(--green-mid);
}
.feature-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.product-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  position: sticky;
  top: 2rem;
}

/* ======================
   DOCUMENTS PAGE
   ====================== */
#page-documents { background: var(--bg-alt); }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.35rem;
}
.doc-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.65rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,58,10,0.07);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow var(--ease);
}
.doc-card.in { opacity: 1; transform: translateY(0); }
.doc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.doc-card.in:hover { transform: translateY(-2px); }
.doc-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(45,96,16,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
}
.doc-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.doc-body h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.35rem; }
.doc-body p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.7rem; }
.doc-link    { font-size: 0.8rem; font-weight: 600; color: var(--green-mid); }
.doc-card:hover .doc-link { color: var(--green-light); }

/* ======================
   TEAM PAGE
   ====================== */
#page-team { background: var(--bg); }
.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.team-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.team-text .eyebrow  { margin-bottom: 0.5rem; }
.team-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.team-text p  { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.75; }
.team-text .btn { margin-top: 0.75rem; }

/* ======================
   CONTACT PAGE
   ====================== */
#page-contact { background: var(--green-dark); color: var(--white); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-left .eyebrow { color: var(--gold-light); }
.contact-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.12;
}
.contact-left > p  { color: rgba(255,255,255,0.74); line-height: 1.75; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.15rem; font-weight: 600; color: var(--white);
}
.contact-detail svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; color: var(--gold-light); }
.contact-detail a { color: var(--gold-light); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.76rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.07em; text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #C8D4B8;
  border-radius: 6px;
  font-size: 0.95rem; font-family: inherit;
  color: var(--text); background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,96,16,0.12);
}
.form-group textarea { resize: vertical; }
.btn-submit { width: 100%; padding: 0.9rem; font-size: 1rem; margin-top: 0.25rem; border: none; }
.form-message { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.4em; text-align: center; }
.form-message.success { color: var(--green-mid); font-weight: 600; }
.form-message.error   { color: #c0392b; }

/* ======================
   FOOTER
   ====================== */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #0F1C07;
  color: rgba(255,255,255,0.55);
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.footer-name small {
  font-weight: 400;
  color: var(--gold-light);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-phone a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-phone a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.76rem; }

/* Offset pages so footer doesn't overlap content */
.page-inner { padding-bottom: 6rem; }

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 900px) {
  .product-layout,
  .team-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-image   { order: -1; }
  .product-image img { aspect-ratio: 16/9; position: static; }
  .team-image img    { aspect-ratio: 16/9; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { position: static; }
  .page-inner { padding-bottom: 4rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--green-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    gap: 0.2rem;
    align-items: stretch;
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
    z-index: 199;
  }
  .nav-links.open  { display: flex; }
  .nav-links li a  { padding: 0.7rem 1rem; font-size: 1rem; }
  .feature-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .hero-actions    { flex-direction: column; align-items: flex-start; }
  .page-nav-hints  { gap: 1.5rem; flex-wrap: wrap; }
  .footer-links    { display: none; }
  .footer-bar      { justify-content: space-between; }
}
