/* ============================================
   GRAINRICH33 — GLOBAL STYLESHEET
   Shared across all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --green:       #1B3A2D;
  --green-dark:  #122B20;
  --green-mid:   #2A5240;
  --gold:        #C8962A;
  --gold-light:  #E5B84A;
  --gold-pale:   #F5E6C0;
  --parchment:   #FAF6F0;
  --cream:       #F0E8D8;
  --espresso:    #2C1810;
  --muted:       #6B5A4E;
  --border:      rgba(43,26,16,0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max:   1200px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--espresso);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27,58,45,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,150,42,0.18);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  padding: 4px 0;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: #fff;
}
.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}
.nav__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark) !important;
  background: var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--gold-light) !important;
  color: var(--green-dark) !important;
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── FOOTER ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem var(--pad-x) 2rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem 3rem;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer__desc {
  font-size: 0.83rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--gold-light); }

/* ── UTILITIES ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
}
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #fff; }
.section--dark  { background: var(--green-dark); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.eyebrow--light { color: var(--gold-light); }

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}
.heading-sm {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
}
.gold-rule--center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}
.btn--gold {
  background: var(--gold);
  color: var(--green-dark);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline-dark {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--outline-dark:hover {
  background: var(--green);
  color: #fff;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.divider--light { border-color: rgba(255,255,255,0.1); }

/* ── SCROLL REVEAL (JS-driven) ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 1.5rem var(--pad-x) 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(200,150,42,0.15);
  }
  .nav__links.open a { font-size: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
