/*
 * Súbor: css/pages/stavba-domu/intro.css
 * Obsah: Úvod stránky: základ hlavičky a menu, navigačná cesta, hero s fotografiou, textami a CTA, čísla dôvery a projektové panely.
 * Použitie: sluzba-stavba-domu-a-holodomu.html.
 * Zapojenie: <link rel="stylesheet" href="css/pages/stavba-domu/intro.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: #000;
      border: 0;
      border-radius: 8px;
    }

    .header-logo-wordmark {
      color: #20262B;
      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-decoration: none;
      transition: color 180ms ease;
    }

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

    .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 {
      color: var(--palette-dark);
    }

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

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

      height: 2px;

      background: var(--palette-taupe);

      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;
    }


    /* MOBILE MENU BUTTON */

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

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

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

      color: var(--palette-dark);

      cursor: pointer;
      font-weight: 700;
    }


    /* 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(10 15 20 / 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 96px;
      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(24 31 31 / 62%) 0%, rgb(24 31 31 / 34%) 48%, rgb(24 31 31 / 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(10 15 20 / 14%);
        box-shadow: 0 0 24px 12px rgb(10 15 20 / 6%);
        pointer-events: none;
      }
    }


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


    .hero h1 {
      max-width: 720px;

      margin-bottom: 24px;

      color: var(--palette-light);

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

      letter-spacing: -0.045em;
    }


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

      color: var(--palette-light);

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


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

      margin-top: 20px;

      color: var(--palette-light);

      font-size: 16px;
    }

    .hero .btn--secondary {
      color: var(--palette-light);
      border-color: rgb(var(--palette-light-rgb) / 70%);
      background: rgb(24 31 31 / 24%);
    }

    .hero .btn--secondary:hover {
      background: rgb(24 31 31 / 52%);
    }


    /* SMALL DECORATIVE LINE */

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

      margin: 26px 0 28px;

      background: var(--palette-taupe);

      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(32 38 43 / 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: #0a0f14;
      }

      .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: rgb(var(--palette-light-rgb) / 85%);
      }

      .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
     */

    /* TRUST COUNTERS */
    .trust {
      padding: 32px 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-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: 100px;
    }

    .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;
    }

    .service-offerings {
      background: var(--palette-light);
    }
    
    .service-offerings-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }
    
    .service-offering {
      min-width: 0;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
    }
    
    .service-offering img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      transform: scale(1.2);
      transform-origin: center;
    }
    
    .service-offering-copy {
      padding: 18px;
    }

    .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: 8px;
      font-size: 19px;
      line-height: 1.25;
    }
    
    .service-offering p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .warranty-band {
      padding: 64px 0 72px;
      background: var(--palette-light-alt);
    }

    .warranty-band-inner {
      display: block;
    }

    .warranty-band-copy {
      max-width: 900px;
      margin-bottom: 32px;
    }

    .warranty-band h2 {
      margin-bottom: 16px;
      font-size: clamp(28px, 3.5vw, 44px);
      color: #242422;
    }

    .warranty-band-lead {
      margin: 0;
      color: var(--muted);
      font-size: clamp(16px, 1.6vw, 20px);
      line-height: 1.55;
    }

    .warranty-photo {
      width: min(100%, 640px);
      height: auto;
      margin-inline: auto;
      border-radius: 20px;
    }

    .warranty-points {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      max-width: 700px;
      margin: -28px auto 0;
      padding: 0 24px;
    }

    .warranty-point {
      min-width: 0;
      padding: 28px 32px;
      border-radius: 18px;
      background: linear-gradient(135deg, #2c2c2a, #242422);
      color: var(--palette-light);
      box-shadow: 0 16px 30px rgb(var(--palette-dark-rgb) / 16%);
    }

    .warranty-icon {
      display: grid;
      place-items: center;
      width: 60px;
      height: 60px;
      margin-bottom: 16px;
      border-radius: 50%;
      background: rgb(var(--palette-sand-rgb) / 18%);
      color: var(--palette-sand);
    }

    .warranty-icon svg {
      width: 34px;
      height: 34px;
    }

    .warranty-point h3 {
      margin-bottom: 12px;
      font-size: 24px;
      line-height: 1.2;
    }

    .warranty-point p {
      margin: 0;
      color: #c2beb7;
      font-size: 17px;
      line-height: 1.55;
    }

    @media (min-width: 768px) {
      .warranty-band-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 32px;
        align-items: center;
      }

      .warranty-band-copy {
        grid-column: 1 / -1;
        margin-bottom: 0;
      }

      .warranty-points {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        max-width: none;
        margin: 0;
        padding: 0;
      }

      .warranty-point {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px 16px;
        padding: 24px;
      }

      .warranty-icon {
        grid-row: 1 / span 2;
        width: 48px;
        height: 48px;
        margin-bottom: 0;
      }

      .warranty-point h3 {
        margin-bottom: 0;
        font-size: 22px;
      }

      .warranty-point p {
        grid-column: 2;
        font-size: 16px;
      }
    }

    @media (max-width: 767px) {
      .warranty-band {
        padding: 36px 0 44px;
      }

      .warranty-band-copy {
        margin-bottom: 24px;
      }

      .warranty-photo {
        border-radius: 14px;
      }

      .warranty-points {
        gap: 10px;
        margin-top: -16px;
        padding: 0 10px;
      }

      .warranty-point {
        padding: 16px 12px;
        border-radius: 14px;
      }

      .warranty-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
      }

      .warranty-icon svg {
        width: 28px;
        height: 28px;
      }

      .warranty-point h3 {
        margin-bottom: 8px;
        font-size: clamp(15px, 3.8vw, 22px);
      }

      .warranty-point p {
        font-size: clamp(13px, 3.3vw, 17px);
      }
    }
    
    @media (max-width: 1023px) {
      .service-offerings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    
    @media (max-width: 767px) {
      .service-offerings-grid {
        gap: 12px;
      }
    
      .service-offering-copy {
        padding: 14px;
      }
    
      .service-offering h3 {
        font-size: 16px;
      }
    
      .service-offering p {
        font-size: 13px;
      }
    }

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

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

      .project-panel:nth-child(-n + 2) {
        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;
      }
    }
