/* PropertyNet Realty - Modern Redesign */
/* Flat design with clean sections */

:root {
  /* Colors */
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #276749;
  --accent: #38a169;
  --accent-hover: #2f855a;
  --background: #e8eef4;
  --surface: #ffffff;
  --surface-alt: #dce5ef;
  --text: #1a202c;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --border: #e2e8f0;

  /* Typography - Updated fonts */
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.875rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2.25rem;
  --space-3xl: 3rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

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

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

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

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

p {
  margin-bottom: var(--space-md);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--surface);
}

.section--dark {
  background-color: var(--primary);
  color: white;
}

.section--dark h2,
.section--dark h3 {
  color: white;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--primary);
}

.header__logo span {
  color: var(--secondary);
}

/* Navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: var(--space-sm) 0;
  position: relative;
  text-decoration: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

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

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.2s ease;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  padding: var(--space-xl);
  z-index: 999;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav__link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--surface);
  overflow: hidden;
}

.hero--with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.7) 50%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero--with-image .hero__content {
  color: white;
}

.hero--with-image .hero__content h1 {
  color: white;
}

.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* Cards */
.card {
  background-color: #ffffff;
  padding: var(--space-xl);
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card--surface {
  background-color: var(--surface);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

/* Two Column Layout */
.two-col {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.two-col--reverse .two-col__content {
  order: 1;
}

.two-col__image img {
  width: 100%;
  height: auto;
}

/* Search Form */
.search-card {
  background-color: var(--background);
  padding: var(--space-xl);
  max-width: 500px;
}

.search-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  border: 1px solid var(--primary-light);
  border-radius: 4px;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr 1fr;
}

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

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.testimonial__author {
  font-weight: 600;
  color: var(--primary);
}

/* Team Grid */
.team-grid {
  display: grid;
  gap: var(--space-xl);
}

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

.team-member__image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 2px solid var(--primary);
}

.team-member__name {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.team-member__title {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.team-member__contact {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer__link:hover {
  color: white;
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.footer__contact a:hover {
  color: white;
}

.footer__badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer__badges img {
  height: 40px;
  width: auto;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Services Page */
.service-section {
  padding: var(--space-3xl) 0;
}

.service-section:nth-child(even) {
  background-color: var(--surface);
}

.service-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.service-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

.pricing-highlight {
  background-color: var(--surface-alt);
  padding: var(--space-lg);
  text-align: center;
  margin: var(--space-xl) 0;
}

.pricing-highlight__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.pricing-highlight__text {
  color: var(--text-muted);
}

/* Feature List */
.feature-list {
  display: grid;
  gap: var(--space-md);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-list__text {
  color: var(--text);
}

/* Testimonials Page */
.testimonials-grid {
  display: grid;
  gap: var(--space-xl);
}

.testimonial-card {
  background-color: var(--surface);
  padding: var(--space-xl);
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--primary);
}

/* Community Links */
.links-section {
  margin-bottom: var(--space-2xl);
}

.links-section__title {
  font-size: 1.25rem;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  margin-bottom: var(--space-md);
}

.links-list {
  display: grid;
  gap: var(--space-sm);
}

.links-list a {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.links-list a:hover {
  color: var(--primary);
}

/* Utility List */
.utility-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.utility-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.utility-item:last-child {
  border-bottom: none;
}

.utility-item__label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.utility-item__value {
  color: var(--text);
}

/* Contact Form */
.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-info__item {
  margin-bottom: var(--space-lg);
}

.contact-info__label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

/* Calculator */
.calculator {
  background-color: var(--surface);
  padding: var(--space-xl);
}

.calculator h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.calculator__result {
  background-color: var(--primary);
  color: white;
  padding: var(--space-md);
  text-align: center;
  margin-top: var(--space-lg);
}

.calculator__result-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.calculator__result-value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background-color: var(--surface);
}

/* Page Header */
.page-header {
  background-color: var(--surface);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Responsive Design */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Print Styles */
@media print {
  .header, .footer, .btn { display: none; }
  body { font-size: 12pt; }
}
