/*
 * Global design shell styles (WWW-WP01 / WS-M10).
 * Tokens also declared in theme.json; CSS variables mirror Stage 5 demo palette.
 */

:root {
  --w24h-yellow: #f7a801;
  --w24h-yellow-soft: #fdf3dc;
  --w24h-yellow-dark: #d99400;
  --w24h-red: #ed1c24;
  --w24h-red-dark: #c8131a;
  --w24h-ink: #1b1b1b;
  --w24h-ink-soft: #4a4a4a;
  --w24h-muted: #6d6d6d;
  --w24h-bg: #ffffff;
  --w24h-surface: #f4f4f4;
  --w24h-surface-2: #fafafa;
  --w24h-border: #dddddd;
  --w24h-border-strong: #bdbdbd;
  --w24h-radius: 12px;
  --w24h-radius-lg: 16px;
  --w24h-shadow: 0 2px 10px rgba(27, 27, 27, 0.08);
  /* Public surfaces should use the available desktop canvas.  Reading
   * measures are intentionally defined separately in public-templates.css. */
  --w24h-container: min(90vw, 132rem);
  --w24h-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--w24h-font);
  color: var(--w24h-ink);
  background: var(--w24h-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--w24h-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--w24h-container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--w24h-yellow);
  color: var(--w24h-ink);
  font-weight: 800;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--w24h-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  min-height: 48px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--w24h-yellow);
  color: var(--w24h-ink);
  border-color: var(--w24h-yellow);
}

.btn--primary:hover {
  background: var(--w24h-yellow-dark);
  border-color: var(--w24h-yellow-dark);
}

.btn--phone {
  background: var(--w24h-red);
  color: #ffffff;
  border-color: var(--w24h-red);
  font-weight: 800;
}

.btn--phone:hover {
  background: var(--w24h-red-dark);
  border-color: var(--w24h-red-dark);
}

.btn--outline {
  background: #ffffff;
  color: var(--w24h-ink);
  border-color: var(--w24h-ink);
}

.btn--outline:hover {
  background: var(--w24h-surface);
}

/* Header shell */
.site-header {
  display: contents;
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 3px solid var(--w24h-yellow);
  box-shadow: var(--w24h-shadow);
}

.header-top {
  display: none;
  background: var(--w24h-surface-2);
  border-bottom: 1px solid var(--w24h-border);
  font-size: 0.85rem;
  color: var(--w24h-ink-soft);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 16px;
}

.header-top a {
  text-decoration: none;
  font-weight: 600;
}

.header-top a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .header-top {
    display: block;
  }
}

.header-main .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1.25rem);
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  height: 54px;
  width: auto;
}

@media (min-width: 900px) {
  .logo-link img {
    height: 64px;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 76em) {
  .main-nav {
    display: flex;
    min-width: 0;
    gap: clamp(0.1rem, 0.35vw, 0.45rem);
    margin-left: 0;
  }

  .main-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.82rem, 0.8vw, 0.95rem);
    padding: 0.55rem clamp(0.35rem, 0.6vw, 0.75rem);
    border-radius: 8px;
    color: var(--w24h-ink);
  }

  .main-nav a:hover {
    background: var(--w24h-yellow-soft);
  }

  .main-nav a[aria-current="page"] {
    background: var(--w24h-yellow);
    color: var(--w24h-ink);
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(0.4rem, 0.7vw, 0.75rem);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--w24h-ink);
}

.lang-switch ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* pll_the_languages() returns list items directly when raw output is used. */
.lang-switch > li {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch a {
  color: var(--w24h-ink);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  border-color: var(--w24h-yellow);
  background: rgba(255, 214, 0, 0.25);
}

.lang-switch .lang-item-current a,
.lang-switch__current {
  background: var(--w24h-yellow);
  color: var(--w24h-ink);
  padding: 4px 8px;
  border-radius: 6px;
}

.lang-switch--single .lang-switch__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--w24h-muted, #5a5a5a);
  max-width: 9rem;
  line-height: 1.2;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--w24h-red);
  font-size: 1.05rem;
  white-space: nowrap;
}

.header-phone:hover {
  text-decoration: underline;
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 100em) {
  .header-phone {
    display: inline-flex;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 76em) {
  .header-cta {
    display: inline-flex;
  }
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 9px;
  line-height: 0;
  overflow: visible;
  border-radius: var(--w24h-radius);
  border: 2px solid var(--w24h-border-strong);
  background: #ffffff;
  text-decoration: none;
  color: var(--w24h-ink);
}

.cart-button:hover {
  border-color: var(--w24h-ink);
}

.cart-button > svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.cart-count,
.mab-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--w24h-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-count[data-empty="true"],
.mab-cart-count[data-empty="true"] {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: var(--w24h-radius);
  border: 2px solid var(--w24h-border-strong);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--w24h-ink);
}

@media (min-width: 76em) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--w24h-border);
  background: #ffffff;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 16px;
  gap: 2px;
}

.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background: var(--w24h-yellow-soft);
}

.mobile-menu a[aria-current="page"] {
  background: var(--w24h-yellow);
}

.mobile-menu .mobile-menu-cta {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

/* Mobile quick actions */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-top: 2px solid var(--w24h-yellow);
  box-shadow: 0 -4px 16px rgba(27, 27, 27, 0.12);
}

.mobile-action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 8px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--w24h-ink);
  position: relative;
}

.mobile-action-bar a svg {
  width: 22px;
  height: 22px;
}

.mobile-action-bar .mab-phone {
  color: var(--w24h-red);
}

.mobile-action-bar .mab-cart-count {
  top: 4px;
  right: calc(50% - 22px);
  min-width: 17px;
  height: 17px;
  font-size: 0.66rem;
}

@media (min-width: 900px) {
  .mobile-action-bar {
    display: none;
  }

  /* Block templates wrap the mobile bar in a template-part element. Hide that
   * wrapper too: otherwise global block spacing leaves a white strip below
   * the shared footer on non-shop templates. */
  .wp-site-blocks > .wp-block-template-part:has(.mobile-action-bar) {
    display: none;
  }
}

/* Footer shell */
.site-footer {
  background: var(--w24h-ink);
  color: #d9d9d9;
  margin-top: 56px;
  font-size: 0.92rem;
}

.footer-cta-strip {
  background: var(--w24h-yellow);
  color: var(--w24h-ink);
}

.footer-cta-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-cta-strip .txt {
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: auto;
}

.footer-main .container {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 32px;
}

@media (min-width: 900px) {
  .footer-main .container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-main h2 {
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75em;
}

.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

/* Visual acceptance: desktop header has room to breathe.  The full menu is
 * deliberately delayed until all navigation and actions fit on one line. */
@media (min-width: 76em) {
  .header-top {
    display: block;
  }

  .header-main .container {
    min-height: 82px;
    gap: 18px;
  }

  .logo-link img {
    height: 68px;
  }

  .main-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 4px;
    gap: 0;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 10px 9px;
  }

  .main-nav a[aria-current="page"] {
    background: var(--w24h-yellow-soft);
    box-shadow: inset 0 -3px 0 var(--w24h-yellow);
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .header-phone,
  .header-cta {
    display: inline-flex;
  }

  .header-phone {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 0.88rem;
  }
}

@media (min-width: 100em) {
  .header-phone {
    display: inline-flex;
  }
}

@media (max-width: 75.99em) {
  .header-top,
  .main-nav,
  .header-phone,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-main .container {
    min-height: 70px;
  }

  .logo-link img {
    height: 54px;
  }
}

@media (max-width: 480px) {
  .header-main .container {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    column-gap: 8px;
    row-gap: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .logo-link img {
    height: 46px;
    max-width: 100%;
    object-fit: contain;
  }

  .header-actions {
    display: contents;
  }

  .lang-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }

  .cart-button {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .lang-switch a,
  .lang-switch__current {
    padding: 3px 5px;
  }

  .cart-button,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

.footer-main a {
  color: #d9d9d9;
  text-decoration: none;
}

.footer-main a:hover {
  color: var(--w24h-yellow);
  text-decoration: underline;
}

.footer-muted {
  color: #9a9a9a;
  cursor: default;
}

.footer-brand img {
  height: 46px;
  width: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.footer-brand .phone {
  color: var(--w24h-yellow);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-block;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a4a4a;
  border-radius: 10px;
}

.footer-social a:hover {
  border-color: var(--w24h-yellow);
}

.footer-social img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  background: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #d9d9d9;
}

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  font-size: 0.8rem;
  color: #9a9a9a;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 18px;
}

.footer-bottom a {
  color: #d9d9d9;
}

/* Main content area baseline */
.site-main {
  min-height: 40vh;
}

.site-main .entry-header {
  padding: 32px 0 16px;
}

.site-main .entry-title {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
}

.site-main .entry-content {
  padding-bottom: 32px;
}

.site-main .entry-content > :first-child {
  margin-top: 0;
}

.site-main--not-found .entry-header,
.site-main--not-found .entry-content {
  width: 100%;
}

.site-main--not-found .entry-header {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 720px) {
  .site-main--not-found .entry-header {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.w24h-legacy-popup {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgb(0 0 0 / 62%);
}

.w24h-legacy-popup[hidden] {
	display: none;
}

.w24h-legacy-popup__content {
	position: relative;
	width: min(100%, 34rem);
	padding: 2rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #171717;
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 28%);
}

.w24h-legacy-popup__logo {
	display: block;
	width: min(13.75rem, 70%);
	height: auto;
	margin: 0 auto 1rem;
}

.w24h-legacy-popup__content h2,
.w24h-legacy-popup__content p {
	margin: 0 0 1rem;
	text-align: center;
}

.w24h-legacy-popup__content ul {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

.w24h-legacy-popup__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

body.w24h-legacy-popup-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.w24h-legacy-popup__content {
		padding: 2rem 1.25rem 1.25rem;
	}
}

/* Legacy popup service-copy hierarchy. */
.w24h-legacy-popup__content .w24h-legacy-popup__service-title {
	margin: 0.9rem 0 0.15rem;
	font-weight: 700;
}

.w24h-legacy-popup__content .w24h-legacy-popup__service-time {
	margin: 0 0 1.1rem;
	font-weight: 400;
}

/* Legacy popup centered service hours. */
.w24h-legacy-popup__content ul {
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.w24h-legacy-popup__content ul li {
	margin: 0.35rem 0;
	padding: 0;
	text-align: center;
}
