/*
Theme Name: Eva Clinic Istanbul
Theme URI: https://evaclinicistanbul.com
Author: OpenClaw
Author URI: https://example.com
Description: A responsive WordPress theme template for Eva Clinic Istanbul, designed for clinic services, patient trust, and consultation enquiries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eva-clinic-istanbul
Tags: clinic, medical, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --color-bg: #f7faf8;
  --color-surface: #ffffff;
  --color-soft: #eef7f1;
  --color-warm: #fffaf0;
  --color-text: #2c2d2f;
  --color-muted: #66706b;
  --color-border: #dbe5df;
  --color-accent: #007238;
  --color-accent-dark: #00562c;
  --color-accent-bright: #009f3f;
  --color-gold: #f8b72b;
  --color-gold-dark: #d99513;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --tap-size: 48px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  touch-action: manipulation;
}

a:hover,
a:focus {
  color: var(--color-accent-dark);
}

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

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 32px rgba(0, 86, 44, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner,
.site-footer__inner,
.site-main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 24px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.site-branding {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.custom-logo {
  max-height: 56px;
  width: auto;
}

.site-title {
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.site-title::after {
  color: var(--color-accent);
  content: " Istanbul";
  font-weight: 650;
}

.site-description {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 4px 0 0;
}

.site-branding:has(.custom-logo-link) .site-title,
.site-branding:has(.custom-logo-link) .site-description {
  display: none;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: var(--color-text);
  display: inline-flex;
  font-weight: 650;
  min-height: 40px;
  align-items: center;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--color-accent);
}

.site-main {
  padding-bottom: 56px;
  padding-top: 40px;
}

.front-page-editor-content > *:first-child {
  margin-top: 0;
}

.front-page-editor-content > *:last-child {
  margin-bottom: 0;
}

.menu-toggle {
  align-items: center;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  height: var(--tap-size);
  justify-content: center;
  padding: 0;
  touch-action: manipulation;
  width: var(--tap-size);
}

.menu-toggle__bar {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 22px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 32px;
  padding: 32px;
}

.clinic-hero {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.92)),
    linear-gradient(135deg, #ffffff, var(--color-warm));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-bottom: 32px;
  min-height: 520px;
  padding: 48px;
}

.clinic-hero__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.clinic-stat {
  border-left: 3px solid var(--color-gold);
  padding-left: 12px;
}

.clinic-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.clinic-stat span {
  color: var(--color-muted);
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  margin-top: 4px;
}

.clinic-hero__eyebrow,
.section-eyebrow {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.clinic-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 820px;
}

.clinic-hero__copy {
  color: var(--color-muted);
  font-size: 1.15rem;
  margin: 0 0 28px;
  max-width: 680px;
}

.clinic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.treatment-search {
  background: var(--color-surface);
  border: 1px solid rgba(0, 114, 56, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 86, 44, 0.1);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 24px 0 0;
  max-width: 720px;
  padding: 8px;
}

.treatment-search input {
  border: 0;
  color: var(--color-text);
  font: inherit;
  min-height: 50px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.treatment-search button {
  background: var(--color-gold);
  border: 0;
  border-radius: 8px;
  color: var(--color-accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 50px;
  padding: 0 20px;
}

.button,
.button-outline,
.search-form button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: var(--tap-size);
  padding: 10px 18px;
  text-decoration: none;
  touch-action: manipulation;
}

.button {
  background: var(--color-accent);
  color: #ffffff;
}

.button:hover,
.button:focus {
  background: var(--color-accent-dark);
  color: #ffffff;
}

.button-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.clinic-hero__panel {
  background: #fffdf8;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px rgba(0, 86, 44, 0.08);
  border-radius: 8px;
  padding: 24px;
}

.clinic-hero__panel h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.clinic-checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clinic-checklist li {
  color: var(--color-muted);
  padding-left: 28px;
  position: relative;
}

.clinic-checklist li::before {
  background: var(--color-gold);
  border-radius: 999px;
  color: var(--color-text);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 800;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: 3px;
  width: 18px;
}

.clinic-section {
  margin: 48px 0;
}

.discovery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -12px;
}

.discovery-strip a {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  font-weight: 750;
  min-height: 42px;
  padding: 8px 16px;
  text-decoration: none;
}

.discovery-strip a:hover,
.discovery-strip a:focus {
  border-color: rgba(0, 114, 56, 0.42);
  color: var(--color-accent);
}

.section-header {
  margin-bottom: 22px;
  max-width: 720px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--color-muted);
  margin: 0;
}

.clinic-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clinic-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.trust-card,
.is-style-eva-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.service-card:hover,
.trust-card:hover,
.is-style-eva-card:hover {
  border-color: rgba(0, 114, 56, 0.32);
}

.service-card h3,
.trust-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.service-card p,
.trust-card p {
  color: var(--color-muted);
  margin: 0;
}

.is-style-eva-soft-panel {
  background:
    linear-gradient(135deg, rgba(248, 183, 43, 0.16), rgba(238, 247, 241, 0.92)),
    var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.wp-block-button.is-style-eva-whatsapp .wp-block-button__link,
.is-style-eva-whatsapp .wp-block-button__link {
  background: var(--color-accent);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 8px;
}

.service-card__link {
  display: inline-block;
  font-weight: 750;
  margin-top: 14px;
  text-decoration: none;
}

.seo-pages {
  background:
    linear-gradient(135deg, rgba(248, 183, 43, 0.16), rgba(238, 247, 241, 0.92)),
    var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.decision-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.procedure-list {
  display: grid;
  gap: 1px;
}

.procedure-list a {
  align-items: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  min-height: 72px;
  padding: 16px 0;
  text-decoration: none;
}

.procedure-list a:first-child {
  border-top: 0;
}

.procedure-list strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.procedure-list span {
  color: var(--color-muted);
}

.process-section,
.pricing-section,
.contact-layout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.process-list {
  counter-reset: process;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  align-items: start;
  border-top: 1px solid var(--color-border);
  counter-increment: process;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: 48px minmax(0, 0.45fr) minmax(0, 1fr);
  padding: 18px 0;
}

.process-list li:first-child {
  border-top: 0;
}

.process-list li::before {
  align-items: center;
  background: var(--color-gold);
  border-radius: 999px;
  color: var(--color-accent-dark);
  content: counter(process);
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.process-list strong {
  color: var(--color-text);
  font-size: 1.05rem;
}

.process-list span {
  color: var(--color-muted);
}

.package-section,
.brand-section,
.package-builder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.package-grid,
.brand-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card,
.brand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.package-card--featured {
  border-color: rgba(0, 114, 56, 0.42);
  box-shadow: 0 18px 45px rgba(0, 86, 44, 0.1);
}

.package-card__tag {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.package-card__price {
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin: 14px 0;
}

.package-card h3,
.brand-card h3 {
  font-size: 1.25rem;
  line-height: 1.22;
  margin: 0;
}

.package-card ul {
  color: var(--color-muted);
  margin-bottom: 0;
  padding-left: 20px;
}

.brand-card figure {
  align-items: center;
  aspect-ratio: 3 / 1.4;
  background: var(--color-soft);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  overflow: hidden;
}

.brand-card img {
  max-height: 72px;
  object-fit: contain;
}

.package-builder__steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.package-builder__steps div {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px;
}

.package-builder__steps strong,
.package-builder__steps span {
  display: block;
}

.package-builder__steps strong {
  color: var(--color-text);
  margin-bottom: 6px;
}

.package-builder__steps span {
  color: var(--color-muted);
}

.proof-strip {
  background: var(--color-accent-dark);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.proof-strip div {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.proof-strip strong {
  color: var(--color-gold);
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.82);
}

.instagram-banner {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.94)),
    var(--color-warm);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.instagram-banner h2,
.instagram-banner p {
  margin: 0;
}

.instagram-banner h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 8px;
}

.instagram-banner p {
  color: var(--color-muted);
  max-width: 680px;
}

.instagram-banner .button-outline {
  background: var(--color-surface);
  flex: 0 0 auto;
}

.before-after-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.before-after-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.before-after-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.before-after-card__media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(90deg, rgba(0, 114, 56, 0.1) 50%, rgba(248, 183, 43, 0.16) 50%),
    var(--color-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-after-card__media span {
  align-items: end;
  color: var(--color-text);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  padding: 12px;
  text-transform: uppercase;
}

.before-after-card h3,
.before-after-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.before-after-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 8px;
  margin-top: 18px;
}

.before-after-card p {
  color: var(--color-muted);
  margin-bottom: 18px;
  margin-top: 0;
}

.social-media-section {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.youtube-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.youtube-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.youtube-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.youtube-card__placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 86, 44, 0.96), rgba(0, 114, 56, 0.88)),
    var(--color-accent-dark);
  color: #ffffff;
  display: flex;
  font-weight: 850;
  justify-content: center;
  position: relative;
}

.youtube-card__placeholder::before {
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--color-gold);
  border-top: 16px solid transparent;
  content: "";
  height: 0;
  margin-right: 12px;
  width: 0;
}

.youtube-card h3,
.youtube-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.youtube-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 8px;
  margin-top: 18px;
}

.youtube-card p {
  color: var(--color-muted);
  margin-bottom: 18px;
  margin-top: 0;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-buttons a {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 16px;
  text-decoration: none;
}

.social-buttons a:hover,
.social-buttons a:focus {
  border-color: rgba(0, 114, 56, 0.42);
  color: var(--color-accent);
}

.seo-pages ul {
  columns: 2;
  gap: 32px;
  margin: 0;
  padding-left: 20px;
}

.seo-pages li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.consultation-band {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 86, 44, 0.98), rgba(0, 114, 56, 0.94)),
    var(--color-accent-dark);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 32px;
}

.consultation-band h2 {
  margin: 0 0 8px;
}

.consultation-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.consultation-band .button {
  background: var(--color-gold);
  color: var(--color-accent-dark);
  flex: 0 0 auto;
}

.mobile-action-bar {
  display: none;
}

.preview-editor {
  bottom: 18px;
  left: 18px;
  position: fixed;
  width: min(320px, calc(100vw - 36px));
  z-index: 100;
}

.preview-editor__toggle,
.preview-editor__reset {
  background: var(--color-accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 8px 14px;
}

.preview-editor__panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 86, 44, 0.18);
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
}

.preview-editor.is-collapsed .preview-editor__panel {
  display: none;
}

.preview-editor label {
  color: var(--color-muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 5px;
}

.preview-editor input,
.preview-editor textarea {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.preview-editor textarea {
  min-height: 92px;
  resize: vertical;
}

.preview-editor input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.doctor-hero {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.92)),
    var(--color-warm);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  padding: 42px;
}

.doctor-hero__photo {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.doctor-hero__photo figure {
  margin: 0;
}

.doctor-hero__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.doctor-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0 0 22px;
}

.doctor-card figure {
  margin: 0;
}

.doctor-card img {
  aspect-ratio: 4 / 3;
  background: var(--color-soft);
  object-fit: cover;
  width: 100%;
}

.doctor-card h3,
.doctor-card p,
.doctor-card .wp-block-buttons {
  margin-left: 20px;
  margin-right: 20px;
}

.doctor-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 4px;
  margin-top: 18px;
}

.doctor-card p {
  color: var(--color-muted);
}

.doctor-card__meta {
  color: var(--color-accent) !important;
  font-weight: 800;
  margin-top: 0;
}

.credential-strip {
  background: var(--color-accent-dark);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.credential-strip > .wp-block-group,
.credential-strip > div {
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.credential-strip h3 {
  color: var(--color-gold);
  font-size: 1rem;
  margin: 0 0 6px;
}

.credential-strip p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.doctor-video-section,
.doctor-faq-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.doctor-video-section .wp-block-embed {
  margin: 0;
}

.doctor-video-section iframe,
.doctor-video-section .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.doctor-faq-section details {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.doctor-faq-section details:first-of-type {
  border-top: 0;
}

.doctor-faq-section summary {
  color: var(--color-text);
  cursor: pointer;
  font-weight: 850;
}

.doctor-faq-section details p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.site-header--dark {
  background: var(--color-accent-dark);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-header--dark .primary-menu a,
.site-header--dark .site-title {
  color: #ffffff;
}

.site-header--dark .site-title::after {
  color: var(--color-gold);
}

.hero h1,
.entry-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.125rem;
  margin: 0;
  max-width: 680px;
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.post-card__title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.post-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card__meta,
.entry-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.entry-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 28px 0;
}

.site-footer__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.site-footer__brand {
  color: var(--color-text);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.site-footer__grid p,
.site-footer__copyright {
  margin: 0;
}

.site-footer__contact {
  display: grid;
  font-style: normal;
  gap: 8px;
}

.site-footer__contact a {
  color: var(--color-text);
  font-weight: 650;
  text-decoration: none;
}

.site-footer__contact span {
  color: var(--color-muted);
}

.site-footer__copyright {
  border-top: 1px solid var(--color-border);
  margin-top: 22px;
  padding-top: 18px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

.search-form button {
  border: 0;
}

.wp-caption,
.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.alignright,
.alignleft,
.aligncenter {
  max-width: 100%;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 980px) {
  .site-header__inner {
    gap: 16px;
  }

  .clinic-hero,
  .clinic-grid--four,
  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-hero {
    align-items: start;
    padding: 36px;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .custom-logo {
    max-height: 42px;
    max-width: min(220px, 62vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 86, 44, 0.12);
    display: none;
    left: 16px;
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 0;
    padding: 8px;
  }

  .primary-menu a {
    border-radius: 8px;
    min-height: var(--tap-size);
    padding: 10px 12px;
    width: 100%;
  }

  .primary-menu a:hover,
  .primary-menu a:focus {
    background: var(--color-soft);
  }

  .site-main {
    padding: 24px 16px 86px;
  }

  .hero,
  .clinic-hero,
  .entry-content,
  .post-card {
    padding: 20px;
  }

  .clinic-hero,
  .clinic-grid,
  .doctor-hero,
  .doctor-grid,
  .credential-strip,
  .package-grid,
  .brand-grid,
  .package-builder__steps {
    grid-template-columns: 1fr;
  }

  .clinic-hero h1 {
    font-size: 2.45rem;
    line-height: 1.05;
  }

  .clinic-hero__copy {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .clinic-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .treatment-search {
    grid-template-columns: 1fr;
  }

  .treatment-search button {
    width: 100%;
  }

  .clinic-actions .button,
  .clinic-actions .button-outline,
  .consultation-band .button {
    width: 100%;
  }

  .clinic-hero__stats {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .clinic-hero {
    min-height: auto;
    gap: 22px;
  }

  .clinic-section {
    margin: 34px 0;
  }

  .service-card,
  .trust-card,
  .is-style-eva-card,
  .seo-pages,
  .decision-panel,
  .doctor-hero,
  .doctor-video-section,
  .doctor-faq-section,
  .package-section,
  .brand-section,
  .package-builder {
    padding: 20px;
  }

  .discovery-strip {
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scroll-padding: 16px;
  }

  .discovery-strip a {
    flex: 0 0 auto;
  }

  .procedure-list a,
  .proof-strip,
  .process-list li {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    padding: 20px;
  }

  .consultation-band {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .instagram-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .instagram-banner .button-outline {
    width: 100%;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

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

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

  .seo-pages ul {
    columns: 1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .mobile-action-bar {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
    bottom: 0;
    box-shadow: 0 -14px 32px rgba(0, 86, 44, 0.12);
    display: grid;
    gap: 8px;
    grid-template-columns: 1.25fr 1fr;
    left: 0;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .mobile-action-bar a {
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: var(--tap-size);
    text-decoration: none;
  }

  .mobile-action-bar__primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
  }

  .preview-editor {
    bottom: 76px;
    left: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  .preview-editor__panel {
    max-height: 48vh;
    overflow: auto;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .site-header__inner,
  .site-main,
  .site-footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .clinic-hero h1,
  .hero h1,
  .entry-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .clinic-stat strong {
    font-size: 1.15rem;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 760px) {
    .site-header__inner {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }

    .site-main {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}
