/* Tara McDermott | Bestow Real Estate - Modern Warm Theme */
:root {
  --royal-blue: #1e3a8a;
  --royal-blue-dark: #1e2a5e;
  --royal-blue-light: #3b82f6;
  --warm-white: #fefcf9;
  --warm-cream: #f8f4ef;
  --warm-beige: #f0ebe3;
  --gold: #9ca3af;
  --gold-light: #d1d5db;
  --gold-dark: #6b7280;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f9fafb;
  --border: #e5e0d8;
  --shadow: 0 4px 24px rgba(30, 58, 138, 0.07);
  --shadow-hover: 0 10px 32px rgba(30, 58, 138, 0.11);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: all 0.28s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Consistent 4 font sizes – tighter system */
  --fs-xs: 0.8rem;     /* labels, badges, footer details */
  --fs-sm: 0.9rem;     /* nav, secondary, small buttons */
  --fs-base: 1rem;     /* body text */
  --fs-lg: 1.125rem;   /* lead / important paragraphs */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overscroll-behavior: none;          /* stop rubber-band / white space scroll */
}

body {
  font-family: var(--font-sans);
  background-color: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  min-height: 100%;
}

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

a {
  color: var(--royal-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--royal-blue-dark);
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); margin-bottom: 0.85rem; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 0.9rem; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.65; }

.lead {
  font-size: var(--fs-lg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Slightly smaller lead text inside About section */
.about-grid .lead {
  font-size: var(--fs-base);
  line-height: 1.65;
}

.gold-accent {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--royal-blue-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* White edge for Search Homes button on dark hero */
.hero .btn-primary {
  border: 1.5px solid rgba(255,255,255,0.7);
  background: transparent;
  color: white;
}

.hero .btn-primary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), #8a7315);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--royal-blue);
  color: var(--royal-blue);
}

.btn-outline:hover {
  background: var(--royal-blue);
  color: white;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Header / Nav */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.logo-name {
  display: none; /* removed Tara McDermott */
}

.logo-broker {
  font-size: 1.05rem;
  color: var(--royal-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--royal-blue);
  background: var(--warm-cream);
}

.nav-cta {
  margin-left: 0.75rem;
  color: white !important;
  background: var(--royal-blue) !important;
}

.nav-cta:hover {
  background: var(--royal-blue-dark) !important;
  color: white !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--royal-blue);
  cursor: pointer;
  margin-left: auto;          /* push all the way to the right */
  padding: 0.4rem 0.15rem 0.4rem 0.6rem;
  line-height: 1;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 60%, #2a4a9e 100%);
  color: white;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: var(--fs-xs);
  color: #ffffff !important;   /* force white for CalDRE number */
  font-weight: 500;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--warm-cream);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.service-icon svg {
  display: block;
}

.property-card .card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--warm-beige), var(--warm-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.property-card .card-img .status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--royal-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.property-card .card-img .status.sold {
  background: #64748b; /* soft slate grey */
}

.property-card .card-body {
  padding: 1.25rem;
}

.property-card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 0.25rem;
}

.property-card .address {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.property-card .meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

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

/* About snippet */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  background: linear-gradient(145deg, var(--royal-blue), var(--royal-blue-light));
  background-size: cover;
  background-position: center top;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(0,0,0,0.25));
  pointer-events: none;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--royal-blue);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Testimonials */
.testimonial-card {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--royal-blue);
}

.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stars {
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

/* Footer */
.site-footer {
  background: var(--royal-blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-brand .logo-name {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
}

.footer-col li {
  font-size: var(--fs-sm);
}

/* Smaller address + license under Contact in footer */
.footer-col li:last-child,
.footer-col li:nth-last-child(2) {
  font-size: var(--fs-xs);
  opacity: 0.85;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.equal-housing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--royal-blue-dark), var(--royal-blue));
  color: white;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* Buyer's Guide specific */
.guide-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--royal-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.guide-tip {
  background: white;
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

/* Search / IDX */
.search-panel {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

.search-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Client Portal / CRM */
.portal-login {
  max-width: 420px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.portal-dashboard {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.dash-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: fit-content;
}

.dash-sidebar a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: var(--warm-cream);
  color: var(--royal-blue);
}

.dash-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ========== RESPONSIVE / MOBILE OPTIMIZATION ========== */

/* Tablet and below */
@media (max-width: 900px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-wrapper {
    padding: 0.85rem 0;
  }

  .logo-broker {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .nav-cta {
    margin: 0.5rem 0 0 0 !important;
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.25rem !important;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.6rem;
    padding: 0.35rem 0.5rem;
  }

  .about-grid,
  .contact-grid,
  .footer-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .search-filters {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .property-card .card-img {
    height: 200px;
  }
}

/* Phone size */
@media (max-width: 600px) {
  html {
    font-size: 15.5px;
  }

  .container {
    padding: 0 1.1rem;
  }

  .logo-broker {
    font-size: 1.12rem;          /* slightly bigger on mobile */
    letter-spacing: 0.06em;
  }

  .hero {
    padding: 2.75rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: var(--fs-base);
  }

  .hero-content > div[style*="flex"] {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .hero-content .btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.25rem;
  }

  .hero-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .search-filters {
    grid-template-columns: 1fr;
  }

  .search-filters .btn {
    width: 100%;
  }

  .about-stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .property-card .price {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
  }

  .page-hero {
    padding: 2.75rem 0 2.25rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  /* Forms on mobile */
  input, select, textarea {
    font-size: 16px !important; /* prevents iOS zoom */
  }

  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .logo-broker {
    font-size: 0.9rem;
  }
}
