/*
Theme Name: Primary Care Associates
Theme URI: https://www.pcatn.com
Author: Custom Build for Primary Care Associates, PC
Description: Modern, accessible, ADA-focused theme for Primary Care Associates, PC – Talbott, TN. Lightweight, semantic, high-contrast, mobile-first. Designed for informational use only (no PHI collection).
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pcatn
Tags: accessibility-ready, custom-menu, featured-images, responsive, medical
*/

:root {
  --primary: #0d6e9c;
  --primary-dark: #0a567a;
  --accent: #2a9d8f;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --border: #e0e6ed;
  --success: #2a9d8f;
  --focus: #ffbf47;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  font-size: 1.05rem;
}
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--primary-dark); }
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
  text-decoration: none;
}
.site-title:hover { text-decoration: underline; }
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}
nav a:hover, nav a:focus { color: var(--primary); text-decoration: underline; }
.cta-button {
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary-dark);
  text-decoration: none !important;
}
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f9f7 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.hero h1 { font-size: 2.25rem; margin: 0 0 1rem; color: var(--primary); line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--text-light); max-width: 700px; margin: 0 auto 1.5rem; }
.section { margin: 3rem 0; }
.section h2 { font-size: 1.75rem; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3 { margin-top: 0; color: var(--primary); }
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.hours-table, .info-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.hours-table th, .hours-table td, .info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}
.hours-table th { background: var(--bg-alt); }
.alert {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
@media (max-width: 768px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  nav ul { flex-direction: column; gap: 0.5rem; }
  .hero h1 { font-size: 1.75rem; }
  main { padding: 1rem; }
}
