/* ============================================
   SOUTHEASTERN ORTHOPAEDIC SPECIALISTS
   Bold Editorial Design System
   ============================================ */

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

:root {
  --forest: #1B4332;
  --forest-deep: #0F2B1F;
  --forest-light: #2D6A4F;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --cream: #F7F5F0;
  --cream-dark: #EDE9E0;
  --warm-white: #FAFAF7;
  --charcoal: #1A1A1A;
  --text-dark: #2C2C2C;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 20px;
}

.section-title--light { color: #fff; }

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn--light {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.btn--light:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn--dark {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn--dark:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

.btn--full { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.site-header.scrolled {
  background: rgba(251, 251, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  padding: 20px 0;
  transition: padding 0.4s var(--ease-smooth);
}
.site-header.scrolled .nav { padding: 14px 0; }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav__logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  line-height: 1.2;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--forest);
  margin-left: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}
.nav__link:hover { color: var(--forest); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  padding: 8px 16px;
  border: 1.5px solid var(--forest);
  border-radius: 4px;
  transition: all 0.3s var(--ease-smooth);
  margin-left: 8px;
}
.nav__cta:hover {
  background: var(--forest);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 43, 31, 0.88) 0%,
    rgba(27, 67, 50, 0.78) 50%,
    rgba(45, 106, 79, 0.6) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 780px;
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero__accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hero__subhead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

/* ---------- Services ---------- */
.services {
  padding: 120px 0;
  background: var(--warm-white);
}
.services__header {
  margin-bottom: 64px;
}
.services__header .section-desc { margin-bottom: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 6px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-smooth);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.1);
  border-color: var(--gold);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--forest);
  border-radius: 4px;
  color: var(--forest);
  margin-bottom: 24px;
  transition: all 0.3s var(--ease-smooth);
}
.service-card:hover .service-card__icon {
  background: var(--forest);
  color: #fff;
}
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background: var(--forest);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__image-wrap {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__content .section-label { color: var(--gold); }
.about__content .section-title { color: #fff; margin-bottom: 28px; }
.about__body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ---------- Patient Info ---------- */
.patients {
  padding: 120px 0;
  background: var(--cream);
}
.patients__header {
  text-align: center;
  margin-bottom: 64px;
}
.patients__header .section-desc { margin: 0 auto; }
.patients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-block {
  background: #fff;
  border-radius: 6px;
  padding: 36px 32px;
  border: 1px solid rgba(27, 67, 50, 0.06);
  transition: all 0.3s var(--ease-smooth);
}
.info-block:hover {
  box-shadow: 0 12px 40px rgba(27, 67, 50, 0.08);
}
.info-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.info-block__header svg {
  color: var(--forest);
  flex-shrink: 0;
}
.info-block__header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
}
.info-block__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.info-block__body a {
  color: var(--forest-light);
  font-weight: 500;
  transition: color 0.2s;
}
.info-block__body a:hover { color: var(--gold); }
.info-block__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  transition: color 0.2s;
}
.info-block__link:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  background: var(--warm-white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__text .section-label { color: var(--gold); }
.contact__text .section-title { color: #fff; margin-bottom: 20px; }
.contact__body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  transition: color 0.2s;
}
.contact__phone:hover { color: var(--gold-light); }
.contact__address {
  font-style: normal;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.08);
}
.contact-form__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 28px;
}
.contact-form__group {
  margin-bottom: 20px;
}
.contact-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.2s;
  outline: none;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--forest-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.contact-form__textarea { resize: vertical; }
.contact-form__privacy {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}
.contact-form__success {
  text-align: center;
  padding: 32px 16px;
  color: var(--forest);
}
.contact-form__success svg {
  margin: 0 auto 16px;
  color: var(--forest-light);
}
.contact-form__success p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--forest-deep);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
}
.footer__info address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer__phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}
.footer__phone:hover { color: var(--gold-light); }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}
.footer__disclaimer { max-width: 500px; text-align: right; }

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { gap: 48px; }
  .contact__inner { gap: 48px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; align-items: center; justify-content: center; }
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.4s var(--ease-smooth);
    z-index: 999;
  }
  .nav__menu.open { right: 0; }
  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
  }
  .nav__overlay.visible { opacity: 1; pointer-events: all; }

  .hero__content { padding-top: 100px; }
  .hero__headline { font-size: clamp(2.25rem, 8vw, 3.5rem); }

  .services { padding: 80px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 28px; }

  .about { padding: 80px 0; }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image-wrap { aspect-ratio: 16/9; }
  .about__stats { gap: 24px; flex-wrap: wrap; }

  .patients { padding: 80px 0; }
  .patients__grid { grid-template-columns: 1fr; }

  .contact { padding: 80px 0; }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__phone { font-size: 1.25rem; }
  .contact-form { padding: 28px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
}
