/* ============================================
   Bardina Primary Care — Main Stylesheet
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -moz-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: #fff; color: #1e293b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1a73e8; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #0d47a1; }
a:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #0d47a1; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e8f0; }
th { background: #f1f5f9; font-weight: 600; }

/* --- Skip Link --- */
.skip-link { position: absolute; top: -100%; left: 0; z-index: 1000; padding: 0.5rem 1rem; background: #0d47a1; color: #fff; font-weight: 600; }
.skip-link:focus { top: 0; }

/* --- Container --- */
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* --- Header / Nav --- */
.site-header { background: #fff; border-bottom: 2px solid #e8f0fe; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: #0d47a1; text-decoration: none; }
.site-logo:hover { color: #1a73e8; }
.site-logo img.site-logo-mark { flex-shrink: 0; height: 5rem; width: auto; max-width: none; }
.nav-toggle { display: none; background: none; border: 2px solid #e2e8f0; border-radius: 6px; padding: 0.375rem 0.5rem; cursor: pointer; color: #1e293b; }
.nav-toggle:hover { border-color: #1a73e8; }
.nav-list { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.nav-list a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; color: #475569; font-weight: 500; text-decoration: none; font-size: 0.9375rem; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: #e8f0fe; color: #0d47a1; }

@media (max-width: 48rem) {
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .nav-list a { padding: 0.625rem 0.75rem; }
  .nav-open .nav-list { display: flex; }
}

/* --- Mobile <details> nav fallback --- */
.nav-details-mobile { display: none; }
@media (max-width: 48rem) {
  .nav-details-mobile { display: block; }
  .nav-details-mobile summary { list-style: none; display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border: 2px solid #e2e8f0; border-radius: 6px; cursor: pointer; font-weight: 500; color: #1e293b; user-select: none; }
  .nav-details-mobile summary::-webkit-details-marker { display: none; }
  .nav-details-mobile summary:hover { border-color: #1a73e8; }
  .nav-details-mobile[open] summary { border-color: #1a73e8; background: #e8f0fe; }
  .nav-desktop { display: none; }
}

@media (min-width: 48.0625rem) {
  .nav-desktop { display: flex !important; }
}

/* --- Hero --- */
.hero { background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%); padding: clamp(3rem, 8vw, 5rem) 0; text-align: center; }
.hero h1 { margin-bottom: 0.75rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #475569; max-width: 36rem; margin: 0 auto 1.5rem; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.2; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #0d47a1; color: #fff; }
.btn-outline { background: transparent; border-color: #1a73e8; color: #1a73e8; }
.btn-outline:hover { background: #e8f0fe; color: #0d47a1; }
.btn-cta { background: #059669; color: #fff; font-size: 1.125rem; padding: 0.875rem 2rem; }
.btn-cta:hover { background: #047857; color: #fff; }

/* --- Sections --- */
section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: #64748b; max-width: 36rem; margin: 0 auto 2.5rem; }

/* --- Card Grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.75rem; }

/* --- Card alternate style w/ shadow --- */
.card-shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.card-shadow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* --- Value Props (Home) --- */
.value-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 10px; background: #e8f0fe; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: #475569; font-size: 0.9375rem; }

/* --- Insurance Strip --- */
.insurance-strip { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.insurance-strip p { text-align: center; font-weight: 600; color: #64748b; margin-bottom: 1rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.insurance-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; }
.insurance-logos span { color: #94a3b8; font-size: 0.875rem; font-weight: 500; }

/* --- Testimonial --- */
.testimonial { background: #0d47a1; color: #fff; text-align: center; }
.testimonial blockquote { font-size: clamp(1.05rem, 2.5vw, 1.25rem); max-width: 40rem; margin: 0 auto 1rem; font-style: italic; }
.testimonial cite { font-style: normal; color: #a5d6ff; font-weight: 500; }

/* --- About - Team --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.team-card { text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 2rem 1.5rem; }
.team-avatar { width: 8rem; height: 8rem; border-radius: 50%; background: #e8f0fe; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: #1a73e8; }
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .credentials { color: #1a73e8; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.75rem; }
.team-card p { color: #475569; font-size: 0.9375rem; }

/* --- Services --- */
.service-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 8px; background: #e8f0fe; margin-bottom: 1rem; }

/* --- Patient Info --- */
.info-section { margin-bottom: 2rem; }
.info-section:last-child { margin-bottom: 0; }
.info-section h3 { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e8f0fe; }
.info-list { list-style: none; padding: 0; }
.info-list li { padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; display: flex; gap: 0.5rem; align-items: baseline; }
.info-list li::before { content: "•"; color: #1a73e8; font-weight: bold; }

/* --- FAQ Accordion (CSS-only) --- */
.faq-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question { display: block; padding: 1rem 1.25rem; font-weight: 600; color: #0d47a1; cursor: pointer; user-select: none; }
.faq-question:hover { background: #f8fafc; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }
.faq-item[open] .faq-question { background: #e8f0fe; }
.faq-answer { padding: 0 1.25rem 1rem; color: #475569; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 48rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: 0.5rem; }
.contact-info p { color: #475569; }
.contact-info .detail-row { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9375rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 0.625rem 0.75rem; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: #1a73e8; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form textarea { resize: vertical; min-height: 7rem; }
.note-form { font-size: 0.875rem; color: #94a3b8; margin-top: 0.75rem; }

/* --- Hours Table --- */
.hours-table td:first-child { font-weight: 600; }

/* --- Footer --- */
.site-footer { background: #0d47a1; color: #d2e3fc; margin-top: auto; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 0.375rem; }
.footer-grid a { color: #a5d6ff; text-decoration: none; font-size: 0.9375rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: #a5d6ff; font-size: 0.9375rem; margin-top: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1rem; text-align: center; font-size: 0.8125rem; color: #a5d6ff; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Page Header (inner pages) --- */
.page-header { background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%); padding: clamp(2rem, 5vw, 3.5rem) 0; text-align: center; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: #475569; max-width: 36rem; margin: 0 auto; font-size: 1.05rem; }

/* --- CTA Strip --- */
.cta-strip { background: #059669; color: #fff; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #d1fae5; max-width: 32rem; margin: 0.5rem auto 1.25rem; }
.cta-strip .btn { background: #fff; color: #059669; }
.cta-strip .btn:hover { background: #ecfdf5; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .nav-details-mobile, .nav-toggle, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero, .page-header, .cta-strip, .testimonial { background: none !important; padding: 1rem 0; }
  .container { max-width: 100%; padding: 0; }
}
