/*
 * Public corporate templates (WWW-WP03 / WS-M11).
 * Visual system aligned with Stage 5 demo; uses shell tokens from main.css.
 */

.section {
  padding: 44px 0;
}

.section--tight {
  padding: 28px 0;
}

.section--surface {
  background: var(--w24h-surface-2);
  border-top: 1px solid var(--w24h-border);
  border-bottom: 1px solid var(--w24h-border);
}

.section-head {
  margin-bottom: 22px;
}

.section-head .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--w24h-ink);
  background: var(--w24h-yellow-soft);
  border: 1px solid var(--w24h-yellow);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--w24h-muted);
  max-width: 640px;
  margin-bottom: 0;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1.08rem;
}

.text-center {
  text-align: center;
}

.hero {
  position: relative;
  background: var(--w24h-ink);
  color: #ffffff;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27, 27, 27, 0.88), rgba(27, 27, 27, 0.55)),
    radial-gradient(circle at 20% 20%, rgba(247, 168, 1, 0.25), transparent 50%);
  opacity: 1;
}

.hero .container {
  position: relative;
  padding-top: 54px;
  padding-bottom: 54px;
}

@media (min-width: 900px) {
  .hero .container {
    padding-top: 84px;
    padding-bottom: 84px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--w24h-yellow);
  color: var(--w24h-ink);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin: 0 0 0.5em;
}

.hero-lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: #f2f2f2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin: 0 0 1em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--w24h-yellow);
  flex-shrink: 0;
}

.page-hero {
  background: linear-gradient(180deg, var(--w24h-yellow-soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--w24h-border);
  padding: 36px 0 30px;
}

/* Full-bleed sections rendered inside constrained block templates. */
.site-main--service > .page-hero,
.site-main--blog > .page-hero,
.site-main--storage > .page-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.site-main--blog .blog-query {
  padding-top: 28px;
}

.storage-booking {
  max-width: 820px;
  margin: 24px auto 0;
}

.storage-booking__slots,
.storage-booking__current,
.storage-booking__first,
.storage-booking [data-storage-matches] {
  margin-top: 20px;
}

.storage-booking [data-storage-matches] .btn {
  margin: 0 10px 10px 0;
}

.page-hero--compact {
  padding: 28px 0 22px;
}

.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: var(--w24h-muted);
  margin-bottom: 12px;
}

.page-hero .breadcrumbs a {
  color: var(--w24h-muted);
  text-decoration: none;
}

.page-hero .breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero h1,
.page-hero .entry-title {
  max-width: 760px;
  margin: 0 0 0.5em;
}

.page-hero .lead {
  color: var(--w24h-ink-soft);
  max-width: 660px;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.page-hero .hero-cta {
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 390px) {
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--w24h-border);
  border-radius: var(--w24h-radius-lg);
  padding: 20px;
  box-shadow: var(--w24h-shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card p {
  color: var(--w24h-muted);
  font-size: 0.95rem;
  flex: 1;
  margin: 0;
}

.service-card a {
  font-weight: 700;
  text-decoration: none;
  color: var(--w24h-ink);
}

.service-card a:hover {
  text-decoration: underline;
}

.service-card a::after {
  content: " →";
  color: var(--w24h-yellow-dark);
}

.trust-strip {
  background: var(--w24h-yellow);
  border-radius: var(--w24h-radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 720px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip .stat {
  text-align: center;
}

.trust-strip .stat .value {
  font-size: 1.8rem;
  font-weight: 900;
  display: block;
}

.trust-strip .stat .label {
  font-size: 0.88rem;
  font-weight: 600;
}

.storage-banner {
  background: var(--w24h-ink);
  color: #ffffff;
  border-radius: var(--w24h-radius-lg);
  overflow: hidden;
  display: grid;
}

@media (min-width: 900px) {
  .storage-banner {
    grid-template-columns: 6fr 5fr;
  }
}

.storage-banner .content {
  padding: 30px;
}

@media (min-width: 900px) {
  .storage-banner .content {
    padding: 42px;
  }
}

.storage-banner h2 {
  color: var(--w24h-yellow);
  margin-top: 0;
}

.storage-banner p {
  color: #e4e4e4;
}

.storage-banner-visual {
  min-height: 220px;
  background:
    linear-gradient(45deg, rgba(247, 168, 1, 0.2), transparent),
    repeating-linear-gradient(-12deg, #2a2a2a, #2a2a2a 12px, #333 12px, #333 24px);
}

.review-card .stars {
  color: var(--w24h-yellow-dark);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin: 0;
}

.review-author {
  font-size: 0.85rem;
  color: var(--w24h-muted);
  font-weight: 600;
  margin: 0;
}

.location-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list .label {
  font-size: 0.8rem;
  color: var(--w24h-muted);
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list .phone-link {
  color: var(--w24h-red);
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--w24h-border-strong);
  border-radius: var(--w24h-radius);
  min-height: 48px;
  background: #ffffff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--w24h-red);
}

.field .error-msg {
  display: none;
  color: var(--w24h-red);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.field.has-error .error-msg {
  display: block;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.checkbox-field input {
  margin-top: 4px;
  flex-shrink: 0;
}

.form-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--w24h-radius);
  font-size: 0.92rem;
}

.alert--error {
  background: #fdecec;
  color: var(--w24h-red-dark);
  border: 1px solid #f5c2c2;
}

.success-panel {
  background: #e9f6ee;
  border: 1px solid #b8e0c5;
  border-radius: var(--w24h-radius-lg);
  padding: 16px 18px;
}

.success-panel .check {
  color: #1a7f37;
  font-weight: 900;
  font-size: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

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

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--w24h-yellow-dark);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  color: var(--w24h-ink-soft);
  font-size: 0.95rem;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--w24h-border);
}

.price-table th {
  background: var(--w24h-surface-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.map-section .map-wrap img {
  width: 100%;
  border-radius: var(--w24h-radius-lg);
  border: 1px solid var(--w24h-border);
}

/* The real Google Maps embed needs the same deliberate frame as other
 * contact content; images remain supported for historic page content. */
.map-section .map-wrap {
  overflow: hidden;
  border: 1px solid var(--w24h-border);
  border-radius: var(--w24h-radius-lg);
  background: var(--w24h-surface-2);
}

.map-section .map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  border: 0;
}

.map-note {
  font-size: 0.88rem;
  color: var(--w24h-muted);
  margin: 12px 0 0;
}

.blog-list {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.blog-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.blog-card h2 a {
  text-decoration: none;
}

.blog-card h2 a:hover {
  text-decoration: underline;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--w24h-muted);
  margin-bottom: 8px;
}

.blog-pagination {
  padding-bottom: 32px;
}

.entry-meta {
  color: var(--w24h-muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.4em;
}

.w24h-demoted-heading {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.archive-title {
  padding: 0 16px 16px;
  color: var(--w24h-ink-soft);
}

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

/* Public block templates use constrained layout internally. Their outer
 * region must not cap a fluid public container at WordPress' reading width. */
.site-main.is-layout-constrained > .wp-block-group,
.site-main > .wp-block-group.is-layout-constrained,
.site-main.is-layout-constrained > section,
.site-main.is-layout-constrained > .wp-block-query {
  max-width: none !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Cart and checkout are WooCommerce application surfaces, not reading-width
 * prose. WordPress' nested constrained layout otherwise caps the live form
 * before the theme's fluid checkout grid can use its parent container. */
.site-main--migrated .entry-content.is-layout-constrained,
.site-main--migrated .entry-content.is-layout-constrained > .woocommerce {
  max-width: none !important;
  width: 100%;
}

/* Single posts use the same fluid page shell as the rest of the public site.
 * The editorial canvas scales with the viewport instead of stopping at a
 * conservative character-based column: prose can grow to roughly half of a
 * wide desktop, while media receives a little extra breathing room. On narrow
 * viewports both collapse naturally to the available width. */
.site-main--single .entry-header,
.site-main--single .section > .container.entry-content {
  width: var(--w24h-container);
  max-width: none !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-main--single .container.entry-content > .wp-block-post-content {
  width: min(100%, clamp(48rem, 72vw, 112rem));
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, min(100%, clamp(44rem, 62vw, 92rem)))
    minmax(0, 1fr);
  font-size: clamp(1rem, 0.96rem + 0.14vw, 1.1rem);
  line-height: 1.72;
}

.site-main--single .container.entry-content > .wp-block-post-content > * {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-main--single .container.entry-content > .wp-block-post-content > :is(
  .alignwide,
  .alignfull,
  figure,
  .wp-block-image,
  .wp-block-gallery,
  .wp-block-embed,
  .wp-block-video,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-table,
  table
),
.site-main--single .container.entry-content > .wp-block-post-content > p:has(> img:only-child) {
  grid-column: 1 / -1;
  max-width: 100% !important;
}

.site-main--single .container.entry-content > .wp-block-post-content > p:has(> img:only-child) {
  text-align: center;
}

.site-main--single .container.entry-content > .wp-block-post-content > p:has(> img:only-child) img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  margin-inline: auto;
}



/* Article media can be nested inside <article>/<section> in migrated posts.
 * Do not rely on direct-child selectors here. A shrink-to-fit figure centered
 * with auto margins gives the same result as "50% minus half the image width"
 * without knowing the image width in advance. */
.site-main--single .wp-block-post-content figure:has(> img),
.site-main--single .wp-block-post-content figure:has(> a > img),
.site-main--single .wp-block-post-content .wp-block-image {
  display: block;
  width: fit-content !important;
  max-width: min(100%, 56rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* Keep the source image's intrinsic aspect ratio. When its intrinsic width no
 * longer fits the article, max-width shrinks the width and height:auto shrinks
 * the height proportionally. The !important declarations intentionally beat
 * imported/global rules that may otherwise retain a fixed image height. */
.site-main--single .wp-block-post-content figure > img,
.site-main--single .wp-block-post-content figure > a > img,
.site-main--single .wp-block-post-content .wp-block-image img,
.site-main--single .wp-block-post-content > p > img,
.site-main--single .wp-block-post-content > p > a > img,
.site-main--single .wp-block-post-content > img {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 56rem) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* The legacy leading image is wrapped directly in a paragraph rather than a
 * figure. Center that wrapper as well, without affecting ordinary paragraphs. */
.site-main--single .wp-block-post-content > p:has(> img:only-child),
.site-main--single .wp-block-post-content > p:has(> a:only-child > img:only-child) {
  text-align: center;
}

@media (min-width: 1200px) {
  .hero .container {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 4vw, 4.25rem);
  }

  .hero-lead {
    max-width: 680px;
    font-size: 1.18rem;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 40px 0;
  }
}

/* A blog post-template is the list wrapper in block themes. The prior
 * descendant selector made every article a full-width container. */
.blog-query .wp-block-post-template,
.blog-query .blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 1.4vw, 1.5rem);
  max-width: var(--w24h-container);
  margin: 0 auto;
  padding: 0 16px 32px;
  list-style: none;
}

/* WordPress flow layout adds 24px block-start spacing to every list item except
 * the first. In a CSS grid that offsets cards 2..n and breaks row alignment. */
.blog-query .wp-block-post-template > li {
  margin-block-start: 0;
  display: flex;
  min-width: 0;
}

.blog-query .blog-card.container {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Grid rows stretch their <li> elements to equal height. Make the card and
 * excerpt consume that height too, then pin the read-more row to the bottom.
 * This keeps cards aligned even when titles/excerpts have different lengths. */
.blog-query .blog-card .wp-block-post-excerpt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blog-query .blog-card .wp-block-post-excerpt__more-text {
  margin-top: auto;
}

.blog-query .blog-card > :not(.blog-card-image) {
  margin-left: 18px;
  margin-right: 18px;
  margin-top: 10px;
}

.blog-query .blog-card-image,
.blog-query .blog-card-image a,
.blog-query .blog-card-image img {
  display: block;
  width: 100%;
}

.blog-query .blog-card-image img {
  height: 210px;
  object-fit: cover;
}

.blog-query .blog-card .wp-block-post-excerpt {
  margin-bottom: 18px;
}

@media (min-width: 60em) {
  .blog-query .wp-block-post-template,
  .blog-query .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
  }
}

/* Form fields previously used content-box sizing, so a 100% control plus
 * padding could exceed half of the two-column grid and collide with its peer. */
.w24h-public-form,
.w24h-public-form .field,
.w24h-public-form input,
.w24h-public-form select,
.w24h-public-form textarea {
  min-width: 0;
}

.w24h-public-form .field {
  display: grid;
  align-content: start;
}

/* The form component can appear inside constrained WordPress blocks. Keep the
 * grid tracks and controls shrinkable even when a plugin adds intrinsic sizes. */
.w24h-public-form .form-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.w24h-public-form .field input,
.w24h-public-form .field select,
.w24h-public-form .field textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.w24h-public-form .checkbox-field {
  margin-top: 14px;
}

.w24h-public-form .checkbox-field input {
  width: 18px;
  height: 18px;
}

@media (max-width: 719px) {
  .form-grid--2 .field,
  .field.span-2 {
    grid-column: auto;
  }
}

/* Contact opening-hours hierarchy. */
.contact-list li.contact-list__hours {
	display: block;
}

.contact-list__hours > .label {
	display: block;
	margin-bottom: 0.75rem;
}

.contact-hours {
	display: grid;
	gap: 1rem;
}

.contact-hours__service {
	display: grid;
	gap: 0.25rem;
}

.contact-hours__title {
	display: block;
	font-weight: 700;
	line-height: 1.4;
}

.contact-hours__time {
	display: block;
	font-weight: 400;
	line-height: 1.6;
}

.contact-hours p:empty {
	display: none;
	margin: 0;
}
