/*
Theme Name: Wallmax Minimal
Theme URI: https://wallmaxcontainers.com
Author: Wallmax Containers
Description: Minimalist WordPress theme for Wallmax Containers — container homes, portable offices and custom container solutions. Brand palette derived from the Wallmax logo (orange container + deep blue wordmark).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wallmax
*/

/* ============ Design tokens ============ */
:root {
  --wm-orange: #F6921E;
  --wm-orange-soft: #FBB040;
  --wm-orange-tint: #FFF4E6;
  --wm-blue: #1F4FA0;
  --wm-blue-dark: #16386F;
  --wm-ink: #1C2230;
  --wm-gray: #5B6472;
  --wm-line: #E8EAEE;
  --wm-bg: #FFFFFF;
  --wm-bg-soft: #F7F8FA;
  --wm-radius: 14px;
  --wm-max: 1200px;
  --wm-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--wm-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--wm-ink);
  background: var(--wm-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wm-blue); text-decoration: none; }
a:hover { color: var(--wm-orange); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; color: var(--wm-ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }

.wm-container { max-width: var(--wm-max); margin: 0 auto; padding: 0 24px; }
.wm-section { padding: 88px 0; }
.wm-section--soft { background: var(--wm-bg-soft); }
.wm-section--tint { background: var(--wm-orange-tint); }

.wm-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--wm-orange); margin-bottom: 14px;
}
.wm-lead { font-size: 1.15rem; color: var(--wm-gray); max-width: 640px; }
.wm-center { text-align: center; }
.wm-center .wm-lead { margin-left: auto; margin-right: auto; }

/* ============ Buttons ============ */
.wm-btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  background: var(--wm-orange); color: #fff; border: 2px solid var(--wm-orange);
  transition: all .2s ease;
}
.wm-btn:hover { background: var(--wm-blue); border-color: var(--wm-blue); color: #fff; transform: translateY(-2px); }
.wm-btn--ghost { background: transparent; color: var(--wm-ink); border-color: var(--wm-line); }
.wm-btn--ghost:hover { border-color: var(--wm-orange); color: var(--wm-orange); background: transparent; }
.wm-btn--blue { background: var(--wm-blue); border-color: var(--wm-blue); }
.wm-btn--blue:hover { background: var(--wm-blue-dark); border-color: var(--wm-blue-dark); }

/* ============ Header ============ */
.wm-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wm-line);
}
.wm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wm-logo { display: flex; align-items: center; }
.wm-logo img { max-height: 54px; width: auto; }
.wm-nav { display: flex; align-items: center; gap: 8px; }
.wm-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.wm-nav a {
  display: block; padding: 10px 14px; font-weight: 700; font-size: .95rem;
  color: var(--wm-ink); border-radius: 8px;
}
.wm-nav a:hover, .wm-nav .current-menu-item > a { color: var(--wm-orange); }
.wm-header__cta { margin-left: 8px; }
.wm-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.wm-burger span { display: block; width: 24px; height: 2.5px; background: var(--wm-ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 920px) {
  .wm-burger { display: block; }
  .wm-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--wm-line); padding: 16px 24px 24px;
  }
  .wm-nav.is-open { display: block; }
  .wm-nav ul { flex-direction: column; gap: 0; }
  .wm-nav a { padding: 12px 4px; font-size: 1.05rem; }
  .wm-header__cta { display: none; }
}

/* ============ Hero ============ */
.wm-hero {
  padding: 96px 0 72px; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 380px at 88% 8%, rgba(251,176,64,.18), transparent 70%),
    radial-gradient(520px 320px at 4% 90%, rgba(31,79,160,.08), transparent 70%),
    linear-gradient(180deg, #FFFDFA 0%, #FFF7EC 100%);
}
.wm-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.wm-hero h1 span { color: var(--wm-orange); }
.wm-hero__sub { font-size: 1.2rem; color: var(--wm-gray); max-width: 520px; margin-bottom: 32px; }
.wm-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.wm-hero__art img { width: 100%; }

/* Photo-led hero (used when real photos are imported) */
.wm-hero__photo { position: relative; padding: 0 36px 36px 0; }
.wm-hero__photo > img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 22px; box-shadow: 0 30px 70px rgba(28,34,48,.22);
  position: relative; z-index: 1;
}
.wm-hero__photo::before {
  content: ''; position: absolute; inset: 28px -14px -14px 28px;
  border-radius: 22px; background: linear-gradient(135deg, var(--wm-orange), var(--wm-orange-soft));
  opacity: .9; z-index: 0;
}
.wm-hero__photo-accent {
  position: absolute; z-index: 2; left: -28px; bottom: 4px;
  width: 38% !important; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; border: 5px solid #fff; box-shadow: 0 16px 36px rgba(28,34,48,.25);
}
.wm-hero__badge {
  position: absolute; z-index: 3; top: 20px; right: 12px;
  background: #fff; border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(28,34,48,.18); text-align: center;
}
.wm-hero__badge strong { display: block; font-size: 1.4rem; color: var(--wm-blue); }
.wm-hero__badge span { font-size: .72rem; font-weight: 700; color: var(--wm-gray); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 860px) {
  .wm-hero { padding: 56px 0 40px; }
  .wm-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .wm-hero__photo-accent { left: 0; }
}

/* ============ Gallery ============ */
.wm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wm-gallery--page { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wm-gallery__item {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 3; background: var(--wm-orange-tint);
}
.wm-gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.wm-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.wm-gallery__item:hover img { transform: scale(1.07); }
.wm-gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,34,48,.45));
  opacity: 0; transition: opacity .3s;
}
.wm-gallery__item:hover::after { opacity: 1; }
.wm-gallery__zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: var(--wm-orange);
  color: #fff; font-size: 1.4rem; font-weight: 400; line-height: 38px; text-align: center;
  opacity: 0; transform: translateY(8px); transition: all .3s;
}
.wm-gallery__item:hover .wm-gallery__zoom { opacity: 1; transform: none; }
@media (max-width: 900px) { .wm-gallery, .wm-gallery--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .wm-gallery, .wm-gallery--page { grid-template-columns: 1fr; }
  .wm-gallery__item--wide { grid-column: span 1; grid-row: span 1; }
}

/* Lightbox */
.wm-lightbox {
  position: fixed; inset: 0; z-index: 999; display: none;
  align-items: center; justify-content: center;
  background: rgba(18, 22, 32, .92); padding: 4vh 4vw; cursor: zoom-out;
}
.wm-lightbox.is-open { display: flex; }
.wm-lightbox img {
  max-width: 100%; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.wm-lightbox__close {
  position: absolute; top: 20px; right: 26px; background: none; border: 0;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ============ Stats strip ============ */
.wm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; border-top: 1px solid var(--wm-line); border-bottom: 1px solid var(--wm-line); }
.wm-stat { text-align: center; }
.wm-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--wm-blue); }
.wm-stat span { font-size: .9rem; color: var(--wm-gray); font-weight: 600; }
@media (max-width: 720px) { .wm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ============ Product grid ============ */
.wm-grid { display: grid; gap: 28px; }
.wm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.wm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .wm-grid--3, .wm-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wm-grid--3, .wm-grid--4 { grid-template-columns: 1fr; } }

.wm-card {
  background: #fff; border: 1px solid var(--wm-line); border-radius: var(--wm-radius);
  overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column;
}
.wm-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28,34,48,.10); border-color: var(--wm-orange-soft); }
.wm-card__media { aspect-ratio: 4 / 3; background: var(--wm-orange-tint); overflow: hidden; }
.wm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.wm-card:hover .wm-card__media img { transform: scale(1.06); }
.wm-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.wm-card__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.wm-card__body p { font-size: .95rem; color: var(--wm-gray); margin-bottom: 16px; flex: 1; }
.wm-card__link { font-weight: 800; font-size: .9rem; color: var(--wm-orange); letter-spacing: .04em; text-transform: uppercase; }

/* ============ Process steps ============ */
.wm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.wm-step { background: #fff; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); padding: 32px 28px; position: relative; }
.wm-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.6rem; font-weight: 800; color: var(--wm-orange-tint);
  -webkit-text-stroke: 2px var(--wm-orange); line-height: 1; margin-bottom: 18px;
}
@media (max-width: 800px) { .wm-steps { grid-template-columns: 1fr; } }

/* ============ Feature list ============ */
.wm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.wm-feature { padding: 28px; border-radius: var(--wm-radius); background: var(--wm-bg-soft); }
.wm-feature__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--wm-orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: #fff; font-size: 1.4rem; font-weight: 800;
}
@media (max-width: 800px) { .wm-features { grid-template-columns: 1fr; } }

/* ============ Comparison table ============ */
.wm-table-wrap { overflow-x: auto; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); }
table.wm-compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.wm-compare th, .wm-compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--wm-line); vertical-align: top; font-size: .97rem; }
.wm-compare thead th { background: var(--wm-blue); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.wm-compare thead th:last-child { background: var(--wm-orange); }
.wm-compare td:first-child { font-weight: 800; }
.wm-compare td:last-child { background: var(--wm-orange-tint); }
.wm-compare tr:last-child td { border-bottom: 0; }

/* ============ Testimonials ============ */
.wm-quote { background: #fff; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); padding: 30px; }
.wm-quote__stars { color: var(--wm-orange); letter-spacing: 3px; margin-bottom: 12px; }
.wm-quote p { font-size: 1rem; color: var(--wm-ink); }
.wm-quote cite { font-style: normal; font-weight: 800; }
.wm-quote cite span { display: block; font-weight: 600; color: var(--wm-gray); font-size: .85rem; }

/* ============ FAQ ============ */
.wm-faq { max-width: 820px; margin: 0 auto; }
.wm-faq details { border: 1px solid var(--wm-line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.wm-faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.wm-faq summary::-webkit-details-marker { display: none; }
.wm-faq summary::after { content: '+'; font-size: 1.5rem; color: var(--wm-orange); font-weight: 400; }
.wm-faq details[open] summary::after { content: '\2212'; }
.wm-faq .wm-faq__a { padding: 0 24px 22px; color: var(--wm-gray); }

/* ============ Popular searches ============ */
.wm-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.wm-tags span, .wm-tags a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--wm-line);
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--wm-gray); background: #fff;
}
.wm-tags a:hover { border-color: var(--wm-orange); color: var(--wm-orange); }

/* ============ CTA band ============ */
.wm-cta {
  background: linear-gradient(120deg, var(--wm-blue) 0%, var(--wm-blue-dark) 100%);
  border-radius: 20px; padding: 64px 48px; color: #fff; text-align: center;
}
.wm-cta h2 { color: #fff; }
.wm-cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }
@media (max-width: 600px) { .wm-cta { padding: 44px 24px; } }

/* ============ Product single ============ */
.wm-product-hero { padding: 72px 0 0; }
.wm-product-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wm-product-hero__media { border-radius: var(--wm-radius); overflow: hidden; background: var(--wm-orange-tint); }
@media (max-width: 860px) { .wm-product-hero__grid { grid-template-columns: 1fr; gap: 28px; } }
.wm-breadcrumb { font-size: .85rem; color: var(--wm-gray); margin-bottom: 22px; font-weight: 600; }
.wm-breadcrumb a { color: var(--wm-gray); }
.wm-breadcrumb a:hover { color: var(--wm-orange); }

.wm-prose { max-width: 780px; }
.wm-prose h2 { font-size: 1.6rem; margin-top: 1.8em; text-transform: none; }
.wm-prose h3 { margin-top: 1.5em; }
.wm-prose ul { padding-left: 1.2em; }
.wm-prose li { margin-bottom: .5em; }
.wm-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.wm-prose table th, .wm-prose table td { border: 1px solid var(--wm-line); padding: 12px 16px; text-align: left; font-size: .95rem; }
.wm-prose table th { background: var(--wm-bg-soft); }
.wm-prose blockquote { border-left: 4px solid var(--wm-orange); margin: 1.5em 0; padding: .5em 0 .5em 1.2em; color: var(--wm-gray); }

/* ============ Blog ============ */
.wm-post-card { border: 1px solid var(--wm-line); border-radius: var(--wm-radius); overflow: hidden; background: #fff; transition: all .25s; }
.wm-post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(28,34,48,.10); }
.wm-post-card__body { padding: 24px; }
.wm-post-card__meta { font-size: .82rem; color: var(--wm-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.wm-post-card h3 a { color: var(--wm-ink); }
.wm-post-card h3 a:hover { color: var(--wm-orange); }
.wm-article-header { padding: 72px 0 40px; max-width: 820px; margin: 0 auto; }
.wm-article-header h1 { text-transform: none; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ============ Contact ============ */
.wm-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
@media (max-width: 860px) { .wm-contact-grid { grid-template-columns: 1fr; } }
.wm-contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.wm-contact-item__icon {
  flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--wm-orange-tint);
  color: var(--wm-orange); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.wm-contact-item strong { display: block; margin-bottom: 2px; }
.wm-contact-item a { color: var(--wm-ink); font-weight: 600; }
.wm-contact-item a:hover { color: var(--wm-orange); }

.wm-form { background: #fff; border: 1px solid var(--wm-line); border-radius: var(--wm-radius); padding: 36px; }
.wm-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.wm-form input, .wm-form textarea, .wm-form select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--wm-line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; margin-bottom: 18px; background: var(--wm-bg-soft);
}
.wm-form input:focus, .wm-form textarea:focus, .wm-form select:focus { outline: none; border-color: var(--wm-orange); background: #fff; }
.wm-form-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.wm-form-notice--ok { background: #E8F6EC; color: #1E7A3C; }
.wm-form-notice--err { background: #FDEBEB; color: #B3261E; }
.wm-map { border-radius: var(--wm-radius); overflow: hidden; margin-top: 56px; }
.wm-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ============ Footer ============ */
.wm-footer { background: var(--wm-ink); color: #C9CFDA; padding: 72px 0 32px; margin-top: 96px; }
.wm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .wm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wm-footer__grid { grid-template-columns: 1fr; } }
.wm-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.wm-footer ul { list-style: none; margin: 0; padding: 0; }
.wm-footer li { margin-bottom: 10px; }
.wm-footer a { color: #C9CFDA; }
.wm-footer a:hover { color: var(--wm-orange-soft); }
.wm-footer__brand img { max-height: 56px; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.wm-footer__brand p { font-size: .92rem; }
.wm-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.wm-footer__social a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.wm-footer__social a:hover { border-color: var(--wm-orange); color: var(--wm-orange-soft); }
.wm-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ Utility / page default ============ */
.wm-page-header { padding: 72px 0 16px; }
.wm-page-header h1 span { color: var(--wm-orange); }
.alignwide { max-width: var(--wm-max); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); word-wrap: normal;
}
.wm-whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: #25D366; color: #fff; font-weight: 800; padding: 14px 22px;
  border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.22); font-size: .95rem;
}
.wm-whatsapp-fab:hover { color: #fff; transform: translateY(-2px); }
