/* ══════════════════════════════════════════════
   HagerBet — Your Home Back Home
   Design System & Shared Styles
   ══════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --green: #1B5E20;
  --green-light: #2E7D32;
  --green-dark: #0D3B12;
  --green-bg: #E8F5E9;
  --gold: #F9A825;
  --gold-light: #FDD835;
  --gold-dark: #C8A951;
  --dark: #263238;
  --dark-light: #37474F;
  --teal: #0F7173;
  --teal-dark: #0A5C5E;
  --cream: #FAFAF5;
  --white: #FFFFFF;
  --grey: #90A4AE;
  --grey-light: #ECEFF1;
  --grey-text: #666;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --nav-height: 72px;
  --max-width: 1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-teal { color: var(--teal); }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--grey-text); font-size: 1.05rem; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
  height: var(--nav-height);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.3rem;
  color: var(--green);
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-logo span { letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--dark-light);
  transition: color var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green); border-radius: 1px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  position: absolute; left: 4px; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 8px; }
.menu-toggle span:nth-child(2) { top: 15px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--green); color: var(--white);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(27,94,32,0.3);
}
.btn-gold {
  background: var(--gold); color: var(--dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(249,168,37,0.4);
}
.btn-outline {
  background: transparent; border: 2px solid var(--green); color: var(--green);
}
.btn-outline:hover {
  background: var(--green); color: var(--white);
}
.btn-outline-white {
  background: transparent; border: 2px solid var(--white); color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white); color: var(--green);
}
.btn-white {
  background: var(--white); color: var(--green);
}
.btn-white:hover {
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── PROPERTY CARDS ─── */
.property-card { position: relative; }
.property-card .card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--grey-light), #d0d0d0);
  position: relative; overflow: hidden;
}
.property-card .card-image .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--green); color: var(--white);
  padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.property-card .card-image .badge.gold { background: var(--gold); color: var(--dark); }
.property-card .card-body { padding: 20px; }
.property-card .card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.property-card .card-body .location {
  font-size: 0.85rem; color: var(--grey); margin-bottom: 12px;
  display: flex; align-items: center; gap: 4px;
}
.property-card .card-body .price {
  font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 12px;
}
.property-card .card-body .features {
  display: flex; gap: 16px; font-size: 0.85rem; color: var(--grey-text);
  border-top: 1px solid var(--grey-light); padding-top: 12px;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--teal);
  color: var(--white);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2rem; font-weight: 800; color: var(--gold);
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 1px; opacity: 0.85;
}

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.step-card { text-align: center; padding: 24px 16px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 16px;
}
.step-card h4 { margin-bottom: 8px; font-size: 1rem; }
.step-card p { font-size: 0.9rem; color: var(--grey-text); }

/* ─── TRUST GRID ─── */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust-card {
  text-align: center; padding: 32px 24px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-card .icon {
  font-size: 2.5rem; margin-bottom: 16px;
}
.trust-card h4 { margin-bottom: 8px; }
.trust-card p { font-size: 0.9rem; color: var(--grey-text); }

/* ─── TESTIMONIALS ─── */
.testimonial-section { background: var(--dark); color: var(--white); }
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.testimonial-card blockquote {
  font-size: 1.1rem; font-style: italic;
  line-height: 1.7; margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.testimonial-card cite {
  color: var(--gold); font-style: normal; font-weight: 600;
}

/* ─── FAQ ACCORDION ─── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.95rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-question .icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--grey-text); line-height: 1.7;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: var(--white); text-align: center; padding: 80px 24px;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p {
  font-size: 1.1rem; opacity: 0.9;
  margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto;
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--grey-light);
  border-radius: 8px; font-size: 15px;
  font-family: inherit; color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .amharic {
  color: var(--gold); font-size: 1rem; margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.9rem;
  color: rgba(255,255,255,0.6); margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--gold); }

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  background: #25D366; color: var(--white);
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999; transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ─── STICKY CTA BAR ─── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--green-dark);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta p { color: var(--white); font-size: 14px; font-weight: 500; }
.sticky-cta .btn { padding: 10px 24px; font-size: 13px; }

/* ─── URGENCY BANNER ─── */
.urgency-banner {
  background: var(--gold);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px; font-weight: 600; color: var(--dark);
  position: relative;
  margin-top: var(--nav-height);
}
.urgency-banner a { color: var(--green); text-decoration: underline; margin-left: 8px; }
.urgency-banner .close-banner {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px;
  color: var(--dark); opacity: 0.6;
}
.urgency-banner .close-banner:hover { opacity: 1; }

/* ─── PAGE HEROES (Inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--teal) 100%);
  color: var(--white);
  padding: 140px 24px 80px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p {
  font-size: 1.1rem; opacity: 0.85;
  max-width: 600px; margin: 0 auto;
}

/* ─── GRID HELPERS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── UTILITY ─── */
.bg-cream { background: var(--cream); }
.bg-green-light { background: var(--green-bg); }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 120px 24px 60px; }
  .sticky-cta p { display: none; }
  .whatsapp-float { bottom: 80px; }
}
