/*
Theme Name: DimitriosPapoutsas.gr
Theme URI: https://dimitriospapoutsas.gr
Author: ariser6
Description: Custom WordPress theme for a modern surgical practice website.
Version: 1.0.0
Text Domain: advanced-surgery
*/

:root {
  --as-blue: #063a78;
  --as-blue-dark: #032d61;
  --as-blue-soft: #eaf4ff;
  --as-sky: #21a8df;
  --as-text: #06295a;
  --as-muted: #567092;
  --as-line: #d7e2ef;
  --as-bg: #f5f9fd;
  --as-white: #ffffff;
  --as-shadow: 0 14px 34px rgba(6, 42, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--as-text);
  background: var(--as-white);
  font-family: "Manrope", "Arial", "Helvetica", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.site-shell {
  overflow: hidden;
}

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

.site-header {
  position: relative;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 0 16px;
}

.site-header-overlay {
  position: absolute;
}

.site-header-static {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 18px rgba(6, 42, 91, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--as-blue);
  font-weight: 800;
}

.brand-logo {
  width: min(380px, 32vw);
  height: auto;
  image-rendering: auto;
  transform: translateZ(0);
}

.brand-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--as-blue);
}

.surgical-mark svg {
  display: block;
  width: 46px;
  height: 46px;
}

.brand-title {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  max-width: 330px;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #061f45;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a,
.nav-parent {
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--as-sky);
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-parent::after {
  width: 6px;
  height: 6px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  min-width: 330px;
  padding: 12px;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--as-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-dropdown::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 3px;
  color: var(--as-blue-dark);
  font-size: 14px;
  line-height: 1.35;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: var(--as-blue-soft);
  color: var(--as-blue);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--as-blue);
  border-radius: 3px;
  background: transparent;
  color: var(--as-blue);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: var(--as-shadow);
}

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

.hero {
  position: relative;
  min-height: 650px;
  padding: 160px 0 170px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(234, 244, 255, 0.42) 55%, rgba(3, 45, 97, 0.08) 100%),
    url("assets/images/banner-stigmi-chirourgiou.jpeg") center right / cover no-repeat;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.hero h1 {
  margin: 0 0 20px;
  color: var(--as-blue-dark);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .typing-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 8px;
  background: var(--as-sky);
  vertical-align: -0.02em;
  animation: typing-caret 700ms steps(1, end) infinite;
}

.hero .typing-complete .typing-text::after {
  animation: typing-caret-finish 700ms ease forwards;
}

.hero-motion-ready .hero-lead,
.hero-motion-ready .hero-actions,
.hero-motion-ready .hero-quote {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-motion-ready.is-started .hero-lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 520ms;
}

.hero-motion-ready.is-started .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 760ms;
}

.hero-motion-ready.is-started .hero-quote {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 980ms;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms ease var(--reveal-delay, 0ms),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-from-left {
  transform: translateX(-28px);
}

.reveal-on-scroll.reveal-from-right {
  transform: translateX(28px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  will-change: auto;
}

@keyframes typing-caret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes typing-caret-finish {
  0%, 50% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-lead {
  margin: 0 0 42px;
  color: var(--as-blue-dark);
  font-size: 19px;
}

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

.hero-quote {
  position: absolute;
  z-index: 8;
  right: min(5vw, 80px);
  bottom: 82px;
  width: min(285px, 32vw);
  padding: 22px 24px;
  background: rgba(2, 55, 112, 0.96);
  color: var(--as-white);
  font-size: 18px;
  line-height: 1.45;
}

.quote-mark {
  display: block;
  margin-bottom: 5px;
  color: #74c9ec;
  font-size: 40px;
  font-weight: 900;
  line-height: 0.7;
}

.procedures {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  padding-bottom: 34px;
}

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

.procedure-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  background: var(--as-white);
  box-shadow: 0 10px 25px rgba(8, 43, 87, 0.08);
}

.procedure-icon {
  position: absolute;
  top: -38px;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 5px solid var(--as-white);
  border-radius: 50%;
  background: var(--as-blue);
  color: var(--as-white);
  transform: translateX(-50%);
}

.procedure-card h2 {
  min-height: 78px;
  margin: 0;
  padding: 48px 18px 14px;
  color: var(--as-blue);
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
}

.procedure-image {
  height: 136px;
  background-position: center;
  background-size: cover;
}

.procedure-card:nth-child(1) .procedure-image {
  background-image: url("assets/images/procedure-laparoscopic.jpg");
}

.procedure-card:nth-child(2) .procedure-image {
  background-image: url("assets/images/procedure-robotic.jpg");
}

.procedure-card:nth-child(3) .procedure-image {
  background-image: url("assets/images/procedure-sils.jpg");
}

.procedure-card:nth-child(4) .procedure-image {
  background-image: url("assets/images/procedure-energy.webp");
}

.procedure-card ul {
  min-height: 130px;
  margin: 0;
  padding: 22px 26px 28px;
  color: var(--as-blue-dark);
  font-size: 14px;
}

.benefit-strip {
  padding: 0 0 34px;
  background: var(--as-white);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid transparent;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 0 24px;
  border-right: 1px solid var(--as-line);
  color: var(--as-blue);
  font-weight: 800;
}

.benefit-item:last-child {
  border-right: 0;
}

.section-soft {
  padding: 34px 0 46px;
  background: linear-gradient(180deg, #f8fbff 0%, #eff7ff 100%);
}

.section-title {
  margin: 0 0 38px;
  color: var(--as-blue);
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
}

.section-title::after {
  display: block;
  width: 56px;
  height: 2px;
  margin: 15px auto 0;
  content: "";
  background: var(--as-sky);
}

.philosophy-section {
  padding: 66px 0;
  border-top: 1px solid var(--as-line);
  background: var(--as-white);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.philosophy-heading {
  position: relative;
  padding-left: 24px;
}

.philosophy-heading::before {
  position: absolute;
  top: 2px;
  bottom: 4px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--as-sky);
}

.philosophy-heading span {
  display: block;
  margin-bottom: 12px;
  color: var(--as-sky);
  font-size: 12px;
  font-weight: 800;
}

.philosophy-heading h2 {
  margin: 0;
  color: var(--as-blue);
  font-size: 40px;
  line-height: 1.12;
}

.philosophy-image {
  overflow: hidden;
  margin: 30px 0 0;
  aspect-ratio: 5 / 6;
  border-radius: 6px;
  background: var(--as-blue-soft);
  box-shadow: 0 18px 42px rgba(6, 42, 91, 0.2);
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.philosophy-copy {
  color: var(--as-text);
  font-size: 17px;
  line-height: 1.8;
}

.philosophy-copy p {
  margin: 0 0 22px;
}

.philosophy-copy p:last-child {
  margin-bottom: 0;
}

.philosophy-closing {
  padding-top: 22px;
  border-top: 1px solid var(--as-line);
  color: var(--as-blue);
  font-size: 18px;
  font-weight: 700;
}

.surgery-gallery-section {
  padding: 46px 0 54px;
  background: var(--as-white);
}

.surgery-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.surgery-gallery-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #dfe8ef;
  box-shadow: 0 16px 34px rgba(6, 42, 91, 0.2);
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.surgery-gallery-link:hover,
.surgery-gallery-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(6, 42, 91, 0.28);
}

.surgery-gallery-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.surgery-gallery-link:hover img {
  transform: scale(1.025);
}

body.surgery-lightbox-open {
  overflow: hidden;
}

.surgery-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 28px 28px;
  background: rgba(3, 20, 43, 0.94);
  cursor: zoom-out;
}

.surgery-lightbox.is-open {
  display: flex;
}

.surgery-lightbox img {
  display: block;
  width: auto;
  max-width: min(94vw, 1500px);
  height: auto;
  max-height: 88vh;
  border-radius: 5px;
  object-fit: contain;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  cursor: default;
}

.surgery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: var(--as-white);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.trust-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.info-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.trust-item,
.info-card {
  padding: 0 32px;
  border-right: 1px solid var(--as-line);
}

.trust-item:last-child,
.info-card:last-child {
  border-right: 0;
}

.trust-item h3,
.info-card h2 {
  margin: 0 0 12px;
  color: var(--as-blue);
  font-size: 15px;
  line-height: 1.25;
}

.trust-item p,
.info-card p,
.contact-list {
  margin: 0;
  color: var(--as-text);
  font-size: 14px;
}

.trust-icon,
.benefit-icon,
.contact-icon {
  flex: 0 0 auto;
  color: var(--as-blue);
}

.benefit-item .icon {
  width: 52px;
  height: 52px;
}

.trust-item .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.info-band {
  padding: 30px 0 26px;
  background: var(--as-white);
}

.doctor-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 24px;
  align-items: start;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  align-self: stretch;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 42px rgba(6, 42, 91, 0.2);
}

.small-btn {
  min-height: 36px;
  margin-top: 18px;
  padding: 0 16px;
  font-size: 12px;
}

.quote-text::before {
  display: block;
  margin-bottom: 6px;
  color: var(--as-sky);
  content: "\201C";
  font-size: 36px;
  font-weight: 900;
  line-height: 0.7;
}

.stars {
  margin-top: 10px;
  color: #f7b51d;
  letter-spacing: 2px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7d5e8;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--as-blue);
}

.hospital-logos {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 18px;
}

.hospital-logos img {
  display: block;
  width: auto;
  max-width: 205px;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(100%);
  opacity: 0.82;
  transition: filter 160ms ease, opacity 160ms ease;
}

.hospital-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-info-band {
  border-top: 1px solid var(--as-line);
}

.footer-help-card {
  min-height: 260px;
}

.footer-help-card p {
  max-width: 280px;
  margin-bottom: 18px;
}

.footer-help-icon {
  color: var(--as-blue);
}

.footer-help-icon .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.site-footer {
  padding: 16px 0;
  background: var(--as-blue);
  color: var(--as-white);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--as-white);
}

.footer-appointment {
  min-height: 36px;
  padding: 0 18px;
  border-color: var(--as-white);
  background: var(--as-white);
  color: var(--as-blue);
  font-size: 11px;
}

.footer-appointment:hover {
  background: transparent;
  color: var(--as-white);
}

.dp-recaptcha-notice {
  margin: 14px 0 0;
  color: var(--as-muted);
  font-size: 11px;
  line-height: 1.55;
}

.dp-recaptcha-notice strong {
  display: block;
  color: var(--as-blue);
  font-size: 12px;
}

.dp-recaptcha-notice p {
  margin: 4px 0 0;
}

.dp-recaptcha-notice a {
  color: var(--as-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grecaptcha-badge {
  z-index: 99980 !important;
  visibility: visible !important;
}

.mobile-nav-toggle {
  display: none;
}

.icon {
  width: 42px;
  height: 42px;
}

.inner-main {
  background: var(--as-white);
}

.inner-hero {
  padding: 76px 0 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.88)),
    url("https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
}

.inner-eyebrow {
  margin: 0 0 10px;
  color: var(--as-sky);
  font-size: 13px;
  font-weight: 800;
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--as-blue-dark);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
}

.post-meta {
  margin-top: 14px;
  color: var(--as-muted);
  font-size: 14px;
  font-weight: 700;
}

.content-section {
  padding: 58px 0 76px;
}

.content-layout {
  max-width: 1240px;
}

.entry-content {
  color: var(--as-text);
  font-size: 18px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  color: var(--as-blue);
  line-height: 1.2;
}

.entry-content h2 {
  margin: 42px 0 16px;
  font-size: 30px;
}

.entry-content h3 {
  margin: 32px 0 12px;
  font-size: 23px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 22px;
}

.entry-content li + li {
  margin-top: 8px;
}

.entry-content .wp-block-image {
  margin: 8px 0 30px;
}

.entry-content .wp-block-image img,
.entry-content img {
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(6, 42, 91, 0.18);
}

.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image.alignleft {
  max-width: min(42%, 360px);
}

.entry-content .wp-block-image.alignright {
  margin: 0 0 24px 34px;
}

.entry-content .wp-block-image.alignleft {
  margin: 0 34px 24px 0;
}

.entry-content .wp-block-columns {
  gap: 34px;
  margin: 34px 0;
}

.entry-content .wp-block-group {
  margin: 34px 0;
}

.entry-content .legal-intro {
  max-width: 980px;
  padding: 20px 24px;
  border-left: 4px solid var(--as-sky);
  background: var(--as-blue-soft);
  font-size: 19px;
  line-height: 1.7;
}

.entry-content .legal-updated {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--as-line);
  color: var(--as-muted);
  font-size: 14px;
}

.contact-map {
  width: 100%;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 210px;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(6, 42, 91, 0.18);
}

.contact-map .dpc-media-placeholder {
  min-height: 210px;
  padding: 20px;
}

.contact-intro {
  max-width: 900px;
  margin-bottom: 0 !important;
  font-size: 18px;
}

.contact-page-columns {
  align-items: stretch !important;
  gap: 32px !important;
  margin: 38px 0 0 !important;
}

.contact-page-columns > .wp-block-column {
  display: flex;
}

.contact-details-panel {
  width: 100%;
  margin: 0 !important;
  padding: 32px;
  border-left: 4px solid var(--as-sky);
  border-radius: 6px;
  background: #f4f9fe;
  box-shadow: 0 16px 36px rgba(6, 42, 91, 0.1);
}

.contact-details-panel p {
  margin: 0 0 12px;
}

.contact-details-panel ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-details-panel a {
  color: var(--as-blue);
  font-weight: 700;
}

.contact-clinic-note {
  margin: 28px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--as-line);
}

.contact-clinic-note h3 {
  margin-top: 0;
  font-size: 18px;
}

.contact-form-panel {
  width: 100%;
  margin: 0 !important;
  padding: 32px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: var(--as-white);
  box-shadow: 0 16px 36px rgba(6, 42, 91, 0.1);
}

.contact-form-panel h2,
.contact-details-panel h2 {
  margin-top: 0;
}

.contact-form-panel > p {
  margin-bottom: 24px;
}

.contact-location-section {
  clear: both;
  margin: 56px 0 0 !important;
  padding-top: 8px;
}

.contact-location-section h2 {
  margin: 0 0 8px;
}

.contact-location-section > p {
  margin: 0 0 20px;
}

.wpcf7 form {
  display: grid;
  gap: 16px;
}

.wpcf7 p {
  margin: 0;
}

.wpcf7 label {
  display: grid;
  gap: 7px;
  color: var(--as-blue);
  font-size: 14px;
  font-weight: 800;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  background: #fff;
  color: var(--as-text);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--as-sky);
  box-shadow: 0 0 0 3px rgba(33, 168, 223, 0.16);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--as-blue);
  border-radius: 3px;
  background: var(--as-blue);
  color: var(--as-white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wpcf7 form .wpcf7-response-output {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--as-text);
  font-size: 14px;
}

.cv-hero-card {
  padding: 30px;
  border-left: 4px solid var(--as-sky);
  border-radius: 6px;
  background: linear-gradient(135deg, #f7fbff 0%, #edf7ff 100%);
  box-shadow: 0 14px 34px rgba(6, 42, 91, 0.1);
}

.cv-hero-card h2 {
  margin-top: 0;
}

.cv-highlight-grid {
  gap: 20px;
}

.cv-highlight-grid .wp-block-column {
  padding: 24px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 42, 91, 0.08);
}

.cv-highlight-grid h3 {
  margin-top: 0;
}

.cv-timeline {
  position: relative;
  margin: 44px 0;
}

.cv-timeline,
.cv-timeline > .wp-block-group__inner-container {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(178px, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.cv-timeline .wp-block-heading {
  grid-column: 1 / -1;
  margin: 0 0 12px;
}

.cv-timeline::before {
  position: absolute;
  right: 24px;
  left: 24px;
  top: 92px;
  height: 1px;
  content: "";
  background: var(--as-line);
}

.cv-timeline-item {
  position: relative;
  margin: 0;
  padding: 40px 18px 20px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: var(--as-white);
  box-shadow: 0 10px 24px rgba(6, 42, 91, 0.07);
}

.cv-timeline-item::before {
  display: none;
}

.cv-timeline-item::after {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 13px;
  height: 13px;
  content: "";
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--as-sky);
  box-shadow: 0 0 0 2px var(--as-sky);
}

.cv-timeline-year {
  margin-bottom: 10px;
  color: var(--as-blue);
  font-weight: 900;
}

.cv-timeline-body {
  padding-left: 0;
}

.cv-timeline-body h3 {
  margin: 0 0 6px;
  color: var(--as-blue);
  font-size: 18px;
  line-height: 1.2;
}

.cv-timeline-body p {
  margin: 0;
}

.cv-section {
  margin: 14px 0;
  padding: 24px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 42, 91, 0.06);
}

.cv-section h3 {
  margin: 0 0 14px;
  color: var(--as-blue);
  font-size: 20px;
  line-height: 1.25;
}

.cv-section summary {
  padding: 16px 20px;
  color: var(--as-blue);
  font-weight: 900;
  cursor: pointer;
}

.cv-section p,
.cv-section ul {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.cv-section ul {
  padding-left: 20px;
}

.cv-section li + li {
  margin-top: 8px;
}

.featured-image {
  width: 100%;
  height: auto;
  margin: 0 0 34px;
  border-radius: 4px;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 4px;
  background: var(--as-white);
  box-shadow: 0 10px 25px rgba(8, 43, 87, 0.08);
}

.post-card a {
  display: block;
  height: 100%;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-date {
  display: block;
  margin: 22px 22px 8px;
  color: var(--as-sky);
  font-size: 12px;
  font-weight: 800;
}

.post-card h2 {
  margin: 0 22px 10px;
  color: var(--as-blue);
  font-size: 21px;
  line-height: 1.22;
}

.post-card p {
  margin: 0 22px 24px;
  color: var(--as-muted);
  font-size: 15px;
}

.pagination {
  grid-column: 1 / -1;
  margin-top: 22px;
}

.procedures-page-grid,
.procedures-page-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.procedures-page-grid > .wp-block-group__inner-container {
  grid-column: 1 / -1;
}

.procedure-page-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: var(--as-white);
  box-shadow: 0 14px 30px rgba(6, 42, 91, 0.08);
}

.procedure-page-card h3 {
  margin: 0 0 10px;
  color: var(--as-blue);
  font-size: 22px;
  line-height: 1.16;
}

.procedure-page-card .wp-block-image {
  margin: 0;
}

.procedure-page-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.procedure-page-card .procedure-page-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: auto;
  padding: 24px;
}

.procedure-page-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 22px;
  overflow: hidden;
  color: var(--as-muted);
  font-size: 16px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.procedure-page-card .wp-block-buttons {
  margin-top: auto;
}

.procedure-page-card .wp-block-button__link {
  min-width: 170px;
  min-height: 42px;
  padding: 13px 14px;
  border-radius: 3px;
  background: var(--as-blue);
  color: var(--as-white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .cv-timeline,
  .cv-timeline > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv-timeline::before {
    display: none;
  }

  .procedures-page-grid,
  .procedures-page-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    position: relative;
    padding: 18px 0;
    background: var(--as-white);
    box-shadow: 0 2px 16px rgba(8, 43, 87, 0.08);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--as-line);
    border-radius: 3px;
    background: var(--as-white);
    color: var(--as-blue);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 18px;
    border: 1px solid var(--as-line);
    background: var(--as-white);
    box-shadow: var(--as-shadow);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    z-index: 100;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-parent {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 0 4px 14px;
    border: 0;
    border-left: 2px solid var(--as-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-item.is-open .nav-dropdown {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 90px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.86) 100%),
      url("assets/images/banner-stigmi-chirourgiou.jpeg") 58% center / cover no-repeat;
  }

  .hero::after,
  .hero-quote {
    display: none;
  }

  .procedure-grid,
  .procedures-page-grid,
  .procedures-page-grid > .wp-block-group__inner-container,
  .trust-grid,
  .info-grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .surgery-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .philosophy-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .philosophy-heading h2 {
    max-width: 700px;
    font-size: 34px;
  }

  .philosophy-image {
    max-width: 560px;
    aspect-ratio: 4 / 3;
  }

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

  .trust-item,
  .info-card {
    padding: 24px;
    border-bottom: 1px solid var(--as-line);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-logo {
    width: min(300px, 64vw);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    gap: 14px;
  }

  .btn {
    width: 100%;
  }

  .procedures {
    margin-top: -28px;
  }

  .procedure-grid,
  .trust-grid,
  .info-grid,
  .posts-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .procedure-card {
    margin-top: 36px;
  }

  .benefit-item,
  .trust-item,
  .info-card {
    border-right: 0;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    min-height: 260px;
  }

  .philosophy-section {
    padding: 46px 0;
  }

  .philosophy-heading h2 {
    font-size: 29px;
  }

  .philosophy-copy {
    font-size: 16px;
    line-height: 1.7;
  }

  .philosophy-closing {
    font-size: 17px;
  }

  .contact-details-panel,
  .contact-form-panel {
    padding: 24px 20px;
  }

  .contact-map iframe {
    height: 170px;
    min-height: 0;
  }

  .contact-map .dpc-media-placeholder {
    min-height: 170px;
    padding: 16px;
  }

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

  .footer-help-card {
    min-height: 0;
  }

  .cv-timeline {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .cv-timeline,
  .cv-timeline > .wp-block-group__inner-container {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
  }

  .cv-timeline > .wp-block-group__inner-container {
    min-width: 1030px;
  }

  .cv-timeline::before {
    display: none;
  }

  .cv-timeline-item {
    padding: 38px 16px 18px;
  }
}

@media (max-width: 420px) {
  .surgery-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero .typing-text::after {
    display: none;
  }

  .hero-motion-ready .hero-lead,
  .hero-motion-ready .hero-actions,
  .hero-motion-ready .hero-quote,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
