/*
Theme Name: The Women's Specialists
Theme URI: https://thewomensspecialists.org/
Author: The Women's Specialists
Description: Custom WordPress theme for The Women's Specialists.
Version: 1.0.4
*/

/* ================================
   BASE TOKENS
================================ */

:root {
  --bg: #fff8f4;
  --bg-soft: #fff0ea;
  --white: #ffffff;
  --text: #2b1e22;
  --muted: #766167;

  --orange: #ff8217;
  --orange-soft: #ffb05f;
  --pink: #cf1d63;
  --pink-soft: #f05b7c;

  --primary: #cf1d63;
  --primary-dark: #9f154b;
  --accent: #ff8217;

  --border: #f1d3d5;
  --border-soft: rgba(241, 211, 213, 0.55);
  --card-border: rgba(241, 211, 213, 0.9);
  --card-border-strong: rgba(241, 211, 213, 0.95);

  --card-bg: rgba(255, 255, 255, 0.78);
  --card-bg-warm: rgba(255, 248, 244, 0.86);
  --dark-panel: rgba(33, 24, 27, 0.92);

  --shadow: 0 22px 55px rgba(115, 42, 62, 0.13);
  --soft-shadow: 0 12px 32px rgba(115, 42, 62, 0.07);
  --image-shadow: 0 16px 38px rgba(115, 42, 62, 0.11);

  --radius: 24px;
  --radius-lg: 34px;
  --button-glow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(255, 130, 23, 0.42),
    0 0 38px rgba(207, 29, 99, 0.35),
    0 18px 36px rgba(207, 29, 99, 0.28);
  --card-glow:
    0 0 0 1px rgba(207, 29, 99, 0.08),
    0 0 22px rgba(255, 130, 23, 0.14),
    0 0 34px rgba(207, 29, 99, 0.16),
    0 18px 42px rgba(115, 42, 62, 0.16);
  --neutral-fill: linear-gradient(135deg, #2b1e22, #3a2930);
  --neutral-fill-text: #ffffff;
  --neutral-fill-border: rgba(43, 30, 34, 0.8);
  --neutral-fill-shadow:
    0 0 18px rgba(43, 30, 34, 0.16),
    0 14px 30px rgba(43, 30, 34, 0.18);
}

/* ================================
   DARK MODE TOKENS
================================ */

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #161014;
  --bg-soft: #21171d;
  --white: #fff8f4;
  --text: #fff2f5;
  --muted: #d3bdc4;

  --border: rgba(255, 190, 198, 0.18);
  --border-soft: rgba(255, 190, 198, 0.16);
  --card-border: rgba(255, 190, 198, 0.16);
  --card-border-strong: rgba(255, 190, 198, 0.16);

  --card-bg: rgba(35, 24, 29, 0.82);
  --card-bg-warm: rgba(35, 24, 29, 0.82);
  --dark-panel: rgba(13, 9, 11, 0.94);

  --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --image-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);

  --button-glow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 24px rgba(255, 130, 23, 0.36),
    0 0 44px rgba(207, 29, 99, 0.42),
    0 18px 38px rgba(0, 0, 0, 0.34);
  --card-glow:
    0 0 0 1px rgba(255, 190, 198, 0.12),
    0 0 24px rgba(255, 130, 23, 0.10),
    0 0 40px rgba(207, 29, 99, 0.20),
    0 18px 42px rgba(0, 0, 0, 0.34);
  --neutral-fill: linear-gradient(135deg, #fff8f4, #f3dce3);
  --neutral-fill-text: #2b1e22;
  --neutral-fill-border: rgba(255, 255, 255, 0.72);
  --neutral-fill-shadow:
    0 0 18px rgba(255, 248, 244, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.26);
}

/* ================================
   RESET / GLOBAL
================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 130, 23, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(207, 29, 99, 0.15), transparent 34rem),
    radial-gradient(circle at 18% 55%, rgba(255, 130, 23, 0.12), transparent 36rem),
    radial-gradient(circle at 88% 78%, rgba(207, 29, 99, 0.14), transparent 38rem),
    linear-gradient(180deg, #fff8f4 0%, #fff1ec 35%, #fff8f4 68%, #fff0ea 100%);
  background-attachment: fixed;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 130, 23, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(207, 29, 99, 0.22), transparent 34rem),
    radial-gradient(circle at 18% 55%, rgba(255, 130, 23, 0.08), transparent 36rem),
    radial-gradient(circle at 88% 78%, rgba(207, 29, 99, 0.18), transparent 38rem),
    linear-gradient(180deg, #140f12 0%, #1d1419 35%, #170f13 68%, #21151b 100%);
  background-attachment: fixed;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ================================
   HEADER
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 244, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  background: rgba(255, 248, 244, 0.94);
  box-shadow: 0 12px 32px rgba(115, 42, 62, 0.12);
}

html[data-theme="dark"] .site-header {
  background: rgba(24, 16, 20, 0.94);
  border-bottom-color: var(--border-soft);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(20, 13, 17, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.top-bar {
  background: #21181b;
  color: var(--white);
  font-size: 0.9rem;
  max-height: 38px;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease;
}

html[data-theme="dark"] .top-bar {
  background: #0f0a0d;
}

.site-header.is-scrolled .top-bar {
  max-height: 0;
  opacity: 0;
}

.top-bar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar a,
.top-bar span {
  color: rgba(255, 255, 255, 0.84);
}

.top-bar a:hover {
  color: var(--white);
}

.nav-wrap {
  min-height: 118px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  transition:
    min-height 0.28s ease,
    padding 0.28s ease;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 74px;
  padding: 8px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 305px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  transition:
    width 0.28s ease,
    max-height 0.28s ease;
}

.site-header.is-scrolled .logo img {
  width: 215px;
  max-height: 58px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 800;
  transition:
    gap 0.28s ease,
    font-size 0.28s ease;
}

.site-header.is-scrolled .main-nav {
  gap: 20px;
  font-size: 0.9rem;
}

.main-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
html[data-theme="dark"] .main-nav a:hover {
  color: var(--primary);
}

html[data-theme="dark"] .main-nav a:hover {
  color: #ff8fb5;
}

.nav-button {
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(207, 29, 99, 0.23);
  transition:
    padding 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.site-header.is-scrolled .nav-button {
  padding: 9px 16px;
  box-shadow: 0 8px 18px rgba(207, 29, 99, 0.2);
}

/* ================================
   BUTTONS
================================ */

.btn,
.map-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

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

.btn-primary,
.map-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 15px 30px rgba(207, 29, 99, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  border: 1px solid rgba(207, 29, 99, 0.28);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ff9abe;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-primary,
.nav-button,
.map-button {
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.nav-button:hover,
.map-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: var(--button-glow);
}

.btn-primary::after,
.nav-button::after,
.map-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.nav-button:hover::after,
.map-button:hover::after {
  left: 130%;
}

.btn-secondary:hover,
.form-list li:hover {
  color: var(--neutral-fill-text);
  background: var(--neutral-fill);
  border-color: var(--neutral-fill-border);
  box-shadow: var(--neutral-fill-shadow);
}

.theme-toggle {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 104px;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(115, 42, 62, 0.08);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(115, 42, 62, 0.14);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ff9abe;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.theme-toggle-icon,
.theme-toggle-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.theme-toggle-icon {
  width: 18px;
  min-width: 18px;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle-text {
  width: 42px;
  min-width: 42px;
}

.map-button {
  margin-top: 18px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

/* ================================
   HERO
================================ */

.hero {
  padding: 92px 0 84px;
  background: transparent;
  overflow: hidden;
}

.hero .container {
  width: min(1440px, calc(100% - 72px));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(620px, 760px);
  justify-content: space-between;
  gap: 54px;
  align-items: center;
}

.hero-content {
  justify-self: start;
  max-width: 650px;
  min-width: 0;
}

.eyebrow,
.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3.05rem, 4.35vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  max-width: 650px;
  overflow-wrap: normal;
}

.hero-title span {
  display: block;
  white-space: normal;
}

.hero-title span:first-child {
  white-space: nowrap;
}

.hero-text {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 28px 0 34px;
}

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

.hero-details {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-details div {
  min-width: fit-content;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.hero-details strong {
  display: block;
  font-size: 0.96rem;
}

.hero-details span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  justify-self: end;
  aspect-ratio: 4 / 3;
  border-radius: 38px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(145deg, var(--orange), var(--pink));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .hero-card {
  box-shadow: 0 24px 70px rgba(207, 29, 99, 0.18);
}

.hero-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 180px;
  opacity: 0.16;
  filter: brightness(0) invert(1);
  z-index: 1;
  pointer-events: none;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-card::before {
  left: -70px;
  bottom: -80px;
  width: 270px;
  height: 270px;
}

.hero-card::after {
  top: 130px;
  left: 58px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(to top, rgba(43, 30, 34, 0.66), rgba(43, 30, 34, 0.04));
  color: #fff;
  overflow: hidden;
}

html[data-theme="dark"] .hero-card-inner {
  background: linear-gradient(to top, rgba(14, 8, 12, 0.78), rgba(43, 30, 34, 0.08));
}

/* ================================
   ANNOUNCEMENT CAROUSEL
================================ */

.announcement-carousel {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  padding: 76px 42px 42px;
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out;
}

.carousel-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.announcement-facebook-slide,
.announcement-carousel.has-image-slides .announcement-facebook-slide {
  padding: 76px 42px 42px;
}

.announcement-text-content {
  width: min(100%, 555px);
  max-width: 555px;
}

.announcement-text-content .btn-light {
  width: 100%;
}

.announcement-carousel.has-image-slides .announcement-image-slide {
  padding: 0;
  justify-content: center;
  align-items: stretch;
}

.announcement-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.carousel-slide h2 {
  font-size: clamp(2.1rem, 2.65vw, 2.55rem);
  line-height: 1.07;
  margin-bottom: 16px;
}

.carousel-slide p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.carousel-controls {
  position: absolute;
  top: 28px;
  left: 34px;
  right: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.announcement-carousel.has-image-slides .carousel-controls {
  top: 24px;
  left: 28px;
  right: 28px;
}

.carousel-arrows,
.carousel-dots {
  display: flex;
  pointer-events: auto;
}

.carousel-arrows {
  gap: 8px;
}

.carousel-dots {
  align-items: center;
  gap: 7px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.carousel-dot.is-active {
  width: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.announcement-carousel.has-image-slides .carousel-btn,
.announcement-carousel.has-image-slides .carousel-dot {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ================================
   SHARED SECTION STYLES
================================ */

.intro,
.services,
.staff,
.hospitals,
.patient-portal,
.contact,
.scribe-section,
.testimonials {
  background: transparent;
}

.services,
.staff,
.hospitals,
.patient-portal,
.contact {
  padding: 90px 0;
}

.intro,
.scribe-section {
  padding: 78px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.services,
.hospitals,
.contact {
  border-bottom: 1px solid var(--border-soft);
}

.contact {
  border-top: 1px solid var(--border-soft);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 40px;
}

.services .section-heading {
  width: 100%;
  max-width: 100%;
}

.section-heading.centered,
.staff-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p:last-child {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.intro h2,
.section-heading h2,
.staff-heading h2,
.scribe-box h2,
.portal-card h2,
.testimonial-box h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.intro-grid,
.scribe-box {
  display: grid;
  align-items: start;
}

.intro-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.intro-copy p,
.scribe-box p,
.service-card p,
.procedure-card p,
.portal-card p,
.facility-content p,
.hero-details span,
.hero-text,
.photo-credit,
.testimonial-box p {
  color: var(--muted);
}

.intro-copy p {
  font-size: 1.08rem;
}

/* ================================
   CARDS / REUSABLE HOVERS
================================ */

.service-card,
.procedure-card,
.provider-feature-card,
.np-box,
.scribe-box,
.facility-card,
.portal-card,
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.provider-feature-card,
.np-card,
.clinic-photo-card,
.service-card,
.procedure-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

.service-card:hover,
.procedure-card:hover,
.provider-feature-card:hover,
.np-card:hover,
.clinic-photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 29, 99, 0.24);
  box-shadow: var(--card-glow);
}

.np-card:hover,
.clinic-photo-card:hover {
  filter: saturate(1.04) brightness(1.02);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .procedure-card:hover,
html[data-theme="dark"] .provider-feature-card:hover,
html[data-theme="dark"] .np-card:hover,
html[data-theme="dark"] .clinic-photo-card:hover {
  border-color: rgba(255, 190, 198, 0.22);
}

/* ================================
   SERVICES
================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  border-radius: var(--radius);
  padding: 24px;
}

.featured-service {
  background:
    radial-gradient(circle at top right, rgba(255, 130, 23, 0.13), transparent 34%),
    var(--card-bg);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 130, 23, 0.15), rgba(207, 29, 99, 0.15));
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

html[data-theme="dark"] .icon {
  background: linear-gradient(135deg, rgba(255, 130, 23, 0.18), rgba(207, 29, 99, 0.2));
  color: #ff8fb5;
}

.service-card h3,
.procedure-card h3,
.provider-feature-card h3,
.np-card h3,
.clinic-photo-card h3,
.facility-card h3,
.portal-card h3,
.contact-form h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.available-services {
  margin-top: 22px;
  background: var(--dark-panel);
  color: #fff;
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.available-services h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.pill-list span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
}

html[data-theme="dark"] .pill-list span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.procedure-card {
  border-radius: var(--radius);
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(207, 29, 99, 0.13), transparent 34%),
    var(--card-bg);
}

.text-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 900;
  margin-top: 16px;
}

/* ================================
   MEDICAL STUDENTS
================================ */

.scribe-section {
  padding: 82px 0;
}

.scribe-box {
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  border-radius: var(--radius-lg);
  padding: 42px;
}

.scribe-box p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ================================
   STAFF / PROVIDERS
================================ */

.provider-title {
  color: var(--primary);
  font-weight: 900;
}

.provider-feature {
  display: grid;
  justify-content: center;
  margin-bottom: 28px;
}

.provider-feature-card {
  width: min(800px, 100%);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--card-bg-warm);
  border-color: var(--card-border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.provider-feature-content {
  align-self: start;
  padding-top: 6px;
}

.provider-feature-photo {
  min-height: 240px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--orange), var(--pink));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.provider-sudheer {
  background-image: url("images/staff/sudheer-jayaprabhu.jpg");
}

.doctor-inline-bio {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
  max-width: 360px;
}

.np-box {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 24px;
  background: var(--card-bg-warm);
  border-color: var(--card-border-strong);
  border-radius: var(--radius-lg);
}

.np-label {
  text-align: center;
  margin-bottom: 20px;
}

.np-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.np-card,
.clinic-photo-card {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--image-shadow);
  background: linear-gradient(145deg, var(--orange), var(--pink));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.np-card {
  width: 245px;
  min-height: 335px;
  border-radius: 28px;
}

.provider-morgan {
  background-image: url("images/staff/morgan-jayaprabhu.jpg");
}

.provider-laura {
  background-image: url("images/staff/laura-jackson.jpg");
}

.staff-heading {
  margin-top: 72px;
  margin-bottom: 28px;
}

.clinic-photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 18px;
}

.clinic-photo-card {
  width: 206px;
  min-height: 285px;
  border-radius: 28px;
}

.row-break {
  flex-basis: 100%;
  height: 0;
}

.staff-lower-third {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 22px 20px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(10, 12, 18, 0.88) 0%,
    rgba(10, 12, 18, 0.72) 36%,
    rgba(10, 12, 18, 0.38) 68%,
    rgba(10, 12, 18, 0) 100%
  );
}

.staff-lower-third h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.staff-lower-third p {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.np-card .staff-lower-third h3 {
  font-size: 1.16rem;
}

.np-card .staff-lower-third p {
  font-size: 1.02rem;
}

.photo-credit {
  margin-top: -48px;
  margin-bottom: 48px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.photo-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(118, 97, 103, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.photo-credit a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

html[data-theme="dark"] .photo-credit a {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.staff-dena {
  background-image: url("images/staff/dena-veuleman.jpg");
}

.staff-cindy {
  background-image: url("images/staff/cindy-manning.jpg");
}

.staff-jessica {
  background-image: url("images/staff/jessica-stringfellow.jpg");
}

.staff-jodie {
  background-image: url("images/staff/jodie-rico.jpg");
}

.staff-amy {
  background-image: url("images/staff/amy-carpenter.jpg");
}

.staff-kristi {
  background-image: url("images/staff/kristi-lachowsky.jpg");
}

.staff-sandy {
  background-image: url("images/staff/sandy-ochsenbein.jpg");
}

.staff-stephanie {
  background-image: url("images/staff/stephanie-herrera-hernandez.jpg");
}

.staff-tammy {
  background-image: url("images/staff/tammy-oliver.jpg");
}

/* ================================
   LOCATIONS
================================ */

.hospitals .container {
  width: min(1280px, calc(100% - 72px));
}

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

.facility-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.facility-photo {
  min-height: 310px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-soft);
  position: relative;
}

.st-michaels-photo {
  background-image: url("images/st-michaels.jpg");
}

.building-photo {
  background-image: url("images/our-building.jpg");
}

.surgery-center-photo {
  background-image: url("images/texarkana-surgery-center.jpg");
}

.facility-content {
  padding: 34px;
}

.facility-content h3 {
  font-size: 1.35rem;
}

.facility-content p:not(.section-label) {
  font-size: 1.05rem;
}

/* ================================
   PATIENT PORTAL
================================ */

.portal-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.portal-card {
  border-radius: 30px;
  padding: 34px;
}

.main-portal-card {
  background:
    radial-gradient(circle at top right, rgba(255, 130, 23, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(207, 29, 99, 0.1), transparent 30%),
    var(--card-bg);
}

html[data-theme="dark"] .main-portal-card {
  background:
    radial-gradient(circle at top right, rgba(255, 130, 23, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(207, 29, 99, 0.16), transparent 30%),
    var(--card-bg);
}

.portal-card p {
  margin-bottom: 20px;
}

.form-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-list li {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: var(--card-bg-warm);
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.form-list li:hover {
  transform: translateY(-2px);
}

/* ================================
   TESTIMONIALS / CONTACT
================================ */

.testimonials {
  padding: 70px 0;
}

.testimonial-box {
  max-width: 850px;
  background: var(--dark-panel);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.testimonial-box .section-label {
  color: var(--orange-soft);
}

.testimonial-box p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 18px;
  font-size: 1.08rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 170px;
}

.contact-copy {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

.info-block {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.info-block strong {
  display: block;
  margin-bottom: 6px;
}

.info-block span,
.info-block a {
  color: var(--muted);
}

.info-block a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--card-bg-warm);
  border-color: var(--card-border-strong);
  border-radius: 30px;
  padding: 32px;
}

.contact-form label {
  display: block;
  font-weight: 900;
  margin: 18px 0 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(207, 29, 99, 0.12);
}

.contact-form button {
  margin-top: 22px;
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 14px;
}

/* ================================
   FOOTER
================================ */

.site-footer {
  background: rgba(33, 24, 27, 0.96);
  color: #fff;
  padding: 58px 0 28px;
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .site-footer {
  background: var(--dark-panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 38px;
}

.footer-logo {
  width: 285px;
  margin-bottom: 14px;
}

.site-footer h3 {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 38px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1280px) {
  .hero .container {
    width: min(1120px, calc(100% - 40px));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-content {
    max-width: 900px;
  }

  .hero h1 {
    max-width: 900px;
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .hero-card {
    max-width: 860px;
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .intro-grid,
  .scribe-box,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 16 / 9;
    min-height: 420px;
  }

  .hero-card-inner,
  .announcement-carousel {
    min-height: 380px;
  }

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

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

  .hospitals .container {
    width: min(1120px, calc(100% - 40px));
  }

  .facility-photo {
    min-height: 280px;
  }

  .provider-feature-card {
    grid-template-columns: 1fr;
    width: min(800px, 100%);
  }

  .provider-feature-photo {
    min-height: 360px;
  }

  .provider-feature-content {
    padding-top: 0;
  }

  .doctor-inline-bio {
    max-width: 100%;
  }

  .np-box {
    width: min(760px, 100%);
  }

  .contact-info {
    position: static;
  }

  .row-break {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 22px;
  }

  .site-header.is-scrolled .nav-wrap {
    padding: 12px 0 14px;
  }

  .logo img {
    width: 270px;
    max-height: 86px;
  }

  .site-header.is-scrolled .logo img {
    width: 220px;
    max-height: 62px;
  }

  .main-nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-header.is-scrolled .main-nav {
    gap: 12px;
  }

  .hero {
    padding-top: 58px;
  }

  .theme-toggle {
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 980px) {
  .services .section-heading p:last-child {
    white-space: normal;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .top-bar-inner {
    padding: 9px 0;
  }

  .container,
  .hero .container,
  .hospitals .container {
    width: min(100% - 28px, 1120px);
  }

  .logo img {
    width: 240px;
    max-height: 82px;
  }

  .site-header.is-scrolled .logo img {
    width: 205px;
    max-height: 58px;
  }

  .main-nav {
    font-size: 0.9rem;
  }

  .site-header.is-scrolled .main-nav {
    font-size: 0.86rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 3rem;
  }

  .hero-title span:first-child {
    white-space: normal;
  }

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

  .btn {
    width: 100%;
  }

  .hero-details {
    gap: 22px;
  }

  .hero-card {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .hero-card,
  .hero-card-inner,
  .contact-form,
  .scribe-box,
  .portal-card,
  .provider-feature-card,
  .np-box,
  .testimonial-box {
    border-radius: 22px;
  }

  .hero-card-inner,
  .announcement-carousel {
    min-height: 340px;
  }

  .carousel-slide,
  .announcement-facebook-slide,
  .announcement-carousel.has-image-slides .announcement-facebook-slide {
    padding: 72px 24px 24px;
  }

  .announcement-text-content {
    width: 100%;
    max-width: 100%;
  }

  .carousel-slide h2 {
    font-size: 2rem;
  }

  .carousel-controls {
    top: 22px;
    left: 24px;
    right: 24px;
  }

  .hero-card-inner,
  .service-card,
  .procedure-card,
  .contact-form,
  .scribe-box,
  .portal-card,
  .provider-feature-card,
  .np-box,
  .testimonial-box {
    padding: 24px;
  }

  .hero-icon {
    width: 120px;
  }

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

  .provider-feature-photo {
    min-height: 300px;
  }

  .np-card,
  .clinic-photo-card {
    width: 100%;
    min-height: 360px;
  }

  .photo-credit {
    margin-top: -42px;
  }

  .facility-photo {
    min-height: 230px;
  }

  .facility-content {
    padding: 26px;
  }

  .footer-logo {
    width: 240px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
