/* ============================================
   Terence Webber, MD — Medical Practice Website
   Classic & Elegant Design System
   ============================================ */

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

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0d766a;
  --teal-800: #0d4f4f;
  --teal-900: #0a3d3d;
  --teal-950: #042525;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --cream: #faf9f7;
  --warm-white: #fefdfb;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(13, 79, 79, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 79, 79, 0.08);
  --shadow-lg: 0 8px 30px rgba(13, 79, 79, 0.10);
  --shadow-xl: 0 16px 50px rgba(13, 79, 79, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-600);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--slate-900);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--teal-800);
  color: #ffffff;
  border-color: var(--teal-800);
}

.btn-primary:hover {
  background-color: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-800);
  border-color: var(--teal-300);
}

.btn-outline:hover {
  background-color: var(--teal-50);
  border-color: var(--teal-600);
  color: var(--teal-800);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Section Headings ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--slate-600);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-800);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
}

.logo-mark {
  color: var(--teal-700);
}

.logo-text {
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--teal-600);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--teal-700);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--slate-700);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: var(--slate-700);
  transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 50%, var(--teal-700) 100%);
  padding: 80px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 118, 106, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(4, 37, 37, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  color: #ffffff;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--teal-200);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-actions .btn-primary {
  background-color: #ffffff;
  color: var(--teal-800);
  border-color: #ffffff;
}

.hero-actions .btn-primary:hover {
  background-color: var(--teal-100);
  border-color: var(--teal-100);
  color: var(--teal-800);
}

.hero-actions .btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-200);
}

.trust-item svg {
  color: var(--teal-400);
  flex-shrink: 0;
}

.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--teal-400);
  border-radius: var(--radius-md);
  opacity: 0.2;
  z-index: -1;
}

.hero-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-card svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

.hero-card-text {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
}

/* ---------- Services ---------- */
.services {
  padding: 96px 0;
  background-color: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--teal-800);
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--slate-900);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  padding: 96px 0;
  background-color: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 37, 37, 0.15) 0%, transparent 40%);
  border-radius: var(--radius-lg);
}

.about-stat {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--teal-800);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-300);
  margin-top: 4px;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-content > p {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-features {
  list-style: none;
  margin: 28px 0 36px;
  display: grid;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.55;
}

.about-features li svg {
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Patient Experience ---------- */
.experience {
  padding: 96px 0;
  background-color: var(--teal-950);
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 118, 106, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(13, 79, 79, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.experience .container {
  position: relative;
  z-index: 1;
}

.experience .section-eyebrow {
  color: var(--teal-400);
}

.experience .section-title {
  color: #ffffff;
}

.experience .section-sub {
  color: var(--teal-300);
  margin: 0 auto;
}

.experience-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition);
}

.step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-600);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.7;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.875rem;
  color: var(--teal-300);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0;
  background-color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-eyebrow {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item dt {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
}

.contact-item dd {
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.6;
}

.contact-item dd a {
  color: var(--teal-700);
  font-weight: 500;
}

.contact-item dd a:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

.contact-item dd span {
  display: block;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--slate-900);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background-color: var(--slate-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  background-color: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-sm);
  color: var(--teal-800);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-success svg {
  color: var(--teal-600);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--slate-950);
  color: var(--slate-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-800);
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  color: var(--teal-400);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-300);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links ul li a {
  font-size: 0.875rem;
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: var(--teal-400);
}

.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-contact a {
  color: var(--teal-400);
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--teal-300);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 48px;
  }

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

  .experience-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .nav-menu .btn {
    align-items: center;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-img-wrapper {
    max-height: 360px;
  }

  .hero-card {
    bottom: -16px;
    left: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .services {
    padding: 64px 0;
  }

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

  .about {
    padding: 64px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content .section-title,
  .about-content .section-eyebrow {
    text-align: center;
  }

  .about-content > p {
    text-align: center;
  }

  .about-features {
    max-width: 400px;
    margin: 28px auto 36px;
  }

  .about-content .btn {
    display: inline-flex;
    margin: 0 auto;
  }

  .experience {
    padding: 64px 0;
  }

  .experience-steps {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 64px 0;
  }

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

  .contact-info .section-title,
  .contact-info .section-eyebrow {
    text-align: center;
  }

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

  .contact-form-wrapper {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 28px 22px;
  }

  .contact-form-wrapper {
    padding: 24px 20px;
  }
}
