/*
Theme Name: TSB
Description: Tema korporat PT Timur Sukses Bajatama — distributor besi & baja di Kalimantan Timur.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.2
Text Domain: tsb
*/

/* ---------- Tokens ---------- */
:root {
	--navy-950: #040d26;
	--navy-900: #061537;
	--navy-800: #0a2160;
	--blue-700: #0b3a9e;
	--blue-600: #1450c8;
	--blue-100: #e6edfb;
	--red-600: #e02434;
	--red-700: #bf1a29;
	--yellow-400: #f6c500;
	--ink: #0d1526;
	--body: #4a5568;
	--muted: #667085;
	--line: #e3e8f0;
	--bg: #ffffff;
	--bg-soft: #f4f6fb;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(13, 21, 38, .06), 0 1px 3px rgba(13, 21, 38, .08);
	--shadow: 0 12px 32px -14px rgba(10, 33, 96, .28);
	--shadow-lg: 0 28px 64px -24px rgba(10, 33, 96, .4);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-h: 80px;
	--stripe: linear-gradient(90deg, var(--blue-600) 0 40%, var(--yellow-400) 40% 70%, var(--red-600) 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--navy-800); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border-radius: 12px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 36, 52, .7); }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn--outline { color: var(--navy-800); border-color: var(--navy-800); }
.btn--outline:hover { color: #fff; background: var(--navy-800); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--yellow-400); color: var(--navy-900); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--red-600); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: var(--red-600); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--yellow-400); }
.eyebrow--light { color: #fff; }
.section-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.55rem); }
.section-title--light { color: #fff; }
.section-sub { max-width: 640px; margin: 0 auto; color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--ink); font-weight: 500; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .75); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: 22px; }
.topbar__social { gap: 14px; }
.topbar__motto { font-weight: 700; letter-spacing: .06em; color: var(--yellow-400); }
.topbar .icon { color: var(--yellow-400); }
.topbar__social .icon { color: inherit; width: 1.05rem; height: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand__tag { font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--red-600); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__tag { color: var(--yellow-400); }
.brand--light .brand__mark { background: #fff; border-radius: 12px; padding: 4px; }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	position: relative; display: flex; align-items: center; gap: .3em;
	padding: 10px 14px; font-weight: 700; font-size: .95rem; color: var(--ink);
}
.primary-nav .menu > li > a::before {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px;
	background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.primary-nav .menu > li > a:hover::before,
.primary-nav .menu > .current-menu-item > a::before,
.primary-nav .menu > .current-menu-ancestor > a::before,
.primary-nav .menu > .current-menu-parent > a::before { transform: scaleX(1); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-menu-parent > a { color: var(--blue-700); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 4px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
	min-width: 420px; padding: 12px; margin: 0; list-style: none;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.primary-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .93rem; }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a { background: var(--bg-soft); color: var(--red-600); }
.primary-nav__cta { padding: .75em 1.2em; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Hero slider ---------- */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--stripe); z-index: 3; }
.hero__slides { display: grid; }
.hero__slide {
	grid-area: 1 / 1; display: flex; align-items: center;
	min-height: clamp(560px, 82vh, 760px);
	padding: clamp(72px, 10vw, 120px) 0 clamp(150px, 16vw, 200px);
	background: linear-gradient(100deg, rgba(4, 13, 38, .94) 0%, rgba(6, 21, 55, .8) 45%, rgba(6, 21, 55, .3) 100%), var(--slide-img) center / cover no-repeat;
	opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner > * { max-width: 760px; }
.hero__slide .hero__inner > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hero__slide.is-active .hero__inner > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__inner > :nth-child(2) { transition-delay: .1s; }
.hero__slide.is-active .hero__inner > :nth-child(3) { transition-delay: .2s; }
.hero__slide.is-active .hero__inner > :nth-child(4) { transition-delay: .3s; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.1rem); letter-spacing: -.035em; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: rgba(255, 255, 255, .84); max-width: 600px; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__controls {
	position: absolute; left: 0; right: 0; bottom: clamp(100px, 11vw, 130px); z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot { position: relative; width: 52px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot span { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--yellow-400); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { transform: scaleX(1); }
.is-playing .hero__dot.is-active span::after { animation: dot-progress var(--slide-delay, 6500ms) linear forwards; }
@keyframes dot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.hero__arrow:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.hero__arrow .icon { width: 22px; height: 22px; }

/* ---------- Highlights (overlapping strip) ---------- */
.highlights { position: relative; z-index: 4; margin-top: -76px; }
.highlights__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.highlights__list li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px; }
.highlights__list li + li { border-left: 1px solid var(--line); }
.highlights__list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--blue-700); background: var(--blue-100); }
.highlights__list strong { display: block; color: var(--ink); font-size: 1.02rem; }
.highlights__list span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--muted { background: var(--bg-soft); }
.section--tight { padding: 0 0 clamp(48px, 6vw, 80px); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-title { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split .section-title { margin-bottom: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
	position: relative; padding: 32px 28px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-700), var(--navy-800)); color: #fff; margin-bottom: 20px; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: .95rem; margin: 0; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 45%; height: 55%; border-radius: var(--radius); background: var(--blue-100); z-index: -1; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__badge {
	position: absolute; right: -18px; bottom: -22px;
	background: var(--red-600); color: #fff; border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; line-height: 1.1;
}
.split__badge strong { font-size: 1.9rem; font-weight: 800; }
.split__badge span { font-size: .78rem; opacity: .9; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Vision / mission ---------- */
.vm { display: grid; gap: 16px; margin: 28px 0; }
.vm__item { display: flex; gap: 16px; padding: 20px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--yellow-400); box-shadow: var(--shadow-sm); }
.vm__item h3 { font-size: 1rem; margin-bottom: .25em; }
.vm__item p { margin: 0; font-size: .95rem; }
.vm__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); }
.vm__icon .icon { width: 22px; height: 22px; }
.vm--cards { grid-template-columns: 1fr 1fr; margin: 0; gap: 24px; }
.vm--cards .vm__item { padding: 32px; }
.vm--cards .vm__item h3 { font-size: 1.25rem; }
.vm--cards .vm__item p { font-size: 1.05rem; color: var(--ink); }
.motto {
	margin: clamp(32px, 4vw, 48px) 0 0; text-align: center;
	font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.01em; color: var(--navy-800);
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-card__link:hover { color: inherit; }
.product-card__media { position: relative; aspect-ratio: 32 / 21; background: var(--blue-100); overflow: hidden; }
.product-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.product-card:hover .product-card__media::after { transform: scaleX(1); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 1.15rem; margin-bottom: .35em; }
.product-card__text { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-bottom: 1em; }
.product-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; color: var(--red-600); }
.product-card__more .icon { transition: transform .2s; }
.product-card:hover .product-card__more .icon { transform: translateX(4px); }

/* ---------- Image band ---------- */
.band {
	color: rgba(255, 255, 255, .85);
	background: linear-gradient(90deg, rgba(4, 13, 38, .96) 0%, rgba(6, 21, 55, .86) 50%, rgba(6, 21, 55, .35) 100%), var(--band-img) center / cover no-repeat;
	padding: clamp(72px, 9vw, 120px) 0;
}
.band__body { max-width: 580px; }
.band .btn { margin-top: 12px; }

.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: .6em; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checklist .icon { margin-top: .25em; padding: 3px; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--red-600); color: #fff; stroke-width: 3; }
.checklist--light li { color: #fff; }

/* ---------- CTA ---------- */
.cta { padding: clamp(64px, 8vw, 108px) 0; }
.cta__box {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
	padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) * 1.5);
	background: radial-gradient(circle at 100% 0%, rgba(246, 197, 0, .18), transparent 42%), radial-gradient(circle at 0% 100%, rgba(20, 80, 200, .35), transparent 50%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
	color: rgba(255, 255, 255, .82); box-shadow: var(--shadow-lg);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.cta__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cta__contacts li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cta__contacts strong { display: block; color: #fff; margin-bottom: 2px; }
.cta__contacts span, .cta__contacts a { font-size: .92rem; color: rgba(255, 255, 255, .78); line-height: 1.55; }
.cta__contacts a { display: inline-block; margin-right: 12px; }
.cta__contacts a:hover { color: var(--yellow-400); }
.cta__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--yellow-400); color: var(--navy-900); }

/* ---------- Page hero ---------- */
.page-hero {
	position: relative; color: #fff;
	background: linear-gradient(100deg, rgba(4, 13, 38, .94), rgba(10, 33, 96, .7)), var(--hero-img) center / cover no-repeat;
	padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 84px);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stripe); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 0; }
.page-hero__lead { margin: .6em 0 0; max-width: 620px; color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 12px; color: rgba(255, 255, 255, .65); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--yellow-400); }
.breadcrumb [aria-current] { color: var(--yellow-400); }

/* ---------- Single product ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.product__media img { width: 100%; aspect-ratio: 32 / 21; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.product__title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product__content { margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Prose (editor content) ---------- */
.prose { max-width: 820px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.split__body.prose { max-width: none; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose .wp-block-table th, .prose .wp-block-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-table th { width: 38%; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.prose .wp-block-table tr:last-child th, .prose .wp-block-table tr:last-child td { border-bottom: 0; }

/* Grid instead of core's flex-wrap so the last row never stretches. */
.prose .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 16px !important; }
.prose .wp-block-gallery.has-nested-images.columns-2 { grid-template-columns: repeat(2, 1fr); }
.prose .wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(4, 1fr); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; border-radius: var(--radius-sm); overflow: hidden; }
@media (max-width: 600px) {
	.prose .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }

/* ---------- Locations / map ---------- */
.locations { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.location { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.location h3 { font-size: 1rem; margin-bottom: .2em; }
.location p { margin: 0; font-size: .95rem; }
.location__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy-800); color: #fff; }
.location__icon .icon { width: 22px; height: 22px; }
.locations__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.locations__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-band { height: clamp(320px, 40vw, 440px); background: var(--bg-soft); border-top: 1px solid var(--line); }
.map-band iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-band + .section--tight { padding-top: clamp(48px, 6vw, 80px); }

.notice { display: flex; gap: 18px; padding: 24px 28px; border-radius: var(--radius); background: #fff8db; border: 1px solid #f2df8a; }
.notice__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--yellow-400); color: var(--navy-900); }
.notice__title { font-size: 1.1rem; margin-bottom: .3em; }
.notice p { margin: 0; color: #5b4a00; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-cards li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, border-color .25s; }
.contact-cards li:hover { box-shadow: var(--shadow); border-color: transparent; }
.contact-cards h3 { font-size: .95rem; margin-bottom: .3em; }
.contact-cards p { margin: 0; font-size: .92rem; line-height: 1.55; }
.contact-cards a { display: block; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.contact-cards__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); }
.contact-cards__icon--wa { background: #dcf8e7; color: #128c4b; }
.contact-cards__icon .icon { width: 21px; height: 21px; }

.inquiry { padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) * 1.25); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.inquiry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--stripe); }
.inquiry__title { font-size: 1.4rem; margin-bottom: .3em; }
.inquiry__sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.5em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field abbr { color: var(--red-600); text-decoration: none; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg-soft);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(20, 80, 200, .12); }
.inquiry__submit { width: 100%; margin-top: 4px; }

/* Forminator form (design "none"): same look as .field / .btn--primary above. */
.inquiry--forminator .forminator-ui > br { display: none; }
/* Selectors are long enough to beat Forminator's grid stylesheet, which loads after the theme. */
.inquiry.inquiry--forminator .forminator-custom-form[data-grid] .forminator-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; margin: 0 !important; }
.inquiry.inquiry--forminator .forminator-custom-form[data-grid] .forminator-col { grid-column: span 12; flex: none; padding: 0 !important; margin: 0 0 16px; min-width: 0; }
.inquiry.inquiry--forminator .forminator-custom-form[data-grid] .forminator-col-6 { grid-column: span 6; }
.inquiry--forminator .forminator-label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin: 0 0 6px; }
.inquiry--forminator .forminator-error-message { display: block; margin-top: 6px; }
.inquiry--forminator .forminator-required { color: var(--red-600); }
.inquiry--forminator .forminator-description { display: none; } /* character counters */
.inquiry--forminator .forminator-input, .inquiry--forminator select, .inquiry--forminator .forminator-textarea {
	width: 100%; max-width: none; height: auto; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; font-size: .97rem; line-height: 1.4; color: var(--ink); background: var(--bg-soft); box-shadow: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.inquiry--forminator .forminator-textarea { resize: vertical; min-height: 120px; }
.inquiry--forminator .forminator-input:focus, .inquiry--forminator select:focus, .inquiry--forminator .forminator-textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(20, 80, 200, .12); }
.inquiry--forminator .forminator-has_error .forminator-input, .inquiry--forminator .forminator-has_error select, .inquiry--forminator .forminator-has_error .forminator-textarea { border-color: var(--red-600); }
.inquiry--forminator .forminator-error-message { color: var(--red-700); font-size: .85rem; font-weight: 600; }
.inquiry.inquiry--forminator .forminator-custom-form[data-grid] .forminator-row-last .forminator-col { margin-bottom: 0; }
.inquiry--forminator .forminator-button-submit {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 4px;
	padding: 1em 1.6em; border: 2px solid transparent; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	background: var(--red-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 36, 52, .7); cursor: pointer;
	transition: background .2s, transform .2s;
}
.inquiry--forminator .forminator-button-submit:hover { background: var(--red-700); transform: translateY(-2px); }
.inquiry--forminator .forminator-button-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.inquiry--forminator .forminator-response-message { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.inquiry--forminator .forminator-response-message[aria-hidden="true"]:empty { display: none; }
.inquiry--forminator .forminator-response-message p { margin: 0; }
.inquiry--forminator .forminator-response-message ul { margin: .4em 0 0; padding-left: 1.2em; }
.inquiry--forminator .forminator-error { background: #fdecee; color: var(--red-700); }
.inquiry--forminator .forminator-success { background: #e7f7ee; color: #116b3c; }
.inquiry--forminator .forminator-hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .94rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1.4fr; gap: 40px; padding-top: 76px; padding-bottom: 56px; }
.site-footer__brand p { margin: 18px 0 22px; max-width: 340px; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1.1em; position: relative; padding-bottom: .7em; }
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow-400); }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: var(--yellow-400); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; line-height: 1.6; }
.contact-list .icon { color: var(--yellow-400); margin-top: .3em; }
.phone-list { display: flex; flex-direction: column; align-items: flex-start; }
.phone-list > a { margin: 0; }
.phone-list__label { font-weight: 700; }
.phone-list__label:not(:first-child) { margin-top: .5em; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--yellow-400); color: var(--navy-900); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__motto { color: var(--yellow-400); font-weight: 700; letter-spacing: .04em; }

/* ---------- Floating actions ---------- */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	display: flex; align-items: center; gap: 10px;
	padding: 14px; border-radius: 999px; background: #25d366; color: #fff;
	box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
	transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float__label { font-weight: 700; font-size: .92rem; padding-right: 6px; }
.to-top {
	position: fixed; right: 30px; bottom: 96px; z-index: 89;
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: var(--navy-800); color: #fff; box-shadow: var(--shadow); cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top .icon { transform: rotate(180deg); width: 20px; height: 20px; }
.to-top:hover { background: var(--red-600); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.highlights__list { grid-template-columns: repeat(2, 1fr); }
	.highlights__list li:nth-child(3) { border-left: 0; }
	.highlights__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.contact { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.topbar__motto { display: none; }
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: calc(var(--header-h) + var(--nav-offset, 0px)) 0 0 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 20px var(--gutter) 32px; background: #fff; overflow-y: auto;
		opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .primary-nav { opacity: 1; transform: none; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { padding: 16px 4px; font-size: 1.05rem; }
	.primary-nav .menu > li > a::before { display: none; }
	.primary-nav .menu-item-has-children > a::after { margin-left: auto; }
	.primary-nav .sub-menu {
		position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
		box-shadow: none; border: 0; padding: 0 0 12px; display: none; grid-template-columns: 1fr 1fr;
	}
	.primary-nav .sub-menu::before { display: none; }
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu { transform: none; }
	.primary-nav .is-open > .sub-menu { display: grid; }
	.primary-nav__cta { width: 100%; }

	.split, .product, .locations, .cta__box { grid-template-columns: 1fr; }
	.split__badge { right: 16px; bottom: -20px; }
	.split__media::before { display: none; }
	.vm--cards { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 720px) {
	.topbar__info a:last-child { display: none; }
	.feature-grid { grid-template-columns: 1fr; }
	.product-grid { gap: 14px; }
	.product-card__body { padding: 14px; }
	.product-card__text { display: none; }
	.product-card__title { font-size: 1rem; }
	.hero__slide { min-height: 600px; align-items: flex-start; }
	.hero__arrows { display: none; }
	.highlights { margin-top: -60px; }
	.highlights__list li { padding: 18px 16px; flex-direction: column; gap: 10px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
	.hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
	.wa-float__label { display: none; }
	.to-top { right: 28px; bottom: 90px; }
	.notice { flex-direction: column; }
	.contact-cards, .field-row { grid-template-columns: 1fr; }
	.field-row { gap: 0; }
	.inquiry.inquiry--forminator .forminator-custom-form[data-grid] .forminator-col-6 { grid-column: span 12; }
}

@media (max-width: 420px) {
	.brand__name { font-size: .95rem; }
	.brand__mark { width: 40px; height: 40px; }
	.highlights__list { grid-template-columns: 1fr; }
	.highlights__list li { flex-direction: row; border-left: 0 !important; }
	.highlights__list li + li { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
