/* Sarah Mitchell Realty - Real Estate Demo */
/* Pixelwright Digital Portfolio Piece */

:root {
  --forest: #2d5a47;
  --forest-dark: #1e3d30;
  --gold: #c9a962;
  --gold-light: #dcc68a;
  --white: #ffffff;
  --cream: #faf9f7;
  --gray-100: #f4f4f4;
  --gray-200: #e5e5e5;
  --gray-500: #737373;
  --gray-800: #1f1f1f;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  --max-width: 1200px;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 500;
}

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

.nav-links a {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-cta {
  background: var(--gold);
  color: var(--gray-800);
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
}

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

.hero-tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--gold);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--gray-800);
}

.btn-gold: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(--gray-800);
}

/* Stats */
.stats-bar {
  background: var(--forest);
  color: var(--white);
  padding: 3rem 0;
}

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

.stat-item h3 {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

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

.listing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.listing-image {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.listing-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--forest);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.listing-info {
  padding: 1.5rem;
}

.listing-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.listing-address {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.listing-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* About */
.about {
  background: var(--cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  background: var(--gray-200);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.about-credentials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.credential-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.credential-item strong {
  min-width: 150px;
  color: var(--forest);
}

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

.service-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--gold);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--cream);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonials {
  background: var(--forest);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.7);
}

.testimonial-single {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.testimonial-author {
  color: var(--gold);
  font-weight: 600;
}

.testimonial-location {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* CTA */
.cta-section {
  background: var(--cream);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

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

.footer-column li {
  margin-bottom: 0.625rem;
}

.footer-column a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* Demo Badge */
.demo-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  z-index: 1001;
}

.demo-badge a {
  color: var(--gold);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 16/9;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    padding: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

  .testimonial-quote {
    font-size: 1.25rem;
  }

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