/* ==========================================================================
   PODSTRONA: UBEZPIECZENIA FLOTY POJAZDÓW 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-flota-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 WYBRAĆ UBEZPIECZENIE FLOTY --- */
.ak-flota-why-section {
  padding: 10px 0 35px;
  background-color: var(--ak-bg-white);
}

/* --- 2. SEKCJA BENTO GRID (Główne korzyści floty) --- */
.ak-flota-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-flota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Bento Card styling - czysty, zorientowany na treść bez ikon */
.ak-flota-card {
  background: var(--ak-bg-white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(86, 168, 168, 0.2);
  box-shadow: 0 6px 24px rgba(28, 59, 74, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:  transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  box-sizing: border-box;
}

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

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

.ak-flota-card:hover {
  box-shadow: 0 16px 40px rgba(28, 59, 74, 0.09);
  border-color: rgba(86, 168, 168, 0.5);
}

.ak-flota-card .card-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ak-flota-card .card-badge {
  display: inline-flex;
  align-self: flex-start;
  background-color: rgba(86, 168, 168, 0.12);
  color: var(--ak-teal-ink);
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  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-flota-card:hover .card-badge {
  background-color: var(--ak-teal-action);
  color: var(--ak-text-inverse);
}

.ak-flota-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-flota-card .card-text-wrapper {
  position: relative;
  max-height: 92px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Czcionka wewnątrz kart Bento zgodna z wzorcem z Nieruchomości */
.ak-flota-card p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
  color: #52525b;
  pointer-events: none;
  margin-bottom: 8px;
  text-align: left;
}

.ak-flota-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-flota-card .card-text-wrapper.expanded .card-text-fade {
  opacity: 0;
}

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

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

.ak-flota-card .expand-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

/* Specyficzne układy kart Bento wzorowane na sekcji Firmy */
.ak-flota-card.card-1 {
  grid-column: span 2;
}

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

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

.ak-flota-card.card-5 {
  grid-column: span 2;
}

.ak-flota-card.card-6 {
  grid-column: span 1;
}

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

/* --- 4. SEKCJA KONTAKT CTA (3 PRZYCISKI) --- */
.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 {
  width: 100%;
  margin-bottom: 30px;
}

.ak-contact-header h2 {
  font-family: 'Outfit', 'Outfit Fallback', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  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 16px 0;
  width: 100%;
}

.ak-contact-header p {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ak-text-gray);
  margin: 0 0 24px 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-contact-header p {
    margin-left: 20px;
  }
}

/* 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;
  margin: 0 auto;
  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-flota-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
  }
  .ak-flota-card.card-1 {
    grid-column: span 2;
  }
  .ak-flota-card.card-2 {
    grid-column: span 2;
    grid-row: span 1;
  }
  .ak-flota-card.card-3,
  .ak-flota-card.card-4,
  .ak-flota-card.card-5,
  .ak-flota-card.card-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

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

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

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

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

  .ak-flota-card,
  .ak-flota-card.card-1,
  .ak-flota-card.card-2,
  .ak-flota-card.card-3,
  .ak-flota-card.card-4,
  .ak-flota-card.card-5,
  .ak-flota-card.card-6 {
    grid-column: span 1 !important;
    grid-row: auto !important;
    padding: 24px 20px;
    align-items: center;
    text-align: center;
  }

  .ak-flota-card h3 {
    text-align: center !important;
    width: 100%;
    min-height: auto;
  }

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

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

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

/* ==========================================================================
   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;
  }
}
