/* ============================================================
   PALM LEAF PARTNERS — GLOBAL DESIGN SYSTEM
   Palette: Forest Green #1B4332 | Gold #B8860B | Cream #F5F0E8
   Typography: Playfair Display (headings) | Inter (body)
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1B4332;
  --green-mid:   #2D6A4F;
  --green-light: #40916C;
  --gold:        #B8860B;
  --gold-light:  #D4A017;
  --gold-pale:   #F0D080;
  --cream:       #F5F0E8;
  --cream-dark:  #EDE5D4;
  --white:       #FFFFFF;
  --charcoal:    #1A1A1A;
  --text-body:   #2C2C2C;
  --text-muted:  #6B6B6B;

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

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 2px 8px rgba(27,67,50,0.10);
  --shadow-md:  0 6px 24px rgba(27,67,50,0.15);
  --shadow-lg:  0 16px 48px rgba(27,67,50,0.20);

  --transition: 0.3s ease;
  --max-width:  1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--green);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-cream   { color: var(--cream); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-upper   { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,134,11,0.3);
  padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center;
  transition: background var(--transition);
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.navbar-logo img { height: 42px; width: auto; }
.navbar-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.navbar-logo-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: var(--cream); letter-spacing: 0.05em;
}
.navbar-logo-text .brand-sub {
  font-size: 0.65rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.navbar-nav a {
  color: var(--cream); font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--gold); background: rgba(184,134,11,0.12);
}
.navbar-nav .nav-cta {
  background: var(--gold); color: var(--green) !important;
  font-weight: 600; padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
}
.navbar-nav .nav-cta:hover { background: var(--gold-light); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--green); padding: 1.5rem;
  border-bottom: 2px solid var(--gold);
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu ul a {
  display: block; color: var(--cream); padding: 0.85rem 0;
  font-size: 1rem; font-weight: 500;
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.88) 0%, rgba(27,67,50,0.55) 60%, rgba(27,67,50,0.30) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--gold); padding: 0.35rem 1rem;
  border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 700px; }
.hero h1 span { color: var(--gold-pale); }
.hero p.lead {
  color: rgba(245,240,232,0.88); font-size: 1.15rem;
  max-width: 580px; margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--gold); color: var(--green); border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light); color: var(--green);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--cream); border-color: rgba(245,240,232,0.6);
}
.btn-outline:hover {
  background: rgba(245,240,232,0.1); border-color: var(--cream); color: var(--cream);
}
.btn-green {
  background: var(--green); color: var(--cream); border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid); border-color: var(--green-mid);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-muted); max-width: 600px; margin: 0 auto;
  font-size: 1.05rem;
}
.divider-gold {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,67,50,0.08);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(184,134,11,0.25);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--gold); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ── Stat Blocks ── */
.stats-bar {
  background: var(--green);
  padding: 3rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(184,134,11,0.2);
}
.stat-item {
  background: var(--green); padding: 2rem 1.5rem; text-align: center;
}
.stat-number {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--gold); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem; font-weight: 500; color: rgba(245,240,232,0.75);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── Pillar Icons ── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.pillar-card {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid rgba(27,67,50,0.08);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.pillar-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.pillar-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
}
.pillar-icon-wrap svg { width: 36px; height: 36px; }
.pillar-card h4 { color: var(--green); font-size: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pillar-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ── Trust / Partner Logos ── */
.trust-bar {
  background: var(--cream-dark); padding: 2.5rem 0;
  border-top: 1px solid rgba(27,67,50,0.1);
  border-bottom: 1px solid rgba(27,67,50,0.1);
}
.trust-label {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-badge {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  opacity: 0.75; transition: opacity var(--transition);
}
.trust-badge:hover { opacity: 1; }
.trust-badge .badge-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
}
.trust-badge .badge-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.trust-badge span {
  font-size: 0.72rem; font-weight: 600; color: var(--green);
  letter-spacing: 0.06em; text-align: center;
}

/* ── Page Hero (non-home) ── */
.page-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
  padding-top: 72px; padding-bottom: 4rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.92) 0%, rgba(27,67,50,0.55) 50%, rgba(27,67,50,0.25) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%;
}
.page-hero-content .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero-content p.lead {
  color: rgba(245,240,232,0.85); font-size: 1.1rem; max-width: 600px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--cream-dark); padding: 0.75rem 0;
  border-bottom: 1px solid rgba(27,67,50,0.1);
}
.breadcrumb-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb-inner a { color: var(--green); font-weight: 500; }
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-inner .sep { color: var(--gold); }

/* ── Callout / Banner ── */
.callout {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 4rem 0; text-align: center;
}
.callout h2 { color: var(--white); margin-bottom: 1rem; }
.callout p { color: rgba(245,240,232,0.85); max-width: 600px; margin: 0 auto 2rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--green-light));
}
.timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.45rem; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { color: var(--green); margin-bottom: 0.4rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ── Feature List ── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(27,67,50,0.08);
  font-size: 0.95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem;
}
.feature-list .check svg { width: 11px; height: 11px; fill: var(--gold); }

/* ── Sister Brand Lockup ── */
.sister-brand {
  background: var(--cream-dark); padding: 3rem 0;
  border-top: 2px solid rgba(184,134,11,0.2);
}
.sister-brand-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 4rem;
  flex-wrap: wrap;
}
.sister-brand-item { text-align: center; }
.sister-brand-item .brand-logo-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
  background: var(--white);
}
.sister-brand-item .brand-logo-wrap svg { width: 44px; height: 44px; }
.sister-brand-item .brand-title {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
  color: var(--green); line-height: 1.2; margin-bottom: 0.25rem;
}
.sister-brand-item .brand-tagline {
  font-size: 0.68rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.sister-divider {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.sister-divider .roots-text {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.sister-divider .roots-line {
  width: 1px; height: 40px; background: var(--gold);
}

/* ── Footer ── */
footer {
  background: var(--charcoal); color: rgba(245,240,232,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.footer-brand .footer-logo img { height: 40px; }
.footer-brand .footer-logo-text .brand-name {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--cream);
}
.footer-brand .footer-logo-text .brand-sub {
  font-size: 0.6rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col h5 {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  color: var(--cream); margin-bottom: 1rem; letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(245,240,232,0.65); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(245,240,232,0.4); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(245,240,232,0.4); }
.footer-legal a:hover { color: var(--gold); }

/* ── Zola Sidebar / Floating ── */
.zola-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 80px; cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(27,67,50,0.4));
  transition: transform var(--transition);
}
.zola-float:hover { transform: scale(1.08) translateY(-4px); }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-arrow { font-size: 0.65rem; margin-left: 2px; display: inline-block; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--green);
  border: 1px solid rgba(184,134,11,0.3);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  list-style: none;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  color: var(--cream); font-size: 0.85rem; font-weight: 500;
  padding: 0.6rem 1.25rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
  color: var(--gold); background: rgba(184,134,11,0.1);
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 0;
  margin-left: 0.5rem;
  border: 1px solid rgba(184,134,11,0.3);
  flex-shrink: 0;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  color: rgba(245,240,232,0.55); letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem; border-radius: 16px;
  transition: all 0.25s ease;
  line-height: 1;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.lang-toggle button:hover:not(.active) {
  color: var(--cream);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4, .pillars-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .sister-brand-inner { gap: 2rem; }
  .trust-logos { gap: 1.5rem; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .grid-4, .pillars-grid, .stats-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* ── French nav text handling ── */
.navbar-nav a {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .navbar-nav a {
    font-size: 0.78rem;
    padding: 0.5rem 0.6rem;
  }
  .navbar-logo-text .brand-name { font-size: 0.95rem; }
}
@media (max-width: 980px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
}
