/* Wayzata Real Estate & School District Portal Styling */
:root {
  --primary-color: #1A365D;    /* Deep Navy */
  --secondary-color: #2B6CB0;  /* Slate Blue */
  --accent-color: #DD6B20;     /* Warm Amber Accent */
  --bg-light: #F7FAFC;         /* Soft Cool Off-White */
  --card-bg: #FFFFFF;
  --text-dark: #2D3748;
  --text-muted: #4A5568;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: var(--primary-color);
  color: #FFFFFF;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo-area h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header .logo-area span {
  color: var(--accent-color);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.92), rgba(43, 108, 176, 0.88)),
              url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #FFFFFF;
  padding: 4.5rem 1.5rem 6rem 1.5rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  color: #E2E8F0;
}

/* Main Container Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

/* Floating Lead Capture Box */
.lead-form-box {
  background: var(--card-bg);
  padding: 2.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  margin: -4rem auto 3.5rem auto;
  position: relative;
  border-top: 5px solid var(--accent-color);
}

.lead-form-box h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.lead-form-box p.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #FAFAFA;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.btn-submit {
  width: 100%;
  background: var(--accent-color);
  color: #FFFFFF;
  border: none;
  padding: 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: #C05621;
  transform: translateY(-1px);
}

/* Grids and Cards */
.section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  margin: 3rem 0 1.5rem 0;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 750px;
  margin: -1rem auto 2.5rem auto;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

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

.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card ul {
  list-style-type: none;
  padding-left: 0;
}

.card ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #EDF2F7;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.card ul li:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  background-color: #EBF8FF;
  color: #2B6CB0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Stats Counter Banner */
.stats-banner {
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 3.5rem 0;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--accent-color);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.95rem;
  color: #E2E8F0;
  margin-top: 0.25rem;
}

/* Callout Box */
.callout-box {
  background: #EBF8FF;
  border-left: 5px solid var(--secondary-color);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.callout-box h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #A0AEC0;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 5rem;
  border-top: 1px solid #2D3748;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: #CBD5E0;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .lead-form-box {
    margin-top: -2rem;
    padding: 1.5rem;
  }

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