/*
 * Docmed Theme Tokens and Base Styles for Laravel 12
 */

:root {
  /* Colors */
  --wp--preset--color--base: #ffffff;
  --wp--preset--color--surface: #f5fbff;
  --wp--preset--color--contrast: #1f1f1f;
  --wp--preset--color--muted: #6b6b6b;
  --wp--preset--color--primary: #0a6fd6;
  --wp--preset--color--primary-deep: #0858ad;
  --wp--preset--color--accent: #5db2ff;
  --wp--preset--color--dark: #1f1f1f;
  --wp--preset--color--divider: #e3edf5;
  --wp--preset--color--overlay: #ffffff;
  --wp--preset--color--on-dark: #c7c7c7;
  --wp--preset--color--on-primary: #ffffff;
  --wp--preset--color--ink: #1f1f1f;
  --wp--preset--color--wash: #0858ad;

  /* Typography */
  --wp--preset--font-family--poppins: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wp--preset--font-family--lora: "Lora", Georgia, "Times New Roman", serif;
  --wp--preset--font-family--system: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Font Sizes */
  --wp--preset--font-size--x-small: 0.8125rem;
  --wp--preset--font-size--small: 0.875rem;
  --wp--preset--font-size--medium: 1rem;
  --wp--preset--font-size--large: 1.25rem;
  --wp--preset--font-size--x-large: clamp(1.25rem, 2vw, 1.375rem);
  --wp--preset--font-size--heading: clamp(1.75rem, 3.5vw, 2.25rem);
  --wp--preset--font-size--display: clamp(2rem, 5vw, 3.125rem);
  --wp--preset--font-size--colossal: clamp(2.375rem, 6vw, 4.375rem);

  /* Spacing */
  --wp--preset--spacing--20: 0.5rem;
  --wp--preset--spacing--30: 1rem;
  --wp--preset--spacing--40: 1.5rem;
  --wp--preset--spacing--50: clamp(1.75rem, 3vw, 2.5rem);
  --wp--preset--spacing--60: clamp(2.5rem, 4vw, 3.4375rem);
  --wp--preset--spacing--70: clamp(3rem, 6vw, 5rem);
  --wp--preset--spacing--80: clamp(4rem, 8vw, 7.5rem);

  /* Shadows */
  --wp--preset--shadow--card: 0 6px 10px rgba(0, 0, 0, 0.04);
  --wp--preset--shadow--header: 0 3px 16px 0 rgba(0, 0, 0, 0.1);

  /* Dimensions */
  --docmed-content-size: 1296px;
  --docmed-wide-size: 1440px;
  --docmed-topbar-h: 3rem;
  --docmed-edge: color-mix(in srgb, var(--wp--preset--color--contrast) 50%, var(--wp--preset--color--base));
}

@media (max-width: 768px) {
  :root {
    --docmed-topbar-h: 0px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wp--preset--color--contrast);
  background-color: var(--wp--preset--color--base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--poppins);
  font-weight: 600;
  line-height: 1.25;
  color: var(--wp--preset--color--ink);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--wp--preset--color--primary-deep);
}

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

/* Layout Utilities */
.is-layout-constrained {
  width: 100%;
  max-width: var(--docmed-content-size);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.alignfull {
  width: 100%;
}

.has-background {
  padding-left: 0;
  padding-right: 0;
}

.has-base-background-color {
  background-color: var(--wp--preset--color--base);
}

.has-surface-background-color {
  background-color: var(--wp--preset--color--surface);
}

.has-primary-background-color {
  background-color: var(--wp--preset--color--primary);
}

.has-primary-deep-background-color {
  background-color: var(--wp--preset--color--primary-deep);
}

.has-dark-background-color {
  background-color: var(--wp--preset--color--dark);
}

.has-on-primary-color {
  color: var(--wp--preset--color--on-primary) !important;
}

.has-on-dark-color {
  color: var(--wp--preset--color--on-dark) !important;
}

.has-overlay-color {
  color: var(--wp--preset--color--overlay) !important;
}

.has-ink-color {
  color: var(--wp--preset--color--ink) !important;
}

.has-muted-color {
  color: var(--wp--preset--color--muted) !important;
}

.has-colossal-font-size {
  font-size: var(--wp--preset--font-size--colossal);
}

.has-display-font-size {
  font-size: var(--wp--preset--font-size--display);
}

.has-heading-font-size {
  font-size: var(--wp--preset--font-size--heading);
}

.has-x-large-font-size {
  font-size: var(--wp--preset--font-size--x-large);
}

.has-large-font-size {
  font-size: var(--wp--preset--font-size--large);
}

.has-small-font-size {
  font-size: var(--wp--preset--font-size--small);
}

.has-x-small-font-size {
  font-size: var(--wp--preset--font-size--x-small);
}

/* Header & Navigation */
.docmed-header {
  position: sticky;
  top: calc(-1 * var(--docmed-topbar-h));
  z-index: 1000;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s ease;
}

.docmed-header.is-scrolled {
  box-shadow: var(--wp--preset--shadow--header);
}

.docmed-topbar {
  background-color: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--divider);
  font-size: var(--wp--preset--font-size--x-small);
  height: var(--docmed-topbar-h);
  display: flex;
  align-items: center;
}

.docmed-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.docmed-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #64748b;
  background-color: rgba(100, 116, 139, 0.08);
  transition: all 0.2s ease;
  text-decoration: none;
}

.docmed-topbar__social a:hover {
  color: #ffffff;
  background-color: var(--wp--preset--color--primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.docmed-topbar__contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.docmed-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--wp--preset--color--muted);
}

.docmed-topbar__item a {
  color: var(--wp--preset--color--contrast);
}

.docmed-topbar__item a:hover {
  color: var(--wp--preset--color--primary);
}

.docmed-header__main {
  background-color: var(--wp--preset--color--base);
  padding: 0.85rem 0;
}

.docmed-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.docmed-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.docmed-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.docmed-dark .docmed-brand-logo-wrap {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.docmed-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.docmed-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docmed-brand__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--wp--preset--color--primary-deep), var(--wp--preset--color--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.docmed-brand__text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
  letter-spacing: -0.02em;
}

.docmed-brand__text span {
  color: var(--wp--preset--color--primary);
}

.docmed-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.docmed-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--wp--preset--color--contrast);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.docmed-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  transition: width 0.2s ease;
}

.docmed-nav a:hover,
.docmed-nav a.active {
  color: var(--wp--preset--color--primary);
}

.docmed-nav a.active::after,
.docmed-nav a:hover::after {
  width: 100%;
}

.docmed-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sleek Compact Header Action Button */
#header-appointment-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem !important;
  font-size: 0.835rem !important;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

#header-appointment-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#header-appointment-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

#header-appointment-cta svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

#header-appointment-cta:hover svg {
  transform: scale(1.12);
}

/* Mobile Nav Toggle */
.docmed-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--wp--preset--color--contrast);
}

@media (max-width: 991px) {
  #header-appointment-cta {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.775rem !important;
    gap: 0.35rem;
  }
  #header-appointment-cta svg {
    width: 13px;
    height: 13px;
  }
  .docmed-topbar {
    display: none;
  }
  .docmed-nav-toggle {
    display: block;
  }
  .docmed-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--wp--preset--color--base);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 1px solid var(--wp--preset--color--divider);
    gap: 1rem;
    align-items: flex-start;
  }
  .docmed-nav.is-open {
    display: flex;
  }
}

/* Profile Dropdown Navigation */
.docmed-nav-item--dropdown {
  position: relative;
  list-style: none;
}

.docmed-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wp--preset--color--contrast);
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.docmed-dropdown-toggle:hover,
.docmed-nav-item--dropdown.active .docmed-dropdown-toggle {
  color: var(--wp--preset--color--primary);
}

.docmed-dropdown-toggle svg {
  transition: transform 0.25s ease;
}

.docmed-nav-item--dropdown:hover .docmed-dropdown-toggle svg,
.docmed-nav-item--dropdown.is-open .docmed-dropdown-toggle svg {
  transform: rotate(180deg);
}

.docmed-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--divider);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 1050;
}

.docmed-nav-item--dropdown:hover .docmed-dropdown-menu,
.docmed-nav-item--dropdown.is-open .docmed-dropdown-menu {
  display: block;
}

.docmed-dropdown-menu li {
  width: 100%;
}

.docmed-dropdown-menu a {
  display: flex !important;
  align-items: center;
  padding: 0.7rem 1.25rem !important;
  font-size: 0.9rem !important;
  color: var(--wp--preset--color--contrast) !important;
  text-decoration: none;
  transition: all 0.2s ease !important;
}

.docmed-dropdown-menu a::after {
  display: none !important;
}

.docmed-dropdown-menu a:hover,
.docmed-dropdown-menu a.active {
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--primary) !important;
  padding-left: 1.5rem !important;
}

.docmed-dark .docmed-dropdown-menu {
  background-color: var(--wp--preset--color--surface);
  border-color: var(--wp--preset--color--divider);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.docmed-dark .docmed-dropdown-menu a:hover,
.docmed-dark .docmed-dropdown-menu a.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--wp--preset--color--accent) !important;
}

@media (max-width: 991px) {
  .docmed-nav-item--dropdown {
    width: 100%;
  }
  .docmed-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .docmed-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--wp--preset--color--primary);
    border-radius: 0;
    padding-left: 0.75rem;
    background: transparent !important;
  }
  .docmed-nav-item--dropdown:hover .docmed-dropdown-menu {
    display: none;
  }
  .docmed-nav-item--dropdown.is-open .docmed-dropdown-menu {
    display: block;
  }
}

/* Buttons */
.wp-element-button,
.docmed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.docmed-btn-primary,
.wp-block-button__link:not(.is-style-docmed-outline):not(.is-style-docmed-ghost) {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
}

.docmed-btn-primary:hover,
.wp-block-button__link:not(.is-style-docmed-outline):not(.is-style-docmed-ghost):hover {
  background-color: var(--wp--preset--color--primary-deep);
  color: var(--wp--preset--color--on-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 111, 214, 0.25);
}

.is-style-docmed-outline .wp-block-button__link,
.docmed-btn-outline {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

.is-style-docmed-outline .wp-block-button__link:hover,
.docmed-btn-outline:hover {
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--base);
}

.is-style-docmed-ghost .wp-block-button__link,
.docmed-btn-ghost {
  background-color: transparent;
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

.is-style-docmed-ghost .wp-block-button__link:hover,
.docmed-btn-ghost:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
}

/* Dark mode toggle button removed / disabled */
.docmed-scheme-toggle {
  display: none !important;
}

/* Section Header Bar */
.is-style-docmed-bar {
  position: relative;
  padding-bottom: 0.9375rem;
  margin-bottom: 1.25rem;
}

.is-style-docmed-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.125rem;
  height: 3px;
  background-color: var(--wp--preset--color--accent);
  border-radius: 2px;
}

.has-text-align-center.is-style-docmed-bar::after {
  left: 50%;
  transform: translateX(-50%);
}

.is-style-docmed-kicker {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
  border-bottom: 2px solid var(--wp--preset--color--accent);
  padding-bottom: 0.2rem;
}

/* Grid & Columns */
.wp-block-columns {
  display: grid;
  gap: var(--wp--preset--spacing--40);
}

.columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.columns-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Service Band */
.docmed-band {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
}

.docmed-band__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.docmed-band__cell {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.docmed-band__cell.is-deep {
  background-color: var(--wp--preset--color--primary-deep);
}

.docmed-band__icon {
  width: 48px;
  height: 48px;
  background-color: currentColor;
  -webkit-mask: var(--docmed-icon) center / contain no-repeat;
  mask: var(--docmed-icon) center / contain no-repeat;
  margin-bottom: 1.25rem;
}

.docmed-icon--users,
.docmed-icon--users-3 {
  --docmed-icon: url("/assets/icons/users.svg");
}

/* Inner Page Banner with Official Logo Emblem */
.docmed-page-banner__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.docmed-page-banner__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docmed-page-banner__logo img {
  max-height: 195px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.docmed-page-banner__logo:hover img {
  opacity: 0.75;
  transform: scale(1.04) rotate(1deg);
}

@media (max-width: 768px) {
  .docmed-page-banner__container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .docmed-page-banner__logo img {
    max-height: 145px;
    margin: 0 auto;
  }
}

/* Welcome Section */
.docmed-welcome {
  padding-top: var(--wp--preset--spacing--80);
  padding-bottom: var(--wp--preset--spacing--80);
}

.docmed-welcome__photos {
  position: relative;
  padding-bottom: 5.5rem;
}

.docmed-welcome__one {
  position: relative;
  width: 63%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.docmed-welcome__two {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 53%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.docmed-welcome__photos img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.docmed-welcome__one img {
  aspect-ratio: 382 / 464;
  object-fit: cover;
}

.docmed-welcome__two img {
  aspect-ratio: 322 / 392;
  object-fit: cover;
}

@media (max-width: 768px) {
  .docmed-welcome__photos {
    padding-bottom: 3.5rem;
    margin-bottom: 2rem;
  }
}

.is-style-docmed-checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.is-style-docmed-checks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.is-style-docmed-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--wp--preset--color--primary);
  -webkit-mask: url("/assets/icons/circle-check.svg") center / contain no-repeat;
  mask: url("/assets/icons/circle-check.svg") center / contain no-repeat;
}

/* Department Card */
.is-style-docmed-card {
  background-color: var(--wp--preset--color--base);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.is-style-docmed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.docmed-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 496 / 227;
}

.docmed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.is-style-docmed-card:hover .docmed-card__media img {
  transform: scale(1.04);
}

.docmed-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.docmed-card__body h3 {
  margin-bottom: 0.75rem;
}

.docmed-card__body p {
  color: var(--wp--preset--color--muted);
  flex: 1;
}

.docmed-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary);
}

.docmed-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.is-style-docmed-card:hover .docmed-more::after {
  transform: translateX(4px);
}

/* Reviews */
.docmed-reviews-wrap {
  position: relative;
  background-color: var(--wp--preset--color--wash);
  color: var(--wp--preset--color--overlay);
  padding: var(--wp--preset--spacing--80) 0;
  overflow: hidden;
}

.docmed-reviews-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/reviews.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.docmed-reviews__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.docmed-review__quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  background-color: var(--wp--preset--color--accent);
  -webkit-mask: url("/assets/icons/quote.svg") center / contain no-repeat;
  mask: url("/assets/icons/quote.svg") center / contain no-repeat;
}

.docmed-review__text {
  font-family: var(--wp--preset--font-family--lora);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.docmed-review__author {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.docmed-review__meta {
  color: var(--wp--preset--color--on-dark);
  font-size: 0.875rem;
}

/* Tabs */
.docmed-tabs-section {
  padding: var(--wp--preset--spacing--80) 0;
}

.docmed-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--wp--preset--color--divider);
  flex-wrap: wrap;
}

.docmed-tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wp--preset--color--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.docmed-tab-btn:hover,
.docmed-tab-btn.is-active {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

.docmed-tab-pane {
  display: none;
}

.docmed-tab-pane.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .docmed-tab-pane.is-active {
    grid-template-columns: 1fr;
  }
}

.docmed-tab-pane__img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Split CTA Band */
.docmed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .docmed-split {
    grid-template-columns: 1fr;
  }
}

.docmed-split__cell {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
  color: #fff;
}

.docmed-split__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docmed-split__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--wp--preset--color--wash);
  opacity: 0.90;
}

.docmed-split__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 580px;
  flex-wrap: wrap;
}

/* Doctors Carousel / Grid */
.docmed-doctor-card {
  background-color: var(--wp--preset--color--base);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--card);
  border: 1px solid var(--wp--preset--color--divider);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.docmed-doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.docmed-doctor-card__img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--wp--preset--color--surface);
}

.docmed-doctor-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.docmed-doctor-card:hover .docmed-doctor-card__img img {
  transform: scale(1.05);
}

.docmed-doctor-card__info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.docmed-doctor-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* Form Styles */
.docmed-form-box {
  background-color: var(--wp--preset--color--base);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--wp--preset--shadow--card);
  border: 1px solid var(--wp--preset--color--divider);
}

.docmed-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .docmed-form-grid {
    grid-template-columns: 1fr;
  }
}

.docmed-form-group {
  display: flex;
  flex-direction: column;
}

.docmed-form-group.full-width {
  grid-column: 1 / -1;
}

.docmed-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.docmed-form-input,
.docmed-form-select,
.docmed-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--wp--preset--color--divider);
  border-radius: 8px;
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.docmed-form-input,
.docmed-form-select {
  height: 48px;
  line-height: 1.5;
  margin-top: auto;
}

.docmed-form-textarea {
  margin-top: auto;
}

.docmed-form-input:focus,
.docmed-form-select:focus,
.docmed-form-textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px rgba(10, 111, 214, 0.15);
}

.docmed-form-error {
  color: #e53e3e;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* Modal Dialog */
.docmed-dialog {
  padding: 0;
  border: none;
  border-radius: 16px;
  max-width: 640px;
  width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
}

.docmed-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.docmed-dialog__box {
  padding: 2.25rem;
  position: relative;
}

.docmed-dialog__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--wp--preset--color--muted);
  transition: all 0.2s ease;
}

.docmed-dialog__close:hover {
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--contrast);
}

/* Alert Notification */
.docmed-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.docmed-alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.docmed-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.docmed-footer {
  background-color: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--on-dark);
  margin-top: auto;
}

.docmed-footer__top {
  padding: var(--wp--preset--spacing--80) 0 var(--wp--preset--spacing--60);
}

.docmed-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 991px) {
  .docmed-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .docmed-footer__grid {
    grid-template-columns: 1fr;
  }
}

.docmed-footer__title {
  color: var(--wp--preset--color--overlay);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.docmed-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docmed-footer__links li {
  margin-bottom: 0.65rem;
}

.docmed-footer__links a {
  color: var(--wp--preset--color--on-dark);
  transition: color 0.2s ease;
}

.docmed-footer__links a:hover {
  color: var(--wp--preset--color--accent);
}

.docmed-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   Separated Hero Section: Dedicated Studio Background + Separate Photo Layer
   ========================================================================== */

.docmed-hero-standalone {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: #e2e8ed;
}

/* 1. Dedicated Background Layer (Separate) */
.docmed-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 82% 40%, rgba(217, 119, 6, 0.15) 0%, rgba(2, 132, 199, 0.08) 38%, transparent 70%),
    radial-gradient(circle at 15% 20%, rgba(2, 132, 199, 0.09) 0%, transparent 50%),
    linear-gradient(135deg, #eef4f8 0%, #e2ebf0 50%, #d8e3ea 100%);
  z-index: 1;
}

/* Decorative Balinese Arch / Halo behind Kelian Photo */
.docmed-hero-halo {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 440px;
  height: 530px;
  border-radius: 220px 220px 0 0;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.16) 0%, rgba(2, 132, 199, 0.05) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-bottom: none;
  box-shadow: 0 -15px 40px rgba(217, 119, 6, 0.08);
  pointer-events: none;
  z-index: 1;
}

/* Watermark SVG Motif behind Halo */
.docmed-hero-motif {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  height: 540px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
}

/* 2. Content & Photo Container (Two Columns) */
.docmed-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 0;
}

/* Left: Text Area */
.docmed-hero-content {
  max-width: 580px;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  z-index: 4;
}

/* Cultural Pill Badge */
.docmed-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.32);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #b45309;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.06);
}

.docmed-hero-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.docmed-hero-title {
  font-family: inherit;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.24;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.docmed-hero-title strong {
  font-weight: 800;
  color: #0f172a;
  display: block;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.docmed-hero-title .title-accent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
  padding-right: 0.05em;
  line-height: 1.24;
}

.docmed-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin-top: 0;
  margin-bottom: 1.85rem;
  max-width: 520px;
}

.docmed-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.docmed-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0284c7;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
}

.docmed-hero-btn:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(2, 132, 199, 0.4);
}

.docmed-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #0284c7 !important;
  border-radius: 8px;
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(2, 132, 199, 0.4);
  transition: all 0.25s ease;
}

.docmed-hero-btn-secondary:hover {
  background-color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Stats Row */
.docmed-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  max-width: 520px;
}

.docmed-hero-stat-item {
  display: flex;
  flex-direction: column;
}

.docmed-hero-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.docmed-hero-stat-num small {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b45309;
}

.docmed-hero-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.35rem;
}

.docmed-hero-stat-sep {
  width: 1px;
  height: 36px;
  background-color: rgba(15, 23, 42, 0.12);
}

/* Right: Separate Photo of Kelian Desa */
.docmed-hero-photo {
  position: relative;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
  max-height: 610px;
  margin-bottom: 0;
}

.docmed-hero-photo img {
  max-height: 590px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.12));
}

/* Floating interactive badges attached to photo */
@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

.docmed-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  z-index: 5;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.docmed-float-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}

.docmed-float-card--top {
  top: 22%;
  left: -22%;
  animation: floatUp 5s ease-in-out infinite;
}

.docmed-float-card--bottom {
  bottom: 12%;
  left: -14%;
  animation: floatDown 6s ease-in-out infinite 0.7s;
}

.docmed-float-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.docmed-float-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.docmed-float-subtitle {
  font-size: 0.775rem;
  color: #b45309;
  font-weight: 600;
  margin-top: 0.2rem;
  line-height: 1.4;
  padding-bottom: 2px;
}

.docmed-float-subtext {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.35;
}

/* Dark Mode Adjustments */
.docmed-dark .docmed-hero-standalone {
  background-color: #0f172a;
}

.docmed-dark .docmed-hero-bg {
  background: 
    radial-gradient(circle at 82% 42%, rgba(217, 119, 6, 0.18) 0%, rgba(2, 132, 199, 0.12) 35%, transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.docmed-dark .docmed-hero-halo {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.22) 0%, rgba(2, 132, 199, 0.08) 100%);
  border-color: rgba(217, 119, 6, 0.4);
}

.docmed-dark .docmed-hero-title,
.docmed-dark .docmed-hero-title strong,
.docmed-dark .docmed-hero-stat-num {
  color: #f8fafc;
}

.docmed-dark .docmed-hero-title .title-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docmed-dark .docmed-hero-desc,
.docmed-dark .docmed-hero-stat-label {
  color: #cbd5e1;
}

.docmed-dark .docmed-hero-stats,
.docmed-dark .docmed-hero-stat-sep {
  border-color: rgba(255, 255, 255, 0.12);
}

.docmed-dark .docmed-hero-btn-secondary {
  background-color: rgba(30, 41, 59, 0.8);
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4);
}

.docmed-dark .docmed-float-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.docmed-dark .docmed-float-title {
  color: #f8fafc;
}

.docmed-dark .docmed-float-subtext {
  color: #94a3b8;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
  .docmed-hero-standalone {
    min-height: auto;
    padding-top: 2rem;
  }
  .docmed-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
  .docmed-hero-content {
    display: contents;
  }
  .docmed-hero-title {
    order: 1;
    margin-bottom: 1rem;
    max-width: 100%;
  }
  .docmed-hero-desc {
    order: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }
  /* Photo positioned right above action buttons on mobile */
  .docmed-hero-photo {
    order: 3;
    align-self: center;
    width: 100%;
    max-width: 340px;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }
  .docmed-hero-photo img {
    max-height: 400px;
    margin: 0 auto;
    display: block;
  }
  .docmed-hero-buttons {
    order: 4;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .docmed-hero-stats {
    order: 5;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    margin-top: 2rem;
  }
  .docmed-hero-halo,
  .docmed-hero-motif,
  .docmed-float-card {
    display: none;
  }
}

@media (max-width: 575px) {
  #header-appointment-cta {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.72rem !important;
    gap: 0.25rem;
  }
  #header-appointment-cta svg {
    width: 12px;
    height: 12px;
  }
  .docmed-hero-photo {
    max-width: 290px;
    margin-bottom: 1.75rem;
  }
  .docmed-hero-photo img {
    max-height: 330px;
  }
  .docmed-hero-buttons {
    flex-direction: column;
    gap: 0.65rem;
  }
  .docmed-hero-btn,
  .docmed-hero-btn-secondary {
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: 0.885rem;
  }
  .docmed-hero-stats {
    gap: 1rem;
    padding-top: 1rem;
  }
  .docmed-hero-stat-num {
    font-size: 1.5rem;
  }
}
