/* Connections Pediatric Therapy - Cloned Static Site */
:root {
  --teal: #008b8b;
  --teal-dark: #006666;
  --teal-light: #20b2aa;
  --black: #111;
  --gray: #333;
  --light-gray: #f5f5f5;
  --white: #fff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* ========== HEADER ========== */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-link:hover {
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,0.95);
  padding: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .site-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-text .tagline {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.85;
  color: #ccc;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-list a {
  color: var(--white);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--teal-light);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Dropdown for Therapy */
.nav-item {
  position: relative;
}

.nav-item .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

/* ========== MAIN CONTENT ========== */
.site-main {
  flex: 1;
  width: 100%;
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Hero / Logo section on home */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.hero-logo {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.hero-logo img {
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Welcome section */
.welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.welcome-text p {
  margin-bottom: 1rem;
}

.welcome-img img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
}

.specialties {
  margin-top: 2rem;
}

.specialties h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--teal-dark);
}

.specialties ul {
  columns: 2;
  column-gap: 2rem;
  list-style: disc;
  padding-left: 1.25rem;
}

.specialties li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

/* Therapy page cards */
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.therapy-card {
  padding: 1.5rem 1rem;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.therapy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.therapy-card img {
  margin: 0 auto 1rem;
  max-width: 180px;
}

.therapy-card h3 {
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 600;
}

.therapy-card a {
  text-decoration: none;
}

/* First Visit forms list */
.forms-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.forms-list {
  list-style: none;
  padding: 0;
}

.forms-list li {
  margin-bottom: 0.75rem;
}

.forms-list a {
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.forms-list a::before {
  content: "📄";
  font-size: 1rem;
}

.forms-img img {
  max-width: 220px;
  margin: 0 auto;
}

/* Blog listing */
.blog-list {
  list-style: none;
  padding: 0;
}

.blog-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e5e5;
}

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

.blog-item h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.blog-item h2 a {
  color: var(--gray);
}

.blog-item h2 a:hover {
  color: var(--teal);
}

.blog-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.blog-pagination a {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--teal);
  border-radius: 4px;
}

.blog-pagination a:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
}

/* Contact form - modern */
.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
  color: var(--teal-dark);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-form .form-intro {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #374151;
}

.form-group label .req {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #d1d5db;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 139, 139, 0.12);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  border: none;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(0, 139, 139, 0.35);
  margin-top: 0.25rem;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 139, 139, 0.45);
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
}

.btn-submit:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
}

/* Therapy detail pages */
.therapy-detail {
  text-align: center;
  padding: 2rem 0;
}

.therapy-detail img {
  margin: 1.5rem auto;
  max-width: 280px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  color: #ccc;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .welcome-section {
    grid-template-columns: 1fr;
  }

  .welcome-img {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .therapy-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .forms-section {
    grid-template-columns: 1fr;
  }

  .forms-img {
    text-align: center;
  }

  .specialties ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-item .submenu {
    position: static;
    display: none;
    background: #1a1a1a;
    box-shadow: none;
    padding-left: 1rem;
  }

  .nav-item.open .submenu {
    display: block;
  }

  .logo-text .site-title {
    font-size: 0.95rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 480px) {
  .logo-text .tagline {
    display: none;
  }

  .hero-logo {
    max-width: 100%;
  }
}

/* Accessibility / SEO helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Blog post pages */
.back-link {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post-content .post-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.post-content .post-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.post-body {
  margin-top: 1.5rem;
  line-height: 1.75;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
  border-radius: 6px;
}

/* Full logo on homepage - no crop */
.hero-logo img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  object-fit: contain;
}

/* Form success message */
.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.form-success strong {
  display: inline;
  font-weight: 700;
}
