@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAV BAR */
.nav-bar {
  background-color: #005b7f;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-link { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.logo { height: 50px; width: auto; }
.menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: white; cursor: pointer; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links li a { color: white; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: color 0.3s ease; }
.nav-links li a:hover, .nav-links li a.active { color: #ffcc00; }
.services-dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #f4fbff; width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; border-radius: 12px; overflow: hidden; }
.dropdown-content a { color: black !important; padding: 12px 16px; text-decoration: none; display: block; width: 100%; }
.dropdown-content a:hover { background-color: #ddd; }
.services-dropdown:hover .dropdown-content { display: block; }

/* HERO */
.hero { position: relative; height: 700px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; background: rgba(0,0,0,0.4); padding: 1rem 2rem; border-radius: 8px; }

/* FOOTER */
.site-footer { background-color: #005b7f; padding: 1rem; text-align: center; font-size: 0.9rem; color: white; margin-top: 2rem; }

/* ABOUT */
.staff-intro {  text-align: center;  max-width: 800px;  margin: 0 auto 2rem auto;  font-size: 1rem;}
.about-section { background: #f4fbff; padding: 2rem 0; }
.about-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; }
.about-grid {  display: flex;  flex-wrap: nowrap; align-items: flex-start; gap: 12px; margin-bottom: 2rem; padding: 1.25rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); min-height: 0; }
.about-image { flex: 0 0 auto; margin-right: 10px; }
.about-image img { width: 200px; height: 270px; object-fit: cover; border-radius: 4px; }
.about-text {  flex: 1;  font-size: 0.9rem;  line-height: 1.4;  margin: 0;}
.about-text h3 {  margin-bottom: 0.5rem;  font-size: 1.8rem;  color: #005b7f;}
.about-text p {  color: #666;   margin-bottom: 0.75rem }
.about-grid {  border-bottom: 1px solid #d6d6d6;  padding-bottom: 2rem;  margin-bottom: 2rem; max-width: 1050px;  margin: 0 auto 2rem auto;}
.about-grid:last-child {  border-bottom: none;}

/* SERVICES */
.services { padding: 2rem 0; background: #f4fbff; }
.services h2 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; }
.service-cards { display: flex; flex-wrap: nowrap; justify-content: center; gap: 20px; margin-top: 40px; }
.card { flex: 0 0 22%; background: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 1rem; text-align: center; }
.service-img { width: 100%; height: auto; border-radius: 8px; }

/* CONTENT PAGES */
.aligned-content { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; }
.content-flex { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.image-column { flex: 1 1 300px; max-width: 400px; padding-left: 2rem; }
.text-column { flex: 2 1 600px; }

/* CLINIC HOURS */
.clinic-box { background-color: #f4fbff; border-radius: 20px; padding: 2rem; max-width: 700px; margin: 2rem auto; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.clinic-box h2 { text-align: center; font-size: 2rem; margin-top: 0; }
.clinic-box table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 1rem; }
.clinic-box th, .clinic-box td { border: 1px solid #ccc; padding: 0.75rem; text-align: center; }
.clinic-box th { background-color: #d6ecff; font-weight: bold; }
.clinic-note { text-align: center; font-weight: bold; margin-top: 1.5rem; font-size: 1.1rem; }
.closed-text { color: #8b3a3a; font-weight: 700; }
.psych-note { color: #005b7f; }
.clinic-note { color: #005b7f; }

/* CONTACT */
.contact-section { background: #f4fbff; padding: 2rem 0 3rem 0; }
.contact-section h1 { text-align: center; font-size: 2.5rem; margin: 0 0 1rem 0; }
.contact-intro { max-width: 800px; margin: 0 auto 1.5rem auto; text-align: center; font-size: 1rem; line-height: 1.6; }
.contact-details { max-width: 800px; margin: 0 auto 2rem auto; text-align: center; font-size: 0.95rem; }
.contact-details p { margin: 0.25rem 0; }
.contact-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: flex-start; padding: 0; }
.contact-card { flex: 1 1 400px; max-width: 500px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 1.5rem; }
.contact-card h2 { margin-top: 0; margin-bottom: 1.5rem; color: #333; font-size: 1.6rem; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 1.25rem; display: block; padding: 10px 12px; font-size: 1rem; font-family: 'Open Sans', sans-serif; border: 1px solid #aaa; border-radius: 4px; }
.contact-form textarea { min-height: 190px; resize: vertical; }
.contact-form button { background: #005b7f; color: white; border: none; border-radius: 6px; padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.contact-form button:hover { background: #004766; transform: translateY(-2px); }
.map-box iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: 8px; }
.map-link { text-align: center; margin: 1rem 0 0 0; }
.map-link a { color: #005b7f; font-weight: bold; }

/* ASSOCIATES */
.associates-section { background: #f4fbff; padding: 3rem 0; }
.associates-section h1 { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.associates-intro { text-align: center; max-width: 800px; margin: 0 auto 2.5rem auto; font-size: 1rem; line-height: 1.6; }
.associates-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.associate-card { background: white; width: 280px; min-height: 330px; padding: 1.5rem; text-align: center; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.associate-card:hover { transform: translateY(-4px); box-shadow: 0 4px 14px rgba(0,0,0,0.14); }
.associate-card img { width: 220px; height: 130px; max-width: 100%; object-fit: contain; object-position: center; display: block; margin: 0 auto 1rem auto; }
.associate-card h3 { color: #005b7f; font-size: 1.1rem; line-height: 1.3; min-height: 58px; margin: 0 0 1rem 0; display: flex; align-items: center; justify-content: center; }
.associate-card a { color: #005b7f; font-weight: bold; text-decoration: none; margin-top: auto; }
.associate-card a:hover { color: #ffcc00; }

/* DIRECTIONS */
.directions-section { padding: 2rem 0; background: #f4fbff; }
.directions-section h1 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; }
.directions-section h2 { margin-top: 0; margin-bottom: 0.75rem; color: #005b7f; }
.directions-section p, .directions-section li { font-size: 0.85rem; line-height: 1.3; }
.directions-section ol { padding-left: 1.5rem; }
.directions-section .content-flex { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.directions-section .text-column { flex: 2 1 500px; }
.directions-section .image-column { flex: 1 1 350px; max-width: 450px; padding-left: 0; margin-top: 0; }
.directions-section iframe { display: block; width: 100%; min-height: 500px; margin-top: 0; }
.directions-section .image-column {  flex: 1 1 350px;  max-width: 450px;  padding-left: 0;  margin-top: -10px;}

/* ADDRESS BLOCK */

.address-section { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; flex-wrap: nowrap; }
.address-text { flex: 0 0 auto; }
.address-text h2 { margin-top: 0; }
.address-image { flex: 0 0 140px; margin-top: 0; }
.address-image img { width: 100%; max-width: 140px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-container { justify-content: space-between; }
  .logo-link { position: static; transform: none; }
  .logo { height: 50px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background-color: #005b7f; flex-direction: column; align-items: center; display: none; animation: slideDown 0.3s ease forwards; padding: 1rem 0; gap: 1rem; }
  .nav-links.active { display: flex; }
  .dropdown-content { position: static; width: 100%; margin-top: 0.5rem; }
  .services-dropdown:hover .dropdown-content { display: block; }
  .hero { height: 400px; }
  .hero h1 { font-size: 1.5rem; padding: 0.8rem 1.2rem; }
  .about-grid { flex-direction: column; text-align: center; }
  .about-image { margin-right: 0; margin-bottom: 10px; }
  .service-cards { flex-direction: column; align-items: center; }
  .card { flex: 1 1 auto; width: 90%; max-width: 350px; }
  .image-column { padding-left: 0; max-width: 100%; }
  .address-section { gap: 1rem; }
  .address-image { flex: 0 0 140px; max-width: 140px; }
  .contact-section { padding: 1.5rem 0 2rem 0; }
  .contact-card { flex: 1 1 auto; width: 100%; max-width: 100%; }
  .map-box iframe { height: 320px; }
  .associate-card { width: 90%; max-width: 350px; min-height: 300px; }
  .associate-card img { width: 220px; height: 120px; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
}


/* HOME PAGE */
.hero-content { max-width: 900px; padding: 0 1rem; }
.hero-subtitle { max-width: 760px; margin: 1rem auto 0 auto; font-size: 1.2rem; line-height: 1.5; background: rgba(0,0,0,0.35); padding: 0.75rem 1rem; border-radius: 8px; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-button { display: inline-block; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: bold; text-decoration: none; transition: transform 0.2s ease, background-color 0.2s ease; }
.hero-button:hover { transform: translateY(-2px); }
.hero-button.primary { background: #ffcc00; color: #00384f; }
.hero-button.secondary { background: rgba(255,255,255,0.9); color: #005b7f; }
.home-welcome { background: #f4fbff; padding: 3rem 0 1.5rem 0; text-align: center; }
.home-welcome h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #333; }
.home-welcome p { max-width: 800px; margin: 0 auto; font-size: 1rem; line-height: 1.6; }
.home-quick-links { background: #f4fbff; padding: 1.5rem 0 3rem 0; }
.quick-link-cards { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.quick-card { flex: 0 0 300px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 1.5rem; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 4px 14px rgba(0,0,0,0.14); }
.quick-card h3 { color: #005b7f; margin-top: 0; margin-bottom: 0.75rem; }
.quick-card p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.quick-card a { color: #005b7f; font-weight: bold; text-decoration: none; }
.quick-card a:hover { color: #ffcc00; }

@media (max-width: 768px) {
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { gap: 0.75rem; }
  .hero-button { width: 180px; text-align: center; }
  .home-welcome h2 { font-size: 1.8rem; }
  .quick-card { flex: 1 1 auto; width: 90%; max-width: 350px; }
}
