/* ==========================================================================
   PODSTRONA: UBEZPIECZENIA NNW WROCŁAW (A&K WAWRO)
   Zgodność 1:1 z Design System: design_system_typography_rules.md
   ========================================================================== */

/* --- GŁÓWNY KONTENER PODSTRONY --- */
.ak-subpage-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumbs */
.ak-breadcrumbs {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13.5px;
  color: var(--ak-text-gray);
  margin-bottom: 24px;
  text-align: left;
}

.ak-breadcrumbs a {
  color: var(--ak-teal-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ak-breadcrumbs a:hover {
  text-decoration: underline;
}

.ak-breadcrumbs span {
  margin: 0 6px;
  opacity: 0.6;
}

/* --- 1. SEKCJA HERO & INTRO --- */
.ak-nnw-hero-section {
  padding: 40px 0 35px;
  background-color: var(--ak-bg-white);
}

.ak-subpage-h1 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--ak-text-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.25;
  margin: 0 0 20px 0;
  width: 100%;
  max-width: 100%;
}

.ak-subpage-h1 .ak-teal-highlight {
  color: var(--ak-teal-ink);
}

.ak-subpage-intro-p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  margin: 0 0 16px 0;
  width: 90%;
  max-width: 90%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .ak-subpage-intro-p {
    margin-left: 20px;
  }
}

.ak-subpage-h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
  margin: 36px 0 16px 0;
  width: 100%;
  max-width: 100%;
}

/* --- SEKCJA: DLACZEGO WARTO KORZYSTAĆ Z UBEZPIECZENIA NNW --- */
.ak-nnw-why-section {
  padding: 10px 0 35px;
  background-color: var(--ak-bg-white);
}

/* --- 2. SEKCJA BENTO GRID (Główne korzyści NNW) --- */
.ak-nnw-bento-section {
  padding: 45px 0 60px;
  background-color: #fafcfc;
  border-top: 1px solid rgba(86, 168, 168, 0.12);
  border-bottom: 1px solid rgba(86, 168, 168, 0.12);
}

.ak-bento-header h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: left;
  text-wrap: normal;
  -webkit-text-wrap: normal;
  line-height: 1.3;
  margin: 0 0 30px 0;
  width: 100%;
}

.ak-nnw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  width: 100%;
}

/* Bento Card styling */
.ak-nnw-card {
  background: var(--ak-bg-white);
  border-radius: 20px;
  padding: 34px;
  border: 1px solid rgba(86, 168, 168, 0.18);
  box-shadow: 0 8px 30px rgba(28, 59, 74, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:  transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.ak-nnw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(86, 168, 168, 0.08), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.ak-nnw-card:hover::before {
  opacity: 1;
}

.ak-nnw-card:hover {
  box-shadow: 0 20px 50px rgba(28, 59, 74, 0.08);
  border-color: rgba(86, 168, 168, 0.45);
}

.ak-nnw-card .card-content {
  z-index: 2;
}

.ak-nnw-card .card-badge {
  display: inline-flex;
  background-color: rgba(86, 168, 168, 0.1);
  color: var(--ak-teal-ink);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  transition:  transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.ak-nnw-card:hover .card-badge {
  background-color: var(--ak-teal-action);
  color: var(--ak-text-inverse);
}

.ak-nnw-card h3 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 21px;
  color: var(--ak-navy-dark);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  pointer-events: none;
}

.ak-nnw-card .card-text-wrapper {
  position: relative;
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ak-nnw-card .card-text-wrapper.expanded {
  max-height: 800px;
}

.ak-nnw-card p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ak-text-gray);
  pointer-events: none;
  margin-bottom: 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.ak-nnw-card .card-text-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 90%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ak-nnw-card .card-text-wrapper.expanded .card-text-fade {
  opacity: 0;
}

.ak-nnw-card .expand-btn {
  background: none;
  border: none;
  color: var(--ak-teal-ink);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  outline: none;
  position: relative;
  z-index: 3;
}

.ak-nnw-card .expand-btn:hover {
  color: var(--ak-navy-dark);
}

.ak-nnw-card .expand-btn .arrow {
  transition: transform 0.3s ease;
}

.ak-nnw-card .visual-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 24px;
  z-index: 2;
  pointer-events: none;
}

.ak-nnw-card .bento-icon {
  width: 90px;
  height: 90px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 16px rgba(28, 59, 74, 0.06));
}

.ak-nnw-card:hover .bento-icon {
  transform: scale(1.06) translateZ(30px);
}

/* Specyficzne układy kart Bento w NNW */
.ak-nnw-card.card-1 {
  grid-column: span 2;
}

.ak-nnw-card.card-2 {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(185deg, var(--ak-bg-white) 0%, #f3f8f8 100%);
}

.ak-nnw-card.card-2 .visual-container {
  justify-content: center;
  margin-top: 36px;
  position: relative;
}

.ak-nnw-card.card-2 .bento-icon {
  width: 145px;
  height: 145px;
}

.ak-nnw-card .price-tag-callout {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateZ(25px);
  background: #1c3b4a;
  color: var(--ak-text-inverse);
  padding: 10px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(28, 59, 74, 0.15);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:  transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.ak-nnw-card.card-2:hover .price-tag-callout {
  background: var(--ak-teal-action);
  transform: translateX(-50%) translateZ(60px) scale(1.05);
}

.ak-nnw-card.card-3,
.ak-nnw-card.card-4 {
  grid-column: span 1;
}

/* --- 3. SEKCJA: CO OFERUJE UBEZPIECZENIE NNW --- */
.ak-nnw-offer-section {
  padding: 40px 0 50px;
  background-color: var(--ak-bg-white);
}

/* --- 4. SEKCJA KONTAKT CTA --- */
.ak-contact-cta-section {
  padding: 50px 0 65px;
  background-color: #fafcfc;
  border-top: 1px solid rgba(86, 168, 168, 0.12);
  text-align: center;
}

.ak-contact-header h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--ak-navy-dark);
  text-align: center;
  line-height: 1.3;
  margin: 0 0 12px 0;
  width: 100%;
}

.ak-contact-header p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 17px;
  color: var(--ak-text-gray);
  margin: 0 auto 30px;
  max-width: 720px;
  text-align: center;
}

/* Centered CTA Buttons (Pill shape, 3 buttons stacked) */
.wawro-wrapper-x9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.wawro-btn-x9 {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  background: var(--ak-teal-action-gradient);
  color: var(--ak-text-inverse);
  text-decoration: none;
  padding: 14px 22px 14px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -6px rgba(31, 95, 104, 0.45);
  transition:  transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.wawro-btn-x9::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-200%) skewX(-25deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.wawro-btn-x9:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(31, 95, 104, 0.55);
  color: var(--ak-text-inverse);
}

.wawro-btn-x9:hover::before {
  transform: translateX(400%) skewX(-25deg);
}

.wawro-icon-x9 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  margin-right: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.wawro-icon-x9 svg {
  width: 24px;
  height: 24px;
  fill: var(--ak-text-inverse);
}

.wawro-content-x9 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wawro-title-x9 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.wawro-sub-x9 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 1;
  letter-spacing: 0.2px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
  .ak-nnw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ak-nnw-card.card-1 {
    grid-column: span 2;
  }
  .ak-nnw-card.card-2 {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .ak-nnw-card.card-2 .visual-container {
    margin-top: 0;
    flex: 1;
  }
  .ak-nnw-card.card-2 .card-content {
    flex: 1.2;
  }
  .ak-nnw-card.card-2 .price-tag-callout {
    bottom: -10px;
  }
}

@media (max-width: 768px) {
  .ak-nnw-hero-section {
    padding: 30px 0 25px;
  }

  .ak-subpage-h1,
  .ak-subpage-h2,
  .ak-bento-header h2,
  .ak-breadcrumbs {
    text-align: center !important;
  }

  .ak-subpage-intro-p {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 16px;
  }

  .ak-nnw-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ak-nnw-card,
  .ak-nnw-card.card-1,
  .ak-nnw-card.card-2 {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
    padding: 24px;
    align-items: center;
    text-align: center;
  }

  .ak-nnw-card p {
    text-align: center !important;
  }

  .ak-nnw-card .visual-container,
  .ak-nnw-card.card-2 .visual-container {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  .ak-nnw-card.card-2 .price-tag-callout {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none !important;
    margin-top: 15px;
  }

  .wawro-wrapper-x9 {
    padding: 0 10px;
  }

  .wawro-btn-x9 {
    max-width: 100%;
  }
}


/* Ujednolicony akapit bento card (Wzorzec Design System) */
[class*="-card"] p, .ak-kontakt-bento-content p {
  font-family: 'Inter', 'Inter Fallback', sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  color: #52525b !important;
  margin-bottom: 8px !important;
}

/* Ujednolicone nagłówki H2/H3/H4 */
.ak-subpage-h2, .ak-bento-header h2, .ak-contact-header h2, .ak-guide-header h3, .ak-process-header h2, .ak-faq-header h2, [class*="-card"] h3, .ak-kontakt-bento-content h3 {
  color: var(--ak-navy-dark) !important;
}

/* Ujednolicony akapit sekcji kontaktowej i intro */
.ak-subpage-intro-p, .ak-contact-header p {
  font-family: 'Inter', 'Inter Fallback', sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  color: var(--ak-text-gray) !important;
  margin: 0 0 16px 0;
  width: 90%;
  max-width: 90%;
  box-sizing: border-box;
}

.ak-contact-header p {
  font-size: 17px !important;
  margin-bottom: 24px !important;
}

@media (min-width: 769px) {
  [class*="-card"] p, .ak-kontakt-bento-content p {
    text-align: left !important;
  }
  .ak-subpage-intro-p, .ak-contact-header p {
    margin-left: 20px !important;
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* RESPONSYWNOŚĆ MOBILNA - CENTROWANIE NAGŁÓWKÓW, AKAPITÓW I KART */
@media (max-width: 768px) {
  .ak-subpage-h1,
  .ak-subpage-h2,
  .ak-bento-header h2,
  .ak-why-header h2,
  .ak-guide-header h3,
  .ak-process-header h2,
  .ak-faq-header h2,
  .ak-contact-header h2,
  [class*="-card"] h3,
  .card-content h3,
  .ak-kontakt-bento-content h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ak-subpage-intro-p,
  .ak-bento-header .section-desc,
  .ak-why-header p,
  .ak-guide-header p,
  .ak-process-header p,
  .ak-contact-header p,
  [class*="-card"] p,
  .card-content p,
  .card-text-wrapper p,
  .ak-kontakt-bento-content p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .card-badge {
    align-self: center !important;
  }

  .ak-breadcrumbs {
    text-align: center !important;
  }
}

/* ==========================================================================
   OGRANICZONY RUCH (2026-10-01, etap B): bez przechylania 3D kart, unoszenia ikon,
   połysku i animowanego rozwijania; zmiany koloru i cienia zostają jako informacja zwrotna.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [class*="-card"],
  [class*="-card"] .visual-container,
  [class*="-card"] .icon-layer,
  [class*="-card"] .price-tag-callout,
  .card-text-wrapper {
    transition-duration: 0.01s !important;
  }
  [class*="-card"]:hover .icon-layer {
    transform: none !important;
  }
  [class*="-card"]::before {
    display: none;
  }
}
