/* SUBLITEX.cz — V2
   Barevnost vychází z aktuální prezentace BUĎ V OBRAZE:
   teplá žlutá, antracit, černá, šedá, bílá.
*/

:root {
  --accent: #f7c249;
  --accent-strong: #e5ae3f;
  --ink: #141414;
  --anthracite: #303030;
  --anthracite-soft: #383838;
  --gray-900: #303030;
  --gray-700: #606060;
  --gray-500: #9b9b9b;
  --gray-300: #d9d9d9;
  --gray-200: #e9e9e9;
  --gray-100: #f5f5f5;
  --white: #fcfcfc;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(0,0,0,.10);
  --shadow-soft: 0 2px 10px rgba(0,0,0,.08);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-140%);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section { padding: 88px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252,252,252,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247,194,73,.9);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-main {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -.045em;
}

.brand-suffix {
  font-size: .82rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 38px);
  font-size: .95rem;
  font-weight: 750;
}

.main-nav a {
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.45rem;
  height: 2px;
  background: var(--accent);
  transition: right var(--transition);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.hero {
  padding-top: 58px;
  padding-bottom: 44px;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.split-grid-reverse .section-copy { order: 2; }
.split-grid-reverse .media-card { order: 1; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gray-700);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 99px;
}

.eyebrow-light { color: rgba(255,255,255,.72); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6.2vw, 5.45rem);
  letter-spacing: -.055em;
  font-weight: 900;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -.04em;
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  font-weight: 750;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.hero-emphasis {
  margin-bottom: 0;
  font-weight: 900;
}

.hero-actions { margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.button-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

.media-card {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--gray-100);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-media,
.hero-media img { min-height: 500px; }

.facts {
  border-block: 1px solid var(--gray-200);
  background: #f3f3f3;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.fact {
  min-height: 110px;
  padding: 27px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--gray-300);
}

.fact:last-child { border-right: 0; }
.fact strong {
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.2;
}
.fact > span {
  margin-top: 4px;
  color: var(--gray-700);
  font-size: .9rem;
}
.fact-counter strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.025em;
}
.fact-counter .counter {
  color: var(--ink);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247,194,73,.9);
  box-shadow: 0 7px 18px rgba(0,0,0,.08);
}

.service-number {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 24px;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.service-card p,
.section-copy p { color: var(--gray-700); }

.section-dark {
  background: var(--anthracite);
  color: var(--white);
}

.section-dark .section-copy p { color: rgba(255,255,255,.78); }

.history {
  padding: 42px 0;
  border-block: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.history-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.history-mark {
  display: grid;
  place-items: center;
  width: 100px;
  aspect-ratio: 1;
  border: 3px solid var(--accent);
  border-radius: 50%;
  font-weight: 950;
  font-size: 1.35rem;
}

.history h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.history p {
  margin-bottom: 0;
  color: var(--gray-700);
}

.contact-section { padding-bottom: 72px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

.contact-block {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-300);
}

.contact-block:last-child { border-right: 0; }

.contact-block h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-block p,
.contact-block address {
  margin: 0;
  color: var(--gray-700);
  font-style: normal;
}

.contact-block a { font-weight: 800; }

.site-footer {
  padding: 26px 0;
  background: var(--anthracite);
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

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

.footer-inner p { margin: 0; }

@media (max-width: 980px) {
  .main-nav { gap: 18px; font-size: .88rem; }

  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-grid-reverse .section-copy,
  .split-grid-reverse .media-card { order: initial; }

  .hero-media,
  .hero-media img { min-height: 420px; }

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

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

  .contact-block:nth-child(2) { border-right: 0; }

  .contact-block:nth-child(-n+2) { border-bottom: 1px solid var(--gray-300); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 110px; }

  .container { width: min(calc(100% - 28px), var(--container)); }

  .section { padding: 62px 0; }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 22px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar { display: none; }

  .hero { padding-top: 42px; }

  h1 { font-size: clamp(2.55rem, 12vw, 4.25rem); }

  .hero-media,
  .hero-media img,
  .media-card img { min-height: 300px; }

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

  .fact {
    border-right: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
  }

  .fact:nth-child(2n) { border-right: 0; }
  .fact:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .services-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .service-card { min-height: auto; }

  .contact-block,
  .contact-block:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--gray-300);
  }

  .contact-block:last-child { border-bottom: 0; }

  .history-inner { grid-template-columns: 1fr; }

  .history-mark { width: 78px; }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* --- Právní informace / footer --- */
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
}

.footer-company strong {
  color: var(--white);
  font-size: 1rem;
}

.footer-company span {
  color: rgba(255,255,255,.68);
  font-size: .86rem;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-legal a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
}

.legal-page {
  background: var(--white);
}

.legal-hero {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-container {
  max-width: 880px;
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.legal-intro {
  max-width: 760px;
  color: var(--gray-700);
  font-size: 1.1rem;
}

.legal-updated {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: .88rem;
}

.legal-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--gray-200);
}

.legal-section-alt {
  background: var(--gray-100);
}

.legal-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  margin-bottom: 26px;
}

.legal-section h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.legal-section p,
.legal-section li {
  color: var(--gray-700);
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-box {
  margin: 22px 0;
  padding: 22px 24px;
  background: var(--gray-100);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.legal-section-alt .legal-box {
  background: var(--white);
}

.legal-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

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


/* =========================================================
   V9 — schválené hero + preferovaný WhatsApp kontakt
   Ostatní texty a existující efekty z V8 zůstávají beze změny.
   ========================================================= */

/* Na desktopu určuje výšku hero řádku levý textový blok;
   fotografie se mu přesně přizpůsobí. */
@media (min-width: 981px) {
  .hero-grid {
    align-items: stretch;
    gap: 0;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(28px, 4vw, 62px);
  }

  .hero-media {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    transform: perspective(1200px) rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
    transform-origin: center center;
    transition: transform 260ms ease, box-shadow 260ms ease;
    will-change: transform;
  }

  .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.018);
    transition: transform 380ms ease;
  }

  .hero-media:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,.13);
  }

  .hero-media:hover img {
    transform: scale(1.032);
  }
}

/* Na tabletu a mobilu zůstává hero statické a čitelné. */
@media (max-width: 980px) {
  .hero-grid { gap: 34px; }
  .hero-copy { padding-right: 0; }
  .hero-media {
    transform: none !important;
    aspect-ratio: 16 / 9;
  }
  .hero-media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
  }
}

.contact-primary {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) auto minmax(260px, 1.2fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 22px 24px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,.045);
}

.contact-primary-copy {
  display: grid;
  gap: 2px;
}

.contact-primary-kicker {
  color: var(--gray-700);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-primary-copy strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-primary-copy > span:last-child {
  color: var(--gray-700);
  font-weight: 750;
}

.button-whatsapp {
  background: var(--anthracite);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  white-space: nowrap;
}

.button-whatsapp:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0,0,0,.15);
}

.contact-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.contact-social a {
  position: relative;
  color: var(--gray-900);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-social a::after {
  content: "↗";
  margin-left: 5px;
  color: var(--accent-strong);
  font-size: .85em;
}

.contact-social a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

@media (max-width: 980px) {
  .contact-primary {
    grid-template-columns: 1fr auto;
  }
  .contact-social {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }
}

@media (max-width: 620px) {
  .contact-primary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .button-whatsapp {
    width: 100%;
  }
  .contact-social {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media img {
    transform: none !important;
  }
}


/* =========================================================
   V10 — cache-safe hero layout, real workshop photos,
   clearer contact channels. No copy/text changes.
   ========================================================= */

@media (min-width: 981px) {
  .hero {
    padding-top: 50px;
    padding-bottom: 46px;
  }

  .hero-grid {
    position: relative;
    grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
    align-items: stretch;
    column-gap: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    justify-content: center;
    padding-right: clamp(22px, 2.5vw, 42px);
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 4.05vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -.05em;
    margin-bottom: 22px;
  }

  .hero-copy h1 br { display: block; }

  .hero-media {
    align-self: stretch;
    height: auto;
    min-height: 100%;
    margin-left: clamp(-84px, -5vw, -48px);
    border-radius: 14px;
  }

  .hero-media img {
    object-fit: cover;
    object-position: right center;
    transform: scale(1.002);
  }

  .hero-media:hover img { transform: scale(1.016); }
}

/* Contact shortcuts — deliberately obvious and touch-friendly. */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.contact-channel {
  min-height: 124px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 17px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(247,194,73,.9);
  box-shadow: 0 10px 24px rgba(0,0,0,.09);
}

.contact-channel-whatsapp {
  border-color: rgba(37,211,102,.45);
  background: linear-gradient(145deg, #fff 0%, #f4fff7 100%);
}

.channel-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--ink);
  flex: 0 0 auto;
}

.channel-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.channel-icon-whatsapp { background: #25d366; color: white; }
.channel-icon-facebook { background: #1877f2; color: white; font-family: Arial, sans-serif; }
.channel-icon-shop { background: var(--accent); color: var(--ink); }
.channel-icon-instagram {
  color: white;
  background: radial-gradient(circle at 30% 105%, #fdf497 0 8%, #fd5949 32%, #d6249f 58%, #285aeb 92%);
}

.facebook-f { font-size: 38px; line-height: 1; font-weight: 800; transform: translateY(4px); }
.instagram-camera {
  width: 27px; height: 27px; border: 2.5px solid white; border-radius: 8px; position: relative;
}
.instagram-camera::before {
  content:""; position:absolute; width:8px; height:8px; border:2.5px solid white; border-radius:50%; left:6.5px; top:6.5px;
}
.instagram-camera::after {
  content:""; position:absolute; width:3px; height:3px; background:white; border-radius:50%; right:4px; top:4px;
}

.channel-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.22; }
.channel-copy small {
  margin-bottom: 4px;
  color: var(--gray-700);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.channel-copy strong { font-size: 1rem; }
.channel-copy > span { margin-top: 4px; color: var(--gray-700); font-size: .77rem; overflow-wrap: anywhere; }
.channel-arrow { color: var(--gray-500); font-size: 1.2rem; }
.contact-channel-whatsapp .channel-arrow { color: #159447; }

.contact-grid-icons .contact-block {
  position: relative;
  padding-top: 25px;
}
.contact-block-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 900;
  font-style: normal;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-media { margin-left: 0; }
  .contact-channels { margin-top: 0; }
}

@media (max-width: 620px) {
  .contact-channels { grid-template-columns: 1fr; }
  .contact-channel { min-height: 102px; }
}


/* =========================================================
   V11 — hero uses untouched real source photo.
   White transition is a separate CSS overlay.
   On desktop the rendered photo keeps 1600:1100 proportions
   and its height follows ONLY the H1 block.
   ========================================================= */

@media (min-width: 981px) {
  .hero-grid {
    position: relative;
    overflow: visible;
    align-items: start;
    grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
    gap: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
    justify-content: flex-start;
    padding-right: clamp(28px, 3.2vw, 52px);
  }

  .hero-media {
    position: relative;
    z-index: 2;
    justify-self: end;
    align-self: start;
    min-height: 0 !important;
    max-width: none;
    aspect-ratio: 1600 / 1100;
    overflow: hidden;
    margin-left: clamp(-120px, -7vw, -64px);
    background: var(--white);
    isolation: isolate;
  }

  /* Separate overlay: the source photo itself remains clean. */
  .hero-media::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 0;
    width: 34%;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(252,252,252,1) 0%,
        rgba(252,252,252,.97) 12%,
        rgba(252,252,252,.82) 32%,
        rgba(252,252,252,.48) 58%,
        rgba(252,252,252,.13) 82%,
        rgba(252,252,252,0) 100%
      );
  }

  .hero-media img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.004);
    transform-origin: right center;
  }

  .hero-media:hover img {
    transform: scale(1.016);
  }
}

/* Tablet/mobile: preserve the photo ratio but don't use the desktop fade. */
@media (max-width: 980px) {
  .hero-media {
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    aspect-ratio: 1600 / 1100;
  }

  .hero-media::before {
    display: none;
  }

  .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}

/* More explicit, instantly recognisable contact brand icons. */
.channel-icon {
  overflow: hidden;
}

.channel-icon .social-brand-svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
  color: inherit;
}

.channel-icon-instagram .social-instagram-svg {
  width: 30px;
  height: 30px;
  fill: none;
  color: #fff;
}

.channel-icon-facebook .social-brand-svg {
  width: 32px;
  height: 32px;
}

.channel-icon-whatsapp .social-brand-svg {
  width: 31px;
  height: 31px;
}

.contact-channel-facebook .channel-copy strong,
.contact-channel-instagram .channel-copy strong,
.contact-channel-whatsapp .channel-copy strong {
  letter-spacing: -.01em;
}


/* =========================================================
   V12-DEBUG-20260828-2300
   TEMPORARY DEBUG BUILD
   ========================================================= */

:root {
  --sublitex-build: "V13";
}

/* Desktop hero: the photo is positioned independently from the text column.
   JS writes exact top/width/height based ONLY on the H1 rectangle. */
@media (min-width: 981px) {
  .hero-grid {
    position: relative !important;
    display: block !important;
    min-height: 0;
  }

  .hero-copy {
    position: relative !important;
    z-index: 5 !important;
    width: 46% !important;
    padding-right: clamp(24px, 3vw, 48px) !important;
  }

  .hero-media {
    position: absolute !important;
    z-index: 2 !important;
    right: 0 !important;
    top: 0;
    margin: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    aspect-ratio: 1600 / 1100 !important;
    overflow: hidden !important;
    border-radius: 14px;
    background: var(--white);
    isolation: isolate;
    transform:
      perspective(1200px)
      rotateX(var(--hero-rx, 0deg))
      rotateY(var(--hero-ry, 0deg)) !important;
  }

  /* Separate white fade above the untouched photograph. */
  .hero-media::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 4 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 31% !important;
    pointer-events: none !important;
    background: linear-gradient(
      90deg,
      rgba(252,252,252,1) 0%,
      rgba(252,252,252,.98) 12%,
      rgba(252,252,252,.88) 30%,
      rgba(252,252,252,.58) 55%,
      rgba(252,252,252,.22) 78%,
      rgba(252,252,252,0) 100%
    ) !important;
  }

  .hero-media img {
    position: absolute !important;
    z-index: 1 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: right center !important;
    /* Small crop of the empty left wall, while preserving the worker. */
    transform: scale(1.055) !important;
    transform-origin: right center !important;
    transition: transform 300ms ease !important;
  }

  .hero-media:hover img {
    transform: scale(1.07) !important;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    display: grid !important;
  }

  .hero-copy {
    width: auto !important;
  }

  .hero-media {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 1600 / 1100 !important;
    transform: none !important;
  }

  .hero-media::before {
    display: none !important;
  }

  .hero-media img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important;
    transform: none !important;
  }
}


/* =========================================================
   V13 — desktop hero fixed to six heading lines
   ========================================================= */

.hero-title-accessible {
  display: inline;
}

.hero-title-desktop {
  display: none;
}

@media (min-width: 981px) {
  .hero-copy h1 {
    display: block !important;
    width: max-content;
    max-width: none !important;
    line-height: .985 !important;
  }

  .hero-title-desktop {
    display: inline !important;
  }

  .hero-title-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* Allow the 6-line headline + matching image enough breathing room.
     The photo itself is still sized by JS exactly to the H1 height
     while keeping the 1600:1100 ratio. */
  .hero-copy {
    width: 43% !important;
  }

  .hero-media {
    max-width: 57% !important;
  }
}

@media (max-width: 980px) {
  .hero-title-desktop {
    display: none !important;
  }
  .hero-title-accessible {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }
}
