/* ═══════════════════════════════════════════════════════════════
   Dream Big Homes — Stylesheet
   Mary Arnerich-King & Leslie Whitney | East Bay Real Estate
   ═══════════════════════════════════════════════════════════════ */

/* ── Accessibility ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --black: #111;
  --white: #fff;
  --cream: #faf9f7;
  --gray: #888;
  --light-gray: #f0efed;
  --gold: #b8965a;
  --gold-light: #d4b87a;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.section-subtitle {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #333; }

/* ── Navigation ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.95);
  padding: 12px 0;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
              url('../images/hero.jpg') center/cover no-repeat;
  z-index: -1;
}

.hero-content { max-width: 700px; padding: 0 24px; }

.hero h1 { margin-bottom: 20px; }

.hero p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  opacity: 0.9;
  font-weight: 300;
}

/* ── Section Shared ───────────────────────────────────────────── */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.bg-cream { background: var(--cream); }

/* ── Property Cards ───────────────────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.property-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.property-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-img img { transform: scale(1.05); }

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
}

.property-info { padding: 24px; }

.property-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.property-address {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.property-details {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--gray);
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.property-details span { display: flex; align-items: center; gap: 6px; }

/* ── About / Team ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  height: 500px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 { margin-bottom: 24px; }

.about-content p {
  color: #555;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-content .btn { margin-top: 16px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.team-card { text-align: center; }

.team-photo {
  width: 240px;
  height: 300px;
  margin: 0 auto 24px;
  overflow: hidden;
}

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

.team-card h3 { margin-bottom: 4px; }

.team-card .role {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.team-card p {
  color: #555;
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

.team-card .contact-info {
  margin-top: 16px;
  font-size: 0.85rem;
}

.team-card .contact-info a { color: var(--gold); }
.team-card .contact-info a:hover { text-decoration: underline; }

/* ── Certifications ───────────────────────────────────────────── */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cert-list span {
  padding: 8px 16px;
  background: var(--light-gray);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--light-gray);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card .author {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Neighborhoods ────────────────────────────────────────────── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.neighborhood-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.neighborhood-card:hover img { transform: scale(1.08); }

.neighborhood-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.neighborhood-card h3 { color: var(--white); font-size: 1.4rem; }

/* ── Stats Bar ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--black);
  color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-banner .bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
              url('../images/cta-bg.jpg') center/cover no-repeat;
  z-index: -1;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; opacity: 0.9; font-size: 1.05rem; }

/* ── Contact Form ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-block h3 { margin-bottom: 24px; }

.contact-info-block .info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-block .info-item .label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-info-block .info-item .value {
  font-size: 0.95rem;
  color: #555;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  margin-bottom: 24px;
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn { width: 100%; }

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

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: inline-block; }

.footer-brand p {
  color: #999;
  font-size: 0.85rem;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 16px; }

.footer-social a {
  color: #999;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { color: var(--gold); }

footer h4 {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
}

.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Sold Page ────────────────────────────────────────────────── */
.sold-table {
  width: 100%;
  border-collapse: collapse;
}

.sold-table th {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--black);
}

.sold-table td {
  padding: 16px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.sold-table tr:hover { background: var(--cream); }

/* ── Page Header (internal pages) ─────────────────────────────── */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
}

.page-header .section-subtitle { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17,17,17,0.98);
    padding: 24px;
    gap: 20px;
  }

  .nav-toggle { display: flex; }

  .property-grid { grid-template-columns: 1fr; }

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

  .footer-bottom { flex-direction: column; gap: 8px; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .neighborhood-grid { grid-template-columns: 1fr; }
}
