/* ==========================================================================
   American Center for Oncology - Core Stylesheet
   ========================================================================== */

:root {
  --navy: #102d43;
  --deep: #081d2b;
  --teal: #4fc3bd;
  --teal-hover: #3fb2ac;
  --teal-dark: #168d89;
  --ice: #edf5f6;
  --ink: #18394b;
  --muted: #617987;
  --line: #dce8eb;
  --white: #ffffff;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(16, 45, 67, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 45, 67, 0.08);
  --shadow-lg: 0 16px 36px rgba(8, 29, 43, 0.12);
  --transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base Elements
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

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

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

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

.wrap {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b2638;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: rgba(11, 38, 56, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  white-space: nowrap;
  color: var(--white);
}

.mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 21px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.brand:hover .mark {
  border-color: var(--teal);
}

.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: #e2edf0;
}

.navlinks a {
  transition: color var(--transition);
  padding: 6px 0;
  font-weight: 500;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--teal);
}

/* Desktop Dropdown for Specialties */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.dropdown-trigger:hover,
.dropdown.active .dropdown-trigger {
  color: var(--teal);
}

.dropdown-arrow {
  font-size: 9px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -10px;
  min-width: 260px;
  background: #092233;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 105;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 12px;
  color: #c9dde5;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(79, 195, 189, 0.12);
  color: var(--teal);
}

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

.navcta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.navcta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #092737;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.mobile-toggle:hover {
  border-color: var(--teal);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile Navigation Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #081d2b;
  color: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}

.drawer-close:hover {
  color: var(--teal);
}

.drawer-body {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}

.drawer-link {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: #d8e6eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition), padding-left var(--transition);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--teal);
  padding-left: 6px;
}

.drawer-cta {
  margin-top: 10px;
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 84% 42%, #267b83 0%, #164c60 22%, transparent 53%),
    linear-gradient(115deg, #081d2b, #123c52 66%, #0b2638);
}

.hero:before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(131, 220, 211, 0.2);
  border-radius: 50%;
  right: -80px;
  top: 20px;
  box-shadow: 0 0 0 50px rgba(131, 220, 211, 0.07),
    0 0 0 105px rgba(131, 220, 211, 0.035);
  pointer-events: none;
}

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

.hero-copy {
  max-width: 850px;
  padding: 90px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  font-weight: 800;
  color: #50c9c0;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 18px 0;
}

.hero h1 em {
  font-style: normal;
  color: #83d9d1;
}

.hero p {
  font-size: 17px;
  color: #d3e2e8;
  max-width: 760px;
  line-height: 1.75;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 750;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: var(--teal);
  color: #092737;
  border: 1px solid var(--teal);
}

.btn.primary:hover {
  background: #3eb4ad;
  border-color: #3eb4ad;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 195, 189, 0.3);
}

.btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn.btn-full {
  width: 100%;
}

.tagline {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9c3cc;
  margin-top: 38px;
}

/* --------------------------------------------------------------------------
   Sections & Layout
   -------------------------------------------------------------------------- */
section {
  padding: 76px 0;
}

.soft {
  background: #f4f8f9;
}

.ice {
  background: var(--ice);
}

.two {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 58px;
  align-items: center;
}

.h2 {
  font-size: clamp(30px, 3.8vw, 45px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 12px 0 18px;
  font-weight: 700;
}

.lead {
  font-size: 17px;
  color: #3f6170;
}

.copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.quote {
  padding: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px 42px 4px 4px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.quote strong {
  display: block;
  font-size: 24px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.quote p {
  color: #c3d7de;
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 14px;
}

.center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

/* --------------------------------------------------------------------------
   Cards Grid
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  padding: 26px 24px;
  min-height: 190px;
  background: var(--white);
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.num {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: #299d98;
}

.card h3 {
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  margin: 14px 0 9px;
  font-weight: 700;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Banner Band
   -------------------------------------------------------------------------- */
.band {
  background: linear-gradient(120deg, #0a2537, #174e60);
  color: var(--white);
}

.band h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 850px;
  margin: 13px 0 18px;
  font-weight: 700;
}

.band p {
  font-size: 16px;
  color: #c9dce2;
  max-width: 800px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Steps Component
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d5e3e6;
  border: 1px solid #d5e3e6;
  margin-top: 30px;
}

.step {
  background: #f3f8f9;
  padding: 24px 20px;
  min-height: 150px;
  transition: background var(--transition);
}

.step:hover {
  background: #edf6f8;
}

.step h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 7px;
  font-weight: 700;
}

.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.list {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.list li {
  padding: 10px 0 10px 25px;
  border-bottom: 1px solid #e4edef;
  position: relative;
  color: #4d6b78;
  font-size: 13px;
}

.list li:before {
  content: "＋";
  position: absolute;
  left: 0;
  color: #299d98;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Call To Action (CTA)
   -------------------------------------------------------------------------- */
.cta {
  background: #edf5f6;
  text-align: center;
}

.cta h2 {
  font-size: clamp(31px, 4.5vw, 52px);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.04em;
  max-width: 850px;
  margin: 14px auto 18px;
  font-weight: 700;
}

.cta p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.cta .btn {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: #071c2b;
  color: #c4d6dc;
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footbrand {
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  font-size: 13px;
}

.footbrand small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #91abb5;
  margin-top: 3px;
}

.foot-tagline {
  font-size: 11px;
  color: #9bb7c2;
}

.fine {
  font-size: 10px;
  color: #8fa7b0;
  max-width: 850px;
  margin-top: 16px;
  line-height: 1.6;
}

.fine strong {
  color: #d1e2e8;
}

.fine a {
  color: #b7d1d9;
  transition: color var(--transition);
}

.fine a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Floating Back To Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--teal);
  border: 1px solid rgba(79, 195, 189, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .navlinks {
    gap: 12px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }

  .navcta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

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

  .two {
    gap: 30px;
  }
}

@media (max-width: 650px) {
  .nav {
    padding: 12px 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    padding: 65px 0;
  }

  .hero p {
    font-size: 15px;
  }

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

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

  .card {
    min-height: 0;
  }

  section {
    padding: 55px 0;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .quote {
    border-radius: 4px 24px 4px 4px;
    padding: 24px;
  }

  .quote strong {
    font-size: 20px;
  }
}