/* ================================================================
   TGB ANESTHESIA SERVICES, LLC — Design #26: Midnight + Rose Gold
   Colors: #1e1b4b (midnight) #fb7185 (rose gold) #fff1f2 (light)
   Text: #1c1917 / #44403c / #78716c — NO rgba()
   ================================================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1c1917;
  background: #fff1f2;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ----- Typography ----- */
.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1c1917;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #78716c;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-filled {
  background: #1e1b4b;
  color: #fff1f2;
  border-color: #1e1b4b;
}

.btn-filled:hover {
  background: #2d2966;
  border-color: #2d2966;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: #fb7185;
  border-color: #fb7185;
}

.btn-outline:hover {
  background: #fb7185;
  color: #fff1f2;
  box-shadow: 0 8px 24px rgba(251,113,133,0.25);
}

.btn-subscribe {
  background: #1e1b4b;
  color: #fff1f2;
  border-color: #1e1b4b;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: #2d2966;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff1f2;
  border-bottom: 1px solid #fecdd3;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.03em;
}

.nav-logo-accent {
  color: #fb7185;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #44403c;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fb7185;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #fb7185;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #1e1b4b;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ================================================================
   HERO — Stepped Stack
   ================================================================ */
.hero {
  padding-top: 72px;
  background: #ffffff;
}

.hero-stack {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-bar {
  width: 100%;
  height: 60px;
}

.hero-bar-1 {
  width: 62%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e8e6f0 0%, #fce7ec 50%, #e8e6f0 100%);
}

.hero-bar-2 {
  width: 73%;
  margin: 0 auto;
  background: linear-gradient(90deg, #dddaf0 0%, #fbd0d8 50%, #dddaf0 100%);
}

.hero-bar-3 {
  width: 84%;
  margin: 0 auto;
  background: linear-gradient(90deg, #d2cdf0 0%, #fbb8c4 50%, #d2cdf0 100%);
}

.hero-bar-4 {
  width: 95%;
  margin: 0 auto;
  background: linear-gradient(90deg, #c7c0f0 0%, #fba0b0 50%, #c7c0f0 100%);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 700px;
  padding: 0 24px;
}

.hero-heading {
  font-size: 3rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-accent {
  width: 80px;
  height: 4px;
  background: #fb7185;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #44403c;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   SERVICES — Staggered Wall
   ================================================================ */
.services {
  padding: 100px 0;
  background: #fff1f2;
}

.staggered-wall {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.sw-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.sw-card:hover {
  border-color: #fb7185;
  box-shadow: 0 12px 36px rgba(251,113,133,0.10);
  transform: translateY(-3px);
}

.sw-card-wide {
  width: 100%;
}

.sw-card-narrow {
  width: 76%;
}

.sw-left {
  align-self: flex-start;
}

.sw-right {
  align-self: flex-end;
}

.sw-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  border-radius: 12px;
}

.sw-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 6px;
}

.sw-card-body p {
  color: #44403c;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.sw-stat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fb7185;
  background: #fff1f2;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ================================================================
   ABOUT — City Spotlight
   ================================================================ */
.about {
  padding: 100px 0;
  background: #ffffff;
}

.city-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.city-card {
  background: #1e1b4b;
  border-radius: 16px;
  padding: 48px 40px;
  color: #fff1f2;
  position: relative;
  overflow: hidden;
}

.city-name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.city-state {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fb7185;
  margin-bottom: 16px;
}

.city-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e1b4b;
  background: #fff1f2;
  padding: 6px 16px;
  border-radius: 20px;
}

.city-map-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fb7185 0%, #fb7185 25%, #fecdd3 25%, #fecdd3 50%, #fb7185 50%, #fb7185 75%, #fecdd3 75%, #fecdd3 100%);
}

.city-content h2 {
  text-align: left;
}

.city-content p {
  color: #44403c;
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.city-content p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   INDUSTRIES — Year Markers
   ================================================================ */
.industries {
  padding: 100px 0;
  background: #fff1f2;
}

.year-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.year-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fecdd3;
}

.year-markers {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ym-item {
  position: relative;
  width: 46%;
  padding: 0 24px;
}

.ym-above {
  align-self: flex-start;
  text-align: right;
}

.ym-below {
  align-self: flex-end;
  text-align: left;
}

.ym-dot {
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fb7185;
  border: 3px solid #fff1f2;
  box-shadow: 0 0 0 2px #fb7185;
}

.ym-above .ym-dot {
  right: -31px;
}

.ym-below .ym-dot {
  left: -31px;
}

.ym-year {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.ym-content p {
  color: #44403c;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ================================================================
   APPROACH — Checkpoint System
   ================================================================ */
.approach {
  padding: 100px 0;
  background: #ffffff;
}

.checkpoints {
  max-width: 820px;
  margin: 0 auto;
}

.checkpoints-track {
  display: flex;
  gap: 24px;
  position: relative;
  padding: 20px 0;
}

.checkpoints-track::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 40px;
  right: 40px;
  height: 2px;
  border-top: 2px dotted #fecdd3;
}

.cp-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cp-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cp-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff1f2;
  background: #1e1b4b;
  position: relative;
}

.cp-number::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1e1b4b;
}

.cp-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 10px;
}

.status-complete {
  background: #ecfdf5;
  color: #065f46;
}

.status-review {
  background: #fef7cd;
  color: #854d0e;
}

.status-testing {
  background: #e0e7ff;
  color: #3730a3;
}

.status-live {
  background: #fce7f3;
  color: #9d174d;
}

.cp-desc {
  padding: 0 8px;
}

.cp-desc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 4px;
}

.cp-desc p {
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.5;
}

/* ================================================================
   CONTACT — Appointment Slots
   ================================================================ */
.contact {
  padding: 100px 0;
  background: #fff1f2;
}

.appointment-card {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #1e1b4b;
  border-radius: 14px;
  padding: 40px;
}

.appt-slots {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.appt-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  background: #fff1f2;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  font-family: inherit;
}

.appt-slot:hover {
  border-color: #fb7185;
  background: #ffffff;
  transform: translateY(-2px);
}

.appt-slot:active {
  transform: translateY(0);
}

.slot-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.slot-label {
  font-size: 0.75rem;
  color: #78716c;
  font-weight: 500;
}

.appt-divider {
  height: 1px;
  background: #fecdd3;
  margin-bottom: 24px;
}

.appt-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appt-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.appt-contact-item a {
  color: #44403c;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.appt-contact-item a:hover {
  color: #fb7185;
}

/* ================================================================
   CTA — Subscription Toggle
   ================================================================ */
.cta {
  padding: 100px 0;
  background: #fff1f2;
}

.cta-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #fb7185 0%, #f9838f 40%, #fb7185 100%);
  border-radius: 18px;
  padding: 56px 40px;
  color: #fff1f2;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff1f2;
  margin-bottom: 8px;
}

.cta-card > p {
  color: #ffe4e6;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff1f2;
}

.pill-toggle {
  display: flex;
  background: rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 3px;
  overflow: hidden;
}

.pill-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-toggle label {
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffe4e6;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  user-select: none;
}

.pill-toggle input[type="radio"]:checked + label {
  background: #1e1b4b;
  color: #fff1f2;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 14px;
}

.subscribe-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  background: #fff1f2;
  color: #1c1917;
  outline: none;
}

.subscribe-input::placeholder {
  color: #78716c;
}

.subscribe-note {
  font-size: 0.78rem;
  color: #ffe4e6;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #1e1b4b;
  color: #fff1f2;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #d6d3e0;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-links h4,
.footer-dev h4 {
  color: #fb7185;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #d6d3e0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-dev p {
  color: #d6d3e0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-dev a {
  color: #fb7185;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-dev a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid #312d5e;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #78716c;
  font-size: 0.82rem;
}

/* ================================================================
   DOC PAGES — Privacy & Terms
   ================================================================ */
.doc-page {
  background: #ffffff;
}

.doc-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

.doc-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.doc-effective {
  color: #78716c;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.doc-entity {
  color: #44403c;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.doc-content section {
  margin-bottom: 32px;
}

.doc-content section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fecdd3;
}

.doc-content section p {
  color: #44403c;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.doc-content section ul {
  list-style: disc;
  padding-left: 24px;
  color: #44403c;
  font-size: 16px;
  line-height: 1.8;
}

.doc-content section ul li {
  margin-bottom: 4px;
}

.doc-footer {
  color: #78716c;
  font-size: 0.85rem;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #fecdd3;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

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

  .city-name {
    font-size: 2.4rem;
  }

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

  .checkpoints-track {
    flex-direction: column;
    gap: 32px;
  }

  .checkpoints-track::before {
    display: none;
  }

  .cp-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .cp-flag {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff1f2;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 2px solid #fecdd3;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #fecdd3;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-heading {
    font-size: 1.9rem;
  }

  .hero-stack {
    min-height: 440px;
  }

  .hero-bar {
    height: 40px;
  }

  .hero-bar-1 { width: 72%; }
  .hero-bar-2 { width: 80%; }
  .hero-bar-3 { width: 88%; }
  .hero-bar-4 { width: 96%; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .sw-card-narrow {
    width: 100%;
  }

  .sw-right {
    align-self: flex-start;
  }

  .sw-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .year-line {
    left: 28px;
  }

  .ym-item {
    width: calc(100% - 56px);
    align-self: flex-end;
    text-align: left;
    padding-left: 40px;
  }

  .ym-above,
  .ym-below {
    align-self: flex-end;
    text-align: left;
  }

  .ym-above .ym-dot,
  .ym-below .ym-dot {
    left: -21px;
    right: auto;
  }

  .appt-slots {
    flex-direction: column;
  }

  .subscribe-form {
    flex-direction: column;
  }

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

  .doc-content {
    padding: 100px 20px 40px;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.5rem;
  }

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

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

  .appointment-card {
    padding: 24px 20px;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }
}
