/* ============================================================
   main.css — Pelanos Agiron / 0live
   Shared design system: tokens, header, footer, buttons
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --olive:        #4a6741;
  --olive-dark:   #2d4229;
  --olive-light:  #6b8f5e;
  --olive-mist:   #eef3ec;
  --sand:         #c9a96e;
  --sand-light:   #f0e3c8;
  --cream:        #faf8f4;
  --white:        #ffffff;
  --text:         #1e1e1e;
  --text-muted:   #6b6b6b;
  --border:       #e0dbd2;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --radius:   10px;
  --radius-lg: 16px;
  --shadow:   0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --max-w: 1200px;
  --px: clamp(20px, 5vw, 60px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}
.btn-primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,103,65,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}
.btn-outline:hover {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-sand {
  background: var(--sand);
  color: var(--white);
  border-color: var(--sand);
}
.btn-sand:hover {
  background: #b8924e;
  border-color: #b8924e;
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--olive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}
.site-logo-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--olive-dark);
  letter-spacing: -0.3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--olive); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover { background: var(--sand-light); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  z-index: 1000;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dropdown button:hover { background: var(--cream); }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Footer ── */
.site-footer {
  background: var(--olive-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .site-logo-text { color: var(--white); }
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sand-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

/* ── Trust badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--olive-mist);
  color: var(--olive-dark);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-desktop-auth { display: none !important; }
  .header-inner { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Mobile nav overlay ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 800;
  flex-direction: column;
  padding: 100px 32px 32px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--olive); }
.mobile-nav .btn { margin-top: 8px; width: 100%; }
