/*
Theme Name: Pause Urbaine Single Page
Theme URI: https://pauseurbaine.ch
Author: Pause Urbaine
Description: Single-page WordPress theme for Pause Urbaine with admin-managed locations, articles and pricing.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: pause-urbaine
*/

:root {
  --ink: #f0e6df;
  --muted: #c4a99e;
  --line: #4a3028;
  --paper: #1e1210;
  --soft: #2e1e18;
  --accent: #c9674e;
  --accent-dark: #e08060;
  --sage: #8faa8a;
  --white: #f5ede8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.screen-reader-text,
.skip-link {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(30, 18, 16, 0.92);
  border-bottom: 1px solid rgba(74, 48, 40, 0.8);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 0 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__name {
  font-family: "Roboto", ui-sans-serif, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.custom-logo {
  max-height: 54px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.language-switcher {
  margin-left: 0.55rem;
  position: relative;
}

.language-switcher__toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.language-switcher__toggle:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  display: inline-block;
}

.language-switcher__menu {
  background: #2e1e18;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  display: none;
  list-style: none;
  margin: 0;
  min-width: 100%;
  padding: 0.25rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
}

.language-switcher.is-open .language-switcher__menu {
  display: block;
}

.language-switcher__menu a {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.45rem;
  text-decoration: none;
  text-transform: uppercase;
}

.language-switcher__menu a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.nav-toggle span:not(.screen-reader-text) {
  background: var(--white);
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 22px;
}

.hero {
  background: linear-gradient(145deg, #1a1310 0%, #2e1e18 40%, #3d2318 70%, #2a1a15 100%);
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 76px);
}

.hero__content {
  color: var(--white);
  margin: 0 auto;
  max-width: var(--max);
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8ce;
  margin-top: 0.65rem;
}

h1,
h2,
h3 {
  font-family: "Roboto", ui-sans-serif, sans-serif;
  line-height: 1.05;
  margin: 0;
}

.hero h1 {
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero__content p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 1.1rem 0 0;
  max-width: 620px;
}

.hero__actions,
.card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.05rem;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: var(--white);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.button--light {
  background: #3d2820;
  color: var(--white);
}

.section {
  padding: 5.5rem 1.25rem;
}

.section--intro,
.section--pricing {
  background: #251510;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  max-width: 760px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.intro-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.rich-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.rich-text > *:first-child {
  margin-top: 0;
}

.location-grid,
.article-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-card,
.article-card,
.pricing-group {
  background: #2a1a14;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.location-card {
  box-shadow: var(--shadow);
}

.location-card > img,
.article-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.location-card__body,
.article-card__body {
  padding: 1.35rem;
}

address {
  color: var(--muted);
  font-style: normal;
}

address span,
address a {
  display: block;
}

.location-hours {
  background: var(--soft);
  color: var(--ink);
  margin: 1rem 0 0;
  padding: 0.85rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.pricing-list {
  columns: 2;
  column-gap: 1.1rem;
}

.pricing-group {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  overflow: hidden;
  padding: 1.35rem;
}

.pricing-group h3 {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.price-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding: 0.85rem 0;
}

.price-row > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row p {
  color: var(--muted);
  margin: 0.25rem 0 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.price-row span {
  color: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.article-card time {
  color: var(--sage);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card p {
  color: var(--muted);
}

.content-page {
  max-width: 820px;
}

.content-page img {
  margin: 1.25rem 0;
}

.empty-note {
  color: var(--muted);
}

.site-footer {
  background: #1a1310;
  color: var(--white);
  padding: 4rem 1.25rem 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.2fr;
}

.footer-grid p {
  color: #c4a99e;
  max-width: 520px;
}

.footer-locations {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-locations address {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c4a99e;
  padding: 1rem;
}

.footer-locations strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  margin: 3rem auto 0;
  max-width: var(--max);
  padding-top: 1rem;
}

.footer-bottom a {
  color: var(--white);
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: #1e1210;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .language-switcher {
    margin-left: 0;
    width: 100%;
  }

  .language-switcher__toggle {
    justify-content: space-between;
    width: 100%;
  }

  .language-switcher__menu {
    left: 0;
    right: auto;
  }

  .hero {
    min-height: 420px;
    max-height: 560px;
  }

  .hero:before {
    background: linear-gradient(0deg, rgba(37, 31, 28, 0.85), rgba(37, 31, 28, 0.25));
  }

  .intro-grid,
  .location-grid,
  .article-grid,
  .footer-grid,
  .footer-locations {
    grid-template-columns: 1fr;
  }

  .pricing-list {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .hero__content {
    padding-bottom: 2.5rem;
    padding-top: 3rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    gap: 0.5rem;
  }
}
