/* LiveGood Life GB — Shared Site Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #65a82f;
  --green-dark: #4d8020;
  --orange:     #f15a24;
  --orange-dark:#d14810;
  --navy:       #171d4d;
  --navy-light: #1e2660;
  --bg:         #f5f6f3;
  --white:      #ffffff;
  --text:       #393939;
  --muted:      #666666;
  --border:     #e0e0e0;
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1,h2,h3,h4,h5 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 1rem 2.25rem; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  height: 64px;
  display: flex; align-items: center;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: #fff; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #fff; padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-light); flex-direction: column; gap: 0;
    padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; font-size: 1rem; }
}

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-family: 'Roboto Condensed', sans-serif; color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 4rem 0 3rem; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ── SECTIONS ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-tag { display: inline-block; background: rgba(101,168,47,0.12); color: var(--green-dark); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--navy); }
.card p { font-size: 0.9rem; color: var(--muted); }

/* ── PROSE ── */
.prose { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.25rem 0; font-family: 'Roboto Condensed', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--green); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 1.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ── DIRECTORY ── */
.directory-search { width: 100%; max-width: 400px; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: 'Poppins', sans-serif; outline: none; margin-bottom: 1.5rem; }
.directory-search:focus { border-color: var(--green); }
.directory-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.directory-table th { background: var(--navy); color: #fff; padding: 0.75rem 1rem; text-align: left; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; }
.directory-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.directory-table tr:nth-child(even) td { background: var(--bg); }
.directory-table .badge { display: inline-block; background: rgba(101,168,47,0.12); color: var(--green-dark); font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 4px; }

/* ── AUTH ── */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 2rem 1rem; }
.auth-card { background: var(--white); border-radius: 12px; padding: 2.5rem 2rem; width: 100%; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-card h2 { text-align: center; font-size: 1.5rem; margin-bottom: 0.3rem; }
.auth-sub { text-align: center; color: var(--muted); font-size: 0.875rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.form-group input { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: 'Poppins', sans-serif; color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(101,168,47,0.15); }
.auth-forgot { text-align: right; font-size: 0.8rem; margin-top: -0.5rem; margin-bottom: 1rem; }
.auth-submit { width: 100%; background: var(--orange); color: #fff; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; padding: 0.85rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.auth-submit:hover { background: var(--orange-dark); }
.auth-error { background: #fee2e2; color: #b91c1c; border-radius: 6px; padding: 0.65rem 0.85rem; font-size: 0.875rem; margin-bottom: 1rem; display: none; }
.auth-error.visible { display: block; }

/* ── UTILS ── */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-4{margin-bottom:2rem}

/* ── MOBILE RESPONSIVE FIXES ── */

/* Hero buttons stack on small screens */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 320px; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
}

/* Cards single column on mobile */
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}

/* Section padding reduced on mobile */
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .container { padding: 0 1rem; }
}

/* Directory table scrolls on mobile */
@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .directory-search { width: 100%; }
}

/* Auth card full width on mobile */
@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* Footer single column on mobile (already handled but reinforce) */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Tour page topbar wraps on very small screens */
@media (max-width: 400px) {
  .topbar-msg { display: none; }
}

/* Tap target minimum size */
.btn, .nav-links a, .faq-question, .auth-submit, .modal-submit {
  min-height: 44px;
}

/* Prevent text size inflation on iOS */
html { -webkit-text-size-adjust: 100%; }

/* Safe area insets for notched phones */
.site-nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
