/* ============================================================
   KONTAKT.CSS — Dom Opieki Jantar
   Style wyłącznie dla podstrony kontakt.html.
   Importuj PO global.css.
   --------------------------------------------------------
   Zawiera:
   • Hero (full-bleed photo)
   • Breadcrumb
   • Karty kontaktowe (.contact-card)
   • Sekcja formularza (.form-section)
   • Elementy formularza (.form-field, .form-checkbox)
   • Sekcja mapy (.map-section, .map-info, .map-embed)
   • FAQ (.faq-section, .faq-item)
   --------------------------------------------------------
   Media queries: mobile-first, Bootstrap 5 breakpoints
============================================================ */


/* ============================================================
   HERO — full-bleed photo
============================================================ */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sage-deep);
}

/* Zdjęcie tła */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  max-width: none;
}

/* Overlay kierunkowy — ciemny po lewej (tekst), jasny po prawej (zdjęcie) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      95deg,
      rgba(80, 105, 60, 0.85)  0%,
      rgba(80, 105, 60, 0.55) 38%,
      rgba(80, 105, 60, 0.20) 65%,
      rgba(80, 105, 60, 0.05) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08)  0%,
      rgba(80, 105, 60, 0.20) 100%
    );
}

/* Linia dekoracyjna na dole hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.45;
  z-index: 2;
}

/* Container wewnątrz hero musi być nad overlayem */
.hero .container {
  position: relative;
  z-index: 3;
}

/* Treść hero */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 80px 72px;
  max-width: 620px;
}

/* Breadcrumb wewnątrz hero */
.hero .breadcrumb {
  margin-bottom: 24px;
}

.hero__heading {
  font-size: clamp(36px, 6vw, 72px);
  color: var(--white);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero__heading-em {
  font-style: italic;
  color: var(--sage-light);
  font-weight: 400;
}

.hero__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__lead-strong {
  color: var(--white);
  font-weight: 600;
}

/* Pillsy z ikonami */
.hero__pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
}

.hero__pill-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--sage);
  flex-shrink: 0;
}

/* sm ≥576px */
@media (min-width: 576px) {
  .hero__pills {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* md ≥768px */
@media (min-width: 768px) {
  .hero {
    min-height: 68vh;
  }

  .hero__content {
    padding-block: 100px 88px;
  }

  .hero__lead {
    font-size: 17px;
  }
}

/* lg ≥992px */
@media (min-width: 992px) {
  .hero__content {
    max-width: 560px;
  }
}


/* ============================================================
   BREADCRUMB
============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb__link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.breadcrumb__link:hover {
  color: var(--sage-light);
}

.breadcrumb__sep {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumb__current {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}


/* ============================================================
   KARTY KONTAKTOWE
============================================================ */

.contact-cards {
  padding-block: 96px 80px;
  background: var(--off-white);
}

.contact-cards__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-line);
  transition: border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.contact-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(80, 105, 48, 0.08);
}

/* Ikona karty */
.contact-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--sage-bg);
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 6px;
  transition: background var(--transition-base),
              color var(--transition-base);
}

.contact-card__icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  color: var(--sage-dark);
}

.contact-card:hover .contact-card__icon-wrap {
  background: var(--sage);
}

.contact-card:hover .contact-card__icon {
  color: var(--white);
}

/* Treść karty */
.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.contact-card__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  transition: color var(--transition-base);
}

.contact-card__value:is(a):hover {
  color: var(--sage-dark);
}

.contact-card__value--text {
  font-size: 22px;
}

.contact-card__meta {
  font-size: 13px;
  font-style: italic;
  color: var(--text-light);
}

.contact-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* Karta główna — telefon */
.contact-card--primary {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.contact-card--primary:hover {
  border-color: var(--sage-dark);
  box-shadow: 0 12px 32px rgba(80, 105, 48, 0.2);
}

.contact-card--primary .contact-card__icon-wrap {
  background: rgba(255, 255, 255, 0.12);
}

.contact-card--primary .contact-card__icon {
  color: var(--sage-light);
}

.contact-card--primary:hover .contact-card__icon-wrap {
  background: var(--sage-light);
}

.contact-card--primary:hover .contact-card__icon {
  color: var(--sage-deep);
}

.contact-card--primary .contact-card__label {
  color: var(--sage-light);
}

.contact-card--primary .contact-card__value {
  color: var(--white);
}

.contact-card--primary .contact-card__value:is(a):hover {
  color: var(--sage-light);
}

.contact-card--primary .contact-card__meta {
  color: rgba(255, 255, 255, 0.65);
}

.contact-card--primary .contact-card__desc {
  color: rgba(255, 255, 255, 0.82);
}

/* md ≥768px: 3 kolumny */
@media (min-width: 768px) {
  .contact-cards {
    padding-block: 80px;
  }

  .contact-cards__grid {
    flex-direction: row;
    align-items: stretch;
  }

  .contact-card {
    flex: 1 1 0;
    padding: 44px 32px;
  }
}

/* xl ≥1200px */
@media (min-width: 1200px) {
  .contact-card__value {
    font-size: 34px;
  }

  .contact-card__value--text {
    font-size: 24px;
  }
}


/* ============================================================
   SEKCJA FORMULARZA
============================================================ */

.form-section {
  padding-block: 80px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}

.form-section__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Intro */
.form-section__heading {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-block: 14px 16px;
}

.form-section__heading-em {
  font-style: italic;
  color: var(--sage-dark);
}

.form-section__lead {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Lista perków */
.form-section__perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.form-section__perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

.form-section__perk::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--sage-light);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.5l2 2 5-5' fill='none' stroke='%23506930' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  margin-top: 1px;
}

/* Wrapper formularza */
.form-section__wrapper {
  background: var(--white);
  border: 1px solid var(--gray-line);
  padding: 32px 24px;
}

/* ---- Formularz ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row--half {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.form-field__required {
  color: var(--sage-dark);
  margin-left: 2px;
}

.form-field__input,
.form-field__textarea {
  padding: 13px 15px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
  border-radius: 0;
}

.form-field__input:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(147, 178, 115, 0.15);
}

.form-field__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

/* Select z custom strzałką */
.form-field__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-field__select {
  width: 100%;
  padding: 13px 40px 13px 15px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-size: 15px;
  color: var(--text-dark);
  appearance: none;
  cursor: pointer;
  border-radius: 0;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.form-field__select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(147, 178, 115, 0.15);
}

.form-field__select-arrow {
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--gray-stone);
  pointer-events: none;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox__input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--sage-dark);
  cursor: pointer;
}

.form-checkbox__text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}

.form-checkbox__link {
  color: var(--sage-dark);
  text-decoration: underline;
}

.form-checkbox__link:hover {
  color: var(--sage-deep);
}

/* Sukces */
.form-success {
  display: none;
  padding: 14px 18px;
  background: var(--sage-bg);
  border: 1px solid var(--sage-light);
  border-left: 3px solid var(--sage);
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 2px;
}

.form-success--visible {
  display: block;
}

/* Nota prywatności */
.form-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
}

.form-note__link {
  color: var(--text-mid);
}

.form-note__link:hover {
  color: var(--sage-dark);
}

/* sm ≥576px */
@media (min-width: 576px) {
  .form-row--half {
    flex-direction: row;
    gap: 16px;
  }

  .form-row--half .form-field {
    flex: 1 1 0;
  }
}

/* md ≥768px */
@media (min-width: 768px) {
  .form-section__wrapper {
    padding: 44px 40px;
  }
}

/* lg ≥992px: 2 kolumny intro + formularz */
@media (min-width: 992px) {
  .form-section {
    padding-block: 100px;
  }

  .form-section__grid {
    flex-direction: row;
    gap: 80px;
    align-items: start;
  }

  .form-section__intro {
    flex: 1 1 0;
  }

  .form-section__wrapper {
    flex: 1.2 1 0;
    padding: 52px 44px;
  }
}

/* xl ≥1200px */
@media (min-width: 1200px) {
  .form-section__wrapper {
    padding: 56px 52px;
  }
}


/* ============================================================
   MAPA + DOJAZD
============================================================ */

.map-section {
  padding-block: 80px;
  background: var(--white);
}

.map-section__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

/* Info panel */
.map-info__heading {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-block: 14px 16px;
}

.map-info__heading-em {
  font-style: italic;
  color: var(--sage-dark);
}

.map-info__lead {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Lista szczegółów dojazdu */
.map-details {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.map-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--gray-line);
}

.map-detail:last-child {
  border-bottom: none;
}

.map-detail__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--sage-bg);
  border-radius: 50%;
  color: var(--sage-dark);
}

.map-detail__icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.map-detail__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-detail__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.map-detail__value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

/* Embed mapy */
.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--gray-line);
}

.map-embed__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* lg ≥992px: 2 kolumny */
@media (min-width: 992px) {
  .map-section {
    padding-block: 100px;
  }

  .map-section__grid {
    flex-direction: row;
    gap: 60px;
  }

  .map-info {
    flex: 1 1 0;
  }

  .map-embed {
    flex: 1.2 1 0;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 480px;
  }
}


/* ============================================================
   FAQ
============================================================ */

.faq-section {
  padding-block: 80px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-line);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

/* FAQ item — używa natywnego <details> */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-line);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.faq-item:hover {
  border-color: var(--sage);
}

.faq-item[open] {
  border-color: var(--sage);
  box-shadow: 0 8px 24px rgba(80, 105, 48, 0.06);
}

/* Summary — nagłówek pozycji FAQ */
.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Ikona + / × */
.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--sage-bg);
  border-radius: 50%;
  color: var(--sage-dark);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: background var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base);
}

.faq-item[open] .faq-item__icon {
  background: var(--sage);
  color: var(--white);
  transform: rotate(45deg);
}

/* Treść odpowiedzi */
.faq-item__answer {
  padding: 0 26px 24px;
  border-top: 1px solid var(--gray-line);
  margin-top: 0;
}

.faq-item__answer p {
  padding-top: 18px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-item__answer p + p {
  margin-top: 10px;
}

.faq-item__answer strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* md ≥768px */
@media (min-width: 768px) {
  .faq-section {
    padding-block: 100px;
  }

  .faq-item__question {
    font-size: 22px;
  }
}
