/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */

@layer reset, base, components, sections, utilities;

@layer reset {

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

@layer base {
  :root {
    /* Color Palette */
    --color-bg-warm: #FBF9F6;
    --color-text-main: #111111;
    --color-text-muted: #4A4A4A;
    --color-accent-cognac: #8D4A23;
    --color-accent-dark: #743B1B;
    --color-accent-light: #EADBD2;
    --color-white: #FFFFFF;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 70px;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }

  body {
    background-color: var(--color-bg-warm);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  /* Custom Selection */
  ::selection {
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
  }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

@layer components {

  /* Buttons */
  .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.2s ease;
    border: none;
  }

  .btn-cta:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-1px);
  }

  .btn-hero-primary {
    display: inline-block;
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.2s ease,
      box-shadow 0.3s ease;
    border: none;
    text-align: center;
  }

  .btn-hero-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(141, 74, 35, 0.15);
  }

  .btn-hero-secondary {
    display: inline-block;
    color: var(--color-accent-cognac);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--color-accent-cognac);
    transition: color 0.3s ease,
      border-color 0.3s ease,
      transform 0.2s ease;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    text-align: center;
  }

  .btn-hero-secondary:hover {
    color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
  }

  /* Icons */
  .phone-icon {
    width: 18px;
    height: 18px;
  }

  /* Hamburger Menu Button (Mobile) */
  .hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
  }

  .hamburger-inner::before {
    top: -7px;
  }

  .hamburger-inner::after {
    bottom: -7px;
  }

  /* Hamburger active state transition */
  .hamburger[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
  }

  .hamburger[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
  }

  /* Floating Action Button (FAB) */
  .fab-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    border-radius: 50%;
    display: none;
    /* Controlled via JS and responsive styles */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(141, 74, 35, 0.3);
    z-index: 998;
    text-decoration: none;
    transition: background-color 0.3s ease,
      transform 0.2s ease,
      opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
      visibility 0.4s;
    opacity: 0;
    visibility: hidden;
  }

  .fab-phone:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.05);
  }

  .fab-phone .phone-icon {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

@layer sections {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 249, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(141, 74, 35, 0.05);
  }

  /* Scrolled header state styling */
  .site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    background-color: rgba(251, 249, 246, 0.92);
    border-bottom: 1px solid rgba(141, 74, 35, 0.08);
  }

  .header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
  }

  .site-header.scrolled .header-container {
    padding: 1rem 2rem;
  }

  /* Logo styling */
  .logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    outline-offset: 4px;
  }

  .logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
  }

  .logo-img:hover {
    transform: scale(1.02);
    opacity: 0.85;
  }

  /* Desktop Menu */
  .nav-desktop {
    display: flex;
    align-items: center;
  }

  .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-decoration: none;
    margin: 0 1.2rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent-cognac);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-link:hover {
    color: var(--color-text-main);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile menu Overlay styling */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-warm);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    opacity: 0;
    visibility: hidden;
  }

  .mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    padding: 2rem;
    width: 100%;
  }

  .mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
  }

  .mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-link:hover {
    color: var(--color-accent-cognac);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

@layer sections {
  .hero-section {
    min-height: calc(100vh - var(--header-height));
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .hero-bg-text {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 100%;
    text-align: center;
    font-family: var(--font-sans);
    font-size: clamp(6rem, 14vw, 14rem);
    font-weight: 100;
    color: rgba(0, 0, 0, 0.025);
    letter-spacing: 0.05em;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    will-change: transform;
  }

  .hero-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 4rem;
    align-items: center;
  }

  /* Left column - Content */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
  }

  .hero-subheader {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1.2rem;
    opacity: 0;
    /* Animated with GSAP */
  }

  /* Title reveal mask styling */
  .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 3.8vw, 3.8rem);
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 1.8rem;
  }

  .reveal-line {
    display: block;
    overflow: hidden;
    position: relative;
  }

  .reveal-inner {
    display: block;
    opacity: 0;
    /* Animated with GSAP */
  }

  .hero-description {
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 2.5rem;
    max-width: 550px;
    opacity: 0;
    /* Animated with GSAP */
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    opacity: 0;
    /* Animated with GSAP */
    width: 100%;
  }

  /* Right column - Visual */
  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .hero-bg-circle-1 {
    position: absolute;
    border: 1px solid rgba(141, 74, 35, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    width: 340px;
    height: 340px;
    top: -70px;
    right: -70px;
  }

  .hero-bg-lines {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
  }

  .hero-line-top,
  .hero-line-bottom {
    position: absolute;
    height: 1px;
    background-color: rgba(141, 74, 35, 0.12);
  }

  .hero-line-top {
    top: 72%;
    left: -60px;
    right: -140px;
  }

  .hero-line-bottom {
    top: 78%;
    left: -140px;
    right: -60px;
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.05),
      0 4px 12px rgba(141, 74, 35, 0.03);
    background-color: var(--color-accent-light);
    z-index: 2;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    will-change: transform;
    opacity: 0;
    transition: opacity 1s ease-out;
  }

  /* Ken Burns keyframes for page load */
  @keyframes kenburns-zoom {
    0% {
      transform: scale(1.0);
    }

    100% {
      transform: scale(1.05);
    }
  }

  .hero-image.loaded {
    opacity: 1;
    animation: kenburns-zoom 6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
}

/* ==========================================================================
   DUMMY SECTIONS FOR DEMO SCROLLING
   ========================================================================== */

@layer sections {

  /* ==========================================================================
     SEKCJA 6: KONTAKT I STOPKA
     ========================================================================== */
  .contact-section {
    padding: 8rem 2rem 0;
    background-color: #1A1816;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
  }

  .contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding-bottom: 6rem;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .contact-header {
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto 5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .contact-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #A8633B;
    margin-bottom: 1rem;
  }

  .contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    color: var(--color-white);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .contact-column-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #A8633B;
    margin-bottom: 2.5rem;
    width: 100%;
    border-bottom: 1px solid rgba(141, 74, 35, 0.15);
    padding-bottom: 1rem;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 3rem;
  }

  .contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(234, 219, 210, 0.4);
  }

  .detail-link {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .detail-link:hover {
    color: var(--color-accent-cognac);
  }

  .detail-address {
    font-style: normal;
    font-size: 1.15rem;
    color: #EADBD2;
    line-height: 1.5;
  }

  .contact-hours {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(141, 74, 35, 0.15);
    padding-top: 2rem;
  }

  .hours-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #A8633B;
  }

  .hours-text {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 500;
  }

  .hours-note {
    font-size: 0.95rem;
    color: rgba(234, 219, 210, 0.6);
    line-height: 1.5;
  }

  .contact-map-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(141, 74, 35, 0.15);
  }

  .contact-map {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
    filter: grayscale(1) invert(0.9) contrast(1.1) opacity(0.85);
    transition: filter 0.4s ease, opacity 0.4s ease;
  }

  .contact-map:hover {
    filter: grayscale(0.2) invert(0.85) contrast(1.1) opacity(0.95);
  }

  /* Form Box Styles */
  .contact-form-box {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(141, 74, 35, 0.25);
    border-radius: 8px;
    padding: 4rem 3rem;
    position: relative;
    z-index: 2;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .form-group {
    position: relative;
    margin-bottom: 2.2rem;
  }

  .form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(141, 74, 35, 0.3);
    background: transparent;
    padding: 0.8rem 0;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s ease;
  }

  .form-textarea {
    resize: none;
  }

  .form-input:focus {
    outline: none;
    border-bottom-color: var(--color-accent-cognac);
  }

  .form-label {
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: rgba(234, 219, 210, 0.5);
    font-size: 1.05rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .form-input:focus~.form-label,
  .form-input:not(:placeholder-shown)~.form-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--color-accent-cognac);
  }

  .form-consent {
    margin-bottom: 2.5rem;
  }

  .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
  }

  .consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--color-accent-cognac);
    cursor: pointer;
  }

  .consent-text {
    font-size: 0.82rem;
    color: rgba(234, 219, 210, 0.6);
    line-height: 1.5;
    user-select: none;
  }

  .btn-submit {
    width: 100%;
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-submit:hover {
    background-color: #A8562C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(141, 74, 35, 0.25);
  }

  /* Copyrights footer */
  .footer-bottom {
    border-top: 1px solid rgba(141, 74, 35, 0.1);
    padding: 2.5rem 2rem;
    width: 100%;
    margin-top: 2rem;
  }

  .footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    text-align: center;
  }

  .copyright-text {
    font-size: 0.88rem;
    color: rgba(234, 219, 210, 0.5);
    line-height: 1.5;
  }

  /* Services Section */
  .services-section {
    padding: 8rem 2rem;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
  }

  .services-divider {
    width: 80px;
    height: 1px;
    background-color: rgba(141, 74, 35, 0.15);
    margin: 1.5rem auto 0;
  }

  .services-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .services-header {
    text-align: center;
    margin-bottom: 4.5rem;
  }

  .services-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .services-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
  }

  .services-grid-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Dekoracyjne linie w rogach siatki usług */
  .grid-corner-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
  }

  .grid-line-top {
    position: absolute;
    top: -25px;
    left: -50px;
    right: -50px;
    height: 1px;
    background-color: var(--color-accent-cognac);
    opacity: 0.15;
  }

  .grid-line-bottom {
    position: absolute;
    bottom: -25px;
    left: -50px;
    right: -50px;
    height: 1px;
    background-color: var(--color-accent-cognac);
    opacity: 0.15;
  }

  .grid-line-left {
    position: absolute;
    left: -25px;
    top: -50px;
    bottom: -50px;
    width: 1px;
    background-color: var(--color-accent-cognac);
    opacity: 0.15;
  }

  .grid-line-right {
    position: absolute;
    right: -25px;
    top: -50px;
    bottom: -50px;
    width: 1px;
    background-color: var(--color-accent-cognac);
    opacity: 0.15;
  }

  @media (min-width: 640px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .service-card {
    background-color: var(--color-white);
    border: 1px solid #EAE5DF;
    padding: 3rem 2.2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      border-color 0.4s ease,
      box-shadow 0.4s ease;
    will-change: background-color;
  }

  .service-card:hover {
    background-color: rgba(141, 74, 35, 0.03);
    /* Soft warm cognac/beige tint equivalent to amber-50/30 */
    border-color: rgba(141, 74, 35, 0.18);
    box-shadow: 0 12px 30px rgba(141, 74, 35, 0.03);
  }

  .service-icon-wrapper {
    margin-bottom: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-cognac);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }

  .service-icon {
    width: 30px;
    height: 30px;
  }

  .service-card:hover .service-icon-wrapper {
    transform: translateY(-4px);
    /* Moves up by 4px */
  }

  .service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .service-card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
  }

  /* UX Boks Ratunkowy / CTA Banner */
  .services-cta-banner {
    background-color: rgba(141, 74, 35, 0.02);
    border: 1px solid rgba(141, 74, 35, 0.15);
    border-radius: 8px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .services-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    color: var(--color-text-main);
    font-weight: 700;
    margin: 0;
  }

  .services-cta-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 0 0.5rem 0;
  }

  .btn-services-cta {
    align-self: center;
  }

  /* About Section */
  .about-section {
    padding: 8rem 2rem;
    background-color: var(--color-bg-warm);
    overflow: hidden;
  }

  .about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
  }

  @media (min-width: 1024px) {
    .about-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 6rem;
    }
  }

  .about-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  @media (min-width: 1024px) {
    .about-visual {
      margin: 0 0 0 auto;
    }
  }

  .about-bg-text {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-sans);
    font-size: clamp(6rem, 12vw, 12rem);
    font-weight: 100;
    color: rgba(0, 0, 0, 0.025);
    letter-spacing: 0.05em;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    will-change: transform;
  }

  .about-bg-arch {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 300px;
    height: 450px;
    border: 1px solid rgba(141, 74, 35, 0.2);
    border-bottom: none;
    border-radius: 150px 150px 0 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
  }

  .about-baseline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(141, 74, 35, 0.2);
    z-index: 3;
    pointer-events: none;
  }

  .about-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 520px;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    z-index: 4;
    will-change: transform;
    pointer-events: none;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .about-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .about-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2rem;
  }

  .about-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .about-body p {
    font-size: 1.025rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
  }

  .about-quote {
    border-left: 2.5px solid var(--color-accent-cognac);
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .quote-text {
    font-style: italic;
    font-size: 1.075rem;
    color: var(--color-accent-cognac);
    line-height: 1.6;
    margin: 0;
  }

  .quote-author {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-style: normal;
  }

  /* Process Section */
  .process-section {
    padding: 8rem 2rem;
    background-color: var(--color-bg-warm);
  }

  .process-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
  }

  .process-header {
    text-align: center;
    margin-bottom: 5.5rem;
  }

  .process-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .process-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
  }

  .process-steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .process-line-bg,
  .process-line-progress {
    position: absolute;
    left: 39px;
    top: 40px;
    bottom: 120px;
    width: 2px;
    pointer-events: none;
    z-index: 1;
  }

  .process-line-bg {
    background-color: rgba(141, 74, 35, 0.15);
  }

  .process-line-progress {
    background-color: var(--color-accent-cognac);
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
  }

  .process-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .process-step-node {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-cognac);
    background-color: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(141, 74, 35, 0.05);
  }

  .process-step-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-cognac);
  }

  .process-step-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.8rem;
    opacity: 0.4;
  }

  .process-step-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-cognac);
    margin-bottom: 0.5rem;
  }

  .process-step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .process-step-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
  }

  @media (min-width: 1024px) {
    .process-steps-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4rem;
    }

    .process-line-bg,
    .process-line-progress {
      left: 16.66%;
      right: 16.66%;
      top: 40px;
      bottom: auto;
      width: auto;
      height: 2px;
    }

    .process-line-progress {
      transform: scaleX(0);
      transform-origin: left center;
    }

    .process-step {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 2rem;
    }

    .process-step-content {
      align-items: center;
      padding-top: 0;
    }
  }

  /* ==========================================================================
     SEKCJA 5: BAZA WIEDZY (BLOG)
     ========================================================================== */
  .blog-section {
    padding: 8rem 2rem;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
  }

  .blog-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 4rem;
    align-items: flex-start;
  }

  .blog-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
  }

  .blog-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .blog-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .blog-card {
    padding: 2.5rem 2rem;
    border-left: 1px solid rgba(141, 74, 35, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    border-radius: 6px;
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      box-shadow 0.4s ease;
  }

  .blog-card:hover {
    background-color: rgba(141, 74, 35, 0.03);
    box-shadow: 0 12px 32px rgba(141, 74, 35, 0.04);
  }

  .blog-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
  }

  .blog-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.2rem;
    line-height: 1.35;
    transition: color 0.3s ease;
  }

  .blog-card:hover .blog-card-title {
    color: var(--color-accent-cognac);
  }

  .blog-card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
  }

  .blog-card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent-cognac);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s ease;
  }

  .blog-card-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }

  .blog-card:hover .blog-card-link {
    color: var(--color-accent-dark);
  }

  .blog-card:hover .blog-card-link::after {
    transform: translateX(6px);
  }

  /* Footer z motywem linii */
  .blog-footer {
    max-width: var(--max-width);
    margin: 5rem auto 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .blog-footer-line {
    position: absolute;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background-color: rgba(141, 74, 35, 0.15);
    z-index: 1;
  }

  .btn-blog-more {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    color: var(--color-accent-cognac);
    border: 1px solid var(--color-accent-cognac);
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-blog-more:hover {
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(141, 74, 35, 0.1);
  }
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@layer utilities {
  @media (max-width: 1024px) {
    .hero-container {
      gap: 3rem;
    }

    .blog-container {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .blog-header {
      text-align: center;
      align-items: center;
    }

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

    .blog-card {
      padding: 2rem 1.25rem;
      border-left: none;
      border-bottom: 1px solid rgba(141, 74, 35, 0.12);
      border-radius: 6px;
      transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    }

    .blog-card:last-child {
      border-bottom: none;
    }

    .blog-footer {
      margin-top: 3.5rem;
    }
  }

  @media (max-width: 992px) {
    .contact-container {
      grid-template-columns: 1fr;
      gap: 4rem;
      padding-bottom: 4rem;
    }

    .contact-form-box {
      padding: 3rem 2rem;
    }

    .hero-container {
      grid-template-columns: 1fr;
      gap: 4rem;
      text-align: center;
    }

    .hero-content {
      align-items: center;
    }

    .hero-description {
      margin-left: auto;
      margin-right: auto;
    }

    .hero-actions {
      justify-content: center;
    }

    .hero-visual {
      order: -1;
      /* Place image on top for tablets/mobile */
      max-width: 600px;
      margin: 0 auto;
    }

    .hero-image-wrapper {
      aspect-ratio: 16 / 10;
    }
  }

  @media (max-width: 768px) {

    /* Header layout changes */
    .nav-desktop,
    .header-cta {
      display: none;
    }

    .hamburger {
      display: block;
    }

    .header-container {
      padding: 1.2rem 1.5rem;
    }

    .site-header.scrolled .header-container {
      padding: 0.9rem 1.5rem;
    }

    /* Hero adjustments */
    .hero-section {
      padding: 1.5rem 1.5rem 3rem;
    }

    .hero-bg-text {
      font-size: clamp(8.5rem, 20vw, 11rem);
      left: -20px;
    }

    .hero-title {
      margin-bottom: 1.5rem;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
      width: 100%;
      padding: 1rem 1.5rem;
    }

    /* Floating Action Button (FAB) logic */
    .fab-phone {
      display: flex;
    }

    .fab-phone.visible {
      opacity: 1;
      visibility: visible;
    }

    /* Mobile Navigation Delay animations */
    .mobile-menu-overlay.active .mobile-nav-link:nth-child(1) {
      transition-delay: 0.1s;
    }

    .mobile-menu-overlay.active .mobile-nav-link:nth-child(2) {
      transition-delay: 0.18s;
    }

    .mobile-menu-overlay.active .mobile-nav-link:nth-child(3) {
      transition-delay: 0.26s;
    }

    .mobile-menu-overlay.active .mobile-nav-link:nth-child(4) {
      transition-delay: 0.34s;
    }

    .mobile-menu-overlay.active .mobile-nav-link:nth-child(5) {
      transition-delay: 0.42s;
    }

    /* Decorative lines around services grid adjustments for mobile */
    .grid-line-top {
      top: -10px;
      left: -25px;
      right: -25px;
    }

    .grid-line-bottom {
      bottom: -10px;
      left: -25px;
      right: -25px;
    }

    .grid-line-left {
      left: -10px;
      top: -25px;
      bottom: -25px;
    }

    .grid-line-right {
      right: -10px;
      top: -25px;
      bottom: -25px;
    }

    /* About mecenas visual scaling on mobile to prevent right overflow */
    .about-visual {
      max-width: 320px;
      height: 440px;
      margin: 0 auto;
    }

    .about-bg-arch {
      width: 220px;
      height: 330px;
      border-radius: 110px 110px 0 0;
    }

    .about-silhouette {
      height: 380px;
    }

    /* Center text on blog more button on mobile */
    .btn-blog-more {
      display: block;
      text-align: center;
      width: 100%;
    }
  }
}

@layer sections {
  /* ==========================================================================
     SEKCJA 6: FAQ
     ========================================================================== */
  .faq-section {
    padding: 8rem 2rem;
    background-color: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(141, 74, 35, 0.05);
  }

  .faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  .faq-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .faq-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .faq-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
  }

  .faq-divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-accent-cognac);
    margin-top: 1.5rem;
    opacity: 0.3;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(141, 74, 35, 0.15);
  }

  .faq-item {
    border-bottom: 1px solid rgba(141, 74, 35, 0.15);
  }

  .faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    cursor: pointer;
    text-align: left;
    outline: none;
  }

  .faq-question {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    font-weight: 600;
    color: var(--color-text-main);
    transition: color 0.3s ease;
    padding-right: 2rem;
  }

  .faq-trigger:hover .faq-question {
    color: var(--color-accent-cognac);
  }

  .faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
  }

  .faq-icon-line {
    position: absolute;
    background-color: var(--color-accent-cognac);
    transition: background-color 0.3s ease;
  }

  .faq-icon-v {
    width: 2px;
    height: 100%;
  }

  .faq-icon-h {
    width: 100%;
    height: 2px;
  }

  .faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
  }

  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
  }

  .faq-answer[aria-hidden="false"] {
    grid-template-rows: 1fr;
  }

  .faq-answer-content {
    min-height: 0;
  }

  .faq-answer-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    padding-bottom: 1.8rem;
  }

  /* ==========================================================================
     SEKCJA 5: OPINIE KLIENTÓW
     ========================================================================== */
  .reviews-section {
    padding: 8rem 2rem;
    background-color: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
  }

  .reviews-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .reviews-header {
    margin-bottom: 5rem;
    text-align: left;
  }

  .reviews-overtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent-cognac);
    margin-bottom: 1rem;
  }

  .reviews-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
  }

  /* Kontrolki nawigacji slidera */
  .reviews-nav {
    position: absolute;
    top: 2rem;
    right: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
  }

  .reviews-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(141, 74, 35, 0.2);
    background: transparent;
    color: var(--color-accent-cognac);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    flex-shrink: 0;
  }

  .reviews-nav-btn:hover {
    background-color: var(--color-accent-cognac);
    color: var(--color-white);
    border-color: var(--color-accent-cognac);
    transform: translateY(-1px);
  }

  .reviews-nav-btn:active {
    transform: translateY(0);
  }

  .reviews-nav-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    border-color: rgba(141, 74, 35, 0.1);
  }

  .reviews-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Slider Viewport & Track */
  .reviews-slider-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(141, 74, 35, 0.15);
    border-bottom: 1px solid rgba(141, 74, 35, 0.15);
  }

  .reviews-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
  }

  .review-card {
    flex: 0 0 33.333333%;
    box-sizing: border-box;
    border-right: 1px solid rgba(141, 74, 35, 0.15);
    display: flex;
    flex-direction: column;
  }

  .review-card-inner {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    transition: background-color 0.4s ease;
  }

  .review-card-inner:hover {
    background-color: rgba(141, 74, 35, 0.02);
  }

  .review-stars {
    color: var(--color-accent-cognac);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
  }

  .review-focus {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-cognac);
    margin-bottom: 2rem;
  }

  .review-quote {
    flex-grow: 1;
    margin-bottom: 2.5rem;
  }

  .review-quote p {
    font-size: clamp(1rem, 1.05vw, 1.1rem);
    color: var(--color-text-muted);
    line-height: 1.7;
  }

  .review-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .review-author {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    font-style: normal;
  }

  .review-source {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(141, 74, 35, 0.6);
    font-weight: 500;
  }

  /* Pionowe linie konstrukcyjne w tle */
  .reviews-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
  }

  .reviews-line {
    width: 1px;
    height: 100%;
    background-color: rgba(141, 74, 35, 0.04);
    transform-origin: center top;
  }

  @media (max-width: 1023px) {
    .reviews-header {
      margin-bottom: 3rem;
    }

    .reviews-nav {
      position: static;
      display: flex;
      justify-content: center;
      margin-top: 3rem;
      width: 100%;
    }

    .review-card {
      flex: 0 0 100%;
      border-right: none;
    }

    .review-card-inner {
      padding: 3.5rem 1.5rem;
    }
  }
}

/* Accessibility Support for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .hero-image.loaded {
    opacity: 1;
    animation: none !important;
  }

  .mobile-menu-overlay {
    transition: none !important;
  }

  .reveal-inner,
  .hero-subheader,
  .hero-description,
  .hero-actions {
    opacity: 1 !important;
    transform: none !important;
  }
}