/* Martha Lee Realty – Content Site
   Colors match BCR: Navy #294595 | Gold #B4915F */

:root {
  --navy: #294595;
  --navy-dark: #1e3470;
  --gold: #B4915F;
  --gold-light: #c9a97a;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --text: #222222;
  --text-light: #555555;
  --border: #e0e4ef;
  --shadow: 0 4px 20px rgba(41, 69, 149, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.logo-link:hover { color: var(--gold-light); }

.logo-placeholder {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.footer-brand .logo-img {
  height: 44px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.main-nav a {
  color: var(--white);
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  display: block;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(180, 145, 95, 0.25);
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy-dark) !important;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #3a5a9e 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--gold-light);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ========== SECTIONS ========== */
section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.85rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 1.75rem;
}

/* ========== FEATURE CARDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== ABOUT / CONTENT ========== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block p {
  margin-bottom: 1.15rem;
  color: var(--text-light);
}

.content-block h2 {
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
  font-size: 1.4rem;
}

.quote-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.quote-box cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-photo {
  height: 260px;
  background: linear-gradient(135deg, var(--navy) 0%, #3a5a9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
  font-weight: 700;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.team-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  text-align: left;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--gold);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
}

.service-card ul {
  list-style: none;
  margin-top: 1rem;
}
.service-card li {
  padding: 0.35rem 0;
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}
.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ========== COMMUNITIES ========== */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.community-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.community-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.community-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.community-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--off-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
}

.contact-detail .label {
  font-weight: 600;
  color: var(--navy);
  min-width: 70px;
}

.contact-detail a {
  color: var(--text);
}
.contact-detail a:hover { color: var(--gold); }

.sister-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sister-links h4 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.sister-links a {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--off-white);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-link {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--gold-light); }

.legal-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
}

.legal-logos img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(1.05);
}

.legal-logos img[alt="Equal Housing Opportunity"] {
  height: 52px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

.footer-bottom {
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.75rem 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.page-hero p {
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .main-nav a { padding: 0.7rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }

  .hero { padding: 3rem 0 2.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
