/*
Theme Name: Iancu Chirurgie
Theme URI: https://ordination-iancu.at
Author: Golden Lobster
Author URI: https://goldenlobster.ro/de
Description: Custom theme for Ordination Iancu — Facharzt für Chirurgie
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: iancu-chirurgie
*/

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

:root {
  --teal: #0cb8b6;
  --teal-dark: #0a9b99;
  --teal-light: rgba(12, 184, 182, 0.08);
  --teal-mid: rgba(12, 184, 182, 0.18);
  --navy: #0f1f3d;
  --navy-soft: #1e3358;
  --bg: #f5f7fb;
  --bg-white: #ffffff;
  --bg-soft: #eef1f7;
  --text: #0f1f3d;
  --text-mid: #445577;
  --text-muted: #8899bb;
  --border: rgba(15, 31, 61, 0.08);
  --border-mid: rgba(15, 31, 61, 0.14);
  --shadow-sm: 0 2px 12px rgba(15,31,61,0.06);
  --shadow-md: 0 8px 40px rgba(15,31,61,0.10);
  --shadow-lg: 0 24px 80px rgba(15,31,61,0.13);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;

}

/* ─── PROGRESS ─── */
#prog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: var(--teal); transform-origin: left; transform: scaleX(0);
  transition: transform 0.08s;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  padding: 22px 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 64px;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

/* White nav on inner pages (dark header) when not scrolled */
body:not(.home) nav:not(.scrolled) .logo-light { color: #fff; }
body:not(.home) nav:not(.scrolled) .logo-bold { color: var(--teal); }
body:not(.home) nav:not(.scrolled) .logo-sep { background: rgba(255,255,255,0.25); }
body:not(.home) nav:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.5); }
body:not(.home) nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.75); }
body:not(.home) nav:not(.scrolled) .nav-links a:hover { color: #fff; }
body:not(.home) nav:not(.scrolled) .nav-hamburger span { background: #fff; }

/* TEXT LOGO */
.logo {
  text-decoration: none;
  display: flex; align-items: baseline; gap: 0;
  line-height: 1;
}
.logo-light {
  font-size: 1.05rem; font-weight: 300;
  letter-spacing: 0.04em; color: var(--navy);
}
.logo-bold {
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.01em; color: var(--teal);
}
.logo-sep {
  width: 1px; height: 16px;
  background: var(--border-mid);
  margin: 0 12px; align-self: center;
}
.logo-sub {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  position: relative; z-index: 220;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span { background: var(--navy); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
#mobile-menu {
  display: flex;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 205;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; opacity: 0; visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}
#mobile-menu.open {
  opacity: 1; visibility: visible;
  transform: translateY(0); pointer-events: all;
}
#mobile-menu ul {
  list-style: none; display: flex; flex-direction: column;
  align-items: center; gap: 6px; width: 100%;
}
#mobile-menu ul li a {
  display: block; padding: 14px 32px;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy); text-decoration: none;
  text-align: center; transition: color 0.2s;
}
#mobile-menu ul li a:hover { color: var(--teal); }
#mobile-menu .mobile-cta {
  margin-top: 28px;
  background: var(--teal); color: #fff !important;
  padding: 16px 44px !important; border-radius: 4px;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 22px rgba(12,184,182,0.3);
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-mid); text-decoration: none;
  font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important; color: #fff !important;
  padding: 10px 22px; border-radius: 3px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 4px 18px rgba(12,184,182,0.28);
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 28px rgba(12,184,182,0.38) !important;
}

/* ─── SECTION LAYOUT ─── */
section { position: relative; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 96px 64px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 700;
  color: var(--teal); margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 26px; height: 1px; background: var(--teal); }
.section-h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--navy);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 1.75; max-width: 540px;
}

/* ─── BUTTONS ─── */
.btn-teal {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal); color: #fff;
  padding: 15px 30px; text-decoration: none;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  box-shadow: 0 4px 22px rgba(12,184,182,0.3);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(12,184,182,0.38); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--border-mid);
  color: var(--text-mid); background: var(--bg-white);
  padding: 14px 26px; text-decoration: none;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
  transition: border-color 0.22s, background 0.22s, transform 0.18s, color 0.22s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--navy);
  padding: 14px 28px; text-decoration: none;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.btn-white:hover { background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ─── PAGE HEADER (for inner pages) ─── */
.page-header {
  padding: 160px 64px 80px;
  background: linear-gradient(135deg, #0f1f3d 0%, #152a4d 40%, #0f1f3d 70%, #132847 100%);
  background-size: 300% 300%;
  animation: header-gradient 12s ease infinite;
  position: relative; overflow: hidden;
}
@keyframes header-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.page-header::after {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(12,184,182,0.06);
  pointer-events: none;
}
/* animated floating orbs */
.page-header::before {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,184,182,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: header-orb-1 8s ease-in-out infinite;
}
.page-header-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
@keyframes header-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}
.page-header-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.page-header .section-tag { color: var(--teal); }
.page-header .section-tag::before { background: var(--teal); }
.page-header-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.025em; margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 60%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header-sub {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 560px;
}

/* ─── CONTENT BLOCKS ─── */
.content-section { background: var(--bg-white); }
.content-section:nth-child(even) { background: var(--bg); }
.content-text { font-size: 0.93rem; color: var(--text-mid); line-height: 1.82; margin-bottom: 14px; }
.content-text strong { color: var(--navy); font-weight: 700; }

.content-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.content-list li {
  font-size: 0.88rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 14px;
  line-height: 1.7; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.25s, padding-left 0.25s, border-color 0.25s;
}
.content-list li:last-child { border-bottom: none; }
.content-list li:hover {
  background: var(--teal-light);
  padding-left: 22px;
  border-color: transparent;
}
.content-list li::before {
  content: ''; display: block; width: 18px; height: 1.5px;
  background: var(--teal); flex-shrink: 0; margin-top: 11px;
  transition: width 0.25s, background 0.25s;
}
.content-list li:hover::before { width: 28px; }
.content-list li strong { color: var(--navy); font-weight: 600; transition: color 0.25s; }
.content-list li:hover strong { color: var(--teal-dark); }

/* ─── UNIFIED CARD BASE ─── */
/* shared base for ALL cards: link-card, article-card, service-card, team-card */
.link-card, .article-card, .service-card, .team-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
/* shine sweep on ALL cards */
.link-card::after, .article-card::after, .service-card::after, .team-card::after {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(12,184,182,0.06) 45%, rgba(255,255,255,0.13) 50%, rgba(12,184,182,0.06) 55%, transparent 60%);
  transform: rotate(25deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.link-card:hover::after, .article-card:hover::after, .service-card:hover::after, .team-card:hover::after { left: 130%; }
/* unified hover lift + shadow + border */
.link-card:hover, .article-card:hover, .service-card:hover, .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(12,184,182,0.15), var(--shadow-md);
  border-color: var(--teal);
}

/* ─── GRID CARDS (for sub-page links) ─── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.link-card {
  background: var(--bg);
  padding: 36px 30px;
  text-decoration: none; color: inherit;
}
.link-card-num {
  font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--teal); font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px;
  transition: letter-spacing 0.3s;
}
.link-card:hover .link-card-num { letter-spacing: 0.28em; }
.link-card-title {
  font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 10px;
  transition: color 0.25s;
}
.link-card:hover .link-card-title { color: var(--teal-dark); }
.link-card-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; }
.link-card-arrow {
  font-size: 0.8rem; color: var(--teal); margin-top: 16px; display: block; font-weight: 700;
  transition: transform 0.25s, letter-spacing 0.25s;
}
.link-card:hover .link-card-arrow { transform: translateX(6px); letter-spacing: 0.06em; }

/* link-card with image variant */
.link-card--has-img { padding: 0; }
.link-card--has-img .link-card-body { padding: 20px 24px 24px; }
.link-card-img {
  aspect-ratio: 4/3; overflow: hidden;
}
.link-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s cubic-bezier(.2,.8,.3,1);
}
.link-card--has-img:hover .link-card-img img { transform: scale(1.05); }

/* ─── SERVICE CARDS (homepage) ─── */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.service-card {
  background: var(--bg);
  text-decoration: none; color: inherit;
}
.service-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  display: block; transition: transform 0.4s;
  position: relative; z-index: 0;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-body { padding: 22px 22px 26px; position: relative; z-index: 1; }
.service-card-num {
  font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--teal); font-weight: 700;
  text-transform: uppercase; margin-bottom: 8px;
  transition: letter-spacing 0.3s;
}
.service-card:hover .service-card-num { letter-spacing: 0.28em; }
.service-card-title {
  font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px;
  transition: color 0.25s;
}
.service-card:hover .service-card-title { color: var(--teal-dark); }
.service-card-desc { font-size: 0.8rem; color: var(--text-mid); line-height: 1.65; }

/* ─── TEAM CARDS (homepage) ─── */
.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.team-card {
  background: var(--bg-white);
}
.team-card-top {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #e8edf7 0%, #d4ddf0 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.team-card-featured .team-card-top { aspect-ratio: 1/1; }
.team-initial { font-size: 3.5rem; font-weight: 900; color: var(--navy); opacity: 0.1; user-select: none; }
.team-card-top img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  display: block; transition: transform 0.4s;
}
.team-card:hover .team-card-top img { transform: scale(1.04); }
.team-card-body { padding: 16px 18px 20px; }
.team-card-name { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; transition: color 0.25s; }
.team-card:hover .team-card-name { color: var(--teal-dark); }
.team-card-role { font-size: 0.63rem; letter-spacing: 0.1em; color: var(--teal); text-transform: uppercase; font-weight: 600; }

/* ─── ARTICLE CARDS (fachinfos) ─── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.article-card {
  background: var(--bg-white);
  padding: 32px 28px;
}
.article-date {
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; margin-bottom: 12px;
  transition: color 0.25s;
}
.article-card:hover .article-date { color: var(--teal); }
.article-title {
  font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 12px;
  transition: color 0.25s;
}
.article-card:hover .article-title { color: var(--teal-dark); }
.article-excerpt { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; }
a.article-card { display: block; text-decoration: none; color: inherit; }
a.article-card .link-card-arrow {
  font-size: 0.78rem; color: var(--teal); margin-top: 14px;
  display: block; font-weight: 700;
  transition: transform 0.25s, letter-spacing 0.25s;
}
a.article-card:hover .link-card-arrow { transform: translateX(6px); letter-spacing: 0.06em; }

/* ─── FACHINFOS LOADER ─── */
.fachinfos-loader {
  display: none; text-align: center; padding: 40px 0;
}
.fachinfos-loader.active { display: block; }
.fachinfos-loader-text {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.fachinfos-loader-text::before {
  content: ''; display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── PRICING (tarife page) ─── */
.pricing-section { background: var(--bg-white); }
.pricing-category { margin-bottom: 60px; }
.pricing-cat-title {
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--teal);
}
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table thead th {
  text-align: left; padding: 0 0 14px;
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 700; border-bottom: 1px solid var(--border-mid);
}
.pricing-table thead th:last-child { text-align: right; }
.pricing-table td {
  padding: 16px 0; font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { color: var(--navy); font-weight: 500; }
.pricing-table td:last-child { text-align: right; font-weight: 700; color: var(--teal); }
.pricing-table tbody tr {
  transition: background 0.2s, transform 0.2s;
  border-radius: 6px;
}
.pricing-table tbody tr:hover {
  background: var(--teal-light);
}
.pricing-table tbody tr:hover td:last-child { color: var(--teal-dark); }
.pricing-note {
  margin-top: 22px; padding: 14px 18px;
  background: var(--teal-light); border-radius: 6px;
  font-size: 0.75rem; color: var(--text-mid);
  line-height: 1.6; border-left: 3px solid var(--teal);
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--navy); border-radius: 12px;
  padding: 56px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.3s;
}
.cta-banner:hover { transform: scale(1.01); }
.cta-banner::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(12,184,182,0.07); pointer-events: none;
  animation: cta-orb 6s ease-in-out infinite;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(12,184,182,0.05); pointer-events: none;
  animation: cta-orb 8s ease-in-out infinite reverse;
}
@keyframes cta-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(20px, -15px) scale(1.2); opacity: 1; }
}
.cta-banner-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800; color: #fff;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.cta-banner-sub {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; position: relative; z-index: 1;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 56px 64px 36px;
  color: rgba(255,255,255,0.55);
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo-text { margin-bottom: 12px; }
.footer-logo-light { font-size: 1.1rem; font-weight: 300; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.footer-logo-bold { font-size: 1.1rem; font-weight: 800; color: var(--teal); }
.footer-brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.3); line-height: 1.6; }
.footer-col h4 {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.72rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 0.75rem;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* staggered card entrance from different directions */
.link-card.reveal, .article-card.reveal, .service-card.reveal, .team-card.reveal { transform: translateY(40px) scale(0.97); }
.link-card.reveal.visible, .article-card.reveal.visible, .service-card.reveal.visible, .team-card.reveal.visible { transform: translateY(0) scale(1); }

/* ─── PROTECTION ─── */
#hotz-msg {
  position: fixed; z-index: 9000;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(15,31,61,0.25);
  border-left: 3px solid var(--teal);
  opacity: 0; transform: translateY(6px) scale(0.95);
  transition: opacity 0.18s, transform 0.18s;
}
#hotz-msg.show { opacity: 1; transform: translateY(0) scale(1); }
img {
  -webkit-user-drag: none;
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
}
a img, button img { pointer-events: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .link-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 70px 24px; }
  .page-header { padding: 120px 24px 60px; }
  .page-header-title { font-size: 2rem; }
  .link-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(1,1fr); }
  .cta-banner { padding: 40px 24px; }
  footer { padding: 40px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ─── MARQUEE STRIP ─── */
.marquee-strip { background: var(--navy); padding: 16px 0; overflow: hidden; position: relative; z-index: 1; }
.marquee-track {
  display: flex; gap: 48px; align-items: center;
  animation: marquee 60s linear infinite; width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── GUTENBERG CONTENT OVERRIDES ─── */
/* Map Gutenberg default classes to theme classes so blog content looks identical to static HTML */
.content-section .section-inner p {
  font-size: 0.93rem; color: var(--text-mid); line-height: 1.82; margin-bottom: 14px;
}
.content-section .section-inner p strong { color: var(--navy); font-weight: 700; }
.content-section .section-inner h2,
.content-section .section-inner h2.wp-block-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--navy);
  margin-bottom: 14px; margin-top: 40px;
}
.content-section .section-inner h2:first-child { margin-top: 0; }
.content-section .section-inner ul.wp-block-list {
  list-style: none; display: flex; flex-direction: column; gap: 3px; margin: 20px 0;
}
.content-section .section-inner ul.wp-block-list li {
  font-size: 0.88rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 14px;
  line-height: 1.7; padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.25s, padding-left 0.25s, border-color 0.25s;
}
.content-section .section-inner ul.wp-block-list li:last-child { border-bottom: none; }
.content-section .section-inner ul.wp-block-list li:hover {
  background: var(--teal-light); padding-left: 22px; border-color: transparent;
}
.content-section .section-inner ul.wp-block-list li::before {
  content: ''; display: block; width: 18px; height: 1.5px;
  background: var(--teal); flex-shrink: 0; margin-top: 11px;
  transition: width 0.25s, background 0.25s;
}
.content-section .section-inner ul.wp-block-list li:hover::before { width: 28px; }
.content-section .section-inner ul.wp-block-list li strong { color: var(--navy); font-weight: 600; transition: color 0.25s; }
.content-section .section-inner ul.wp-block-list li:hover strong { color: var(--teal-dark); }

/* ─── LIGHTBOX ─── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: opacity 0.25s;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-overlay img.lb-loading { opacity: 0; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute; background: none; border: none;
  color: #fff; cursor: pointer; z-index: 10001;
  font-size: 1.6rem; line-height: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.12);
}
.lightbox-close { top: 16px; right: 16px; font-size: 2rem; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.5px;
}
@media (max-width: 767px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-overlay img { max-width: 96vw; max-height: 80vh; }
}

/* Gallery block — make images clickable */
.wp-block-gallery .wp-block-image { cursor: pointer; }
.wp-block-gallery .wp-block-image img {
  transition: transform 0.3s, box-shadow 0.3s;
}
.wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ─── FOOTER CREDIT ─── */
.footer-credit {
  text-align: center; padding-top: 20px;
  font-size: 0.68rem; color: rgba(255,255,255,0.25);
}
.footer-credit a {
  color: #ffffff; text-decoration: none;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--teal); }
@media (max-width: 767px) {
  .content-list li {
    /* flex-direction: column!important; */
        display: inline-block !important;
  }
  .content-section .section-inner ul.wp-block-list li::before,
  .content-list li::before {
    position: absolute;
    left: 18px;
    width: 10px;
    height: 1px;
  }
}
.content-section .gallery {
      display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
}
.gallery-item {
  border-radius: 5px;
  overflow: hidden;
}