/*
 * Súbor: css/components/home-layout.css
 * Obsah: Spoločný základ hlavičky, navigácie a fotografických kariet služieb homepage a samostatného prehľadu. Zahŕňa aj pôvodné pravidlá hero a projektových panelov homepage.
 * Použitie: index.html, sluzby.html.
 * Zapojenie: <link rel="stylesheet" href="css/components/home-layout.css">; zachovaj pozíciu v hlavičke podľa css/README.md.
 * Závislosti: HTML triedy a selektory uvedené v pravidlách nižšie, css/general/base.css a farebné premenné témy stránky.
 */
/*
     * HEADER
     */

    /*
 * HEADER — UPDATED
 */

    .site-header {
      height: 82px;
      position: sticky;
      top: 0;
      z-index: 100;

      background: var(--palette-light);
      border-bottom: 1px solid var(--palette-sand);
    }

    .header-inner {
      height: 100%;
      display: flex;
      align-items: center;
      gap: 28px;
    }


    /* MAIN COMPANY LOGO */

    .header-logo {
      flex: 0 0 auto;
      width: auto;
      max-width: 100%;
      height: auto;
      min-width: 0;

      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;

      background: transparent;
      border: 0;
      border-radius: 0;

      color: var(--palette-dark);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;

      text-decoration: none;
    }

    .header-logo-mark {
      width: 56px;
      height: 56px;
      flex: 0 0 56px;
      display: block;
      object-fit: contain;
      background: #243142;
      border: 0;
      border-radius: 8px;
    }

    .header-logo-wordmark {
      color: #243142;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    @media (max-width: 1023px) {
      .header-logo-mark {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
      }

      .header-logo-wordmark {
        font-size: 16px;
      }
    }

    @media (max-width: 480px) {
      .header-logo {
        gap: 8px;
      }

      .header-logo-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
      }

      .header-logo-wordmark {
        font-size: 14px;
      }
    }


    /* NAVIGATION */

    .desktop-nav {
      display: flex;
      align-items: center;
      gap: 26px;
      margin-left: auto;
    }

    .desktop-nav a {
      color: var(--palette-dark);
      font-size: 15px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.025em;
      text-decoration: none;
      transition: color 180ms ease;
    }

    .desktop-nav a:hover {
      color: var(--accent);
    }

    .nav-link--page {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .nav-link--page::before {
      content: "";
      width: 7px;
      height: 7px;

      flex: 0 0 7px;

      background: var(--palette-sand);
      border-radius: 50%;
    }


    /* LINK NA SECTION AKTUÁLNEJ STRÁNKY */

    .nav-link--section {
      position: relative;
      color: var(--palette-dark);
    }

    .nav-link--section::after {
      content: "";
      position: absolute;

      left: 0;
      right: 0;
      bottom: -7px;

      height: 2px;

      background: var(--accent);

      transform: scaleX(0);
      transform-origin: left;

      transition: transform 180ms ease;
    }

    .nav-link--section:hover::after {
      transform: scaleX(1);
    }

    /* PHONE */

    .header-contact {
      display: grid;
      gap: 4px;
      color: var(--palette-dark);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }


    .header-contact a {
      text-decoration: none;
      font-size: 12px;
    }

    .header-contact a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .contact-link {
      text-underline-offset: 3px;
      overflow-wrap: anywhere;
    }

    @media (min-width: 1024px) and (max-width: 1199px) {

      .header-inner,
      .desktop-nav {
        gap: 12px;
      }

      .desktop-nav a {
        font-size: 13px;
      }

      .site-header .header-cta {
        padding-inline: 12px;
      }
    }

    /* HEADER CTA */

    .header-cta {
      min-height: 48px;
      padding-inline: 20px;
      text-transform: uppercase;
    }


    /* MOBILE MENU BUTTON */

    .menu-toggle {
      width: 44px;
      height: 44px;
      padding: 0;

      display: none;
      align-items: center;
      justify-content: center;

      background: transparent;
      border: 1px solid var(--palette-taupe);
      border-radius: 8px;

      color: var(--palette-dark);

      cursor: pointer;
      font-weight: 700;
      text-transform: uppercase;
    }


    /* MOBILE */

    @media (max-width: 1023px) {

      .desktop-nav,
      .header-contact,
      .header-cta {
        display: none;
      }

      .header-inner {
        justify-content: space-between;
      }

      .menu-toggle {
        display: inline-flex;
      }

    }


    @media (max-width: 767px) {

      .site-header {
        height: 64px;
      }

      .header-logo {
        width: 118px;
        height: 38px;
        font-size: 9px;
      }

    }

    /*
     * BREADCRUMB
     */

    .breadcrumb {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding: 16px 0;
      color: var(--palette-taupe);
      font-size: 12px;
      line-height: 1.6;
      letter-spacing: 0.015em;
    }

    .breadcrumb a {
      flex-shrink: 0;
      color: color-mix(in srgb, var(--palette-dark) 80%, var(--palette-taupe));
      text-decoration: underline;
      text-decoration-color: transparent;
      text-underline-offset: 4px;
      transition: color 180ms ease, text-decoration-color 180ms ease;
    }

    .breadcrumb a:hover {
      color: var(--palette-dark);
      text-decoration-color: var(--palette-taupe);
    }

    .breadcrumb span {
      min-width: 0;
      color: color-mix(in srgb, var(--palette-dark) 80%, var(--palette-taupe));
    }

    @media (max-width: 767px) {
      .breadcrumb {
        gap: 9px;
        padding: 12px 0;
        letter-spacing: 0;
      }
    }

    .hero-intro {
      position: relative;
    }

    .hero-intro .breadcrumb {
      position: absolute;
      top: 20px;
      left: max(20px, calc((100% - var(--container)) / 2));
      z-index: 3;
      width: fit-content;
      max-width: calc(100% - 40px);
      margin: 0;
      padding: 10px 12px;
      align-items: center;
      border: 1px solid rgb(var(--palette-light-rgb) / 18%);
      border-radius: 8px;
      background: rgb(36 49 66 / 88%);
      color: var(--palette-light);
    }

    .hero-intro .breadcrumb a,
    .hero-intro .breadcrumb span {
      color: var(--palette-light);
    }

    .hero-intro .breadcrumb a:hover {
      text-decoration-color: currentColor;
    }

    /*
 * HERO — UPDATED
 */

    .hero {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      padding: 84px 0 32px;
      isolation: isolate;
      background-image: url("../../VSETKY_IMG/SLUZBA_MURY/pracovnici_mury_11zon.png");
      background-position: center 68%;
      background-size: cover;
      background-repeat: no-repeat;
    }


    /* subtle architectural grid */

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background: linear-gradient(90deg, rgb(36 49 66 / 62%) 0%, rgb(36 49 66 / 34%) 48%, rgb(36 49 66 / 12%) 100%);
    }


    /* MAIN GRID */

    .hero-grid {
      position: relative;
      z-index: 1;

      display: grid;
      grid-template-columns: 1fr;
      gap: 0;

      align-items: center;
    }


    /* COPY */

    .hero-copy {
      max-width: 640px;
    }

    @media (min-width: 768px) {
      .hero-copy {
        position: relative;
        isolation: isolate;
      }

      .hero-copy::before {
        content: "";
        position: absolute;
        inset: -12px -20px;
        z-index: -1;
        border-radius: 16px;
        background: rgb(36 49 66 / 14%);
        box-shadow: 0 0 24px 12px rgb(36 49 66 / 6%);
        pointer-events: none;
      }

      .hero .hero-copy .eyebrow,
      .hero .hero-copy h1,
      .hero .hero-copy .hero-lead,
      .hero .hero-copy .hero-supporting {
        color: #fff;
      }

      .hero .hero-actions .btn--secondary {
        color: #fff;
        border-color: rgb(255 255 255 / 70%);
        background: rgb(36 49 66 / 24%);
      }

      .hero .hero-actions .btn--secondary:hover {
        background: rgb(36 49 66 / 52%);
      }
    }


    .hero .eyebrow {
      margin-bottom: 18px;
      color: var(--accent);
    }


    .hero h1 {
      max-width: 720px;

      margin-bottom: 24px;

      color: var(--palette-dark);

      font-size: clamp(42px, 5.2vw, 64px);
      line-height: 1.02;

      letter-spacing: -0.045em;
    }


    .hero-lead {
      max-width: 620px;

      color: var(--palette-dark);

      font-size: 20px;
      line-height: 1.6;
    }


    .hero-supporting {
      max-width: 580px;

      margin-top: 20px;

      color: var(--palette-dark);

      font-size: 16px;
    }

    .hero .btn--secondary {
      color: var(--palette-dark);
      border-color: var(--palette-sand);
      background: rgb(232 224 212 / 90%);
    }

    .hero .btn--secondary:hover {
      background: var(--palette-light-alt);
    }


    /* SMALL DECORATIVE LINE */

    .hero-accent-line {
      width: 86px;
      height: 4px;

      margin: 26px 0 28px;

      background: var(--accent);

      border-radius: 999px;
    }


    /* CTA */

    .hero-actions {
      margin-top: 32px;

      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .hero-action-panel {
      position: relative;
      z-index: 1;
    }


    /*
 * RIGHT HERO VISUAL
 */

    /* LOGO PANEL */

    .hero-division-brand {
      position: absolute;
      top: 28px;
      right: max(20px, calc((100vw - var(--container)) / 2));
      z-index: 2;
      width: 280px;
      max-width: calc(100% - 40px);
      padding: 18px 20px;
      background: rgb(36 49 66 / 76%);
      border: 1px solid rgb(var(--palette-light-rgb) / 30%);
      border-radius: 12px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }


    /*
 * SMALL FLOATING SERVICE LABEL
 */

    .hero-service-label {
      position: absolute;

      right: 24px;
      bottom: 24px;

      z-index: 3;

      max-width: 280px;

      padding: 14px 18px;

      background: var(--palette-dark);

      color: var(--palette-light);

      border-radius: 8px;

      font-size: 13px;
      font-weight: 700;

      letter-spacing: 0.04em;
      text-transform: uppercase;
    }


    /*
 * RESPONSIVE
 */

    @media (max-width: 1023px) {

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .hero-copy {
        max-width: 720px;
      }

    }


    @media (max-width: 767px) {

      .hero-intro .breadcrumb {
        top: 16px;
        left: 20px;
        gap: 9px;
        font-size: 11px;
      }

      .hero-intro .hero {
        --hero-photo-height: clamp(320px, 80vw, 480px);
        --hero-copy-overlap: 48px;
        min-height: 0;
        padding: 0;
        background: var(--palette-light);
      }

      .hero-intro .hero::before {
        inset: 0 0 auto;
        height: var(--hero-photo-height);
        opacity: 1;
        background: url("../../VSETKY_IMG/SLUZBA_MURY/pracovnici_mury_11zon.png") 85% center / cover no-repeat;
      }

      .hero-grid {
        width: 100%;
        max-width: none;
        margin: 0;
        /* Only 48px of the text card overlaps the photo (at most 15%). */
        padding: calc(var(--hero-photo-height) - var(--hero-copy-overlap)) 20px 0;
        gap: 0;
        text-align: center;
      }

      .hero-copy {
        width: 100%;
        padding: 24px 20px;
        border-radius: 12px;
        background: var(--surface);
      }

      .hero-accent-line {
        display: none;
      }

      .hero .eyebrow {
        margin-bottom: 14px;
      }

      .hero h1 {
        max-width: 600px;
        margin: 0 auto 22px;
        font-size: clamp(32px, 7vw, 40px);
        line-height: 1.1;
      }

      .hero .hero-lead {
        max-width: 540px;
        margin: 0 auto;
        font-size: 17px;
        line-height: 1.55;
      }

      .hero .hero-supporting {
        max-width: 540px;
        margin: 16px auto 0;
        font-size: 15px;
        line-height: 1.6;
        color: var(--muted);
      }

      .hero-action-panel {
        padding: 20px 20px 32px;
        background: var(--palette-light);
      }

      .hero .hero-action-panel .btn--secondary {
        color: var(--palette-dark);
        border-color: var(--palette-taupe);
        background: transparent;
      }

      .hero .hero-action-panel .btn--secondary:hover {
        background: var(--palette-light-alt);
      }

      .hero-action-panel .hero-actions {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .hero-action-panel .hero-actions .btn {
        width: 100%;
        min-height: 68px;
        padding-inline: 8px;
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
      }

      .hero-division-brand {
        display: none;
      }

      .hero-service-label {
        display: none;
      }

    }

    /*
     * ANCHOR NAV
     */

    .services-showcase {
      position: relative;
      z-index: 1;
      margin-top: 56px;
      padding: 28px 0 0;
      border-top: 1px solid rgb(255 255 255 / 22%);
      background: rgb(36 49 66 / 62%);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .services-showcase h2 {
      max-width: 850px;
      margin: 0 auto 18px;
      color: #fff;
      font-size: clamp(24px, 3vw, 34px);
      text-align: center;
    }

    .services-showcase__intro {
      max-width: 760px;
      margin: 0 auto 24px;
      color: rgb(255 255 255 / 85%);
      font-size: clamp(17px, 1.8vw, 20px);
      line-height: 1.6;
      text-align: center;
    }

    .services-showcase__grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 16px;
      padding: 4px 2px 14px;
    }

    .services-showcase__card {
      min-width: 0;
      padding: 18px 12px;
      border: 1px solid var(--palette-sand);
      border-bottom: 6px solid var(--service-color);
      border-radius: 16px;
      background: rgb(var(--palette-light-rgb) / 92%);
      box-shadow: 0 6px 16px rgb(var(--palette-dark-rgb) / 8%);
      text-align: center;
    }

    .services-showcase__card img {
      width: 100%;
      height: 100px;
      margin: 0 auto 16px;
      object-fit: contain;
      filter: drop-shadow(0 1px 1px rgb(var(--palette-dark-rgb) / 55%));
    }

    .services-showcase__card h3 {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      margin: 0 0 10px;
      font-size: 16px;
      line-height: 1.3;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .services-showcase__card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    @media (max-width: 1023px) {
      .services-showcase__grid {
        grid-template-columns: repeat(6, minmax(180px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--palette-sand) transparent;
      }

      .services-showcase__card {
        scroll-snap-align: start;
      }
    }

    /* TRUST COUNTERS */
    .trust {
      padding: 16px 0;
      background: var(--bg-alt);
    }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .trust-counter {
      min-width: 0;
      padding: 28px;
      border-radius: 16px;
      background: var(--palette-light);
      color: var(--palette-dark);
      border: 1px solid var(--palette-sand);
    }

    .trust-counter-number {
      display: block;
      margin-bottom: 16px;
      font-size: clamp(60px, 6.5vw, 84px);
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.06em;
      line-height: 1;
    }

    .trust-counter strong {
      display: block;
      margin-bottom: 6px;
      font-size: clamp(19px, 1.7vw, 22px);
      font-weight: 750;
      line-height: 1.3;
    }

    .counter-accessible {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    .trust-counter p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
    }

    .anchor-nav {
      border-bottom: 1px solid var(--border);
    }

    .anchor-nav-inner {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 8px 16px;
      padding: 16px 0;
    }

    .anchor-nav a {
      flex: 0 1 auto;
      max-width: 100%;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 12px;
      text-align: center;
      overflow-wrap: anywhere;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
    }

    .anchor-nav a:hover {
      color: var(--accent);
    }

    /*
     * PROJECTS
     */

    .project-strip {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 16px;
    }

    .project-cta {
      display: flex;
      justify-content: center;
      margin-top: 32px;
    }

    .project-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 16px 12px;
      color: var(--palette-dark);
      background: var(--palette-light-alt);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      text-align: center;
    }

    .project-panel img {
      display: block;
      width: auto;
      max-width: 86px;
      height: 86px;
      flex: 0 0 86px;
      object-fit: contain;
      margin-inline: auto;
    }

    .project-panel img.project-icon--developer {
      max-width: 100px;
      height: 86px;
      flex-basis: 86px;
    }

    .project-panel h3 {
      margin: 0;
      font-size: clamp(15px, 1.4vw, 18px);
      line-height: 1.3;
      overflow-wrap: anywhere;
    }

    .project-panel p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    #sluzby,
    #realizacie,
    #kontakt {
      scroll-margin-top: 100px;
    }

    .service-offerings {
      background: var(--palette-light);
    }

    .service-offerings .section-head {
      margin-inline: auto;
      text-align: center;
    }

    .service-offerings-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .service-offering {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-width: 0;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      isolation: isolate;
      background: var(--palette-dark);
      border-radius: 12px;
    }

    .service-offering::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(180deg, rgb(8 16 22 / 12%) 0%, rgb(8 16 22 / 45%) 35%, rgb(8 16 22 / 94%) 100%);
      pointer-events: none;
    }

    .service-offering .service-offering-photo {
      position: absolute;
      inset: 0;
      z-index: -2;
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .45s ease;
    }

    .service-offering .service-offering-logo {
      position: absolute;
      top: 16px;
      left: 16px;
      display: block;
      width: 91.2px;
      height: 91.2px;
      padding: 10px;
      object-fit: contain;
      background: rgb(8 16 22 / 65%);
      border: 1px solid rgb(255 255 255 / 16%);
      border-radius: 10px;
    }

    .service-offering-copy {
      display: flex;
      flex-direction: column;
      padding: 132px 22px 22px;
    }

    .service-offering-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: flex-start;
      min-height: 40px;
      flex-shrink: 0;
      margin-top: 14px;
      padding: 0 14px;
      border: 1px solid rgb(255 255 255 / 45%);
      border-radius: 6px;
      background: rgb(8 16 22 / 45%);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      line-height: 1;
      text-decoration: none;
      transition: background .2s, border-color .2s;
    }

    .service-offering-cta:hover {
      background: rgb(8 16 22 / 80%);
      border-color: #fff;
    }

    .service-offering-cta:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
    }

    @media (hover: hover) and (prefers-reduced-motion: no-preference) {
      .service-offering:hover .service-offering-photo {
        transform: scale(1.045);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .service-offering:focus-within .service-offering-photo {
        transform: scale(1.045);
      }
    }

    .mt-2 {
      margin-top: 8px;
    }

    .mt-3 {
      margin-top: 12px;
    }

    @media (min-width: 768px) {
      .md\:mt-0 {
        margin-top: 0;
      }
    }

    .service-offering h3 {
      margin-bottom: 10px;
      color: #fff;
      font-size: clamp(18px, 1.8vw, 23px);
      line-height: 1.25;
    }

    .service-offering p {
      margin: 0;
      color: rgb(255 255 255 / 88%);
      font-size: 14px;
      line-height: 1.5;
    }

    @media (max-width: 1199px) {
      .service-offerings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 767px) {
      .service-offerings-grid {
        gap: 14px;
      }

      .service-offering-copy {
        padding: 96px 18px 18px;
      }

      .service-offering .service-offering-logo {
        top: 14px;
        left: 14px;
        width: 76.8px;
        height: 76.8px;
        padding: 8px;
      }
    }

    @media (max-width: 767px) {
      .project-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
      }

      .project-panel {
        grid-column: span 2;
        order: 4;
        gap: 6px;
        padding: 12px 8px;
      }

      .project-panel:nth-child(1) {
        order: 3;
      }

      .project-panel:nth-child(2) {
        order: 2;
        grid-column: span 3;
      }

      .project-panel:nth-child(3) {
        order: 1;
        grid-column: span 3;
      }

      .project-panel img {
        max-width: 64px;
      }

      .project-panel img.project-icon--developer {
        max-width: 84px;
      }

      .project-panel h3 {
        font-size: clamp(13px, 3.2vw, 15px);
      }

      .project-panel p {
        font-size: 12px;
      }
    }
