/* Arlington Health Care — theme aligned with medical template reference */
:root {
  --primary: #20b2aa;
  --primary-dark: #1a9b94;
  --navy: #2c3e50;
  --navy-dark: #1a252f;
  --sky: #3498db;
  --blue-mid: #2980b9;
  --text: #5a6c7d;
  --text-dark: #2c3e50;
  --light: #f4f7f9;
  --white: #ffffff;
  --border: #dde4ea;
  --shadow: 0 8px 30px rgba(44, 62, 80, 0.08);
  --radius: 4px;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-title .subtitle {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-social {
  display: flex;
  gap: 12px;
}

.top-social a {
  color: var(--white);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.top-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.top-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo img {
  height: 48px;
  width: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  display: block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.header-cta .btn {
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #e8f6f5 0%, #f0f8ff 50%, #fff 100%);
  padding: 72px 0 110px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content .lead {
  font-size: 16px;
  margin-bottom: 24px;
}

.hero-badge {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,50 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E")
    center bottom / cover no-repeat;
}

/* About home */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-grid .about-img img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-dark);
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* CTA boxes */
.cta-section {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}

.cta-section.section {
  padding-top: 0;
  padding-bottom: 0;
}

.cta-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 50px;
}

.cta-box {
  padding: 35px 30px;
  color: var(--white);
  text-align: center;
}

.cta-box h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 16px;
}

.cta-box.navy {
  background: var(--navy);
}

.cta-box.mid {
  background: var(--blue-mid);
}

.cta-box.sky {
  background: var(--sky);
}

/* Services icons */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 35px 25px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 26px;
}

.service-card h3 {
  font-size: 18px;
}

/* Stats */
.stats-band {
  background: var(--navy-dark);
  color: var(--white);
  padding: 55px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-item h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 4px;
}

.stat-item p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Appointment section */
.appointment-section {
  background: var(--light);
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.form-card {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.form-card h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.appointment-img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #e74c3c;
}

.field-error {
  display: block;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

/* Checkbox row: grid keeps box and label aligned on all viewports */
.form-checkbox-wrap,
.form-checkbox.form-checkbox-wrap {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  width: 100%;
  margin-bottom: 20px;
}

.form-checkbox-wrap input[type='checkbox'],
.form-checkbox.form-checkbox-wrap input[type='checkbox'] {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 4px 0 0 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
  justify-self: start;
  align-self: start;
}

.form-checkbox-wrap label,
.form-checkbox.form-checkbox-wrap label {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  text-align: left;
}

.form-checkbox-wrap .field-error,
.form-checkbox.form-checkbox-wrap .field-error {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 32px;
}

input[type='checkbox'].is-invalid {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}

.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.form-success[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.why-icon {
  width: 50px;
  height: 50px;
  background: rgba(32, 178, 170, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Promo banner — no phone */
.promo-banner {
  background: var(--navy);
  padding: 45px 0;
  text-align: center;
  color: var(--white);
}

.promo-banner h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 12px;
}

.promo-banner .btn {
  margin-top: 8px;
}

/* Specialty grid */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.specialty-card {
  border: 2px solid var(--primary);
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.3s;
}

.specialty-card:hover {
  background: rgba(32, 178, 170, 0.06);
}

.specialty-card .icon {
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 12px;
}

/* Doctors */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.doctor-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.doctor-card .info {
  padding: 20px 16px;
}

.doctor-card h4 {
  margin-bottom: 4px;
}

.doctor-card .role {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 12px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.doctor-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 12px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-card h3 {
  font-size: 22px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
  font-size: 14px;
}

/* Testimonial + counters */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.testimonial-side {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-side h3 {
  color: var(--white);
}

.testimonial-side .quote {
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 20px;
}

.counters-side {
  padding: 60px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
}

.counter-box {
  text-align: center;
}

.counter-box .counter {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .content {
  padding: 22px;
}

.blog-date {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 70px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 14px;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--white);
}

/* Footer newsletter */
.footer-newsletter {
  background: var(--primary);
  padding: 35px 0;
}

.footer-newsletter .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-newsletter h3 {
  color: var(--white);
  margin: 0;
  font-size: 22px;
}

.newsletter-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  max-width: 480px;
}

.newsletter-inline input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
}

.newsletter-inline .btn {
  background: var(--navy);
  border-color: var(--navy);
}

/* Main footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-grid p {
  font-size: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-subscribe input {
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-family: inherit;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Legal pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 32px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 6px;
}

/* Content pages */
.two-col-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-card {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-bar select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
}

.map-placeholder {
  background: var(--light);
  border: 1px dashed var(--border);
  min-height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  padding: 20px;
}

.bg-light {
  background: var(--light);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
    padding: 48px 0 80px;
  }

  .hero .container,
  .about-grid,
  .appointment-grid,
  .why-grid,
  .two-col-content {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
    text-align: center;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-content .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-section {
    margin-top: 0;
  }

  .cta-boxes {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .specialty-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doctors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta {
    display: none;
  }

  .site-header .container {
    position: relative;
  }
}

@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .services-grid,
  .specialty-grid,
  .pricing-grid,
  .blog-grid,
  .doctors-grid,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .counters-side {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .form-card {
    padding: 24px;
  }
}