/* ============================================
   QUINONES MEDICAL GROUP — STYLESHEET
   Bold editorial style · Teal + Slate Grey
   ============================================ */

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

:root {
  --teal-900: #042f2f;
  --teal-800: #0D4F4F;
  --teal-700: #136b6b;
  --teal-600: #1a8a8a;
  --teal-500: #23a8a8;
  --teal-400: #4db8b8;
  --teal-100: #d0ebeb;
  --teal-50:  #eaf5f5;

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

  --white: #ffffff;
  --cream: #fafbfb;

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

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);

  --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);
  font-weight: 400;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--teal-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- TYPOGRAPHY ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--teal-500);
  transform: translateY(-50%);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

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

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

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-outline-dark:hover {
  background: var(--slate-700);
  color: var(--white);
  border-color: var(--slate-700);
}

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

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-900);
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--teal-800);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-nav a:not(.btn):hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 72px;
  background: var(--teal-900);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 60px 0 0;
}

.hero-content {
  padding: 40px 0 80px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-400);
  padding-left: 0;
  margin-bottom: 24px;
  display: block;
}

.hero-eyebrow::before { display: none; }

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.025em;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-300);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-300);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--teal-900);
  border-color: var(--white);
}

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

.hero-actions .btn-outline {
  border-color: var(--slate-500);
  color: var(--slate-200);
}

.hero-actions .btn-outline:hover {
  background: var(--slate-700);
  border-color: var(--slate-700);
  color: var(--white);
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding-bottom: 60px;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: -30px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--teal-800);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.hero-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400), var(--teal-600));
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,138,138,0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 0;
  background: var(--white);
}

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

.about-image-col {
  position: relative;
}

.about-image-col img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-accent-strip {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--teal-800);
  color: var(--white);
  padding: 16px 28px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-text-col {
  padding: 20px 0;
}

.about-text-col p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.value-item:hover {
  background: var(--teal-50);
  transform: translateY(-2px);
}

.value-item svg {
  flex-shrink: 0;
  color: var(--teal-700);
  margin-top: 2px;
}

.value-item span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.4;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
  background: var(--slate-50);
}

.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.services-header .section-eyebrow {
  padding-left: 0;
}

.services-header .section-eyebrow::before { display: none; }

.services-intro {
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.7;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  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: var(--teal-800);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

/* ---------- INSURANCE ---------- */
.insurance-section {
  padding: 120px 0;
  background: var(--white);
}

.insurance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.insurance-text p {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.insurance-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.insurance-list li {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  padding-left: 24px;
  position: relative;
}

.insurance-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
}

.insurance-note {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
  padding: 16px 20px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-500);
}

.insurance-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- VISIT ---------- */
.visit-section {
  padding: 120px 0;
  background: var(--teal-900);
  color: var(--white);
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.visit-section .section-heading {
  color: var(--white);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.visit-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.visit-detail svg {
  color: var(--teal-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.visit-detail p {
  font-size: 0.9375rem;
  color: var(--slate-300);
  line-height: 1.7;
}

.visit-detail a {
  color: var(--teal-300);
}

.visit-detail a:hover {
  color: var(--white);
}

.visit-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.visit-map img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.map-link {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--slate-800);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.map-link:hover {
  background: var(--teal-800);
  color: var(--white);
}

/* ---------- CONTACT ---------- */
.contact-section {
  padding: 120px 0;
  background: var(--slate-50);
}

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

.contact-text p {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-top: 20px;
}

.contact-text a {
  font-weight: 600;
  color: var(--teal-700);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,170,170,0.1);
}

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

.form-privacy {
  font-size: 0.8125rem;
  color: var(--slate-400);
  text-align: center;
  margin-top: 16px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  color: var(--teal-600);
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-400);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-mark {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

.footer-brand span:not(.logo-mark) {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

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

.footer-contact,
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact strong,
.footer-hours strong {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.footer-contact p,
.footer-hours p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.footer-bottom p:last-child {
  max-width: 500px;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-layout,
  .about-layout,
  .insurance-layout,
  .visit-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    padding: 40px 0 60px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    margin-top: -20px;
  }

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

  .about-image-col img {
    height: 420px;
  }

  .about-accent-strip {
    left: 16px;
    bottom: -16px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .main-nav a:not(.btn) {
    padding: 12px 16px;
  }

  .main-nav .btn {
    text-align: center;
    justify-content: center;
    margin-top: 8px;
  }

  .hero-layout {
    padding-top: 40px;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-item {
    padding: 16px 20px;
  }

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

  .about-values {
    grid-template-columns: 1fr;
  }

  .insurance-list {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

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

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

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

  .about,
  .services,
  .insurance-section,
  .visit-section,
  .contact-section {
    padding: 80px 0;
  }

  .section-heading {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}
