/* Chiron Medical Group — Base Styles */
:root {
  --primary: #C83C2C;
  --primary-dark: #A32E22;
  --accent: #E8742A;
  --accent-hover: #D4661F;
  --gold: #D4A030;
  --dark: #3B1510;
  --white: #FFFFFF;
  --cream: #FDF9F6;
  --gray-50: #FBF8F7;
  --gray-100: #F2EDEB;
  --gray-300: #C5B8B3;
  --gray-600: #6B5A54;
  --gray-800: #3B2A24;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1100px;
  --section-pad: 5rem 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 1rem;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* Focus-visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- NAV --- */
.nav {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-brand:hover { color: var(--white); }
.nav-brand img {
  height: 54px;
  width: auto;
  border-radius: 4px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: 0.3s;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #5A1A12 50%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}
.hero-logo {
  width: 170px;
  height: 170px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  background: var(--white);
  padding: 6px;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p {
  font-size: 1.2rem;
  color: #E8D5CC;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,116,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* --- SECTIONS --- */
.section { padding: var(--section-pad); }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
}

/* --- CARD GRID --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(59,21,16,0.1);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card h3 { color: var(--dark); }
.card p { color: var(--gray-600); font-size: 0.95rem; }

/* --- FEATURES ROW --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-item p { color: var(--gray-600); font-size: 0.9rem; }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--primary);
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: #E8D5CC; margin-bottom: 2rem; font-size: 1.1rem; }

/* --- CONTACT FORM --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,60,44,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { grid-column: 1 / -1; text-align: center; margin-top: 0.5rem; }
.form-submit .btn { min-width: 200px; }

/* --- ABOUT --- */
.about-content { max-width: 750px; margin: 0 auto; }
.about-content p { margin-bottom: 1.25rem; color: var(--gray-600); font-size: 1.05rem; }
.about-content h2 { margin-top: 2rem; }

/* --- SERVICE LIST --- */
.service-detail {
  border-bottom: 1px solid var(--gray-100);
  padding: 2rem 0;
}
.service-detail:last-child { border-bottom: none; }
.service-detail h2 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.service-detail p { color: var(--gray-600); max-width: 750px; }

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  color: #C5B8B3;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer a { color: #C5B8B3; }
.footer a:hover { color: var(--white); }
.footer-email { margin-bottom: 0.5rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 4rem 1.5rem; }
  .hero p { font-size: 1.05rem; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-brand span { display: none; }
  .hero-logo { width: 130px; height: 130px; margin-bottom: 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 1rem 1.5rem 1.5rem; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  :root { --section-pad: 3.5rem 1.5rem; }
}
