/*
Theme Name: M.E.Spirit
Theme URI: https://mespirit.com/
Author: M.E.Spirit
Description: Custom theme for M.E.Spirit Co., Ltd.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mespirit
Tags: custom, woocommerce
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--navy-900: #000a4e;
	--navy-800: #0b1560;
	--navy-700: #16205c;
	--royal-600: #051B67;
	--royal-500: #3b47b0;
	--steel-400: #5372b0;
	--yellow: #ffe800;
	--ink: #05050f;
	--white: #ffffff;
	--muted: #6b7280;
	--line: #e6e8f0;
	--bg: #ffffff;
	--bg-alt: #f5f6fb;

	/* Subtle blue gradients */
	--grad-primary: #051B67;
	--grad-navy: linear-gradient(135deg, #0a1566 0%, #050f3c 100%);
	--grad-navy-soft: linear-gradient(135deg, #16205c 0%, #0a1152 55%, #23309e 100%);

	--font-base: "Kanit";
	--container: 1200px;
	--radius: 10px;
	--radius-pill: 999px;
	--header-h: 84px;
	--header-total: 124px;
	--ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	font-weight: 300;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--royal-600); text-decoration: none; }
a:hover { color: var(--navy-900); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }

/* ==========================================================================
   Font-size scale (utilities)
   ========================================================================== */
.fs-64 { font-size: 4rem; }
.fs-56 { font-size: 3.5rem; }
.fs-48 { font-size: 3rem; }
.fs-40 { font-size: 2.5rem; }
.fs-36 { font-size: 2.25rem; }
.fs-32 { font-size: 2rem; }
.fs-28 { font-size: 1.75rem; }
.fs-26 { font-size: 1.625rem; }
.fs-24 { font-size: 1.5rem; }
.fs-20 { font-size: 1.25rem; }
.fs-18 { font-size: 1.125rem; }
.fs-16 { font-size: 1rem; }

@media (max-width: 991px) {
	.fs-64 { font-size: 3.5rem; }
	.fs-56 { font-size: 3rem; }
	.fs-48 { font-size: 2.5rem; }
	.fs-40 { font-size: 2.125rem; }
	.fs-36 { font-size: 1.875rem; }
	.fs-32 { font-size: 1.75rem; }
	.fs-28 { font-size: 1.5rem; }
	.fs-26 { font-size: 1.375rem; }
	.fs-24 { font-size: 1.25rem; }
	.fs-20 { font-size: 1.125rem; }
	.fs-18 { font-size: 1rem; }
	.fs-16 { font-size: 0.9375rem; }
}

@media (max-width: 767px) {
	.fs-64 { font-size: 2.5rem; }
	.fs-56 { font-size: 2.125rem; }
	.fs-48 { font-size: 1.875rem; }
	.fs-40 { font-size: 1.625rem; }
	.fs-36 { font-size: 1.5rem; }
	.fs-32 { font-size: 1.375rem; }
	.fs-28 { font-size: 1.25rem; }
	.fs-26 { font-size: 1.125rem; }
	.fs-24 { font-size: 1.0625rem; }
	.fs-20 { font-size: 1rem; }
	.fs-18 { font-size: 0.875rem; }
	.fs-16 { font-size: 0.875rem; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.section--alt { background: var(--bg-alt); }
.section--no-top { padding-top: 0; }
.eyebrow {
	display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--royal-600); font-weight: 300; margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
	padding: 12px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
	font-family: inherit; font-weight: 300; font-size: .95rem; line-height: 1;
	transition: opacity .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
/* Single, uniform hover site-wide: fade to 0.75 opacity, nothing else. */
.btn:hover { opacity: .75; }
/* Navy/yellow buttons invert to white bg + navy label on hover (stays fully opaque). */
.btn--primary { background: var(--grad-primary); color: var(--yellow); }
.btn--primary:hover { background: #fff; color: var(--royal-600); border-color: var(--royal-600); opacity: 1; }
.btn--line { background: #06c755; color: #fff; }
.btn--line:hover { color: #fff; }
/* Secondary CTA buttons match the primary — solid brand blue, yellow label. */
.btn--ghost { background: var(--grad-primary); color: var(--yellow); }
.btn--ghost:hover { background: #fff; color: var(--royal-600); border-color: var(--royal-600); opacity: 1; }
.btn--shopee { background: #ee4d2d; color: #fff; }
.btn--shopee:hover { color: #fff; }
.btn--lazada { background: #0f146d; color: #fff; }
.btn--lazada:hover { color: #fff; }

/* Brand icons */
.brand-ico { display: inline-block; vertical-align: middle; }
.btn .brand-ico { height: 1.15em; width: auto; flex: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; background: transparent;
}

/* Top utility / marketplace bar */
.site-topbar {
	background: rgba(5,5,15,.32); border-bottom: 1px solid rgba(255,255,255,.14);
	transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.site-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.site-topbar__phone { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.9); font-size: .85rem; }
.site-topbar__phone:hover { color: #fff; }
/* Circular colored badges — same approach as the footer social icons */
.site-topbar__social { display: flex; align-items: center; gap: 10px; }
.site-topbar__social a {
	width: 28px; height: 28px; border-radius: 50%; background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: opacity .2s var(--ease);
}
.site-topbar__social a:hover { opacity: .75; }
.site-topbar__social .brand-ico { height: 15px; width: 15px; }
.site-topbar__social .is-line { color: #06c755; }
.site-topbar__social .is-facebook { color: #1877f2; }
.site-topbar__social .is-shopee { color: #ee4d2d; }
.site-topbar__phone .brand-ico { height: 15px; width: auto; }

/* Scrolled: hide the top bar, keep only the floating pill */
.site-header.is-scrolled .site-topbar { opacity: 0; visibility: hidden; pointer-events: none; }

/* Floating pill nav bar — stays a floating pill in both states */
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	height: 68px; margin-top: 12px; padding-inline: 26px;
	background: var(--yellow); border-radius: 16px;
	box-shadow: 0 12px 34px rgba(0,10,78,.28);
	transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__logo-img { max-height: 38px; width: auto; filter: none; transition: filter .3s var(--ease); }
.main-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.main-nav a { color: var(--royal-600); font-weight: 700; font-size: 1.125rem; position: relative; padding: 6px 0; }
.main-nav a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--royal-600); transition: width .3s var(--ease);
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }

/* Dropdown submenus */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav .menu-item-has-children > a::before { content: "\25BE"; order: 2; font-size: .65em; transition: transform .2s var(--ease); }
/* The tappable toggle button is mobile-only (JS-injected) — hidden here so it
   doesn't double up with the ::before caret above on desktop. */
.main-nav .submenu-toggle { display: none; }
.main-nav .menu-item-has-children:hover > a::before,
.main-nav .menu-item-has-children:focus-within > a::before { transform: rotate(180deg); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; width: max-content; margin-top: 14px;
	flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-radius: 12px; text-align: left;
	box-shadow: 0 20px 40px rgba(0,10,78,.18); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	z-index: 10;
}
/* Invisible bridge over the gap between the link and the panel — without it,
   the pointer crosses dead space (nothing :hover-able) and the menu closes
   before the panel is reachable. */
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.main-nav .sub-menu a { display: block; color: var(--ink); padding: 14px 16px; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: var(--bg-alt); color: var(--royal-600); }
.main-nav .sub-menu a::after { display: none; }

/* Header CTA keeps the primary look (brand blue + yellow label) on the yellow bar. */

/* Scrolled: pill stays yellow, original-color logo, dark nav (still floating) */
.site-header.is-scrolled .site-header__bar { background: var(--yellow); box-shadow: 0 10px 30px rgba(0,10,78,.16); }
.site-header.is-scrolled .site-header__logo-img { filter: none; }
.site-header.is-scrolled .main-nav a { color: var(--royal-600); }
.site-header.is-scrolled .main-nav a:hover { color: var(--navy-900); }
.site-header.is-scrolled .nav-toggle { color: var(--royal-600); }

.nav-toggle { display: none; background: none; border: 0; color: var(--royal-600); font-size: 1.6rem; cursor: pointer; }
.main-nav__cta { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--yellow); color: #000; padding-block: 56px 28px; font-weight: 300; }
.site-footer a { color: #000; }
.site-footer a:hover { color: var(--royal-600); }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.3fr; gap: 40px; }
.site-footer h4 { color: var(--royal-600); font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.site-footer__logo { max-height: 42px; width: auto; filter: none; margin-bottom: 16px; }
.site-footer__about p { max-width: 42ch; }
.site-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.site-footer__social a {
	width: 40px; height: 40px; border-radius: 50%; background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: opacity .2s var(--ease);
}
.site-footer__social a:hover { opacity: .75; }
.site-footer__social .brand-ico { height: 20px; width: 20px; }
.site-footer__social .is-line { color: #06c755; }
.site-footer__social .is-facebook { color: #1877f2; }
.site-footer__social .is-shopee { color: #ee4d2d; }
/* Lazada keeps its own gradient fills */
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: baseline; }
.site-footer__contact li > span:first-child { color: rgba(0,0,0,.6); font-size: .8rem; min-width: 52px; flex: none; }
.site-footer__contact li > a,
.site-footer__contact .site-footer__address { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; }
.site-footer__bottom {
	margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.15);
	display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: rgba(0,0,0,.7);
}

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Inner pages: push content below the fixed header */
.no-hero .site-main { padding-top: var(--header-total); }

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto;
	clip: auto; clip-path: none; background: #fff; padding: 10px 16px; border-radius: 6px;
}

/* ==========================================================================
   WooCommerce catalog
   ========================================================================== */
/* Page banner */
.shop-hero { background: var(--grad-navy); color: #fff; padding: calc(var(--header-total) + 44px) 0 44px; }
.shop-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.shop-hero__title { color: #fff; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.shop-hero--slim { padding-bottom: 26px; }
.shop-hero__crumbs { font-size: .85rem; color: #b9c0dd; margin-top: 10px; }
.shop-hero__crumbs a { color: #cdd3f0; }
.shop-hero__crumbs a:hover { color: #fff; }
.shop-hero__intro { color: #cdd3f0; max-width: 62ch; margin-top: 10px; }

/* Photo variant — background photo with the site's navy gradient tinted over it */
.shop-hero--photo {
	position: relative; min-height: 50vh; display: flex; align-items: flex-end;
	background-size: cover; background-position: center; overflow: hidden; padding-bottom: 44px;
}
.shop-hero--photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,10,78,.88) 0%, rgba(0,10,78,0) 80%);
}
.shop-hero--photo .container { position: relative; z-index: 2; }
@media (max-width: 767px) {
	.shop-hero--photo::before { background: linear-gradient(0deg, rgba(0,10,78,.88) 0%, rgba(0,10,78,0) 80%); }
}

/* ==========================================================================
   Standalone pages — About / Portfolio / Catalog / Contact / News
   ========================================================================== */

/* About — centered text intro (no photo; trust stats folded in directly below the copy) */
.about-intro__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about-intro__inner h2 { font-weight: 600; letter-spacing: -0.02em; }
.about-intro__inner > p { color: #4b5563; }
.about-intro__stats { margin: 32px auto 0; }

/* Stats grid shown inline in a section (not floating over a hero) — rectangular panel, no negative offset. */
.v3-stats__grid--panel { border-radius: 20px; }

/* Capabilities band with a color background instead of a photo. */
.v3-what--dark { background: var(--grad-navy); color: #fff; }
.v3-what--dark .v3-kicker { color: var(--yellow); }
.v3-what--dark .v3-what__intro h2 { color: #fff; }
.v3-what--dark .v3-what__intro p { color: rgba(255,255,255,.82); }
.v3-what--dark .v3-feature__icon { background: rgba(255,255,255,.14); color: var(--yellow); }
.v3-what--dark .v3-feature h3 { color: #fff; }
.v3-what--dark .v3-feature p { color: rgba(255,255,255,.75); }

/* Brand logos as a static grid (About page) instead of the homepage marquee. */
.brands__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .brands__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .brands__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.brands__grid .brand-logo { height: auto; justify-content: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; opacity: 1; }
.brands__grid .brand-logo img { max-height: 40px; }
.brands__grid .brand-logo--text { font-size: 1.1rem; }

/* ==========================================================================
   Lightbox (portfolio gallery)
   ========================================================================== */
body.lightbox-open { overflow: hidden; }
.lightbox {
	position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
	background: rgba(5,5,15,.92); opacity: 0; visibility: hidden; padding: 60px 80px;
	transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: 78vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__caption { color: #cdd3f0; font-size: .9rem; margin-top: 16px; text-align: center; }
.lightbox__close,
.lightbox__nav {
	position: fixed; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff;
	cursor: pointer; font-size: 1.6rem; line-height: 1; transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 20px; right: 20px; font-size: 2rem; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.lightbox { padding: 80px 16px; }
	.lightbox__close { top: 12px; right: 12px; }
	.lightbox__nav--prev { left: 8px; }
	.lightbox__nav--next { right: 8px; }
}

/* Portfolio — metro mosaic (standalone, mirrors the homepage teaser) */
.portfolio-metro { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; grid-auto-flow: dense; }
.portfolio-metro__item { position: relative; overflow: hidden; border-radius: 12px; margin: 0; }
.portfolio-metro__media { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.portfolio-metro__item:hover .portfolio-metro__media { transform: scale(1.06); }
.portfolio-metro__item:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.portfolio-metro__item:nth-child(4n) { grid-column: span 2; }

/* Catalog — cover + PDF download */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.catalog-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.catalog-card__media { display: block; aspect-ratio: 210/297; background-size: cover; background-position: center; border-radius: 10px; margin-bottom: 14px; }

/* News — card grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	padding: 16px; display: flex; flex-direction: column;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,10,78,.14); background: var(--royal-600); border-color: var(--royal-600); }
.news-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: #fff; margin-bottom: 14px; }
.news-card__media-bg { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.news-card:hover .news-card__media-bg { transform: scale(1.06); }
.news-card__body { display: flex; flex-direction: column; flex: 1; }
.news-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.news-card__title a { color: var(--ink); transition: color .3s var(--ease); }
.news-card:hover .news-card__title a { color: #fff; }
.news-card__meta { display: flex; gap: 10px; color: var(--muted); font-size: .82rem; margin-bottom: 16px; transition: color .3s var(--ease); }
.news-card:hover .news-card__meta { color: rgba(255,255,255,.85); }
.news-card__cta { margin-top: auto; align-self: flex-start; }
.news-card:hover .news-card__cta { background: #fff; color: var(--royal-600); border-color: #fff; }

/* Blog pagination (the_posts_pagination) */
.nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
	padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
	color: var(--ink); font-weight: 300; font-size: .92rem;
}
a.page-numbers:hover { border-color: var(--royal-600); color: var(--royal-600); }
.page-numbers.current { background: var(--grad-primary); color: #fff; border-color: transparent; }
.page-numbers.dots { border: 0; }

/* Single post / project entry */
.entry-wrap { max-width: 820px; }
.entry-thumb { margin-bottom: 32px; border-radius: 16px; overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 1.05rem; line-height: 1.85; color: #333; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.5em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--royal-600); background: var(--bg-alt); color: var(--muted); font-style: italic; }
.entry-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.contact-grid__details h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 12px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li.contact-list__address { align-items: flex-start; }
.contact-list__icon {
	flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-alt);
	display: inline-flex; align-items: center; justify-content: center; color: var(--royal-600);
}
.contact-list__icon .brand-ico { height: 20px; width: auto; }
.contact-list__icon.is-line { color: #06c755; }
.contact-list__icon.is-facebook { color: #1877f2; }
.contact-list__icon.is-shopee { color: #ee4d2d; }
.contact-list__label { display: block; color: var(--muted); font-size: .78rem; }
.contact-list a { display: block; color: var(--ink); font-weight: 300; }
.contact-list a:hover { color: var(--royal-600); }
.contact-list__address-text { display: block; color: var(--ink); font-weight: 300; padding-top: 10px; }

.contact-grid__map h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 18px; }
.contact-panel--map { display: flex; flex-direction: column; }
.contact-map { width: 100%; flex: 1; min-height: 280px; border: 0; border-radius: 10px; display: block; }

@media (max-width: 767px) {
	.contact-panel { padding: 26px; }
}

@media (max-width: 900px) {
	.portfolio-metro { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
	.catalog-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.portfolio-metro { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
	.portfolio-metro__item:nth-child(4n+1) { grid-row: span 1; }
	.portfolio-metro__item:nth-child(4n) { grid-column: span 2; }
	.catalog-grid { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: 1fr; }
}

.shop-hero__search { flex: none; display: flex; align-items: center; background: #fff; border-radius: var(--radius-pill); padding: 4px 4px 4px 18px; width: 280px; max-width: 100%; }
.shop-hero__search input[type="search"] { flex: 1; border: 0; outline: 0; font-family: inherit; font-size: .9rem; color: var(--ink); background: transparent; min-width: 0; }
.shop-hero__search input[type="search"]::placeholder { color: var(--muted); }
.shop-hero__search button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--royal-600); color: #fff; cursor: pointer; transition: opacity .2s var(--ease); }
.shop-hero__search button:hover { opacity: .75; }
@media (max-width: 640px) {
	.shop-hero__row { flex-direction: column; align-items: stretch; }
	.shop-hero__search { width: 100%; }
}

.no-hero .site-main.shop-main { padding-top: 48px; padding-bottom: 80px; }
.no-hero .site-main.page-main { padding-top: 0; }
.woocommerce-result-count { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.woocommerce-ordering { float: right; }
.woocommerce-ordering select { font-family: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Product grid */
ul.products { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product {
	position: relative; width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	overflow: hidden; text-align: left; padding: 16px; display: flex; flex-direction: column;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
ul.products li.product:hover {
	transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,10,78,.14);
	background: var(--royal-600); border-color: var(--royal-600);
}
/* 1:1 frame — overflow:hidden clips the hover zoom so it never spills past the card. */
.product-card__media { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; background: #fff; margin-bottom: 14px; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; background: #fff; transition: transform .5s var(--ease); }
ul.products li.product:hover .product-card__media img { transform: scale(1.06); }
ul.products li.product .woocommerce-loop-product__title { color: var(--ink); text-align: left; font-size: 1rem; font-weight: 300; line-height: 1.4; margin-bottom: 14px; transition: color .3s var(--ease); }
ul.products li.product:hover .woocommerce-loop-product__title { color: #fff; }
.product-card__cta { margin-top: auto; align-self: flex-start; }
/* Tiny "view details" link — yellow by default, flips to white on hover. Text stays blue. */
.btn--mini {
	padding: 2px 4px; font-size: .78rem; font-weight: 300; border-radius: 6px;
	background: var(--yellow); color: var(--royal-600); border: 1px solid var(--yellow);
}
.btn--mini:hover { opacity: 1; background: #fff; color: var(--royal-600); border-color: var(--royal-600); }
/* Card hover also flips the button, even without the mouse directly over it. */
ul.products li.product:hover .btn--mini { background: #fff; color: var(--royal-600); border-color: #fff; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 44px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; width: auto !important; float: none !important; margin: 0; }
.woocommerce div.product > .woocommerce-product-gallery { grid-column: 1 / 2; }
.woocommerce div.product > .summary { grid-column: 2 / 3; }
.single-product .woocommerce-product-gallery img { border-radius: 14px; border: 1px solid var(--line); }
/* Thumbnail strip: 8px from the main image, 8px between thumbs, scrolls (carousel) past 4. */
.single-product .flex-control-thumbs {
	display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; margin: 8px 0 0 !important; padding: 0 !important; list-style: none;
	overflow-x: auto !important; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.single-product .flex-control-thumbs li { flex: 0 0 calc((100% - 24px) / 4) !important; margin: 0 !important; scroll-snap-align: start; }
.single-product .flex-control-thumbs img {
	display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
	border: 1px solid var(--line); cursor: pointer; opacity: .7; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.single-product .flex-control-thumbs img:hover { opacity: 1; }
.single-product .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--royal-600); }
.single-product .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.01em; }
.single-product .woocommerce-product-details__short-description { color: #4b5563; }
.single-product .product-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.single-product .product_meta { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.single-product .product_meta a { color: var(--royal-600); }
.single-product .woocommerce-tabs { margin-top: 8px; }
.single-product .woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding: 0; }
.single-product .woocommerce-tabs ul.tabs li { }
.single-product .woocommerce-tabs ul.tabs li a { display: inline-block; padding: 10px 18px; font-weight: 300; color: var(--muted); border-bottom: 2px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--navy-900); border-bottom-color: var(--royal-600); }
.single-product .woocommerce-tabs .panel h2 { font-size: 1.3rem; font-weight: 600; }
.single-product .related.products > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; margin-bottom: 24px; }

/* Lists and tables inside product content (short description + tabs) */
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol,
.woocommerce-tabs .panel ul,
.woocommerce-tabs .panel ol {
	margin: 0 0 1.2em; padding-left: 1.4em;
}
.woocommerce-product-details__short-description ul,
.woocommerce-tabs .panel ul { list-style: disc; }
.woocommerce-product-details__short-description ol,
.woocommerce-tabs .panel ol { list-style: decimal; }
.woocommerce-product-details__short-description li,
.woocommerce-tabs .panel li { margin-bottom: .4em; }
.woocommerce-product-details__short-description ul ul, .woocommerce-product-details__short-description ol ol,
.woocommerce-tabs .panel ul ul, .woocommerce-tabs .panel ol ol { margin-top: .4em; margin-bottom: 0; }

.woocommerce-product-details__short-description table,
.woocommerce-tabs .panel table {
	width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .92rem;
}
.woocommerce-product-details__short-description th,
.woocommerce-tabs .panel table th {
	background: var(--bg-alt); color: var(--navy-900); font-weight: 600; text-align: left;
	padding: 10px 14px; border: 1px solid var(--line);
}
.woocommerce-product-details__short-description td,
.woocommerce-tabs .panel table td {
	padding: 10px 14px; border: 1px solid var(--line); vertical-align: top;
}
.woocommerce-product-details__short-description tbody tr:nth-child(even),
.woocommerce-tabs .panel table tbody tr:nth-child(even) { background: var(--bg-alt); }

@media (max-width: 900px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product div.product > .woocommerce-product-gallery,
	.single-product div.product > .summary { grid-column: 1 / -1; }
}
@media (max-width: 560px) { ul.products { grid-template-columns: 1fr; } }

/* ==========================================================================
   Homepage — Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__slides, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.6s var(--ease);
	animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero__slide.is-active { opacity: 1; }
/* Gradient fallbacks until real photography lands */
.hero__slide:nth-child(1) { background-image: linear-gradient(135deg, #000a4e, #16205c 55%, #2c2fe0); }
.hero__slide:nth-child(2) { background-image: linear-gradient(120deg, #05050f, #0b1560 60%, #3b47b0); }
.hero__slide:nth-child(3) { background-image: linear-gradient(150deg, #16205c, #000a4e 50%, #05050f); }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero__overlay { background: linear-gradient(180deg, rgba(0,10,78,.55), rgba(5,5,15,.72)); }
.hero__inner { position: relative; z-index: 2; text-align: center; padding-top: var(--header-total); }
.hero__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__sub { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 300; opacity: .92; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
	display: block; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative;
}
.hero__scroll span::after {
	content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
	background: #fff; border-radius: 2px; animation: heroScroll 1.6s var(--ease) infinite;
}
@keyframes heroScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Left-aligned hero (shared) — secondary buttons now match the primary:
   solid brand blue with a yellow label. */
.btn--outline-light { background: var(--grad-primary); color: var(--yellow); }
.btn--outline-light:hover { background: #fff; color: var(--royal-600); border-color: var(--royal-600); opacity: 1; }
.btn--outline-blue { background: var(--grad-primary); color: var(--yellow); }
.btn--outline-blue:hover { background: #fff; color: var(--royal-600); border-color: var(--royal-600); opacity: 1; }

.v2-hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.v2-hero .hero__slides { position: absolute; inset: 0; }
.v2-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,10,78,.86) 0%, rgba(0,10,78,.66) 45%, rgba(5,5,15,.35) 100%); }
.v2-hero__inner { position: relative; z-index: 2; padding-top: var(--header-total); max-width: 760px; }
.v2-hero__trust { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: rgba(255,255,255,.92); margin-bottom: 14px; }
.v2-stars { color: var(--yellow); letter-spacing: 2px; }
.v2-hero__title { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 18px; }
.v2-hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; max-width: 46ch; opacity: .94; margin-bottom: 30px; }
.v2-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Split About (shared) */
.v2-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.v2-about__media { border-radius: 6px; min-height: 380px; background-size: cover; background-position: center; }
.v2-about__body h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; }
.v2-about__body p { color: #4b5563; }
.v2-about__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 900px) {
	.v2-about__grid { grid-template-columns: 1fr; gap: 28px; }
	.v2-about__media { min-height: 260px; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat { padding: 20px; }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; color: var(--royal-600); line-height: 1; }
.stat__plus { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--royal-600); }
.stat__label { margin-top: 10px; color: var(--muted); }

/* ==========================================================================
   Product categories
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden;
	background: #fff; border: 1px solid var(--line); color: var(--ink);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,10,78,.16); color: var(--ink); }
.cat-card__media {
	display: block; aspect-ratio: 4/3; background-size: cover; background-position: center;
	transition: transform .5s var(--ease);
}
.cat-card:hover .cat-card__media { transform: scale(1.08); }
.cat-card__body { display: block; padding: 14px 16px; }
.cat-card__name { display: block; font-weight: 300; }
.cat-card__count { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.cat-card::after {
	content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: var(--radius);
	transition: border-color .35s var(--ease); pointer-events: none;
}
.cat-card:hover::after { border-color: var(--royal-600); }
.products-cats__cta, .projects__cta { display: flex; gap: 14px; justify-content: center; margin-top: 40px; }

/* ==========================================================================
   Brand marquee
   ========================================================================== */
.brands__marquee { overflow: hidden; margin-top: 16px; cursor: grab; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__marquee.is-dragging { cursor: grabbing; }
.brands__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 60s linear infinite; }
.brands__marquee:hover .brands__track { animation-play-state: paused; }
/* Enhanced by main.js: JS drives the transform directly (auto-scroll + drag), so the CSS animation steps aside once it's live. */
.brands__marquee.marquee-js .brands__track { animation: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-logo { display: inline-flex; align-items: center; height: 84px; opacity: 1; transition: transform .3s var(--ease); }
.brand-logo:hover { transform: scale(1.1); }
.brand-logo img { max-height: 72px; width: auto; }
.brand-logo--text { font-size: 1.5rem; font-weight: 600; color: var(--navy-800); letter-spacing: .02em; white-space: nowrap; }
.brand-logo--text.is-placeholder { color: #b9c0dd; }

/* ==========================================================================
   Carousel (projects + testimonials)
   ========================================================================== */
.carousel { position: relative; max-width: var(--container); margin-inline: auto; padding-inline: 56px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 20px; transition: transform .5s var(--ease); }
.carousel__item { flex: 0 0 calc((100% - 40px) / 3); margin: 0; }
.carousel__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
	font-size: 1.5rem; line-height: 1; color: var(--navy-900); cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.carousel__nav:hover { background: var(--royal-600); color: #fff; box-shadow: 0 8px 20px rgba(44,47,224,.3); }
.carousel__nav--prev { left: 0; }
.carousel__nav--next { right: 0; }

/* Full-bleed variant — spans the viewport instead of the 1200px container */
.carousel--full { max-width: 100%; padding-inline: 32px; }
.carousel--full .project-card { box-shadow: none; }
@media (max-width: 560px) { .carousel--full { padding-inline: 16px; } }

.project-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0,10,78,.08); background: #fff; }
.project-card__media { display: block; aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.project-card.is-placeholder .project-card__media { background: linear-gradient(135deg, #dfe3f4, #c3cbe8); }
.project-card:hover .project-card__media { transform: scale(1.06); }
.project-card__title { padding: 14px 16px; font-weight: 300; }

.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px rgba(0,10,78,.06); }
.review-card__quote { color: #374151; margin-bottom: 18px; min-height: 90px; }
.review-card__quote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: .5; color: var(--royal-500); margin-bottom: 10px; }
.review-card__who { display: flex; align-items: center; gap: 12px; }
.review-card__who strong { display: block; font-weight: 300; }
.review-card__who em { font-style: normal; font-size: .85rem; color: var(--muted); }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ph-avatar { background: #dfe3f4; display: inline-block; }
.ph-line { display: block; height: 10px; border-radius: 5px; background: #e9ecf7; margin-bottom: 10px; }
.ph-line--short { width: 60%; }

/* ==========================================================================
   Contact band (parallax)
   ========================================================================== */
.contact-band {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	padding-block: 96px; background: #05050f;
	background-image: linear-gradient(135deg, #000a4e, #16205c 55%, #2c2fe0);
	background-size: cover; background-position: center;
}
.contact-band__overlay { position: absolute; inset: 0; background: rgba(5,5,15,.5); }
.contact-band__inner { position: relative; z-index: 2; }
.contact-band__inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.contact-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.eyebrow--light { color: var(--yellow); }

/* Parallax promo band */
.promo-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: 110px; background-size: cover; background-position: center; }
.promo-band__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,10,78,.72), rgba(5,5,15,.72)); }
.promo-band__inner { position: relative; z-index: 2; }
.promo-band__inner h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.promo-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
/* Reveal only hides when JS is available (never gate content on no-JS/headless) */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Respect reduced-motion: kill entrances, loops, and parallax */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	html.js .reveal { opacity: 1 !important; transform: none !important; }
	.hero__slide { animation: none !important; }
	.brands__track { animation: none !important; }
	.hero__scroll span::after { animation: none !important; }
}

@media (max-width: 900px) {
	.stats__grid { grid-template-columns: 1fr; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
	.carousel__item { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
	.cat-grid { grid-template-columns: 1fr; }
	.carousel { padding-inline: 44px; }
	.carousel__item { flex-basis: 100%; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	/* Mobile: centre the logo in the bar; float the toggle over the right edge. */
	.nav-toggle { display: block; z-index: 2; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; }
	.site-header__actions { display: none; }
	/* Pill bar floats inset from the screen edges, matching page content padding. */
	.site-header__bar { position: relative; width: auto; margin-inline: 12px; padding-inline: 14px; justify-content: center; }
	.site-header__logo { min-width: 0; max-width: 100%; text-align: center; }
	.site-header__logo a { display: inline-block; max-width: 100%; }
	/* Logo enlarged ~25% (38px → 48px) and centred; kept undistorted. */
	.site-header__logo-img { display: block; max-height: 48px; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
	.main-nav {
		position: fixed; inset: calc(var(--header-total) - 4px) 20px auto 20px;
		background: var(--grad-navy-soft); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,10,78,.4);
		padding: 14px; opacity: 0; visibility: hidden; transform: translateY(-12px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.main-nav ul { flex-direction: column; gap: 2px; align-items: stretch; }
	.main-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
	.main-nav li:last-child { border-bottom: 0; }
	.main-nav a { display: block; color: #fff; padding: 14px 12px; font-size: 1.05rem; }
	.main-nav a::after { display: none; }
	/* Caret moves from the ::before (desktop hover cue) to a real, separately
	   tappable toggle button injected by JS — tapping the link text still
	   navigates, tapping the caret expands/collapses. */
	.main-nav .menu-item-has-children > a::before { display: none; }
	.main-nav .menu-item-has-children > a { padding-right: 52px; }
	.main-nav .submenu-toggle {
		display: flex; align-items: center; justify-content: center;
		position: absolute; right: 0; top: 0; width: 48px; height: 48px;
		background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer;
		transition: transform .25s var(--ease);
	}
	.main-nav .menu-item-has-children.is-expanded .submenu-toggle { transform: rotate(180deg); }
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
		background: transparent; box-shadow: none; margin-top: 0; padding: 0 0 0 14px;
		max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
	}
	.main-nav .menu-item-has-children.is-expanded > .sub-menu { max-height: 700px; }
	.main-nav .sub-menu::before { display: none; }
	.main-nav .sub-menu a { display: block; color: rgba(255,255,255,.8); font-size: .95rem; padding: 10px 12px; white-space: normal; }
	.main-nav .sub-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
	.main-nav__cta { display: block; margin-top: 12px; }
	.main-nav__cta .btn { display: flex; justify-content: center; width: 100%; }
	/* Menu is always dark, even when the header bar turns white on scroll */
	.site-header.is-scrolled .main-nav a { color: #fff; }
	.site-header.is-scrolled .nav-toggle { color: var(--navy-900); }
}

/* ==========================================================================
   Chaty floating contact widget (third-party plugin — ships with tooltip
   fade but no feedback on the buttons themselves; layered on top here since
   the plugin's own CSS never sets transform/box-shadow on these elements).
   ========================================================================== */
.chaty-channel-list .chaty-channel > a.chaty-link {
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chaty-channel-list .chaty-channel > a.chaty-link:hover {
	transform: scale(1.14);
	box-shadow: 0 10px 22px rgba(0,10,78,.4);
}
