/* ============================================
   Grace Pediatrics Website — style.css
   Color palette adapted from Plateau Pediatrics
   Typography: Lato (body) + Neucha (headings)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary-blue: #1874bf;
  --color-teal: #118886;
  --color-teal-dark: #0f7b79;
  --color-purple: #9936b4;
  --color-orange: #dc7e34;
  --color-red: #d82423;
  --color-yellow: #fdf590;
  --color-green: #8dcc86;
  --color-dark-teal: #076e6b;
  --color-link: #3f84c5;
  --color-link-hover: #963;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg-light: #f8f9fa;
  --color-bg-gray: #e4e4e4;
  --color-bg-blue-light: #dce6ed;
  --color-white: #fff;
  --color-black: #000;
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Neucha', cursive;
  --max-width: 1200px;
  --nav-height: 920px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
  color: var(--color-primary-blue);
  text-transform: uppercase;
}

h2 {
  font-size: 1.6rem;
  color: var(--color-teal);
  font-weight: bold;
}

h3 {
  font-size: 1.3rem;
  color: var(--color-primary-blue);
  text-transform: uppercase;
}

h4 {
  font-size: 1.1rem;
  color: var(--color-purple);
  font-weight: bold;
  font-family: var(--font-body);
}

p {
  margin-bottom: 1em;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
  line-height: 1.5;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

/* --- Top Info Bar --- */
.top-bar {
  background-color: var(--color-dark-teal);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-info a {
  color: var(--color-white);
  font-weight: 400;
}

.top-bar-info a:hover {
  color: var(--color-yellow);
  text-decoration: none;
}

.top-bar-info .phone-icon::before {
  content: "\260E";
  margin-right: 0.3em;
}

.top-bar-info .location-icon::before {
  content: "\1F4CD";
  margin-right: 0.3em;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-portal {
  display: inline-block;
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 0.4rem 1.2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-portal:hover {
  background-color: #7a2b90;
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: var(--nav-height);
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 900px;
  width: auto;
  padding: 0.5rem 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-dark-teal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.2s, font-weight 0.1s;
  white-space: nowrap;
}

.main-nav a:hover {
  font-weight: bold;
  text-decoration: none;
}

/* Color-coded nav items matching Plateau pattern */
.nav-item-0 > a { background-color: #4caf50; }
.nav-item-0 > a:hover, .nav-item-0:hover > a { background-color: #43a047; }

.nav-item-1 > a { background-color: var(--color-red); }
.nav-item-1 > a:hover, .nav-item-1:hover > a { background-color: #b81e1d; }

.nav-item-2 > a { background-color: var(--color-orange); }
.nav-item-2 > a:hover, .nav-item-2:hover > a { background-color: #c46821; }

.nav-item-3 > a { background-color: var(--color-teal); }
.nav-item-3 > a:hover, .nav-item-3:hover > a { background-color: var(--color-teal-dark); }

.nav-item-4 > a { background-color: var(--color-primary-blue); }
.nav-item-4 > a:hover, .nav-item-4:hover > a { background-color: #14619e; }

.nav-item-5 > a { background-color: var(--color-purple); }
.nav-item-5 > a:hover, .nav-item-5:hover > a { background-color: #7a2b90; }

/* --- Dropdown Menus --- */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  z-index: 1001;
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  max-height: 0;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.dropdown-open > .dropdown {
  display: block !important;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  max-height: none;
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  text-transform: none;
  border-radius: 0;
  background-color: transparent;
  white-space: nowrap;
}

.dropdown a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-teal);
  font-weight: 400;
}

/* Color-matched dropdown accent borders */
.nav-item-0 .dropdown { border-top: 3px solid #4caf50; }
.nav-item-1 .dropdown { border-top: 3px solid var(--color-red); }
.nav-item-2 .dropdown { border-top: 3px solid var(--color-orange); }
.nav-item-3 .dropdown { border-top: 3px solid var(--color-teal); }
.nav-item-4 .dropdown { border-top: 3px solid var(--color-primary-blue); }
.nav-item-5 .dropdown { border-top: 3px solid var(--color-purple); }

.nav-portal {
  display: none;
}

.nav-portal .btn-portal {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(153, 54, 180, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(153, 54, 180, 0); }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(7, 110, 107, 0.55) 0%, rgba(7, 110, 107, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #7a2b90;
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--color-teal);
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--color-teal);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
}

/* --- Page Title Banner (subpages) --- */
.page-title-banner {
  background-color: var(--color-yellow);
  padding: 1.5rem 0;
  text-align: center;
}

.page-title-banner h1 {
  margin: 0;
  font-size: 2rem;
}

/* --- Welcome / Highlight Box --- */
.welcome-section {
  padding: 3rem 0;
}

.welcome-box {
  background-color: var(--color-yellow);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  text-align: center;
}

.welcome-box h2 {
  color: var(--color-primary-blue);
  margin-bottom: 0.75rem;
}

.welcome-box p {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* --- Quick Links / Services Grid --- */
.quick-links {
  padding: 3rem 0;
  background-color: var(--color-bg-light);
}

.quick-links h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--color-teal);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.link-card a {
  font-weight: 700;
  color: var(--color-purple);
}

.link-card a:hover {
  color: var(--color-teal);
}

/* Card accent colors */
.link-card.accent-red { border-top-color: var(--color-red); }
.link-card.accent-orange { border-top-color: var(--color-orange); }
.link-card.accent-teal { border-top-color: var(--color-teal); }
.link-card.accent-blue { border-top-color: var(--color-primary-blue); }
.link-card.accent-purple { border-top-color: var(--color-purple); }

/* --- After Hours Section --- */
.after-hours {
  background-color: var(--color-bg-blue-light);
  border-top: 3px solid var(--color-primary-blue);
  border-bottom: 3px solid var(--color-primary-blue);
  padding: 2rem 0;
}

.after-hours .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.after-hours-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.after-hours-content {
  flex: 1;
  min-width: 250px;
}

.after-hours-content h2 {
  color: var(--color-primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.after-hours-content p {
  margin-bottom: 0.5rem;
}

.after-hours-content .emergency-text {
  font-weight: 700;
  color: var(--color-red);
  font-size: 1.05rem;
}

.after-hours-content .phone-link {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-blue);
}

/* --- Insurance Callout --- */
.insurance-section {
  padding: 2.5rem 0;
  text-align: center;
}

.insurance-section h2 {
  margin-bottom: 1rem;
}

.insurance-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.insurance-badge {
  background-color: var(--color-bg-light);
  border: 2px solid var(--color-green);
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  color: var(--color-teal);
  font-size: 0.95rem;
}

/* --- Provider Cards --- */
.providers-section {
  padding: 3rem 0;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.provider-card {
  background-color: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.provider-card:hover {
  transform: translateY(-3px);
}

.provider-photo {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center;
  background-color: var(--color-yellow);
  padding: 0.5rem;
}

.provider-info {
  padding: 1.5rem;
}

.provider-info h3 {
  color: var(--color-primary-blue);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.provider-info .provider-title {
  color: var(--color-purple);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.provider-info p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- Content Sections (generic) --- */
.content-section {
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--color-bg-light);
}

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.content-image {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* --- Services List --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-item {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-teal);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.service-item h4 {
  margin-bottom: 0.4rem;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Patient Resources --- */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.portal-highlight {
  border: 3px solid var(--color-purple);
  background-color: #f9f0fc;
}

.portal-highlight h3 {
  color: var(--color-purple);
}

/* --- Contact / Map Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.location-card {
  background-color: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.location-card .map-embed {
  width: 100%;
  height: 250px;
  border: none;
}

.location-details {
  padding: 1.5rem;
}

.location-details h3 {
  color: var(--color-primary-blue);
  margin-bottom: 0.75rem;
}

.location-details p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.location-details .label {
  font-weight: 700;
  color: var(--color-teal);
}

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hours-table th,
.hours-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-bg-gray);
}

.hours-table th {
  background-color: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.hours-table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

.hours-closed {
  color: var(--color-red);
  font-weight: 700;
}

/* --- Policy Section --- */
.policy-box {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-orange);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.policy-box h3 {
  margin-top: 0;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-dark-teal);
  color: var(--color-white);
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--color-yellow);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--color-white);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--color-yellow);
  text-decoration: none;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

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

.footer-bottom a:hover {
  color: var(--color-yellow);
}

/* --- Symptom Checker Widget --- */
.symptom-checker {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  max-width: 500px;
  overflow: hidden;
}

.symptom-checker-header {
  background-color: var(--color-teal-dark);
  padding: 0.75rem 1rem;
  text-align: center;
}

.symptom-checker-header h2 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.symptom-checker-body {
  padding: 1rem;
}

.symptom-checker-body select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  appearance: auto;
}

.symptom-checker-body select:focus {
  outline: 2px solid var(--color-teal);
  border-color: var(--color-teal);
}

.symptom-checker-body .visual-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.symptom-checker-body .visual-link:hover {
  background-color: var(--color-bg-light);
  text-decoration: none;
  color: var(--color-teal);
}

/* Homepage layout with symptom checker sidebar */
.home-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* --- Well-Child Visit Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule-table th {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-family: var(--font-heading);
}

.schedule-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-bg-gray);
  vertical-align: top;
}

.schedule-table tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

.schedule-table tr:hover {
  background-color: var(--color-bg-blue-light);
}

/* --- Placeholder Styling --- */
.placeholder {
  background-color: #fff3cd;
  border: 2px dashed var(--color-orange);
  padding: 1rem;
  border-radius: 8px;
  color: #856404;
  font-style: italic;
  margin: 1rem 0;
}

/* ============================================
   RESPONSIVE DESIGN — Mobile First
   ============================================ */

/* Small screens (default, up to 575px) */
.top-bar .container {
  flex-direction: column;
  text-align: center;
}

.top-bar-info {
  justify-content: center;
  font-size: 0.8rem;
}

.nav-toggle {
  display: flex;
}

.site-logo img {
  height: 150px;
}

.nav-container {
  --nav-height: 170px;
}

.main-nav {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  flex-direction: column;
  padding: 0.5rem 0;
}

.main-nav.active {
  display: flex;
}

.main-nav ul {
  flex-direction: column;
}

.main-nav a {
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Mobile dropdowns: show inline */
.dropdown {
  display: none !important;
  position: static;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  border-top: none !important;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  max-height: 0;
}

.has-dropdown.dropdown-open > .dropdown {
  display: block !important;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  max-height: none;
}

.dropdown a {
  padding-left: 2.5rem;
  font-size: 0.9rem;
  background-color: rgba(0,0,0,0.03);
}

.nav-portal {
  margin: 0.5rem 1rem;
}

.nav-portal .btn-portal {
  display: block;
  text-align: center;
  padding: 0.75rem;
  font-size: 1rem;
}

.hero {
  height: 300px;
}

.hero-content h1 {
  font-size: 1.6rem;
}

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

.two-col {
  grid-template-columns: 1fr;
}

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

/* 576px and up */
@media (min-width: 576px) {
  .hero {
    height: 300px;
  }

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

  .site-logo img {
    height: 200px;
  }

  .nav-container {
    --nav-height: 220px;
  }
}

/* 768px and up */
@media (min-width: 768px) {
  .hero {
    height: 420px;
  }

  .top-bar .container {
    flex-direction: row;
    text-align: left;
  }

  .top-bar-info {
    font-size: 0.85rem;
  }

  .site-logo img {
    height: 300px;
  }

  .nav-container {
    --nav-height: 320px;
  }

  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 992px and up — Desktop nav */
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
    background-color: transparent;
  }

  .main-nav ul {
    flex-direction: row;
  }

  .main-nav > ul > li > a {
    min-width: 7rem;
    text-align: center;
  }

  .main-nav a {
    border-radius: 8px 8px 0 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }

  /* Desktop dropdowns: absolute positioned */
  .dropdown {
    position: absolute;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    min-width: 220px;
  }

  .nav-item-0 .dropdown { border-top: 3px solid #4caf50 !important; }
  .nav-item-1 .dropdown { border-top: 3px solid var(--color-red) !important; }
  .nav-item-2 .dropdown { border-top: 3px solid var(--color-orange) !important; }
  .nav-item-3 .dropdown { border-top: 3px solid var(--color-teal) !important; }
  .nav-item-4 .dropdown { border-top: 3px solid var(--color-primary-blue) !important; }
  .nav-item-5 .dropdown { border-top: 3px solid var(--color-purple) !important; }

  .dropdown a {
    padding-left: 1.2rem;
    background-color: transparent;
  }

  .home-content-grid {
    grid-template-columns: 350px 1fr;
  }

  .hero {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

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

  .providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1200px and up */
@media (min-width: 1200px) {
  .hero {
    height: 580px;
  }

  .main-nav a {
    font-size: 1.05rem;
    padding: 0.6rem 1.1rem;
  }
}
