/* ================================================
   HOMEBETHE PUBLIC PAGES - SHARED STYLES
   Natural Sage Green Theme
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a202c;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.nav-logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(77,124,92,0.3));
}
.nav-logo-text {
  background: linear-gradient(135deg, #355e3b 0%, #4d7c5c 50%, #86b09c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: color 0.2s;
}
.nav-links a:hover { color: #355e3b; }
.nav-links a.active { color: #4d7c5c; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #4d7c5c, #355e3b);
  color: white;
  border-color: #355e3b;
  box-shadow: 0 4px 14px rgba(77,124,92,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77,124,92,0.45);
}
.btn-outline {
  background: transparent;
  color: #355e3b;
  border-color: #4d7c5c;
}
.btn-outline:hover {
  background: #e8f0e9;
}
.btn-large {
  padding: 14px 32px;
  font-size: 15px;
}
.btn-white {
  background: white;
  color: #355e3b;
  border-color: white;
}
.btn-white:hover {
  background: #e8f0e9;
  transform: translateY(-2px);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1a202c;
}

/* ============ MOBILE MENU ============ */
.nav-mobile {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  flex-direction: column;
  gap: 14px;
}
.nav-mobile.show { display: flex; }
.nav-mobile a {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  font-weight: 600;
}
.nav-mobile .btn {
  width: 100%;
}

@media (max-width: 800px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ============ PAGE HEADER (Hero for non-landing pages) ============ */
.page-header {
  background: linear-gradient(135deg, #14241a 0%, #1f3a24 50%, #2d4a32 100%);
  color: white;
  padding: 130px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,124,92,0.3), transparent 70%);
  filter: blur(40px);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,94,59,0.2), transparent 70%);
  filter: blur(50px);
}
.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(77,124,92,0.2);
  border: 1px solid rgba(77,124,92,0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #b8d4c0;
  margin-bottom: 18px;
}
.page-header h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
@media (max-width: 600px) { .page-header h1 { font-size: 32px; } }
.page-header h1 .accent {
  background: linear-gradient(135deg, #b8d4c0, #86b09c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: #b8d4c0; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 6px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 24px; }
.section-sm { padding: 50px 24px; }
.section-light { background: #f4f8f5; }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 850px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #e8f0e9;
  color: #2d4a32;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, #4d7c5c, #355e3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 600px) { .section-title { font-size: 28px; } }
.section-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 720px;
  margin: 0 auto;
}

/* ============ PROSE / CONTENT ============ */
.prose {
  font-size: 15.5px;
  line-height: 1.8;
  color: #374151;
}
.prose h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
  line-height: 1.3;
}
.prose h3 {
  font-size: 19px;
  font-weight: 800;
  color: #355e3b;
  margin: 24px 0 10px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  margin: 14px 0 18px 24px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: #0f172a; font-weight: 700; }
.prose a {
  color: #355e3b;
  font-weight: 600;
  border-bottom: 1px solid rgba(77,124,92,0.3);
}
.prose a:hover { color: #4d7c5c; border-bottom-color: #4d7c5c; }
.prose blockquote {
  background: #f4f8f5;
  border-left: 4px solid #4d7c5c;
  padding: 16px 22px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2d4a32;
}

/* ============ CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid #e8f0e9;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(77,124,92,0.12);
  border-color: #86b09c;
}
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #4d7c5c, #355e3b);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(77,124,92,0.3);
  color: white;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* ============ CTA BLOCK ============ */
.cta-block {
  background: linear-gradient(135deg, #4d7c5c 0%, #355e3b 100%);
  color: white;
  text-align: center;
  padding: 70px 24px;
  border-radius: 24px;
  margin: 60px auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-block p {
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 26px;
  opacity: 0.95;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-block .btn-outline {
  color: white;
  border-color: white;
}
.cta-block .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ============ FOOTER ============ */
footer {
  background: #14241a;
  color: rgba(255,255,255,0.7);
  padding: 50px 24px 20px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand h3 span {
  background: linear-gradient(135deg, #4d7c5c, #86b09c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #86b09c; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ============ FORM ============ */
.form-card {
  background: white;
  border: 1px solid #e8f0e9;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4d7c5c;
  box-shadow: 0 0 0 3px rgba(77,124,92,0.1);
}

/* ============ ALERT / NOTICE ============ */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
}
.alert-success {
  background: #e8f0e9;
  border-left: 4px solid #4d7c5c;
  color: #2d4a32;
}
.alert-info {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ TABLES ============ */
.compare-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-collapse: collapse;
}
.compare-table th {
  background: #355e3b;
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f4f8f5; }
