/* ===== Shared styles for inner pages (all except the home page index.html) ===== */
/* This file is included on inner pages only, so the home page is not affected. */

/* --- Navbar is black right away on page load (desktop) --- */
#ftco-navbar.ftco-navbar-light,
#ftco-navbar.ftco-navbar-light.scrolled,
#ftco-navbar.ftco-navbar-light.awake,
#ftco-navbar.ftco-navbar-light.sleep {
  background: #000000 !important;
  top: 0 !important;
}

/* --- Mobile: override the hard transparency rule from style.css --- */
/* style.css declares html body #ftco-navbar.ftco-navbar-light:not(.scrolled){background:transparent}
   — that is what made the navbar transparent at the top. We override it to black
   with the same selector. */
@media (max-width: 991.98px) {
  html body #ftco-navbar.ftco-navbar-light,
  html body #ftco-navbar.ftco-navbar-light:not(.scrolled),
  html body #ftco-navbar.ftco-navbar-light.scrolled,
  html body #ftco-navbar.ftco-navbar-light.awake,
  html body #ftco-navbar.ftco-navbar-light.sleep {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    top: 0 !important;
  }
}

/* --- Small gap between the navbar and the content (the hero section was removed) --- */
.ftco-section.about-me-section,
.ftco-section.about-us-section,
.ftco-section.services-overview-section,
.ftco-section.faq-section,
.ftco-section.contact-section,
.ftco-section.privacy-section {
  padding-top: 8em;
}

/* On mobile — gap between the navbar and the content */
@media (max-width: 991.98px) {
  .ftco-section.about-me-section,
  .ftco-section.about-us-section,
  .ftco-section.services-overview-section,
  .ftco-section.faq-section,
  .ftco-section.contact-section,
  .ftco-section.privacy-section {
    padding-top: 5em;
  }
}


/* ===== "Dlaczego my" section on the O nas page (danycars-o-nas.html) ===== */
.why-choose { position: relative; }
.why-choose .container { position: relative; }
.why-choose .wc-intro { position: relative; margin-bottom: 3.2em; }
.why-choose .subheading {
  display: block; color: #ffc107; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.why-choose .wc-title {
  font-size: 44px; line-height: 1.15; font-weight: 700; color: #1f2733; margin: 0 0 18px;
}
.why-choose .wc-lead { color: #6b7280; font-size: 17px; line-height: 1.7; max-width: 720px; margin: 0; }

/* decorative dot grid in the top right corner */
.why-choose .wc-dots {
  position: absolute; top: 0; right: 15px; width: 120px; height: 88px;
  background-image: radial-gradient(#dfe3e8 2px, transparent 2px);
  background-size: 16px 16px; pointer-events: none;
}

.why-choose .wc-grid { margin-top: .5em; }
.why-choose .wc-item { padding: 20px 26px 24px; }
.why-choose .wc-icon { width: 54px; height: 54px; margin-bottom: 16px; color: #ffc107; }
.why-choose .wc-icon svg { width: 100%; height: 100%; display: block; }
.why-choose .wc-item h3 { font-size: 18px; font-weight: 700; color: #1f2733; line-height: 1.3; margin: 0 0 10px; }
.why-choose .wc-item p { color: #6b7280; font-size: 15px; line-height: 1.65; margin: 0; }

/* vertical dividers between the columns (desktop) — with top/bottom spacing */
@media (min-width: 992px) {
  .why-choose .wc-grid .wc-item { position: relative; }
  .why-choose .wc-grid .wc-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #e9ecef;
  }
  .why-choose .wc-grid .wc-item:nth-child(4n+1)::before { display: none; }
}

/* responsive: tablet */
@media (max-width: 991.98px) {
  .why-choose .wc-title { font-size: 34px; }
  .why-choose .wc-dots { display: none; }
  .why-choose .wc-item { padding: 18px 16px 22px; }
}

/* responsive: phone — icon on the left, text on the right */
@media (max-width: 767.98px) {
  .why-choose .wc-title { font-size: 27px; }
  .why-choose .wc-lead { font-size: 16px; }
  .why-choose .wc-intro { margin-bottom: 2em; }

  .why-choose .wc-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 16px 6px;
  }
  .why-choose .wc-item .wc-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 2px 0 0;
  }
  .why-choose .wc-item h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 6px;
  }
  .why-choose .wc-item p {
    grid-column: 2;
    grid-row: 2;
  }
}


/* ===== "Dlaczego my" section on the O nas page (danycars-o-nas.html) ===== */
.why-choose { position: relative; }
.why-choose .container { position: relative; }
.why-choose .wc-intro { position: relative; margin-bottom: 3.2em; }
.why-choose .subheading {
  display: block; color: #ffc107; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.why-choose .wc-title {
  font-size: 44px; line-height: 1.15; font-weight: 700; color: #1f2733; margin: 0 0 18px;
}
.why-choose .wc-lead { color: #6b7280; font-size: 17px; line-height: 1.7; max-width: 720px; margin: 0; }

/* decorative dot grid in the top right corner */
.why-choose .wc-dots {
  position: absolute; top: 0; right: 15px; width: 120px; height: 88px;
  background-image: radial-gradient(#dfe3e8 2px, transparent 2px);
  background-size: 16px 16px; pointer-events: none;
}

.why-choose .wc-grid { margin-top: .5em; }
.why-choose .wc-item { padding: 20px 26px 24px; }
.why-choose .wc-icon { width: 54px; height: 54px; margin-bottom: 16px; color: #ffc107; }
.why-choose .wc-icon svg { width: 100%; height: 100%; display: block; }
.why-choose .wc-item h3 { font-size: 18px; font-weight: 700; color: #1f2733; line-height: 1.3; margin: 0 0 10px; }
.why-choose .wc-item p { color: #6b7280; font-size: 15px; line-height: 1.65; margin: 0; }

/* vertical dividers between the columns (desktop) — with top/bottom spacing */
@media (min-width: 992px) {
  .why-choose .wc-grid .wc-item { position: relative; }
  .why-choose .wc-grid .wc-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #e9ecef;
  }
  .why-choose .wc-grid .wc-item:nth-child(4n+1)::before { display: none; }
}

/* responsive: tablet */
@media (max-width: 991.98px) {
  .why-choose .wc-title { font-size: 34px; }
  .why-choose .wc-dots { display: none; }
  .why-choose .wc-item { padding: 18px 16px 22px; }
}

/* responsive: phone — icon on the left, text on the right + lines between blocks */
@media (max-width: 767.98px) {
  .why-choose .wc-title { font-size: 27px; }
  .why-choose .wc-lead { font-size: 16px; }
  .why-choose .wc-intro { margin-bottom: 2em; }

  .why-choose .wc-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 16px 6px;
  }
  .why-choose .wc-item .wc-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    margin: 2px 0 0;
  }
  .why-choose .wc-item h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 6px;
  }
  .why-choose .wc-item p {
    grid-column: 2;
    grid-row: 2;
  }
  /* thin grey line between the blocks (phone only) */
  .why-choose .wc-grid .wc-item + .wc-item {
    border-top: 1px solid #eef0f2;
  }
}


/* ============================================================
   "O mnie" section on the O nas page (danycars-o-nas.html)
   It comes BEFORE the "Dlaczego my" section. Colors and typography
   follow the site style.
   ============================================================ */
.about-me-section { padding-bottom: 3em; }
.about-me-section .row { position: relative; }

.ftco-section.about-me-section {
  padding-top: 5.5em;
}
.about-me-section .container { width: 100%; }

/* Left column (text) */
.about-me-section .am-text-col { padding-right: 3.5em; }

.about-me-section .am-subheading {
  display: block;
  color: #ffc107;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.about-me-section .am-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: #1f2733;
  margin: 0 0 12px;
}
.about-me-section .am-subtitle {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  color: #1f2733;
  margin: 0 0 14px;
}
.about-me-section .am-subtitle .am-accent { color: #ffc107; }

.about-me-section .am-divider {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: #ffc107;
  margin: 0 0 16px;
}

.about-me-section .am-body p {
  color: #5b626d;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.about-me-section .am-body p:last-child { margin-bottom: 0; }
.about-me-section .am-body strong { color: #1f2733; font-weight: 700; }
.about-me-section .am-brand { color: #ffc107; font-weight: 700; }

/* Statistics block */
.about-me-section .am-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 22px;
}
.about-me-section .am-stat { position: relative; padding-left: 14px; min-width: 0; }
.about-me-section .am-stat + .am-stat::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #e9ecef;
}
.about-me-section .am-stat-icon {
  display: block;
  width: 30px;
  height: 30px;
  color: #ffc107;
  margin-bottom: 10px;
}
.about-me-section .am-stat-icon svg { width: 100%; height: 100%; display: block; }
/* Fixed height for the number — so the captions below stay on the same level
   regardless of the font size used for it (normal or the reduced --wide one) */
.about-me-section .am-stat-num {
  display: flex;
  align-items: flex-end;
  height: 26px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2733;
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
}
/* Longer value ("Cała Polska") — smaller font size so it fits on one line */
.about-me-section .am-stat-num.am-stat-num--wide {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.about-me-section .am-stat-label {
  display: block;
  color: #8a919c;
  font-size: 13px;
  line-height: 1.4;
}

/* Quote with a signature */
.about-me-section .am-quote {
  position: relative;
  background: #f6f7f8;
  border-radius: 14px;
  padding: 18px 22px 16px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.about-me-section .am-quote-mark {
  position: absolute;
  left: 20px;
  top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
  color: #ffc107;
}
.about-me-section .am-quote p {
  margin: 0;
  color: #3d444e;
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1 1 auto;
}
.about-me-section .am-sign {
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
  font-size: 28px;
  color: #ffc107;
  line-height: 1;
  white-space: nowrap;
}
/* Duplicate of the quote for mobile (see the HTML): hidden until enabled in @media 767.98 */
.about-me-section .am-quote--mobile { display: none; }

/* Right column (photo) */
.about-me-section .am-photo-col { display: flex; }
.about-me-section .am-photo {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.35);
}
.about-me-section .am-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(560px, 62dvh);
  object-fit: cover;
  object-position: center bottom; /* when cropping, cut the sky at the top rather than the feet at the bottom */
}

/* ===== Desktop only (≥992px): the "O mnie" section fits exactly ONE screen =====
   Section height = screen height (100dvh). The content is centered vertically.
   The photo fills the full height of the right column (flush with the text block
   on the left) — without any scrolling up or down. */
@media (min-width: 992px) {
  .ftco-section.about-me-section {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;              /* safeguard for very short browser windows */
    padding: 92px 0 26px;          /* space at the top for the black navbar */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;           /* content vertically centered on the screen */
    overflow: hidden;              /* nothing goes outside the screen */
  }
  .about-me-section > .container { width: 100%; }

  /* Text — tighter, so the left column fits within the height */
  .about-me-section .am-text-col { padding-right: 3em; }
  .about-me-section .am-title { font-size: 30px; margin-bottom: 8px; }
  .about-me-section .am-subheading { margin-bottom: 8px; }
  .about-me-section .am-subtitle { font-size: 15px; margin-bottom: 10px; }
  .about-me-section .am-divider { margin-bottom: 10px; }
  .about-me-section .am-body p { font-size: 13.5px; line-height: 1.5; margin-bottom: 9px; }
  .about-me-section .am-stats { margin: 16px 0 16px; }
  .about-me-section .am-quote { padding: 13px 20px 12px 48px; }
  .about-me-section .am-quote p { font-size: 13.5px; }
  .about-me-section .am-quote-mark { font-size: 34px; top: 8px; left: 18px; }
  .about-me-section .am-sign { font-size: 24px; }

  /* Photo — flush with the text block: the top of the photo at the "O MNIE"
     level, the bottom at the bottom of the quote card (no top/bottom spacing).
     Absolute positioning inside the already stretched (align-items-stretch)
     column is a reliable way to avoid height "jumps" and section bloat. */
  .about-me-section .am-photo-col {
    position: relative;
    display: block;
  }
  .about-me-section .am-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .about-me-section .am-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    -o-object-fit: cover;
    object-fit: cover;
    margin: 0;
  }

  .ftco-section.about-us-section { padding-top: 2.5em; }
  .why-choose .wc-title { font-size: 34px; }
}

/* ===== Responsive (tablet/phone) ===== */
@media (max-width: 991.98px) {
  .ftco-section.about-me-section { padding-top: 4em; }
  .about-me-section .am-text-col { padding-right: 15px; margin-bottom: 2.2em; }
  .about-me-section .am-title { font-size: 30px; }
  .about-me-section .am-stats { gap: 18px 16px; }
  .about-me-section .am-stat-num { font-size: 20px; height: 24px; }
  .about-me-section .am-stat-num.am-stat-num--wide { font-size: 17px; }
  .about-me-section .am-photo img { min-height: min(420px, 50dvh); }
}

@media (max-width: 767.98px) {
  .ftco-section.about-me-section { padding-top: 3em; }
  .about-me-section { padding-bottom: 1.2em; }
  .ftco-section.about-us-section { padding-top: 2em; }
  .about-me-section .am-title { font-size: 25px; }
  .about-me-section .am-subtitle { font-size: 16px; }
  /* Statistics — 2 columns on phones */
  .about-me-section .am-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 16px;
  }
  .about-me-section .am-stat { padding-left: 0; }
  .about-me-section .am-stat + .am-stat::before { display: none; }
  .about-me-section .am-stat-num { font-size: 19px; height: 23px; }
  .about-me-section .am-stat-num.am-stat-num--wide { font-size: 16px; }
  .about-me-section .am-quote {
    padding: 20px 22px 18px 52px;
    justify-content: flex-start;
  }
  .about-me-section .am-sign { font-size: 26px; }
  .about-me-section .am-photo img { min-height: min(340px, 40dvh); }

  /* On phones the quote card moves below the photo (after am-photo-col) */
  .about-me-section .am-photo-col { flex-direction: column; }
  .about-me-section .am-quote--desktop { display: none; }
  .about-me-section .am-quote--mobile { display: flex; margin-top: 22px; }
}

/* Extra spacing between the text and the statistics icons — TABLET ONLY (768–991px),
   mobile is untouched; on desktop the section fits one screen (see the ≥992px block). */
@media (min-width: 768px) and (max-width: 991.98px) {
  .about-me-section .am-stats { margin-top: 72px; }
}