/* ================================================================
   PRIMIS CLÍNICA MÉDICA — Theme Stylesheet v2.0
   ================================================================ */

/* ── Fonts ───────────────────────────────────────── */
@font-face {
  font-family: 'Flexo';
  src: url('../fonts/Flexo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Flexo';
  src: url('../fonts/Flexo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ────────────────────────────────── */
:root {
  --primary: #4e008e;
  --primary-light: #6b21a8;
  --primary-lighter: #8b5cf6;
  --primary-dark: #3b0068;
  --primary-bg: rgba(78, 0, 142, 0.04);
  --accent: #c084fc;
  --accent-glow: rgba(139, 92, 246, 0.25);

  --bg: #faf8fc;
  --bg-alt: #f3f0f7;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #5b5675;
  --text-muted: #8c86a0;
  --line: rgba(78, 0, 142, 0.1);
  --line-strong: rgba(78, 0, 142, 0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(30, 0, 60, 0.06);
  --shadow: 0 4px 20px rgba(30, 0, 60, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 0, 60, 0.12);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

  --font-body: 'Flexo', system-ui, -apple-system, sans-serif;
  --font-heading: 'Flexo', system-ui, -apple-system, sans-serif;

  --header-h: 100px;
  --container-w: 1180px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  /* italic ink overflows the line-fragment box → clipped on the right.
     clone the box per line and pad so the slanted last glyph isn't cut. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.12em;
}
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1rem; }
abbr { text-decoration: none; color: var(--primary-lighter); }

/* ── Container ────────────────────────────────────── */
.container {
  width: min(var(--container-w), calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  line-height: 1.3;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(78, 0, 142, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 25px rgba(78, 0, 142, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--ease);
}
.site-header.scrolled {
  background: var(--primary);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(30, 0, 60, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Header text colors when scrolled (purple bg) */
.site-header.scrolled .nav-menu > li > a { color: rgba(255, 255, 255, 0.85); }
.site-header.scrolled .nav-menu > li > a:hover,
.site-header.scrolled .nav-menu > li.current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.site-header.scrolled .brand-name { color: #fff; }
.site-header.scrolled .brand-sub { color: rgba(255, 255, 255, 0.5); }
.site-header.scrolled .brand-logo img { filter: brightness(0) invert(1); }
.site-header.scrolled .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: none;
}
.site-header.scrolled .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}
.site-header.scrolled .mobile-toggle span { background: #fff; }

/* Front page at top: white text on transparent header over dark hero */
.front-page .site-header:not(.scrolled) .nav-menu > li > a { color: rgba(255, 255, 255, 0.85); }
.front-page .site-header:not(.scrolled) .nav-menu > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.front-page .site-header:not(.scrolled) .brand-name { color: #fff; }
.front-page .site-header:not(.scrolled) .brand-sub { color: rgba(255, 255, 255, 0.5); }
.front-page .site-header:not(.scrolled) .brand-logo img { filter: brightness(0) invert(1); }
.front-page .site-header:not(.scrolled) .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.front-page .site-header:not(.scrolled) .btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}
.front-page .site-header:not(.scrolled) .mobile-toggle span { background: #fff; }

/* Non-front pages: header starts with background (content is right below) */
body:not(.front-page) .site-header {
  background: var(--primary);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body:not(.front-page) .site-header .nav-menu > li > a { color: rgba(255, 255, 255, 0.85); }
body:not(.front-page) .site-header .nav-menu > li > a:hover,
body:not(.front-page) .site-header .nav-menu > li.current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
body:not(.front-page) .site-header .brand-name { color: #fff; }
body:not(.front-page) .site-header .brand-sub { color: rgba(255, 255, 255, 0.5); }
body:not(.front-page) .site-header .brand-logo img { filter: brightness(0) invert(1); }
body:not(.front-page) .site-header .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: none;
}
body:not(.front-page) .site-header .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}
body:not(.front-page) .site-header .mobile-toggle span { background: #fff; }

.header-container {
  width: min(var(--container-w), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }

/* Custom Logo (from WP Customizer) */
.brand-logo { flex-shrink: 0; }
.brand-logo a { display: block; line-height: 0; }
.brand-logo img {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.brand-logo a:hover img { transform: scale(1.04); }
.brand-logo--footer img {
  height: 60px;
  max-width: 260px;
  filter: brightness(0) invert(1);
}
@media (max-width: 720px) {
  .brand-logo img { height: 56px; max-width: 200px; }
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  line-height: 1;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-menu > li.menu-item--featured > a {
  color: var(--primary);
  font-weight: 700;
}
.site-header.scrolled .nav-menu > li.menu-item--featured > a,
.front-page .site-header:not(.scrolled) .nav-menu > li.menu-item--featured > a,
body:not(.front-page) .site-header .nav-menu > li.menu-item--featured > a {
  color: var(--accent);
}

.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}
.sub-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero — with real photo BG ────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.call-cost {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.7;
  font-style: italic;
  list-style: none;
}

.hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(26, 26, 46, 0.55) 0%,
      rgba(26, 26, 46, 0.35) 35%,
      rgba(59, 0, 104, 0.30) 70%,
      rgba(78, 0, 142, 0.42) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-content--center {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero-text { color: #fff; }
.hero-content--center .hero-lead { margin-inline: auto; }
.hero-actions--center { justify-content: center; }
.hero-trust--center { justify-content: center; }

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 58ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 1rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.hero-trust--center { justify-content: center; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.trust-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; width: 22px; height: 22px; }
@media (max-width: 720px) {
  .trust-item { font-size: 0.85rem; padding: 0.55rem 0.9rem; }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header { margin-bottom: 3rem; max-width: 640px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.8rem;
  background: linear-gradient(135deg, rgba(78, 0, 142, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Equipa — team grid ───────────────────────────── */
.section-header--center { text-align: center; margin: 0 auto 3rem; max-width: 720px; }
.section-header--center .section-label { margin-bottom: 0.8rem; }
.section-header--center h2 { margin-bottom: 0.8rem; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.team-card {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 0, 60, 0.12);
  border-color: var(--primary-lighter);
}
.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.team-card-link svg { transition: transform 0.2s var(--ease); }
.team-card:hover .team-card-link svg { transform: translateX(3px); }

/* Membro — página individual */
.esp-hero--compact {
  min-height: auto;
  padding: calc(var(--header-h) + 1.75rem) 0 1.5rem;
  background: var(--primary);
}
.member-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.member-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.member-photo img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.member-info .section-label { margin-bottom: 0.8rem; }
.member-name { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 0.2rem; }
.member-degree { display: block; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }
.member-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.member-facts li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 500; }
.member-facts svg { color: var(--primary); flex-shrink: 0; }
.member-facts a { color: var(--primary); font-weight: 600; }
.member-bio { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.75rem; }
.member-areas-title { font-size: 1.2rem; margin-bottom: 1rem; }
.member-areas {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}
.member-areas li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.member-areas svg { color: var(--primary); flex-shrink: 0; }
.member-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.team-card-img {
  flex-shrink: 0;
  width: 120px;
  align-self: stretch;
  border-radius: var(--radius);
  overflow: hidden;
}
.team-card-img img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  display: block;
}
.team-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.6rem 0.4rem 0;
}
.team-card-name { font-size: 1.25rem; margin-bottom: 0.15rem; }
.team-card-degree {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.team-card-meta {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.team-card-meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}
.team-card-meta svg { color: var(--primary); flex-shrink: 0; }
.team-cta { text-align: center; margin-top: 3rem; }

/* ── Implantologia — flagship section ─────────────── */
.section-implanto {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(192, 132, 252, 0.12), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(78, 0, 142, 0.08), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.implanto-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.implanto-text h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.implanto-text .section-label { margin-bottom: 0.9rem; }
.implanto-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}
.implanto-text > p {
  color: var(--text-secondary);
  line-height: 1.75;
}
.implanto-features {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2rem;
  display: grid;
  gap: 0.8rem;
}
.implanto-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.implanto-features li:hover {
  border-color: var(--primary-lighter);
  transform: translateX(2px);
}
.implanto-features svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.implanto-features span { color: var(--text-secondary); }
.implanto-features strong { color: var(--text); }
.implanto-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.implanto-visual {
  position: relative;
}
.implanto-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(78, 0, 142, 0.3);
}
.implanto-img-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.implanto-badge-float {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(78, 0, 142, 0.45);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.implanto-badge-float strong {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.implanto-badge-float span {
  font-size: 0.82rem;
  line-height: 1.25;
  opacity: 0.9;
}

/* ── Vídeo (homepage) ─────────────────────────────── */
.section-video { background: var(--bg-alt); }
.section-video .section-header { margin-bottom: 2.5rem; }
.video-wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(78, 0, 142, 0.35);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Laboratório parceiro ─────────────────────────── */
.section-lab {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Stacking cards (homepage, secções pós-hero) ─── */
.stack-cards {
  position: relative;
}
.stack-card {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(30, 0, 60, 0.12);
}
/* casos-clínicos usa .section simples (sem fundo) → precisa de fundo opaco para cobrir o card anterior */
#casos-clinicos {
  background: var(--bg);
}
/* sem stacking em ecrãs pequenos (sticky alto = mau UX no telemóvel) */
@media (max-width: 768px) {
  .stack-card {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card { position: static; }
}
.lab-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.lab-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(78, 0, 142, 0.25);
}
.lab-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.lab-text h2 { margin-bottom: 1rem; }
.lab-text .section-label { margin-bottom: 0.8rem; }
.lab-text > p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.lab-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.lab-points li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}
.lab-points svg { color: var(--primary); flex-shrink: 0; }

/* ── About — image + text layout ──────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 480px;
}
.about-img-main {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 80%;
}
.about-img-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
  width: 55%;
}
.about-img-secondary img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  top: -20px;
  right: 30px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent), var(--primary-lighter));
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
}

.about-text .section-label { margin-bottom: 0.8rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text > p { color: var(--text-secondary); }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.about-value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.about-value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--primary);
}
.about-value strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.about-value p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── Services — header with image ─────────────────── */
.services-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.services-header .section-desc { margin-bottom: 0; }

.services-feature-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.services-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.services-grid--highlights {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.services-cta {
  margin-top: 2.5rem;
  text-align: center;
}
@media (max-width: 900px) {
  .services-grid--highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid--highlights { grid-template-columns: 1fr; }
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover { color: inherit; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card:hover::before { opacity: 1; }

.service-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 0.6rem;
  transition: color 0.3s var(--ease);
}
.service-card:hover .service-number { color: var(--accent); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.55; }

/* ── Technology — image pair ──────────────────────── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-text .section-label { margin-bottom: 0.8rem; }
.tech-text h2 { margin-bottom: 1rem; }
.tech-text > p { color: var(--text-secondary); }

.tech-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.tech-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.tech-images {
  position: relative;
  min-height: 400px;
}
.tech-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tech-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-img--1 {
  position: relative;
  z-index: 2;
  width: 65%;
  height: 320px;
}
.tech-img--2 {
  position: absolute;
  bottom: -20px;
  right: 0;
  z-index: 3;
  width: 55%;
  height: 260px;
  border: 4px solid var(--surface);
}

/* ── Specialties ──────────────────────────────────── */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.specialty-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.specialty-card:hover { color: inherit; }
.specialty-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.specialty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  flex-shrink: 0;
  color: #fff;
}
.specialty-content { flex: 1; }
.specialty-content h3 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.specialty-content p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }
.specialty-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.specialty-card:hover .specialty-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* ── Stats — photo background ─────────────────────── */
.section-stats {
  position: relative;
  padding: 5rem 0;
  background-image: var(--stats-bg);
  background-size: cover;
  background-position: center;
}
.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(59, 0, 104, 0.92),
    rgba(78, 0, 142, 0.88),
    rgba(107, 33, 168, 0.85));
}
.stats-content { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { color: #fff; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Cases — with photos ──────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-lighter);
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: gap 0.25s var(--ease);
}
.case-card:hover .case-link { gap: 0.7rem; }
.case-card:hover .case-link svg { transform: translateX(2px); }
.case-link svg { transition: transform 0.25s var(--ease); }
.case-visual {
  height: 280px;
  overflow: hidden;
}
.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case-card:hover .case-visual img {
  transform: scale(1.05);
}
.case-info { padding: 1.2rem 1.3rem; }
.case-info h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.case-info p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

/* ── Image Strip ──────────────────────────────────── */
.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  height: 240px;
  overflow: hidden;
}
.strip-item {
  overflow: hidden;
}
.strip-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.strip-item:hover img {
  transform: scale(1.06);
}

/* ── Appointment ──────────────────────────────────── */
.section-appointment {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(78, 0, 142, 0.04), transparent 50%),
    var(--bg);
}
.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.appointment-info .section-label { margin-bottom: 0.8rem; }
.appointment-info h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}
.appointment-info > p { color: var(--text-secondary); margin-bottom: 2rem; }

.appointment-details { display: flex; flex-direction: column; gap: 1.2rem; }
.appointment-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.appointment-detail svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.appointment-detail strong { display: block; font-size: 0.88rem; }
.appointment-detail span { font-size: 0.88rem; color: var(--text-secondary); }
.appointment-detail a { color: var(--primary); }

.appointment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 0; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.form-consent { margin: 0.5rem 0 1.2rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-label a:hover { color: var(--primary-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-lighter);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: var(--surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group select { cursor: pointer; }
.appointment-form .btn { margin-top: 0.5rem; }

/* Honeypot — escondido de humanos, visível para bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Alertas do formulário */
.form-alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.form-alert--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.form-alert--erro {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ── About teaser (homepage) ─────────────────────── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-teaser--reverse .about-teaser-img { order: -1; }
.about-teaser-text h2 { margin-bottom: 1rem; }
.about-teaser-text p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  max-width: 50ch;
}
.about-teaser-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about-teaser:hover .about-teaser-img img { transform: scale(1.04); }
@media (max-width: 860px) {
  .about-teaser { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-teaser--reverse .about-teaser-img { order: 0; }
}

/* ── Map ──────────────────────────────────────────── */
.map-section { border-top: 1px solid var(--line); }
.map-section iframe {
  width: 100%;
  filter: saturate(0.8) contrast(1.05);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top { padding: 4rem 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.4); }
.footer-desc {
  margin: 1rem 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s var(--ease);
}
.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col address {
  font-style: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col address svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.schedule li:last-child { border-bottom: none; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}
.contact-list svg { color: var(--accent); flex-shrink: 0; }
.contact-list a { color: rgba(255, 255, 255, 0.7); }
.contact-list a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.4); }
.footer-bottom p a { color: rgba(255, 255, 255, 0.7); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom p a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.4); }
.footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }

/* ── WhatsApp Float ───────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease);
  color: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ── Cookie Consent ───────────────────────────────── */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  max-width: 720px;
  margin-inline: auto;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-consent-text { flex: 1; min-width: 240px; }
.cookie-consent-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.cookie-consent-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.cookie-consent-text a { font-weight: 600; text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-consent-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
@media (max-width: 600px) {
  .cookie-consent { padding: 1rem; bottom: 0.6rem; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}

/* ── Post / Page content ──────────────────────────── */
.post-card,
.page-content article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.page-content { padding-top: calc(var(--header-h) + 2rem); }

/* ── Blog Hero ────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  overflow: hidden;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.blog-hero-content h1 { color: #fff; margin-bottom: 0.5rem; }
.blog-hero-content .section-label {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent);
}
.blog-hero-lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin: 0;
  max-width: 50ch;
}

/* Blog layout */
.blog-section { padding-top: 3rem; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

/* Section header row (title + button side by side) */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-header-row .section-header { margin-bottom: 0; }
.section-header-row .btn { flex-shrink: 0; }

/* Blog card */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.blog-card-img {
  display: block;
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card-cat {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.blog-card-body h2 a,
.blog-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
  color: var(--primary);
}
.blog-card-body > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.blog-read-more svg {
  transition: transform 0.2s var(--ease);
}
.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* Blog pagination */
.blog-pagination {
  margin-top: 3rem;
}
.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.blog-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
}
.blog-empty h2 { margin-bottom: 0.5rem; }
.blog-empty p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Blog sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}
.sidebar-card h4 {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-card > p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ── Single Post ──────────────────────────────────── */
.single-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.single-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.single-hero-bg-img,
.single-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(59, 0, 104, 0.65) 60%,
    rgba(78, 0, 142, 0.4) 100%);
}
.single-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.single-hero-content h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 700px;
  margin-bottom: 0.8rem;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.single-meta-sep { color: rgba(255, 255, 255, 0.3); }
.single-cat {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.single-content-section { padding-top: 3rem; }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ── Comments ─────────────────────────────────────── */
.single-comments {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

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

.comment-item {
  margin-bottom: 1.5rem;
}
.comment-item .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
  border-left: 2px solid var(--line);
}

.comment-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.comment-author {
  display: block;
  font-size: 0.92rem;
}
.comment-date {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.comment-content p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: 0.5rem; }
.comment-reply a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* Comment form */
.comments-area .comment-respond {
  margin-top: 2rem;
}
.comments-area .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.comments-area .comment-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.comments-area label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s var(--ease);
  margin-bottom: 1rem;
}
.comments-area input:focus,
.comments-area textarea:focus {
  outline: none;
  border-color: var(--primary-lighter);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: var(--surface);
}
.comments-area .form-submit {
  margin-top: 0.5rem;
}

/* ── Legal Pages ──────────────────────────────────── */
.legal-hero {
  padding: calc(var(--header-h) + 3rem) 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin-bottom: 0.3rem;
}
.legal-hero .breadcrumb a,
.legal-hero .breadcrumb span { color: var(--text-secondary); }
.legal-hero .breadcrumb-sep { color: var(--text-muted); }
.legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.legal-content { padding-top: 3rem; }
.legal-body {
  max-width: 780px;
}

/* ── Specialty parent: intro + children grid ──────── */
.esp-intro {
  max-width: 780px;
  margin-bottom: 3rem;
}

.esp-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.esp-child-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.esp-child-card:hover {
  color: inherit;
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.esp-child-img {
  height: 180px;
  overflow: hidden;
}
.esp-child-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.esp-child-card:hover .esp-child-img img {
  transform: scale(1.05);
}
.esp-child-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
  color: var(--text-muted);
}

.esp-child-body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.esp-child-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.esp-child-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
  flex: 1;
}
.esp-child-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}
.esp-child-link svg {
  transition: transform 0.2s var(--ease);
}
.esp-child-card:hover .esp-child-link svg {
  transform: translateX(4px);
}

/* ── Btn Outline (for specialty sidebar) ──────────── */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Specialty Page Template ──────────────────────── */
.esp-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.esp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.esp-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.esp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(59, 0, 104, 0.7) 50%,
    rgba(78, 0, 142, 0.5) 100%);
}
.esp-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.esp-hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}
.esp-hero-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 55ch;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, 0.9); }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }

/* Specialty content layout */
.esp-content-section { padding-top: 3rem; }
.esp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.esp-main { min-width: 0; }
.esp-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.esp-body h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.esp-body h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.esp-body p { color: var(--text-secondary); }
.esp-body ul, .esp-body ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}
.esp-body li { margin-bottom: 0.4rem; }
.esp-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.esp-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--primary-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

/* Sidebar cards */
.esp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.esp-cta-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.esp-cta-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.esp-cta-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.esp-cta-card .btn {
  margin-bottom: 0.6rem;
}
.esp-cta-card .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: none;
}
.esp-cta-card .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}
.esp-cta-card .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.esp-cta-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.esp-info-card,
.esp-related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}
.esp-info-card h4,
.esp-related-card h4 {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.esp-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.esp-info-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.esp-info-list svg { color: var(--primary); flex-shrink: 0; }
.esp-info-list a { color: var(--primary); }

.esp-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.esp-related-list li {
  border-bottom: 1px solid var(--line);
}
.esp-related-list li:last-child { border-bottom: none; }
.esp-related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.esp-related-list a:hover {
  color: var(--primary);
  padding-left: 0.3rem;
}
.esp-related-list svg {
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.esp-related-list a:hover svg {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── Animations ───────────────────────────────────── */
/* AOS handles scroll reveals. Reduce motion respected via AOS init. */
@keyframes primis-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.whatsapp-float { animation: primis-float 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
  .hero-bg-img { transform: none !important; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-images { min-height: 360px; }
  .tech-layout { grid-template-columns: 1fr; gap: 2rem; }
  .tech-images { min-height: 360px; }
  .implanto-layout { grid-template-columns: 1fr; gap: 3rem; }
  .implanto-img-main img { height: 380px; }
  .implanto-badge-float { left: 16px; bottom: -18px; padding: 1rem 1.2rem; }
  .implanto-badge-float strong { font-size: 1.8rem; }
  .lab-layout { grid-template-columns: 1fr; gap: 2rem; }
  .lab-img img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .esp-layout { grid-template-columns: 1fr; }
  .esp-sidebar { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .single-layout { grid-template-columns: 1fr; }
  .blog-grid--home { grid-template-columns: repeat(2, 1fr); }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  body.nav-open .site-header { z-index: 200; background: var(--primary); }
  body.nav-open .site-header .brand-logo img { filter: brightness(0) invert(1); }
  body.nav-open .header-actions { z-index: 201; position: relative; }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 150;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }

  /* Force toggle spans white when nav open, regardless of header state */
  .site-header .mobile-toggle[aria-expanded="true"] span { background: #fff !important; }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 360px;
  }
  .nav-menu > li { width: 100%; text-align: center; }
  .nav-menu > li > a {
    display: block;
    font-size: 1.25rem;
    padding: 0.85rem 1.2rem;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
    border-radius: var(--radius-sm);
  }
  .nav-menu > li > a:hover,
  .nav-menu > li.current-menu-item > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
  .nav-menu > li.menu-item--featured > a { color: var(--accent) !important; }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: inherit;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    text-align: center;
  }
  .sub-menu a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7) !important;
  }
  .sub-menu a:hover { color: #fff !important; background: rgba(255, 255, 255, 0.08) !important; }

  .header-actions .btn { display: none; }

  .services-header { grid-template-columns: 1fr; }
  .services-feature-img { width: 100%; height: 180px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cases-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .appointment-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .member-photo { position: static; max-width: 320px; }
  .member-areas { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: repeat(2, 1fr); height: 180px; }
  .strip-item img { height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .hero { padding: calc(var(--header-h) + 2rem) 0 3rem; min-height: 80vh; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid, .blog-grid--home { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .appointment-form { padding: 1.2rem; }
  .about-images { min-height: 300px; }
  .about-img-main { width: 75%; }
  .about-img-main img { height: 260px; }
  .about-img-secondary { width: 60%; }
  .about-img-secondary img { height: 200px; }
  .tech-images { min-height: 300px; }
  .tech-img--1 { height: 250px; }
  .tech-img--2 { height: 200px; }
  .image-strip { height: 140px; }
  .strip-item img { height: 140px; }
}
