:root {
  --blue: #5ebfcb;
  --blue-dark: #16808b;
  --blue-deep: #07373d;
  --blue-soft: #eef8f8;
  --aqua: #8ed8de;
  --ink: #1e292b;
  --muted: #5b686b;
  --paper: #fcfaf4;
  --white: #fff;
  --line: rgba(13, 75, 81, .13);
  --shadow: 0 22px 56px rgba(7, 55, 61, .11);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 50%, #f7fbfa 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(94,191,203,.09), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(7,55,61,.06), transparent 28%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: .5rem;
  z-index: 99;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: var(--blue-deep);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.topbar {
  background: var(--blue-deep);
  color: white;
  font-weight: 800;
  letter-spacing: .01em;
}
.topbar__inner,
.nav__inner,
.section,
.footer__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a { text-decoration: underline; text-underline-offset: 4px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252,250,244,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(7,55,61,.05);
}
.nav__inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo img { width: 132px; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 850;
  color: var(--blue-deep);
}
.nav__links > a,
.nav__drop > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.nav__links > a:hover,
.nav__drop > summary:hover,
.nav__drop[open] > summary {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.nav__drop { position: relative; }
.nav__drop summary::-webkit-details-marker { display: none; }
.nav__drop summary::after { content: "⌄"; font-size: .9rem; color: var(--blue); }
.nav__menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 270px;
  display: grid;
  gap: .2rem;
  padding: .65rem;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(7,55,61,.12);
}
.nav__menu a {
  padding: .75rem .9rem;
  border-radius: 9px;
  color: var(--ink);
}
.nav__menu a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: var(--blue-deep);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  background: var(--blue-deep);
  color: white;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7,55,61,.18);
  font-weight: 900;
}
.button:hover { color: white; transform: translateY(-1px); }
.button--outline {
  background: white;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}
.button--outline:hover { color: var(--blue-deep); background: var(--blue-soft); }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}
.hero--compact { min-height: 560px; }
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,55,61,.88), rgba(7,55,61,.58) 48%, rgba(94,191,203,.14)),
    linear-gradient(0deg, rgba(7,55,61,.76), transparent 54%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 5.2rem 0;
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--aqua); }
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}
h1 { max-width: 860px; font-size: clamp(3.4rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); color: var(--blue-deep); }
h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 1.1rem 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  font-weight: 650;
}
.hero__actions,
.section__actions,
.location-map__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.section { padding: 5rem 0; }
.section--tight { padding: 2.2rem 0; }
.lead { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section__intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.quickbar,
.kicker-grid,
.brand-grid,
.blog-grid,
.staff-list,
.footer__grid,
.services-offer__grid {
  display: grid;
  gap: 1rem;
}
.quickbar {
  position: relative;
  z-index: 3;
  width: min(1080px, calc(100% - 36px));
  margin: -36px auto 0;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quickbar a { padding: 1.15rem; font-weight: 900; color: var(--blue-deep); }
.quickbar a:hover { background: var(--blue-soft); }

.content-copy {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.25rem;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(7,59,75,.07);
}
.content-copy h2 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.content-copy h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.content-copy h3 { margin-top: 1.8rem; color: var(--blue-deep); }
.content-copy p { margin: 1rem 0 0; color: #34464c; font-size: 1.05rem; }
.content-copy ul { display: grid; gap: .65rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.content-copy li {
  padding: .75rem .9rem;
  background: rgba(94,191,203,.12);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.about-jump { background: linear-gradient(180deg, rgba(94,191,203,.08), transparent); }
.about-jump__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
}
.about-nav-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-deep);
  box-shadow: 0 14px 34px rgba(7,59,75,.06);
  font-weight: 900;
}
.about-nav-card:hover,
.about-nav-card.is-active { background: var(--blue); color: white; }

.doctor-profile {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin: 1.7rem 0 2rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,248,248,.76));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.doctor-profile__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7,59,75,.18);
}
.doctor-profile__copy h3 {
  margin: .3rem 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}
.doctor-profile blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem 1.05rem 1.35rem;
  color: var(--blue-deep);
  background: white;
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 850;
}
.staff-list { grid-template-columns: repeat(3, 1fr); margin: 1.4rem 0 1.8rem; }
.staff-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.staff-card,
.mini-card,
.card,
.brand-logo-card {
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(7,59,75,.07);
}
.staff-card h3 { color: var(--ink); }
.staff-card p { margin: .45rem 0 0; color: var(--blue-dark); font-weight: 900; }
.practice-photo-callout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  margin: 1.6rem 0 0;
  padding: 1rem;
  background: var(--blue-deep);
  color: white;
  border-radius: var(--radius);
}
.practice-photo-callout img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; border-radius: 10px; }
.practice-photo-callout h2,
.practice-photo-callout p,
.practice-photo-callout .eyebrow { color: white; }
.practice-photo-callout h2 { padding: 0; margin: .2rem 0 .6rem; border: 0; font-size: clamp(1.65rem, 2.4vw, 2.5rem); }

.split,
.contact-panel,
.location-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img,
.location-map iframe {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.location-map {
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.location-map__copy { padding: 1.25rem; }

.services-offer {
  padding: 5.6rem 0 6.2rem;
  background:
    linear-gradient(135deg, rgba(7,55,61,.9), rgba(22,128,139,.74)),
    url("/assets/images/RockOptix-hp2024-body-services-image-background.jpg") center / cover;
  color: white;
}
.services-offer__inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.services-offer h2 { color: white; margin-bottom: 2rem; }
.services-offer__grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service-tile {
  display: grid;
  gap: .85rem;
  color: white;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 950;
}
.service-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 40px rgba(7,59,75,.22);
}

.brand-logo-section {
  margin-top: 2.5rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(94,191,203,.13), rgba(255,255,255,.82));
  border-radius: var(--radius);
}
.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.brand-logo-card { min-height: 150px; display: grid; place-items: center; }
.brand-logo-card img { max-height: 94px; object-fit: contain; }
.brand-grid,
.kicker-grid,
.blog-grid { grid-template-columns: repeat(3, 1fr); }

.footer {
  background: var(--blue-deep);
  color: white;
  padding: 4.5rem 0 2rem;
}
.footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.footer img { width: 145px; background: white; border-radius: 12px; padding: .5rem; }
.footer h3 { color: var(--aqua); margin: 0 0 .7rem; }
.footer a { display: block; color: rgba(255,255,255,.86); margin: .35rem 0; }
.footer__bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); }

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px rgba(7,59,75,.1);
}
.mobile-cta a { padding: .8rem; text-align: center; color: var(--blue-deep); font-weight: 900; }

.construction-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: 360px;
  padding: 1rem 3rem 1rem 1rem;
  background: #fff2b8;
  border: 1px solid #e2bd45;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #143f43;
}
.construction-notice strong { display: block; }
.construction-notice button {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav__inner { min-height: 82px; }
  .logo img { width: 112px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 18px 1.35rem;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a,
  .nav__drop > summary,
  .nav__links .button { width: 100%; justify-content: space-between; }
  .nav__menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: .2rem 0 .65rem;
  }
  .quickbar,
  .section__intro,
  .split,
  .contact-panel,
  .location-map,
  .doctor-profile,
  .practice-photo-callout,
  .footer__grid { grid-template-columns: 1fr; }
  .about-jump__grid,
  .services-offer__grid,
  .staff-list,
  .brand-logo-grid,
  .brand-grid,
  .kicker-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 640px) {
  body { padding-bottom: 52px; }
  .topbar__inner { justify-content: center; }
  .topbar__inner span:first-child { display: none; }
  .hero { min-height: 560px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .section { padding: 3.6rem 0; }
  .content-copy { padding: 1.25rem; }
  .about-jump__grid,
  .services-offer__grid,
  .staff-list,
  .staff-list--compact,
  .brand-logo-grid,
  .brand-grid,
  .kicker-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; }
  .construction-notice { left: 12px; right: 12px; bottom: 64px; max-width: none; }
}
