/* ==========================================================
   CITY PAGE CSS
   Change Set 3

   Purpose:
   - Own the Cologne / city landing page presentation layer
   - Extract city-specific styles out of legacy style.css + Additional CSS
   - Keep selectors annotated so future maintainers can quickly locate sections

   Scope in this file:
   01. Page wrapper fixes
   02. City hero
   03. Trust bar
   04. Event section shell
   05. Event cards
   06. Feature list / card metadata
   07. Event card layout grid
   08. Reviews carousel
   09. FAQ
   10. Motion/accessibility

   Notes:
   - This file is page-scoped via functions.php, so broad selectors here are safe
   - style.css still contains legacy city rules for now; cleanup comes later
   ========================================================== */


/* ==========================================================
   01. PAGE WRAPPER FIXES
   Why:
   - Generic page.php outputs a title + section wrapper
   - City landing pages need that default title hidden and top spacing flattened
   ========================================================== */
body .container.p-1.content > h1.title:first-child {
  display: none !important;
  margin: 0 !important;
}

body .container.p-1.content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body .container.p-1.content > .smp-city-hero:first-of-type {
  margin-top: 0 !important;
}

body main > section.section:first-of-type {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* ==========================================================
   02. CITY HERO
   Source:
   - Consolidated from legacy style.css + Additional CSS
   ========================================================== */
.smp-city-hero {
  background: var(--smp-card-bg) !important;
  min-height: clamp(500px, 60vh, 660px) !important;
  display: flex;
  align-items: center;
}

.smp-city-hero__grid {
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: clamp(1.5rem, 3vw, 3.25rem) !important;
}

.smp-city-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  max-width: 620px;
  min-width: 0;
  padding-top: 0.2rem;
}

.smp-city-hero__eyebrow,
.smp-city-hero__headline,
.smp-city-hero__sub {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.smp-city-hero__eyebrow {
  margin-bottom: 3rem !important;
  font-size: clamp(0.8rem, 2vw, 1.4rem) !important;
}

.smp-city-hero__headline {
  max-width: none !important;
  font-size: clamp(3.8rem, 5vw, 4.6rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 5rem !important;
}

.smp-city-hero__headline--mobile {
  display: none !important;
}

.smp-city-hero__headline--desktop {
  display: block !important;
}

.smp-city-hero__headline--desktop span,
.smp-city-hero__headline--mobile span {
  display: inline-block;
  white-space: nowrap;
}

.smp-city-hero__sub {
  max-width: 35rem !important;
  margin-bottom: 6rem !important;
  line-height: 1.55 !important;
}

.smp-city-hero__actions {
  gap: 2rem !important;
  align-items: center;
  margin-bottom: 0.9rem !important;
}

.smp-city-hero__btn .wp-block-button__link {
  padding: 0.85rem 1.5rem !important;
  font-size: var(--smp-text-base) !important;
  font-weight: 700 !important;
  border-radius: 13px !important;
  transition:
    transform var(--smp-duration) var(--smp-ease),
    box-shadow var(--smp-duration) var(--smp-ease),
    background-color var(--smp-duration) var(--smp-ease),
    color var(--smp-duration) var(--smp-ease),
    border-color var(--smp-duration) var(--smp-ease) !important;
}

.smp-city-hero__btn .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.smp-city-hero__btn--primary .wp-block-button__link {
  background: var(--smp-navy) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--smp-shadow) !important;
}

.smp-city-hero__btn--primary .wp-block-button__link:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14) !important;
}

.smp-city-hero__btn--secondary .wp-block-button__link {
  background: transparent !important;
  color: var(--smp-navy) !important;
  border: 1.5px solid var(--smp-border) !important;
}

.smp-city-hero__btn--secondary .wp-block-button__link:hover {
  background: rgba(5, 37, 64, .04) !important;
  border-color: rgba(5, 37, 64, .22) !important;
}

.smp-city-hero__microcopy {
  margin: auto 0 0 0 !important;
  padding-bottom: .2rem;
  max-width: 30rem;
  color: var(--smp-muted) !important;
  font-size: var(--smp-text-sm) !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.smp-city-hero__media-col {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.smp-city-hero__image {
  width: 100%;
  margin: 0 0 0 auto !important;
  display: flex;
  justify-content: flex-end;
}

.smp-city-hero__image img {
  display: block;
  width: min(100%, 550px);
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 30% center;
  border-radius: var(--smp-radius-lg) !important;
  box-shadow: var(--smp-shadow-lg) !important;
}

/* Large laptops */
@media (max-width: 1280px) {
  .smp-city-hero__headline {
    font-size: 3.1rem !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .smp-city-hero {
    min-height: clamp(520px, 62vh, 660px) !important;
  }

  .smp-city-hero__grid {
    gap: clamp(1.25rem, 2.5vw, 2.25rem) !important;
  }

  .smp-city-hero__headline {
    font-size: clamp(2.8rem, 6vw, 3.8rem) !important;
  }

  .smp-city-hero__sub {
    max-width: 100% !important;
  }

  .smp-city-hero__microcopy {
    margin-top: 1rem !important;
    padding-bottom: 0 !important;
  }

  .smp-city-hero__image img {
    aspect-ratio: 4 / 5;
  }
}

/* Mobile */
@media (max-width: 781px) {
  .smp-city-hero {
    min-height: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: clamp(2.4rem, 7vw, 3.4rem) !important;
    padding-bottom: clamp(2.4rem, 7vw, 3.4rem) !important;
  }

  .smp-city-hero__grid {
    flex-direction: column !important;
    gap: 1.75rem !important;
  }

  .smp-city-hero__content,
  .smp-city-hero__media-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .smp-city-hero__content {
    padding-top: 0 !important;
  }

  .smp-city-hero__eyebrow {
    margin-bottom: 1rem !important;
    font-size: clamp(0.9rem, 2vw, 1.2rem) !important;
  }

  .smp-city-hero__headline {
    max-width: none !important;
    font-size: clamp(2.6rem, 10vw, 3.6rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2.7rem !important;
  }

  .smp-city-hero__headline--desktop {
    display: none !important;
  }

  .smp-city-hero__headline--mobile {
    display: block !important;
  }

  .smp-city-hero__sub {
    margin-bottom: 5rem !important;
  }

  .smp-city-hero__actions {
    width: 100%;
    gap: 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 0.85rem !important;
  }

  .smp-city-hero__btn,
  .smp-city-hero__btn .wp-block-button__link {
    width: 100%;
  }

  .smp-city-hero__microcopy {
    display: none !important;
  }

  .smp-city-hero__image {
    margin-top: 0 !important;
  }

  .smp-city-hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: center 38%;
    border-radius: var(--smp-radius) !important;
  }
}


/* ==========================================================
   03. TRUST BAR
   Why:
   - Dedicated reassurance band directly under hero
   - Counter values are animated by city-page.js
   ========================================================== */
.smp-city-trust-bar {
  background: var(--smp-navy) !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(1.75rem, 3vw, 2.25rem) 5vw !important;
}

.smp-city-trust-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.smp-city-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 0 1.5rem;
  text-align: center;
}

.smp-city-trust-item + .smp-city-trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.smp-city-trust-number {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.smp-city-trust-number__suffix {
  opacity: .95;
}

.smp-city-trust-number--nowrap {
  white-space: nowrap;
}

.smp-city-trust-label {
  color: rgba(255, 255, 255, .82) !important;
  font-size: clamp(.74rem, 1.2vw, .9rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.smp-city-trust-bar + .wp-block-group,
.smp-city-trust-bar + div + .wp-block-group {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .smp-city-trust-item {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .smp-city-trust-bar {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .smp-city-trust-inner {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
  }

  .smp-city-trust-item {
    padding: 1rem 0;
  }

  .smp-city-trust-item + .smp-city-trust-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .smp-city-trust-number--nowrap {
    white-space: normal;
    text-wrap: balance;
  }

  .smp-city-trust-label {
    font-size: 0.76rem;
  }
}


/* ==========================================================
   04. EVENT SECTION SHELL
   ========================================================== */
.smp-events-shell {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ==========================================================
   05. EVENT CARDS
   Source:
   - Consolidated from legacy city card layer in style.css
   ========================================================== */
.smp-card,
.smp-card * {
  box-sizing: border-box;
}

.smp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: var(--smp-card-bg);
  border: 1px solid var(--smp-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--smp-shadow);
  color: var(--smp-navy);
  transition:
    transform var(--smp-duration) var(--smp-ease),
    box-shadow var(--smp-duration) var(--smp-ease),
    border-color var(--smp-duration) var(--smp-ease);
}

.smp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(5, 37, 64, .12);
  border-color: rgba(5, 37, 64, .14);
}

.smp-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 2.5;
  background: #e9edf2;
}

.smp-card .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--smp-ease);
}

.smp-card:hover .card-image img {
  transform: scale(1.03);
}

.smp-card .card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0.95rem 1rem 0.8rem;
  min-width: 0;
}

.smp-ribbon {
  position: absolute;
  top: 0.82rem;
  left: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: calc(100% - 1.64rem);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(5, 37, 64, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(5, 37, 64, .18);
}

.smp-overline {
  margin: 0 0 0.45rem;
  color: #6d7688;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.smp-title {
  margin: 0 0 0.55rem !important;
  color: var(--smp-navy);
  font-size: clamp(1.55rem, 2vw, 1.9rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}

.smp-sub {
  margin: 0 0 0.95rem !important;
  color: var(--smp-navy);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 400;
  text-wrap: balance;
}

/* Special event highlight card inside the city page */
.smp-card.smp-special {
  border: 3px solid #e3345e;
}

.smp-special-banner {
  background: linear-gradient(90deg, #e3345e 0%, #f08a24 100%);
  color: #fff;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  padding: 0.62rem 0.75rem;
}

.smp-card.smp-special .smp-ribbon {
  background: #c93c47;
}

.smp-card.smp-special .smp-overline {
  color: #c93c47;
}


/* ==========================================================
   06. FEATURE LIST / CARD METADATA
   ========================================================== */
.smp-features {
  margin: 0;
  padding: 0 0.55rem;
  list-style: none;
}

.smp-features li {
  display: grid;
  grid-template-columns: 24px 160px minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(5, 37, 64, 0.08);
  min-width: 0;
}

.smp-features li:last-child {
  padding-bottom: 0;
}

.smp-features strong {
  grid-column: 2;
  color: #000;
  font-size: clamp(0.84rem, 0.86vw, 0.9rem);
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
  align-self: center;
}

.smp-value {
  grid-column: 3;
  color: var(--smp-navy);
  font-size: clamp(0.84rem, 0.86vw, 0.9rem);
  font-weight: 500;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: break-word;
  align-self: center;
}

.smp-next-event .smp-next-date {
  font: inherit;
  color: inherit;
}

.check {
  grid-column: 1;
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 176, 188, 0.6);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
}

.check::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid rgba(0, 176, 188, 0.8);
  border-bottom: 2px solid rgba(0, 176, 188, 0.8);
  transform: rotate(40deg);
}

.smp-band {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.88rem 0.9rem;
  background: #66b6c7;
  color: #fff !important;
  text-align: center;
  font-size: clamp(0.92rem, 0.98vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
  transition: filter var(--smp-duration) var(--smp-ease);
}

.smp-band:hover {
  color: #fff !important;
  filter: brightness(0.95);
}


/* ==========================================================
   07. EVENT CARD LAYOUT GRID
   ========================================================== */
#events .smp-event-cards-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 1.2rem !important;
  margin-bottom: 0 !important;
}

#events .smp-event-cards-row > .wp-block-column {
  display: flex !important;
  flex: 1 1 calc(33.333% - 0.8rem) !important;
  min-width: 0 !important;
}

#events .smp-event-cards-row > .wp-block-column > * {
  width: 100%;
  min-width: 0 !important;
}

#events .smp-event-cards-row .wp-block-html {
  width: 100%;
  min-width: 0 !important;
}

#events .smp-event-cards-row .smp-card {
  width: 100%;
  min-width: 0 !important;
  height: 100%;
}

@media (max-width: 1200px) {
  #events .smp-event-cards-row > .wp-block-column {
    flex: 1 1 calc(50% - 0.6rem) !important;
  }
}

@media (max-width: 860px) {
  #events .smp-event-cards-row > .wp-block-column {
    flex: 1 1 100% !important;
  }

  .smp-ribbon {
    white-space: normal;
    line-height: 1.08;
    text-align: center;
  }
}

@media (max-width: 781px) {
  .smp-card {
    border-radius: 20px;
  }

  .smp-card .card-image {
    aspect-ratio: 4 / 2.7;
  }

  .smp-ribbon {
    top: 0.72rem;
    left: 0.72rem;
    min-height: 34px;
    max-width: calc(100% - 1.44rem);
    padding: 0.48rem 0.75rem;
    font-size: 0.74rem;
  }

  .smp-special-banner {
    font-size: 0.7rem;
    padding: 0.58rem 0.72rem;
  }

  .smp-card .card-content {
    padding: 0.9rem 0.9rem 0.78rem;
  }

  .smp-title {
    font-size: clamp(1.45rem, 5.8vw, 1.72rem) !important;
  }

  .smp-sub {
    font-size: 0.92rem;
    margin-bottom: 0.72rem !important;
  }

  .smp-features li {
    grid-template-columns: 20px 1fr;
    gap: 0.12rem 0.62rem;
    padding: 0.72rem 0;
  }

  .smp-features strong,
  .smp-value {
    grid-column: 2;
  }

  .check {
    width: 20px;
    height: 20px;
  }

  .check::before {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .smp-band {
    padding: 0.82rem 0.85rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 480px) {
  .smp-card .card-image {
    aspect-ratio: 4 / 2.8;
  }

  .smp-ribbon {
    font-size: 0.7rem;
    min-height: 32px;
    padding: 0.44rem 0.68rem;
  }

  .smp-special-banner {
    font-size: 0.66rem;
  }

  .smp-title {
    font-size: 1.22rem !important;
  }

  .smp-sub,
  .smp-features strong,
  .smp-value {
    font-size: 0.84rem;
  }

  .smp-band {
    font-size: 0.9rem;
  }
}


/* ==========================================================
   08. REVIEWS CAROUSEL
   Why:
   - City page used inline review-carousel CSS/JS in block content
   - Moved here for maintainability
   ========================================================== */
.smp-reviews-carousel {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.smp-reviews-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.smp-review-card {
  background: #efefef;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 100%;
  flex-shrink: 0;
}

.smp-review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: .75rem;
}

.smp-review-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.smp-review-card__avatar-init {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}

.smp-review-card__identity {
  min-width: 0;
}

.smp-review-card__name {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
}

.smp-review-card__meta {
  font-size: .8rem;
  color: #666;
  margin-top: 2px;
}

.smp-review-card__google {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.smp-review-card__stars {
  font-size: 1.2rem;
  line-height: 1;
  color: #e5b53a;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.smp-review-card__quote {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  line-height: 1.5;
  font-weight: 400;
  color: #111;
  margin-left: 0;
  word-break: break-word;
}

.smp-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.smp-reviews-btn {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smp-reviews-btn:hover {
  background: rgba(255, 255, 255, .7);
}

.smp-reviews-dots {
  display: flex;
  gap: 8px;
}

.smp-reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .2s;
}

.smp-reviews-dot.active {
  background: #fff;
}

@media (max-width: 600px) {
  .smp-review-card {
    padding: .875rem 1rem;
  }

  .smp-review-card__quote {
    font-size: .9rem;
  }
}


/* ==========================================================
   09. FAQ
   Why:
   - City page reuses the same accordion pattern as homepage/special pages
   - This file owns the city page version so maintainers can find it quickly
   ========================================================== */
.smp-cgn-faq {
  background: #fff !important;
}

.smp-cgn-faq__list {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.smp-cgn-faq .wp-block-details.smp-cgn-faq__item {
  margin-bottom: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--smp-card-bg);
  border: 1px solid var(--smp-border);
  border-radius: 16px;
}

.smp-cgn-faq .wp-block-details summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  color: var(--smp-navy);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  padding-right: 1.75rem;
}

.smp-cgn-faq .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.smp-cgn-faq .wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--smp-orange);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.smp-cgn-faq .wp-block-details[open] summary::after {
  content: "−";
}

.smp-cgn-faq .wp-block-details p {
  margin-top: 0.8rem !important;
  color: var(--smp-text);
  line-height: 1.6;
}


/* ==========================================================
   10. MOTION / ACCESSIBILITY
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .smp-city-hero__btn .wp-block-button__link,
  .smp-card,
  .smp-card .card-image img,
  .smp-band,
  .smp-reviews-track {
    transition: none !important;
  }
}