/* spoe:theme */
:root {
  --bg: #f8f9fa;
  --fg: #1a2a3a;
  --card: #ffffff;
  --muted: #e9ecef;
  --muted-fg: #6c757d;
  --border: #dee2e6;
  --primary: #1a2a6c;
  --on-primary: #ffffff;
  --secondary: #b88a44;
  --on-secondary: #ffffff;
  --radius: 8px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
}

/* spoe:fonts */

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
}

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

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
  border-radius: var(--radius);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--secondary);
  outline: none;
}

/* Buttons */
button, .btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible {
  background-color: var(--secondary);
  transform: translateY(-2px);
  outline: none;
}

/* Header */
.header {
  background-color: var(--card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

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

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Featured Listings */
.featured-listings {
  padding: 5rem 0;
}

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

.listing-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.listing-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.listing-details {
  padding: 1.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0.5rem 0;
}

.specs {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.location {
  color: var(--muted-fg);
  font-style: italic;
}

/* Appraisal Section */
.appraisal {
  background-color: var(--muted);
  padding: 5rem 0;
}

.appraisal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.appraisal-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

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

/* Agents Section */
.agents {
  padding: 5rem 0;
}

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

.agent-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.agent-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  background-color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-avatar svg {
  width: 50px;
  height: 50px;
  stroke: var(--primary);
}

.title {
  color: var(--secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.contact {
  color: var(--muted-fg);
  font-size: 0.9rem;
}

/* Recent Sales */
.recent-sales {
  padding: 5rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.sales-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat .number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-top: 0;
}

/* Footer */
.footer {
  background-color: var(--fg);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  color: white;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: white;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .nav ul {
    gap: 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .appraisal-content {
    padding: 2rem;
  }
}