/* ============================================
   THERESA COSTA REAL ESTATE — SHARED STYLES
   ============================================ */

:root {
  --navy:      #1B3A5C;
  --blue:      #2B5F8E;
  --sky:       #4A7FA5;
  --light-blue:#A8C5DA;
  --gold:      #C9933A;
  --warm-white:#F8F6F2;
  --stone:     #C4B8A8;
  --dark:      #1C2B3A;
  --gray:      #6B7A8D;
  --light-gray:#E8E4DE;
  --white:     #FFFFFF;
  --shadow:    0 4px 20px rgba(27,58,92,0.12);
  --radius:    8px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--warm-white);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

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

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 58, 92, 0.96);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #b07e2a !important; color: var(--white) !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/theresa-mountain.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,58,92,0.45) 0%,
    rgba(27,58,92,0.65) 60%,
    rgba(27,58,92,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content h1 span { color: var(--gold); }

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---- SEARCH BOX ---- */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  max-width: 780px;
  margin: 0 auto;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 120px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--sky);
}

.btn-search {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  align-self: flex-end;
}

.btn-search:hover { background: var(--blue); }

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--sky);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-change {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-change.up { color: #2e7d32; }
.stat-change.neutral { color: var(--gray); }

/* ---- LISTING CARDS ---- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,58,92,0.18);
}

.listing-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--light-gray);
}

.listing-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.listing-img-wrap { position: relative; }

.listing-body { padding: 1.25rem; }

.listing-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.listing-address {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.listing-neighborhood {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.listing-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gray);
  border-top: 1px solid var(--light-gray);
  padding-top: 0.75rem;
}

.listing-spec { display: flex; align-items: center; gap: 0.3rem; }
.listing-spec strong { color: var(--dark); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #b07e2a; color: var(--white); }

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

/* ---- AREA CARDS ---- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.area-card:hover { transform: translateY(-3px); }

.area-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.area-card-header h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.area-card-header span { font-size: 0.8rem; opacity: 0.75; }

.area-card-body { padding: 1.25rem 1.5rem; }

.area-stat { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--light-gray); font-size: 0.88rem; }
.area-stat:last-child { border-bottom: none; }
.area-stat strong { color: var(--navy); }

/* ---- MEET THERESA ---- */
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.meet-photo-wrap {
  position: relative;
}

.meet-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(27,58,92,0.2);
}

.meet-photo-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 4px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.meet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.meet-stat {
  text-align: center;
  padding: 1rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.meet-stat .value { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.meet-stat .label { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }

/* ---- TESTIMONIALS ---- */
.testimonials-bg {
  background: var(--navy);
  color: var(--white);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; opacity: 0.92; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { font-size: 0.85rem; font-weight: 600; color: var(--gold); }
.testimonial-detail { font-size: 0.78rem; opacity: 0.65; margin-top: 0.15rem; }

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

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

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text { font-size: 0.9rem; }
.contact-item-text strong { display: block; color: var(--navy); }

.contact-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--sky); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
}

footer strong { color: var(--white); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.footer-links a:hover { color: var(--gold); }
.footer-license { margin-top: 0.75rem; opacity: 0.5; font-size: 0.75rem; }

/* ---- FILTERS ---- */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 130px;
}

.filter-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-field select,
.filter-field input {
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  color: var(--dark);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover { transform: translateY(-3px); }

.blog-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--light-blue);
}

.blog-card-body { padding: 1.25rem; }
.blog-tag { font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem; }
.blog-card-body h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }
.blog-meta { font-size: 0.78rem; color: var(--stone); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 7rem 2rem 3rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.8; font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ---- REFRESH BANNER ---- */
.refresh-banner {
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--navy);
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.bg-warm { background: var(--warm-white); }
.bg-white { background: var(--white); }

/* ---- HAMBURGER ---- */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(27,58,92,0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links li a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  .nav-cta {
    margin: 0.75rem 2rem 0 !important;
    text-align: center;
    border-radius: 4px !important;
    padding: 0.9rem 2rem !important;
  }

  .hero { min-height: -webkit-fill-available; }

  .meet-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .meet-photo-accent { display: none; }
  section { padding: 3rem 1.25rem; }

  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-search { min-height: 44px; width: 100%; }
  .search-field select,
  .search-field input { min-height: 44px; font-size: 1rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 1rem; min-height: 44px; }
  .form-group textarea { min-height: 110px; }
}
