*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Georgia, 'Times New Roman', serif; color: #2c2c2a; background: #fff; }
a { color: inherit; text-decoration: none; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 3px solid #e8e4dc; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1.5rem; gap: 1rem; }
nav img { max-height: 100px; height: auto; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; gap: clamp(0.4rem, 1.2vw, 1.5rem); font-size: clamp(0.7rem, 1.1vw, 1rem); font-family: Arial, sans-serif; font-weight: 500; flex-wrap: nowrap; justify-content: center; flex: 1; }
.nav-links a { color: #555; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: #7b3f00; }
.nav-links a.active { color: #7b3f00; border-bottom: 2px solid #7b3f00; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #7b3f00; border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; }
.mobile-menu-inner { position: absolute; top: 0; right: 0; width: 260px; height: 100%; background: #fff; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0; box-shadow: -4px 0 20px rgba(0,0,0,0.15); }
.mobile-menu-inner a { font-family: Arial, sans-serif; font-size: 1rem; color: #555; padding: 0.85rem 0; border-bottom: 1px solid #f0e8dc; text-decoration: none; }
.mobile-menu-inner a:hover { color: #7b3f00; }
.mobile-menu-inner a.active { color: #7b3f00; font-weight: 700; }
.mobile-close { background: none; border: none; font-size: 1.5rem; color: #888; cursor: pointer; align-self: flex-end; margin-bottom: 1rem; }
.mobile-menu.open { display: block; }

/* LAYOUT */
section { padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; }
h2 { font-size: 1.8rem; color: #7b3f00; margin-bottom: 0.5rem; }
.section-sub { color: #888; font-family: Arial, sans-serif; font-size: 0.95rem; margin-bottom: 2rem; }

/* HERO */
.hero { background: linear-gradient(135deg, #fdf6ee 0%, #f5e6d0 100%); padding: 2.5rem 1.5rem; border-bottom: 1px solid #e8d8c0; }
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); color: #4a2800; margin-bottom: 0.25rem; }
.hero p { font-size: clamp(0.9rem, 2vw, 1.1rem); color: #6b4c2a; margin-bottom: 1.5rem; font-style: italic; }
.page-hero { background: linear-gradient(135deg, #fdf6ee 0%, #f5e6d0 100%); padding: 2.5rem 1.5rem; border-bottom: 1px solid #e8d8c0; text-align: center; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); color: #4a2800; margin-bottom: 0.5rem; }
.page-hero p { font-size: clamp(0.9rem, 2vw, 1.1rem); color: #6b4c2a; font-style: italic; }

/* BUTTONS */
.btn { padding: 0.7rem 1.6rem; border-radius: 6px; font-family: Arial, sans-serif; font-size: 0.92rem; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: #7b3f00; color: #fff; }
.btn-primary:hover { background: #5c2e00; }
.btn-outline { background: transparent; color: #7b3f00; border: 2px solid #7b3f00; }
.btn-outline:hover { background: #7b3f00; color: #fff; }

/* STATS */
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: #7b3f00; }
.stat-label { font-family: Arial, sans-serif; font-size: 0.8rem; color: #888; }

/* CALCULATOR */
.calc-form label { display: block; font-family: Arial, sans-serif; font-size: 0.85rem; color: #666; margin-bottom: 4px; margin-top: 1rem; }
.calc-form input { width: 100%; padding: 0.55rem 0.8rem; border: 1px solid #d8ccbf; border-radius: 6px; font-size: 0.95rem; font-family: Arial, sans-serif; background: #fff; }
.calc-btn { margin-top: 1.5rem; width: 100%; padding: 0.75rem; background: #7b3f00; color: #fff; border: none; border-radius: 6px; font-family: Arial, sans-serif; font-size: 1rem; cursor: pointer; }
.calc-btn:hover { background: #5c2e00; }
.calc-result { background: #fff; border-radius: 12px; border: 1px solid #e8dcd0; padding: 2rem; text-align: center; }
.result-amount { font-size: 2.5rem; font-weight: 700; color: #7b3f00; }
.result-label { font-family: Arial, sans-serif; font-size: 0.9rem; color: #888; margin-bottom: 1.5rem; }
.result-breakdown { text-align: left; font-family: Arial, sans-serif; font-size: 0.88rem; }
.result-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0e8dc; color: #555; }

/* MARKET */
.market-card { background: #fff; border-radius: 10px; border: 1px solid #e8dcd0; padding: 1.5rem; text-align: center; }
.market-num { font-size: 1.8rem; font-weight: 700; color: #7b3f00; }
.market-label { font-family: Arial, sans-serif; font-size: 0.82rem; color: #888; margin-top: 4px; }
.market-trend { font-family: Arial, sans-serif; font-size: 0.8rem; color: #2e7d32; margin-top: 4px; }
.market-trend.down { color: #c62828; }

/* SCHOOLS */
.school-card { background: #fdf9f5; border-radius: 10px; border: 1px solid #e8dcd0; padding: 1.2rem; }
.school-district { font-weight: 700; color: #4a2800; font-size: 1rem; margin-bottom: 0.3rem; }
.school-rating { display: inline-block; background: #7b3f00; color: #fff; border-radius: 50%; width: 36px; height: 36px; line-height: 36px; text-align: center; font-family: Arial, sans-serif; font-weight: 700; font-size: 0.9rem; float: right; margin-top: -4px; }
.school-desc { font-family: Arial, sans-serif; font-size: 0.85rem; color: #666; line-height: 1.6; margin-top: 0.5rem; }

/* CONTACT */
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-family: Arial, sans-serif; font-size: 0.93rem; color: #555; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #d8ccbf; border-radius: 6px; font-size: 0.92rem; font-family: Arial, sans-serif; background: #fff; margin-bottom: 1rem; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-submit { width: 100%; padding: 0.75rem; background: #7b3f00; color: #fff; border: none; border-radius: 6px; font-family: Arial, sans-serif; font-size: 1rem; cursor: pointer; }
.contact-submit:hover { background: #5c2e00; }
.success-msg { display: none; background: #e8f5e9; color: #2e7d32; padding: 0.75rem 1rem; border-radius: 6px; font-family: Arial, sans-serif; font-size: 0.9rem; margin-top: 1rem; text-align: center; }

/* FOOTER */
footer { background: #4a2800; color: #f5e6d0; text-align: center; padding: 2rem 1rem; font-family: Arial, sans-serif; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  nav img { max-height: 80px; }
}
@media (max-width: 900px) {
  nav { padding: 0.5rem 1rem; }
  nav img { max-height: 60px; }
}
@media (max-width: 650px) {
  .nav-links { display: none; }

  .hamburger { display: flex; }
  nav { padding: 0.5rem 1rem; }
  nav img { max-height: 50px; }
  .hero-inner { padding: 0 0.5rem; }
  section { padding: 2rem 1rem; }
  .calc-result { margin-top: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }
}
