/* Marci Metzger Homes – matching snapshot layout */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --charcoal: #1a1a1a;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --gray: #6b6b6b;
  --light-gray: #e5e5e5;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0.85rem 0;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--black);
}

.logo-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: -2px;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
}

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

/* About */
.about-section {
  background: var(--black);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  margin-bottom: 2.5rem;
  color: var(--gold-light);
}

.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.agent-photo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201, 169, 98, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.agent-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

.agent-phone {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  transition: color 0.2s;
}

.agent-phone:hover {
  color: var(--white);
}

/* Get It Sold */
.sold-section {
  background: var(--off-white);
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
}

.section-title.light {
  color: var(--dark);
}

.sold-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.sold-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.sold-item.reverse {
  direction: rtl;
}

.sold-item.reverse > * {
  direction: ltr;
}

.sold-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.sold-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.sold-text h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--dark);
}

.sold-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Listings / Search */
.listings-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
}

.listings-bg {
  position: absolute;
  inset: 0;
}

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

.listings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.listings-content {
  position: relative;
  z-index: 2;
  width: min(700px, 94%);
}

.listings-section .section-title {
  color: var(--white);
  margin-bottom: 1.75rem;
}

.search-box {
  background: var(--white);
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.search-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 0.3rem;
}

.field select,
.field input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--dark);
}

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

.btn-search {
  width: 100%;
  margin-top: 0.75rem;
  background: #8a8a8a;
  color: var(--white);
  border-radius: 999px;
  padding: 0.9rem;
}

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

/* Affiliates */
.affiliates {
  background: var(--black);
  padding: 2.5rem 0;
}

.affiliates-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}

.aff-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1.1);
}

/* Gallery */
.gallery-section {
  background: var(--black);
  padding: 4.5rem 0 5rem;
}

.gallery-section .section-title {
  color: var(--white);
}

.gallery-main {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gallery-hero-img {
  width: 100%;
  height: clamp(280px, 50vw, 480px);
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.thumb {
  flex: 0 0 90px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.7;
  transition: all 0.2s;
}

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

.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

/* Services */
.services-section {
  background: var(--off-white);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.service-img {
  margin-bottom: 1.25rem;
  border-radius: 4px;
  overflow: hidden;
  height: 200px;
}

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

.service-img.circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* Social bar */
.social-bar {
  background: var(--black);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Contact */
.contact-section {
  background: var(--white);
  padding: 4.5rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form-wrap .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.message-form h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.message-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: transparent;
}

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

.btn-send {
  margin-top: 1.25rem;
  background: #9a9a9a;
  color: var(--white);
  border-radius: 999px;
  padding: 0.75rem 2.5rem;
}

.btn-send:hover {
  background: var(--gold);
}

.form-note {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 1rem;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.contact-info a {
  color: var(--dark);
  font-weight: 500;
}

.office-hours {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--light-gray);
}

.office-hours h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hours-note {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.map-wrap {
  width: 100%;
  height: 380px;
  background: var(--light-gray);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.copyright {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .sold-item,
  .sold-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .contact-form-wrap .section-title {
    text-align: center;
  }
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .logo {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-title {
    letter-spacing: 0.12em;
  }

  .agent-photo-wrap {
    width: 150px;
    height: 150px;
  }

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

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

  .affiliates-row {
    gap: 1.5rem;
  }

  .aff-logo {
    height: 40px;
  }
}
