/* ===========================================
   Indian Olive Association — Shared Stylesheet
   =========================================== */

:root {
  --cream: #F5EFE2;
  --cream-warm: #EFE6D2;
  --olive-deep: #3D4A2A;
  --olive: #5A6B3B;
  --olive-light: #8A9A5B;
  --terracotta: #B5563B;
  --terracotta-dark: #8F3E28;
  --ink: #1F2416;
  --muted: #6B6A5E;
  --line: #D9CFB8;
  --gold: #B8934D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.serif, h1, h2, h3, h4 {
  font-feature-settings: "liga" 1, "kern" 1;
  font-optical-sizing: auto;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--olive-deep);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  position: relative;
  z-index: 10;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}
.topbar a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.topbar a:hover { opacity: 1; }

/* ============ HEADER ============ */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 239, 226, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-lockup {
  display: block;
  width: auto;
  height: 90px;
  max-width: 100%;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-lockup {
  opacity: 0.85;
}

nav > ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
nav a:hover { color: var(--olive); }
nav a.active { color: var(--olive-deep); }
nav a.active::after,
nav > ul > li > a:hover::after {
  transform: scaleX(1);
}
nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.has-drop { position: relative; }
.has-drop > a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 6px;
  margin-bottom: 3px;
  transition: transform 0.2s;
}
.has-drop:hover > a::before { transform: rotate(225deg); margin-bottom: -2px; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0;
  min-width: 280px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  box-shadow: 0 12px 28px rgba(31, 36, 22, 0.08);
}
.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.87rem;
}
.dropdown li a:hover { background: var(--cream-warm); color: var(--olive-deep); }
.dropdown li + li { border-top: 1px solid rgba(217, 207, 184, 0.5); }

.nav-cta {
  background: var(--olive-deep);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  font-size: 0.82rem !important;
}
.nav-cta:hover { background: var(--olive); }
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ============ TYPE & UTILITIES ============ */
.serif { font-family: 'Fraunces', serif; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--olive);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--olive-deep); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--olive-deep); border-color: var(--olive-deep); }
.btn-ghost:hover { background: var(--olive-deep); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--olive-deep); }
.btn-gold:hover { background: var(--cream); transform: translateY(-2px); }
.btn svg { transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

/* ============ PAGE BANNER ============ */
.page-banner {
  background: var(--cream-warm);
  border-bottom: 1px solid var(--line);
  padding: 4rem 2rem 3.5rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--olive-light) 0%, transparent 70%);
  opacity: 0.25;
}
.page-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-banner h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--olive-deep);
  margin-top: 0.5rem;
}
.page-banner h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--olive); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }

/* ============ CONTAINERS ============ */
section { position: relative; z-index: 2; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: end;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
}
.section-head h2 em { font-style: italic; color: var(--terracotta); }
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.35rem;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); display: inline-block;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 5rem 2rem 1.5rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 239, 226, 0.15);
}
.footer-brand .name {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.footer-brand .subtag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.65;
}
.footer-address {
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 320px;
}
.footer-address a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.footer-address a:hover {
  border-bottom-color: var(--gold);
}
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: var(--cream);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.75;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}
.footer-bottom a { color: var(--cream); text-decoration: none; margin: 0 0.4rem; }
.footer-credit {
  color: var(--gold);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 0.88rem;
}
.footer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(184, 147, 77, 0.5);
  padding-bottom: 1px;
  transition: all 0.2s;
}
.footer-credit a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .topbar-inner { font-size: 0.7rem; }
  .container, .container-narrow { padding: 3.5rem 1.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
  .page-banner { padding: 3rem 1.5rem 2.5rem; }
  nav > ul {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 88%;
    max-width: 360px;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.3rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }
  nav > ul.open { transform: translateX(0); }
  nav > ul > li { width: 100%; }
  nav a { font-size: 1rem; padding: 0.6rem 0; display: block; }
  .has-drop > a::before { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    min-width: auto;
  }
  .dropdown li a { font-size: 0.88rem; padding: 0.4rem 0; }
  .dropdown li + li { border-top: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; z-index: 150; position: relative; }
  .topbar-inner > div:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wrap { padding: 1rem 1.25rem; }
  .brand-lockup { height: 60px; }
}
