/* ============================================
   Florida Surgical — Stylesheet
   Palette: deep navy + teal accent + cream
   ============================================ */

:root {
  --navy-900: #0a1422;
  --navy-800: #0f1c2e;
  --navy-700: #16263d;
  --navy-600: #1f334d;
  --teal-500: #50c8c8;
  --teal-600: #3eb1b1;
  --teal-700: #2f9595;
  --cream:    #f5f1ea;
  --paper:    #faf8f4;
  --gray-50:  #f7f7f8;
  --gray-100: #ececef;
  --gray-200: #d8d8dd;
  --gray-400: #8a8d96;
  --gray-600: #555861;
  --gray-800: #2b2d33;
  --shadow-sm: 0 2px 6px rgba(10, 20, 34, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 20, 34, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 20, 34, 0.18);
  --radius:   14px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-height: 76px;
  --topbar-height: 36px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-italic: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--navy-900);
  color: #d6e4ec;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.topbar a { color: var(--teal-500); font-weight: 600; }
.topbar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--teal-500);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(80, 200, 200, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(80, 200, 200, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(80, 200, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(80, 200, 200, 0); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 28, 46, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }
.logo-image {
  height: 44px;
  width: auto;
  display: block;
}
.logo-image-footer {
  height: 56px;
}

.nav-primary {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-primary a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal-500);
  transition: width 0.25s;
}
.nav-primary a:hover { color: #fff; }
.nav-primary a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[hidden] { display: none !important; }
.nav-mobile {
  background: var(--navy-800);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile a {
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  font-weight: 500;
}
.nav-mobile .btn { margin-top: 16px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--teal-500);
  color: var(--navy-900);
  border-color: var(--teal-500);
}
.btn-primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: var(--teal-500);
  color: #fff;
}
.btn-link {
  background: transparent;
  color: #fff;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
}
.btn-link:hover {
  color: var(--teal-500);
  border-bottom-color: var(--teal-500);
}
.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--teal-700); }
.eyebrow-small { font-size: 11px; margin-bottom: 10px; }

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 22px;
}
.accent-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-500);
}
.section-light .accent-italic,
.section-cream .accent-italic { color: var(--teal-700); }

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 720px;
  margin: 0;
}
.section-dark .section-sub { color: rgba(255, 255, 255, 0.72); }

.section {
  padding: 100px 0;
}
.section-light { background: #fff; color: var(--gray-800); }
.section-cream { background: var(--cream); color: var(--gray-800); }
.section-dark { background: var(--navy-800); color: #fff; }

.section-head { max-width: 820px; margin-bottom: 56px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(80, 200, 200, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(80, 200, 200, 0.10), transparent 60%),
    linear-gradient(135deg, #0a1422 0%, #0f1c2e 50%, #16263d 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.012) 80px, rgba(255,255,255,0.012) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.012) 80px, rgba(255,255,255,0.012) 81px);
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero .eyebrow { color: var(--teal-500); }
.hero-title {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 28px;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  max-width: 520px;
}
.hero-stat-num {
  font-size: 56px;
  font-weight: 700;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
.hero-scroll {
  position: absolute;
  right: 36px;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 1;
}

/* ============================================
   SPECIALTIES
   ============================================ */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.specialty-card {
  background: var(--card-accent, var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.specialty-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, transparent 40%, rgba(255,255,255,0.08));
  pointer-events: none;
}
.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.specialty-num {
  font-family: var(--font-italic);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.specialty-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.specialty-card p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 22px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.card-link:hover { color: #fff; border-bottom-color: #fff; }
.card-link-dark { color: var(--teal-700); border-bottom-color: var(--teal-700); }
.card-link-dark:hover { color: var(--navy-800); border-bottom-color: var(--navy-800); }

/* ============================================
   PILLARS
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.pillar {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, background 0.25s;
}
.pillar:hover {
  border-color: rgba(80, 200, 200, 0.4);
  background: rgba(80, 200, 200, 0.04);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--teal-500);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #fff;
}
.pillar p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================
   SURGEONS
   ============================================ */
.surgeon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.surgeon-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s, box-shadow 0.3s;
}
.surgeon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.surgeon-photo {
  width: 240px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(140deg, var(--teal-600), var(--navy-700));
  align-self: stretch;
}
.surgeon-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.surgeon-body h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.surgeon-specialty {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--teal-700);
  font-size: 18px;
  margin: 0 0 8px;
}
.surgeon-body p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0 0 16px;
  flex-grow: 1;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.rating-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}
.rating-stars {
  color: #f5b50a;
  font-size: 22px;
  letter-spacing: 0.05em;
}
.rating-meta {
  color: var(--gray-600);
  font-size: 14px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.25s;
}
.testimonial:hover { box-shadow: var(--shadow-md); }
.testimonial-stars {
  color: #f5b50a;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.testimonial blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--gray-800);
  flex-grow: 1;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 18px;
}
.testimonial figcaption strong {
  display: block;
  font-size: 14px;
  color: var(--gray-800);
}
.testimonial figcaption span {
  font-size: 12px;
  color: var(--gray-400);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-500), var(--navy-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.avatar::after {
  content: attr(data-initials);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   HOSPITALS / LOCATIONS
   ============================================ */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.hospital {
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s, transform 0.25s;
}
.hospital:hover {
  border-color: rgba(80, 200, 200, 0.4);
  transform: translateY(-2px);
}
.hospital h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.3;
}
.hospital p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.office-callout {
  background: linear-gradient(135deg, var(--teal-700), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.office-callout h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.4;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-info .section-title { font-size: clamp(28px, 3.4vw, 42px); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 15.5px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--gray-100); }
.contact-list-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 600;
  padding-top: 3px;
}

.contact-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}
.contact-form label > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-600);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(80, 200, 200, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  margin: 8px 0 22px;
  line-height: 1.5;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 22px;
}
.form-status.success { color: var(--teal-700); font-weight: 600; }
.form-status.error { color: #c0392b; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 36px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin: 18px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 10px; line-height: 1.5; }
.site-footer a { color: rgba(255, 255, 255, 0.65); }
.site-footer a:hover { color: var(--teal-500); }

.footer-contact li { color: rgba(255, 255, 255, 0.55); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal a { margin: 0 6px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hospital-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-primary, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .header-inner { gap: 12px; }
  .topbar { font-size: 12px; padding: 8px 12px; }
  .hero { min-height: auto; padding: 64px 0 80px; }
  .hero-stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stat-num { font-size: 44px; }
  .hero-scroll { display: none; }
  .specialty-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .surgeon-grid { grid-template-columns: 1fr; }
  .surgeon-card { flex-direction: column; }
  .surgeon-photo {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: #f5f1ea;
  }
  .hospital-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .office-callout { flex-direction: column; align-items: flex-start; padding: 28px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .section-head { margin-bottom: 40px; }
}
