/*
 * home.css
 * Homepage-only refinements for front-page template sections.
 */

/* Homepage hero with cutout team photo */
.mc-home-hero {
  display: block;
  min-height: 760px;
  background: var(--cream);
  overflow: hidden;
}

.mc-home-hero-inner {
  display: grid;
  max-width: 1280px;
  min-height: 690px;
  grid-template-columns: minmax(390px, 520px) minmax(0, 1fr);
  gap: clamp(58px, 7vw, 112px);
  align-items: end;
  padding-top: 70px;
}

.mc-home-hero .mc-hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 520px;
  margin: 0;
  padding: 56px 0 90px;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mc-home-hero .mc-hero-badge {
  margin-bottom: 18px;
  color: var(--sage-dark);
  font-weight: 700;
}

.mc-home-hero h1 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 5.4vw, 5.2rem);
  line-height: .98;
  letter-spacing: 0;
}

.mc-home-hero p {
  max-width: 390px;
  margin-bottom: 32px;
  color: var(--text-dark);
  font-size: 1.08rem;
  line-height: 1.68;
}

.mc-home-hero .mc-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mc-home-hero-visual {
  position: relative;
  min-height: 650px;
}

.mc-home-hero-visual img {
  position: absolute;
  right: max(-2vw, -36px);
  bottom: -12px;
  width: min(50vw, 760px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(25, 52, 38, .14));
  pointer-events: none;
  user-select: none;
}

/* Credibility */
#kwalifikacje {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, .72) 100%),
    var(--cream);
}

#kwalifikacje .mc-section-header {
  margin-bottom: 34px;
}

#kwalifikacje .mc-section-subtitle {
  max-width: 620px;
}

#kwalifikacje .mc-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: min(100%, 960px);
  max-width: 960px !important;
  margin: 0 auto 30px !important;
  padding: 14px;
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(61, 107, 79, .07);
}

#kwalifikacje .mc-stat-item {
  display: flex;
  min-width: 0;
  min-height: 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid rgba(61, 107, 79, .08);
}

#kwalifikacje .mc-stat-item:last-child {
  border-right: 0;
}

#kwalifikacje .mc-stat-number {
  color: var(--sage);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
}

#kwalifikacje .mc-stat-label {
  max-width: 160px;
  margin-top: 8px;
  color: var(--text-body);
  font-size: .88rem;
  line-height: 1.35;
}

#kwalifikacje .mc-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: min(100%, 960px);
  max-width: 960px !important;
  margin: 0 auto !important;
}

#kwalifikacje .mc-feature-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px 18px;
  align-items: start;
  min-width: 0;
  padding: 26px;
  background: var(--warm-white);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(61, 107, 79, .055);
}

#kwalifikacje .mc-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(61, 107, 79, .09);
}

#kwalifikacje .mc-feature-icon {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 16px;
  background: var(--sage);
}

#kwalifikacje .mc-feature-card h3 {
  margin: 2px 0 0;
  font-size: 1.06rem;
}

#kwalifikacje .mc-feature-card p {
  margin: 0;
  color: var(--text-body);
  font-size: .94rem;
  line-height: 1.65;
}

#kwalifikacje .mc-btn {
  box-shadow: 0 10px 30px rgba(61, 107, 79, .12);
}

/* Promoted specialists shortcode */
.mc-home-low-occupancy {
  background: var(--warm-white);
  overflow: hidden;
}

.mc-home-low-occupancy .mc-container {
  max-width: 1120px;
}

.mc-home-low-occupancy .mc-section-header {
  margin-bottom: 34px;
}

.mc-home-low-occupancy .mc-low-occupancy-shortcode {
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.mc-home-low-occupancy .specialists-list.mc-low-occupancy-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.mc-home-low-occupancy .mc-low-occupancy-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(61, 107, 79, .07);
}

.mc-home-low-occupancy .mc-low-occupancy-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 6px 10px;
  color: var(--sage-dark);
  background: var(--gold-pale);
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mc-home-low-occupancy .mc-low-occupancy-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-right: 92px;
}

.mc-home-low-occupancy .mc-low-occupancy-photo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(61, 107, 79, .12);
}

.mc-home-low-occupancy .mc-low-occupancy-person {
  min-width: 0;
}

.mc-home-low-occupancy .mc-low-occupancy-person h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.mc-home-low-occupancy .mc-low-occupancy-person p {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
}

.mc-home-low-occupancy .mc-low-occupancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mc-home-low-occupancy .mc-low-occupancy-tags span {
  padding: 6px 10px;
  color: var(--sage);
  background: rgba(61, 107, 79, .08);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
}

.mc-home-low-occupancy .mc-low-occupancy-slot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  color: var(--text-body);
  background: rgba(255, 253, 249, .82);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.45;
}

.mc-home-low-occupancy .mc-low-occupancy-slot::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 6px;
  flex: 0 0 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(196, 149, 106, .14);
}

.mc-home-low-occupancy .mc-low-occupancy-slot .dashicons,
.mc-home-low-occupancy .mc-low-occupancy-actions .dashicons {
  display: none;
}

.mc-home-low-occupancy .mc-low-occupancy-slot strong {
  color: var(--text-dark);
  font-weight: 700;
}

.mc-home-low-occupancy .mc-low-occupancy-forms {
  margin-top: 12px;
  color: var(--text-light);
  font-size: .86rem;
}

.mc-home-low-occupancy .mc-low-occupancy-actions {
  margin-top: auto;
  padding-top: 20px;
}

.mc-home-low-occupancy .mc-low-occupancy-actions .cta-btn {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  color: #fff;
  background: var(--sage);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(61, 107, 79, .16);
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.mc-home-low-occupancy .mc-low-occupancy-actions .cta-btn:hover,
.mc-home-low-occupancy .mc-low-occupancy-actions .cta-btn:focus-visible {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(61, 107, 79, .22);
}

/* Interiors */
.mc-interiors {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, .96) 0%, rgba(250, 247, 242, 1) 100%);
  overflow: hidden;
}

.mc-interiors .mc-container {
  max-width: 1120px;
}

.mc-interiors .mc-section-header {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 38px;
  margin-left: auto;
}

.mc-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mc-room {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 24px;
  box-shadow: 0 16px 46px rgba(61, 107, 79, .075);
  transition: transform var(--transition), box-shadow var(--transition);
}

.mc-room:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(61, 107, 79, .11);
}

.mc-room img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  background: var(--gold-pale);
}

.mc-label-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  color: var(--sage-dark);
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(61, 107, 79, .10);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(61, 107, 79, .08);
  font-size: .8rem;
  font-weight: 700;
}

.mc-room-caption {
  padding: 24px 26px 26px;
}

.mc-room-caption h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.18rem;
}

.mc-room-caption p {
  margin: 0;
  color: var(--text-body);
  font-size: .96rem;
  line-height: 1.65;
}

/* Location */
#mcLocation {
  background: var(--cream);
}

#mcLocation .mc-container {
  max-width: 1120px;
}

#mcLocation .mc-section-header {
  margin-bottom: 34px;
}

#mcLocation .mc-location-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

#mcLocation .mc-location-map,
#mcLocation .mc-location-info {
  min-width: 0;
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid rgba(61, 107, 79, .08);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(61, 107, 79, .07);
}

#mcLocation .mc-location-map {
  min-height: 430px;
}

#mcLocation .mc-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border-radius: 0 !important;
}

#mcLocation .mc-location-info {
  display: flex;
  flex-direction: column;
}

#mcLocation .mc-location-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: var(--gold-pale);
}

#mcLocation .mc-location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

#mcLocation .mc-location-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
}

#mcLocation .mc-location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  color: var(--text-body);
  background: rgba(61, 107, 79, .045);
  border-radius: 16px;
  font-size: .95rem;
  line-height: 1.45;
}

#mcLocation .mc-location-detail svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  color: var(--sage);
}

#mcLocation .mc-location-detail a {
  color: var(--sage);
  font-weight: 700;
}

@media (max-width: 900px) {
  .mc-home-hero {
    min-height: auto;
  }

  .mc-home-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 62px;
  }

  .mc-home-hero .mc-hero-content {
    padding: 0;
  }

  .mc-home-hero-visual {
    min-height: 430px;
  }

  .mc-home-hero-visual img {
    right: auto;
    left: 50%;
    bottom: 0;
    width: min(106vw, 840px);
    transform: translateX(-50%);
  }

  #kwalifikacje .mc-stat-grid,
  #kwalifikacje .mc-feature-grid,
  .mc-home-low-occupancy .specialists-list.mc-low-occupancy-grid,
  .mc-rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #mcLocation .mc-location-wrap {
    grid-template-columns: 1fr !important;
  }

  #kwalifikacje .mc-stat-item:nth-child(2) {
    border-right: 0;
  }

  #kwalifikacje .mc-stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(61, 107, 79, .08);
  }

  #mcLocation .mc-location-map {
    min-height: 360px;
  }

  #mcLocation .mc-location-map iframe {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .mc-home-hero h1 {
    font-size: clamp(2.5rem, 12.5vw, 3.45rem);
  }

  .mc-home-hero p {
    max-width: 100%;
  }

  .mc-home-hero .mc-hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mc-home-hero .mc-hero-buttons .mc-btn {
    width: 100%;
    padding-inline: 20px;
    font-size: clamp(.84rem, 4vw, .95rem);
    white-space: nowrap;
  }

  .mc-home-hero .mc-hero-buttons .mc-btn svg {
    flex: 0 0 auto;
  }

  .mc-home-hero-visual {
    min-height: min(116vw, 460px);
  }

  #kwalifikacje .mc-stat-grid,
  #kwalifikacje .mc-feature-grid,
  .mc-home-low-occupancy .specialists-list.mc-low-occupancy-grid,
  .mc-rooms-grid,
  #mcLocation .mc-location-wrap {
    grid-template-columns: 1fr !important;
  }

  #kwalifikacje .mc-stat-grid {
    padding: 10px;
  }

  #kwalifikacje .mc-stat-item,
  #kwalifikacje .mc-stat-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(61, 107, 79, .08);
  }

  #kwalifikacje .mc-stat-item:last-child {
    border-bottom: 0;
  }

  #kwalifikacje .mc-feature-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  #kwalifikacje .mc-feature-icon {
    grid-row: auto;
  }

  .mc-home-low-occupancy .mc-low-occupancy-top {
    padding-right: 0;
  }

  .mc-home-low-occupancy .mc-low-occupancy-ribbon {
    position: static;
    align-self: flex-start;
    margin-bottom: 14px;
  }

  #mcLocation .mc-location-map,
  #mcLocation .mc-location-map iframe {
    min-height: 310px;
  }
}

@media (max-width: 480px) {
  #kwalifikacje .mc-stat-item {
    min-height: 96px;
  }

  .mc-home-low-occupancy .mc-low-occupancy-card,
  #mcLocation .mc-location-details {
    padding: 18px;
  }
}
