/* ===================================
   Austin Real Estate Partners
   =================================== */

:root {
  --teal: #4DAEC9;
  --teal-dark: #3A8FA8;
  --teal-light: #e8f4f8;
  --navy: #1c2e3f;
  --navy-light: #2a4560;
  --text: #2d3436;
  --text-light: #5a6368;
  --bg: #ffffff;
  --bg-alt: #f4f7f8;
  --border: #dce3e6;
  --max-width: 1060px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--navy);
  color: #fff;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
}

.section--dark .section-title {
  color: #fff;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 40px;
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* ---- Header / Nav ---- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---- Hero (Photo Background) ---- */

.hero {
  position: relative;
  padding: 100px 0 90px;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(20,36,52,0.93) 0%, rgba(28,46,63,0.8) 50%, rgba(77,174,201,0.65) 100%),
    url('https://images.unsplash.com/photo-1531218150217-54595bc2b934?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 40%;
  color: #fff;
}

.hero-inner {
  max-width: 640px;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.hero-contact a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.hero-contact a:hover {
  color: var(--teal);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--teal);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn--dark {
  background: var(--navy);
}

.btn--dark:hover {
  background: var(--navy-light);
  color: #fff;
}

/* ---- Stats Bar ---- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}

.stat-item {
  padding: 0 16px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--teal);
  font-weight: 400;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.section--dark .stat-label {
  color: rgba(255,255,255,0.6);
}

/* ---- Services Grid ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(77,174,201,0.1);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Testimonials ---- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-stars {
  color: var(--teal);
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonials-cta {
  text-align: center;
  margin-top: 32px;
}

.testimonials-cta a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-dark);
  border-bottom: 1px solid transparent;
}

.testimonials-cta a:hover {
  border-bottom-color: var(--teal-dark);
}


/* ---- Contact Section ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-detail {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-detail strong {
  color: var(--text);
  font-weight: 600;
}

.contact-detail a {
  color: var(--text-light);
}

.contact-detail a:hover {
  color: var(--teal);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.social-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.social-links a:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

/* ---- Contact Form ---- */

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

/* ---- About Page ---- */

.about-hero {
  position: relative;
  padding: 72px 0 64px;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(20,36,52,0.94) 0%, rgba(28,46,63,0.85) 50%, rgba(77,174,201,0.7) 100%),
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 60%;
  color: #fff;
}

.about-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.about-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.7;
}

.about-hero .hero-label {
  color: var(--teal);
}

/* About Bio with photo (float wrap) */

.about-photo {
  float: left;
  width: 240px;
  margin: 0 32px 20px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-bio::after {
  content: "";
  display: table;
  clear: both;
}

.about-bio h2,
.about-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: 32px;
}

.about-bio h2:first-of-type {
  margin-top: 0;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-bio p,
.about-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Credentials */

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.credential-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.credential-group ul {
  list-style: none;
}

.credential-group li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 5px 0;
  border-bottom: 1px solid var(--bg-alt);
}

/* Areas Served */

.areas-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 8px;
}

/* ---- CTA Banner ---- */

.cta-banner {
  position: relative;
  padding: 64px 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(20,36,52,0.93) 0%, rgba(28,46,63,0.85) 50%, rgba(77,174,201,0.7) 100%),
    url('https://images.unsplash.com/photo-1531218150217-54595bc2b934?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 70%;
  text-align: center;
  color: #fff;
}

.cta-banner .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--navy);
  padding: 32px 0;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
  color: var(--teal);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .about-photo {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-hero h1 {
    font-size: 1.85rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .about-photo {
    float: none;
    width: 200px;
    margin: 0 auto 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

}
