/* ============================================
   Vladimír Melík – melv.cz
   ============================================ */

:root {
  --c-navy: #2B3A67;
  --c-teal: #1E5F74;
  --c-green: #3A9679;
  --c-darkteal: #183D3D;

  --gradient: linear-gradient(135deg, var(--c-navy), var(--c-teal), var(--c-green), var(--c-darkteal));
  --gradient-soft: linear-gradient(135deg, rgba(43,58,103,0.06), rgba(30,95,116,0.06), rgba(58,150,121,0.06));

  --ink: #14212a;
  --ink-soft: #4c5c66;
  --ink-faint: #7c8b93;
  --bg: #f7f9f9;
  --bg-alt: #ffffff;
  --border: #e3e9ea;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container-w: 1180px;
  --shadow-sm: 0 2px 10px rgba(20, 33, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 33, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 33, 42, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

section[id] { scroll-margin-top: 84px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--c-navy); border-color: var(--c-navy); box-shadow: var(--shadow-md); }

.btn-light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--c-navy);
}
.btn-light:hover { background: transparent; color: #fff; box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

.btn-nav { margin-left: 8px; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background-color 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 249, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(20,33,42,0.06);
}
/* backdrop-filter would confine the fixed mobile menu to the header's height */
.site-header.nav-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  position: relative;
  z-index: 410;
}
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.is-scrolled .brand-name { color: var(--ink); }
.nav-open .brand-name { color: #fff; }
.nav-open .nav-toggle span { background: #fff; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.is-scrolled .nav-link { color: var(--ink-soft); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link:hover { color: #fff; }
.is-scrolled .nav-link:hover { color: var(--c-navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 410;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-active span { background: #fff; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 80px;
  isolation: isolate;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gradient);
  background-size: 300% 300%;
  animation: gradientShift 18s ease infinite;
}
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08), transparent 45%);
}

@keyframes gradientShift {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

.hero-inner {
  text-align: center;
  color: #fff;
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 4px;
}
.stat dd {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 3px;
  margin: 7px auto 0;
  animation: scrollCue 2s ease infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ============ Trust strip ============ */
.trust-strip {
  padding: 56px 0 64px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trust-strip .trust-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 56px;
}
.logo-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.logo-track img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s var(--ease);
}
.logo-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Sections (generic) ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin: 0 0 12px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.85); }

.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-title.light { color: #fff; }

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 18px;
}
.section-lead.light { color: rgba(255,255,255,0.88); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.about-media { position: relative; }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24,61,61,0.55));
}
.about-photo { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border);
}
.about-badge-number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-badge-text {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 2px;
}

.about-content .section-title { margin-bottom: 28px; }
.about-content p { color: var(--ink-soft); font-size: 1.03rem; }

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.trait-list li {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--gradient-soft);
  color: var(--c-darkteal);
  border: 1px solid var(--border);
}

.cert-block {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cert-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cert-row img {
  height: 88px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.cert-row img:hover { transform: translateY(-3px); }

/* ============ Services ============ */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  counter-reset: service;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  counter-increment: service;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient);
}
.service-card::after {
  content: "0" counter(service);
  position: absolute;
  top: 26px;
  right: 34px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 4.6rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.16;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::after { opacity: 0.32; }

.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--gradient);
  color: #fff;
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-3deg); }
.service-icon svg { width: 32px; height: 32px; }

.service-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.service-card p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.service-card p strong {
  font-weight: 700;
  color: var(--c-teal);
}
.service-card p + p {
  margin: auto 0 0;
  padding: 16px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--gradient-soft);
  border-left: 3px solid var(--c-green);
  border-radius: var(--radius-sm);
}

/* ============ Reference carousel ============ */
.carousel { margin-top: 56px; position: relative; }

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding: 8px 24px 24px;
  scrollbar-width: none;
}
.carousel-track.is-free { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) {
  .carousel-track { cursor: grab; user-select: none; -webkit-user-select: none; }
  .carousel-track.is-dragging { cursor: grabbing; }
  .carousel-track img { -webkit-user-drag: none; }
}
.carousel-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 86vw);
  min-width: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 24px;
  position: relative;
}
.testimonial-quote strong {
  font-weight: 700;
  color: var(--ink);
}
.testimonial-quote.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  line-clamp: 11;
  overflow: hidden;
  flex-grow: 0;
  margin-bottom: 10px;
}
.testimonial-more + .testimonial-footer { margin-top: 20px; }
.testimonial-more {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 2px 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-teal);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.testimonial-more:hover { color: var(--c-green); }

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-person {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  min-width: 0;
}
.testimonial-person strong {
  font-size: 0.9rem;
  font-family: 'Manrope', sans-serif;
}
.testimonial-person span {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.3;
}
.testimonial-logo {
  height: 24px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  color: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; transform: translateY(-2px); }
.carousel-btn svg { width: 20px; height: 20px; }

.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-dots button.is-active {
  background: var(--gradient);
  transform: scale(1.3);
}

/* ============ Působnost ============ */
.section-locality {
  background: var(--bg-alt);
  text-align: center;
}
.locality-inner { display: flex; flex-direction: column; align-items: center; }
.locality-icon {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--c-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.locality-icon svg { width: 38px; height: 38px; }
.locality-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-green);
  animation: ping 2.4s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
.section-locality .section-lead { margin-left: auto; margin-right: auto; }

/* ============ Kontakt ============ */
.section-contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient);
  background-size: 250% 250%;
  animation: gradientShift 22s ease infinite;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--c-darkteal);
  color: rgba(255,255,255,0.85);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; }

.footer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-contact a { transition: color 0.25s var(--ease); }
.footer-contact a:hover { color: var(--c-green); }
.footer-contact span { color: rgba(255,255,255,0.6); font-weight: 400; }

.footer-meta { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-meta p { margin: 0; }

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-gradient, .contact-gradient, .logo-track, .scroll-cue span, .locality-ping { animation: none; }
}

/* ============ Responsive ============ */
.nav-mobile-only { display: none; }

/* ============ Switch between melv.cz and ai.melv.cz (self-contained, same code on both sites) ============ */
.site-switch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: #14212a;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #2B3A67, #1E5F74, #3A9679) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 33, 42, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-switch:hover {
    color: #14212a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 33, 42, 0.2);
  }
  .site-switch:hover svg { transform: translateX(3px); }
}
.site-switch:focus-visible { outline: 2px solid #3A9679; outline-offset: 3px; }
.site-switch svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #1E5F74;
  transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
  .site-switch {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    padding: 8px 11px 8px 13px;
    font-size: 12px;
  }
  /* Larger tap area than the visible pill */
  .site-switch::after {
    content: "";
    position: absolute;
    inset: -6px;
  }
  .site-switch svg { width: 13px; height: 13px; }
  /* Out of the way while reading: hidden when scrolling down */
  .site-switch.is-hidden:not(:focus-visible) {
    opacity: 0;
    transform: translateY(calc(100% + 16px));
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-switch,
  .site-switch svg { transition: none; }
}

@media print {
  .site-switch { display: none; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--c-darkteal);
    padding: 110px 32px 40px;
    z-index: 400;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 8px; }
  .main-nav.is-open .nav-mobile-only { display: block; }
  .main-nav.is-open .nav-link {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
}

@media (max-width: 480px) {
  .testimonial-quote.is-clamped { -webkit-line-clamp: 14; line-clamp: 14; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 34px 24px 26px; }
  .service-card::after { font-size: 3.6rem; top: 22px; right: 22px; }
  .cert-row img { height: 76px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .about-badge { position: relative; z-index: 2; right: auto; bottom: auto; margin-top: -40px; margin-left: 20px; display: inline-block; }
  .testimonial-card { flex-basis: 88vw; }
}
