/*
Theme Name: Friends Nguyen Hai
Author: Friends - Nguyễn Hải
Description: Theme WordPress cho garage, detailing, dịch vụ lốp và cửa hàng sản phẩm ô tô. Tích hợp WooCommerce, nội dung Dịch vụ, tin tức và biểu mẫu liên hệ.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: friends-nguyen-hai
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, blog
Copyright: 2026 Friends - Nguyễn Hải
*/

:root {
  --brand-primary: #0050e0;
  --brand-hover: #003fb8;
  --brand-bright: #0068f0;
  --brand-deep: #061b45;
  --brand-light: #d9e8ff;
  --navy-950: var(--brand-deep);
  --navy-900: var(--brand-primary);
  --navy-800: var(--brand-hover);
  --navy-700: var(--brand-bright);
  --steel: #5b6a7f;
  --steel-dark: #3f4d60;
  --ink: #182536;
  --muted: #5b6a7f;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: #d4dce5;
  --soft-blue: #edf4ff;
  --success: #166534;
  --warning: #8a5a00;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 8px 22px rgba(0, 64, 180, .08);
  --shadow-md: 0 16px 40px rgba(0, 64, 180, .14);
  --container: 1240px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--brand-primary) var(--mist); }
::selection { color: var(--paper); background: var(--brand-primary); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-160%);
  padding: 10px 14px; color: var(--paper); background: var(--navy-900); border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; color: var(--paper);
  background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 4px 8px; overflow: hidden; background: var(--paper); border: 1px solid rgba(255,255,255,.32); border-radius: 5px;
}
.brand img {
  position: relative; z-index: 1; display: block; width: 196px; height: 64px;
  object-fit: contain; object-position: center;
}
.brand .brand-logo-fallback { object-fit: cover; }
.brand::after {
  content: ""; position: absolute; top: -45%; bottom: -45%; left: -48%; z-index: 2; width: 28%;
  pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, transparent 0%, rgba(124,198,255,.2) 18%, rgba(255,255,255,.95) 50%, rgba(124,198,255,.3) 78%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: logo-light-sweep 4.8s cubic-bezier(.2,.75,.25,1) infinite;
}
@keyframes logo-light-sweep {
  0%, 54% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  59% { opacity: .95; }
  80% { transform: translateX(650%) skewX(-18deg); opacity: .9; }
  86%, 100% { transform: translateX(650%) skewX(-18deg); opacity: 0; }
}
.main-nav { position: relative; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link, .nav-parent {
  position: relative; min-height: 44px; padding: 10px 13px; display: inline-flex; align-items: center;
  gap: 7px; color: #ffffff; border: 0; background: transparent; cursor: pointer;
  font-size: .9rem; font-weight: 600; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-parent:hover, .nav-parent[aria-expanded="true"], .nav-parent[aria-current="page"] {
  color: var(--paper); background: rgba(255,255,255,.08); border-radius: 6px;
}
.nav-link[aria-current="page"]::after, .nav-parent[aria-current="page"]::after { content: ''; position: absolute; right: 13px; bottom: 4px; left: 13px; height: 2px; background: var(--paper); }
.chevron { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-parent[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.desktop-service-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(820px, calc(100vw - 40px));
  padding: 16px; transform: translate(-50%, -8px); opacity: 0; visibility: hidden; pointer-events: none;
  color: var(--ink); background: var(--paper); border: 1px solid rgba(0,80,224,.12); border-radius: 12px;
  box-shadow: 0 18px 45px rgba(6,27,69,.18); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.desktop-service-menu::before { content: ''; position: absolute; right: 0; bottom: 100%; left: 0; height: 12px; }
.desktop-service-menu.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.product-menu { width: min(620px, calc(100vw - 40px)); }
.product-menu-grid { grid-template-columns: 1fr 1fr; }
.menu-brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.menu-column { min-width: 0; padding: 2px 16px; }
.menu-column:first-child { padding-left: 4px; }
.menu-column:last-child { padding-right: 4px; }
.menu-column + .menu-column { border-left: 1px solid var(--line); }
.menu-column h3 { margin: 0 0 7px; padding: 0 7px 8px; color: var(--navy-900); border-bottom: 1px solid var(--brand-light); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.menu-column h3 span { display: block; margin-top: 1px; color: var(--steel); font-size: .66rem; letter-spacing: .01em; text-transform: none; }
.menu-column a { display: block; padding: 6px 7px; color: var(--steel-dark); border-radius: 6px; font-size: .82rem; line-height: 1.35; transition: color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease); }
.menu-column a:hover, .menu-column a:focus-visible { color: var(--navy-900); background: var(--soft-blue); transform: translateX(2px); }
.header-contact { display: flex; align-items: center; gap: 13px; margin-left: 10px; }
.phone-link { color: var(--paper); font-weight: 700; font-size: .87rem; white-space: nowrap; }
.phone-link small { display: block; color: var(--brand-light); font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--navy-900); }
.button-primary:hover { background: var(--navy-800); }
.button-light { color: var(--navy-900); background: var(--paper); }
.button-light:hover { background: #eaf1f7; }
.button-outline { color: var(--navy-900); background: transparent; border-color: var(--navy-900); }
.button-outline:hover { color: var(--paper); background: var(--navy-900); }
.button-outline-light { color: var(--paper); background: transparent; border-color: rgba(255,255,255,.52); }
.button-outline-light:hover { color: var(--navy-900); background: var(--paper); }
.button-small { min-height: 40px; padding: 9px 14px; font-size: .84rem; }
.mobile-toggle { display: none; margin-left: auto; padding: 9px; color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; cursor: pointer; }
.mobile-toggle svg { width: 22px; height: 22px; }

/* Shared */
.eyebrow { margin: 0 0 12px; color: var(--steel); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: var(--brand-light); }
h1, h2, h3, h4 { margin: 0; color: var(--navy-900); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.section { padding: 96px 0; }
.section-tight { padding: 68px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head > div:first-child { max-width: 620px; }
.section-head p { max-width: 540px; margin: 14px 0 0; color: var(--muted); }
.section-label { color: var(--steel); font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-800); font-weight: 700; }
.text-link::after { content: '↗'; font-size: 1.05em; }
.text-link:hover { color: var(--steel-dark); }
.rule { height: 1px; margin: 0; background: var(--line); border: 0; }
.surface { background: var(--mist); }
.navy-section { color: var(--paper); background: var(--navy-900); }
.navy-section h2, .navy-section h3 { color: var(--paper); }
.navy-section .muted { color: #edf4ff; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; color: var(--navy-800); background: var(--soft-blue); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.icon-lg { width: 34px; height: 34px; }

/* Hero */
.hero { color: var(--paper); background: var(--navy-900); overflow: hidden; }
.hero-home { position: relative; isolation: isolate; background: var(--brand-deep); }
.hero-background { position: absolute; inset: 0; z-index: -2; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-home::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,12,35,.68) 0%, rgba(2,12,35,.56) 40%, rgba(2,12,35,.16) 68%, rgba(2,12,35,.08) 100%); pointer-events: none; }
.hero-inner { min-height: clamp(680px, 51.0417vw, 980px); display: flex; align-items: center; }
.hero-copy { width: min(100%, 610px); padding: 82px 0; }
.hero h1 { max-width: 610px; color: var(--paper); }
.hero-home h1 { font-size: clamp(2.65rem, 4.6vw, 4.6rem); text-wrap: balance; text-shadow: 0 4px 24px rgba(0,0,0,.2); }
.hero-copy > p { max-width: 535px; margin: 26px 0 32px; color: #edf4ff; font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions .button { min-height: 50px; padding-inline: 22px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 560px; margin-top: 48px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-meta-item { min-width: 0; padding-right: 18px; }
.hero-meta-item + .hero-meta-item { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.hero-meta strong { display: block; color: var(--paper); font-size: .83rem; }
.hero-meta span { display: block; margin-top: 4px; color: #e0ecff; font-size: .75rem; }
.hero-page { min-height: 320px; display: flex; align-items: end; padding: 66px 0; }
.hero-page h1 { max-width: 760px; color: var(--paper); }
.hero-page p { max-width: 640px; margin: 18px 0 0; color: #edf4ff; }

/* Feature blocks */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { display: flex; flex-direction: column; min-height: 410px; padding: 0 27px 27px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.service-card:hover { border-color: #aabdd0; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card-media { position: relative; aspect-ratio: 16 / 9; height: auto; min-height: 0; margin: 0 -27px; overflow: visible; background: var(--soft-blue); }
.service-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.84) contrast(1.04); transition: transform .35s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.045); }
.service-card .service-icon { position: absolute; bottom: -18px; left: 27px; z-index: 2; width: 52px; height: 52px; display: grid; place-items: center; margin: 0; color: var(--navy-900); background: var(--soft-blue); border: 5px solid var(--paper); border-radius: 9px; }
.service-card h3 { margin-top: 34px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: .93rem; }
.service-card .text-link { margin-top: auto; padding-top: 18px; font-size: .88rem; }
.product-showcase { display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.product-feature { position: relative; min-height: 410px; display: flex; align-items: end; padding: 48px; overflow: hidden; color: var(--paper); background: var(--brand-deep); }
.product-feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 83% 18%, rgba(0,104,240,.75), transparent 42%); pointer-events: none; }
.product-feature-mark { position: absolute; top: -34px; right: -38px; width: 290px; color: rgba(255,255,255,.11); transform: rotate(-8deg); }
.product-feature-body { position: relative; z-index: 1; max-width: 430px; }
.product-feature h3 { margin-bottom: 12px; color: var(--paper); font-size: clamp(2.4rem, 4vw, 4rem); }
.product-feature p:not(.eyebrow) { margin-bottom: 28px; color: #edf4ff; }
.product-category-stack { display: grid; grid-template-rows: repeat(3, 1fr); background: var(--paper); }
.product-category-row { display: grid; grid-template-columns: 54px 1fr 24px; gap: 18px; align-items: center; min-height: 136px; padding: 27px 34px; border-bottom: 1px solid var(--line); transition: color .2s var(--ease), background .2s var(--ease); }
.product-category-row:last-child { border-bottom: 0; }
.product-category-row:hover { color: var(--brand-primary); background: var(--soft-blue); }
.product-category-index { color: var(--steel); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.product-category-row strong { display: block; color: var(--navy-900); font-size: 1.2rem; }
.product-category-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.product-category-row svg { width: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { min-height: 450px; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft-blue); }
.split-media img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }
.split-copy p { max-width: 590px; color: var(--muted); }
.split-copy .button { margin-top: 12px; }
.check-list { display: grid; gap: 13px; margin: 26px 0 30px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: start; color: var(--steel-dark); }
.check-list svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 3px; color: var(--navy-800); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { position: relative; padding: 6px 24px 0 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--line); }
.process-num { display: block; margin-bottom: 20px; color: var(--steel); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.process-step h3 { margin-bottom: 9px; font-size: 1.06rem; }
.process-step p { color: var(--muted); font-size: .87rem; }
.needs-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; }
.needs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.need-link { display: flex; justify-content: space-between; gap: 18px; padding: 19px 0; color: var(--navy-900); border-bottom: 1px solid var(--line); font-weight: 700; }
.need-link span { color: var(--steel); font-weight: 400; }
.need-link:hover { color: var(--steel-dark); }
.needs-note { padding: 34px; color: var(--paper); background: var(--navy-900); border-radius: var(--radius-md); }
.needs-note h3 { margin-bottom: 13px; }
.needs-note p { color: #c5d2df; font-size: .9rem; }

/* Cards / news */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.article-card-media { height: 190px; background: var(--soft-blue); overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.article-card-body h3 { margin: 11px 0 9px; font-size: 1.15rem; }
.article-card-body p { color: var(--muted); font-size: .88rem; }
.article-card-body .text-link { margin-top: auto; padding-top: 12px; font-size: .85rem; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: .72rem; font-weight: 600; }
.article-meta span + span { padding-left: 10px; border-left: 1px solid var(--line); }

/* Service catalogue */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.filter-nav { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; }
.filter-button { padding: 10px 12px; color: var(--steel-dark); background: transparent; border: 0; border-left: 2px solid transparent; border-radius: 0; cursor: pointer; text-align: left; font-weight: 600; }
.filter-button:hover, .filter-button.is-active { color: var(--navy-900); background: var(--mist); border-left-color: var(--navy-900); }
.catalog-group { margin-bottom: 54px; }
.catalog-group:last-child { margin-bottom: 0; }
.catalog-group-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.catalog-group-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.catalog-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.catalog-item { display: flex; flex-direction: column; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.catalog-item h3 { margin: 15px 0 8px; font-size: 1.05rem; }
.catalog-item p { color: var(--muted); font-size: .82rem; }
.catalog-item .text-link { margin-top: auto; font-size: .8rem; }
.catalog-item .mini-icon { width: 28px; height: 28px; color: var(--navy-800); }
.catalog-item.is-hidden { display: none; }
.product-page-lead { max-width: 720px; }
.product-brand-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 45px; align-items: center; padding: 44px; color: var(--paper); background: var(--brand-deep); border-radius: var(--radius-md); }
.product-brand-panel h2 { color: var(--paper); }
.product-brand-panel p { margin: 14px 0 0; color: #edf4ff; }
.product-brand-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.product-brand-list span { min-height: 46px; display: grid; place-items: center; padding: 9px 12px; color: var(--paper); border: 1px solid rgba(255,255,255,.3); border-radius: 7px; font-size: .83rem; font-weight: 700; }

/* Detail pages */
.detail-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.detail-intro-media { min-height: 410px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft-blue); }
.detail-intro-media img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.detail-copy h1 { margin-bottom: 20px; }
.detail-copy > p { color: var(--muted); }
.detail-points { display: grid; gap: 15px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-point { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.detail-point svg { width: 20px; height: 20px; margin-top: 3px; color: var(--navy-800); }
.detail-point strong { display: block; margin-bottom: 2px; color: var(--navy-900); font-size: .9rem; }
.detail-point span { color: var(--muted); font-size: .84rem; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.detail-columns h2 { margin-bottom: 18px; font-size: 1.65rem; }
.detail-columns p, .detail-columns li { color: var(--muted); }
.detail-columns ul { margin: 0; padding-left: 21px; }
.detail-columns li + li { margin-top: 10px; }
.price-note { margin-top: 30px; padding: 17px 20px; color: var(--navy-900); background: var(--soft-blue); border: 1px solid #cbdcf5; border-radius: 6px; font-size: .87rem; }
.faq-list { display: grid; gap: 9px; }
details { padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; cursor: pointer; color: var(--navy-900); font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--steel); font-size: 1.2rem; font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-card { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.contact-row { display: flex; gap: 14px; padding: 21px; background: var(--paper); }
.contact-row .icon { color: var(--navy-800); margin-top: 2px; }
.contact-row strong { display: block; color: var(--navy-900); font-size: .91rem; }
.contact-row span, .contact-row a { display: block; margin-top: 3px; color: var(--muted); font-size: .88rem; }
.contact-row a:hover { color: var(--navy-800); text-decoration: underline; }
.map-placeholder { min-height: 190px; display: grid; place-items: center; margin-top: 18px; padding: 25px; color: var(--navy-800); background: var(--soft-blue); border: 1px dashed #a9bacb; border-radius: var(--radius-md); text-align: center; }
.map-placeholder .icon-lg { margin: 0 auto 9px; }
.map-placeholder p { margin: 0; font-size: .86rem; }
.form-panel { padding: 32px; background: var(--mist); border-radius: var(--radius-md); }
.form-panel h2 { margin-bottom: 8px; font-size: 1.65rem; }
.form-panel > p { color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label { color: var(--navy-900); font-size: .81rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 47px; padding: 11px 13px; color: var(--ink); background: var(--paper); border: 1px solid #c6d0dc; border-radius: 6px; caret-color: var(--brand-primary); accent-color: var(--brand-primary); }
textarea { min-height: 108px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #657385; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); outline: 3px solid rgba(0,80,224,.2); }
.field-error { min-height: 18px; color: #a12a2a; font-size: .73rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 7px; }
.form-note { color: var(--muted); font-size: .74rem; }
.form-result { display: none; margin-top: 18px; padding: 16px; background: var(--paper); border: 1px solid #b7c9da; border-radius: 5px; }
.form-result.is-visible { display: block; }
.form-result p { margin: 0; color: var(--steel-dark); font-size: .84rem; white-space: pre-line; }
.form-result a { display: inline-flex; margin-top: 11px; color: var(--navy-800); font-weight: 800; font-size: .84rem; text-decoration: underline; }

/* Articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) 260px; gap: 80px; align-items: start; }
.article-layout h1 { margin: 12px 0 19px; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.article-lead { color: var(--steel-dark); font-size: 1.1rem; }
.article-hero-image { width: 100%; height: 360px; margin: 30px 0 35px; object-fit: cover; border-radius: var(--radius-lg); background: var(--soft-blue); }
.article-content h2 { margin: 38px 0 13px; font-size: 1.65rem; }
.article-content p, .article-content li { color: var(--muted); }
.article-content ul { padding-left: 22px; }
.article-content li + li { margin-top: 9px; }
.article-aside { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.article-aside strong { display: block; margin-bottom: 13px; color: var(--navy-900); font-size: .84rem; }
.article-aside a { display: block; padding: 8px 0; color: var(--steel-dark); border-top: 1px solid var(--line); font-size: .81rem; }
.article-aside a:hover { color: var(--navy-800); }

/* CTA / Footer */
.cta-band { padding: 70px 0; color: var(--paper); background: var(--brand-primary); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { max-width: 620px; color: var(--paper); font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.cta-band p { max-width: 560px; margin: 13px 0 0; color: #edf4ff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.site-footer { padding: 58px 0 24px; color: #c3cfdb; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 60px; padding-bottom: 45px; }
.footer-brand img { width: 226px; height: 84px; object-fit: contain; margin-bottom: 17px; padding: 6px 10px; background: var(--paper); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; }
.footer-brand .brand-logo-fallback { padding: 0; object-fit: cover; }
.footer-brand p { max-width: 320px; color: #9eafc0; font-size: .86rem; }
.site-footer h3 { margin-bottom: 15px; color: var(--paper); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #aebdca; font-size: .84rem; }
.footer-links a:hover { color: var(--paper); }
.footer-contact { display: grid; gap: 11px; }
.footer-contact a, .footer-contact span { color: #aebdca; font-size: .84rem; }
.footer-contact a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #8294a8; font-size: .74rem; }
.footer-bottom p { margin: 0; }
.floating-call { display: none; }

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.custom-logo { max-width: 100%; }
.simple-nav-menu,
.footer-links { margin: 0; padding: 0; list-style: none; }
.simple-nav-menu { display: flex; align-items: center; gap: 4px; }
.simple-nav-menu > li { position: relative; }
.simple-nav-menu > li > a {
  min-height: 44px; padding: 10px 13px; display: inline-flex; align-items: center;
  color: var(--paper); font-size: .9rem; font-weight: 600; border-radius: 6px;
}
.simple-nav-menu > li > a:hover,
.simple-nav-menu > .current-menu-item > a,
.simple-nav-menu > .current-menu-ancestor > a { background: rgba(255,255,255,.1); }
.simple-nav-menu .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; min-width: 230px; margin: 0;
  padding: 9px; list-style: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.simple-nav-menu li:hover > .sub-menu,
.simple-nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.simple-nav-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 5px; font-size: .84rem; }
.simple-nav-menu .sub-menu a:hover { color: var(--brand-primary); background: var(--soft-blue); }
.footer-heading { margin: 0 0 16px; color: var(--paper); font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links li + li { margin-top: 8px; }
.content-narrow { max-width: 880px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; }
.entry-content a:not(.button) { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 28px 0; padding: 20px 24px; background: var(--soft-blue); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: inset 0 3px 0 var(--brand-primary); }
.alignwide { width: min(1100px, 100%); max-width: none; margin-right: auto; margin-left: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text { margin-top: 7px; color: var(--muted); font-size: .78rem; text-align: center; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.sticky { position: relative; }
.bypostauthor { display: block; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: 12px 16px; clip: auto; color: var(--ink); background: var(--paper); }
.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; padding: 8px; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { color: var(--paper); background: var(--brand-primary); border-color: var(--brand-primary); }
.empty-state { padding: 44px; text-align: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-md); }
.empty-state h2, .empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 650px; margin: 0 auto 22px; color: var(--muted); }
.admin-onboarding { margin-top: 30px; padding: 16px 18px; color: var(--steel-dark); background: #fff8db; border: 1px solid #eedb82; border-radius: var(--radius-sm); }
.contact-card-spaced { margin-top: 26px; }
.contact-symbol, .map-symbol, .detail-symbol { display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--brand-primary); font-size: 1.4rem; font-weight: 800; }
.detail-point .detail-symbol { color: var(--brand-primary); font-size: 1rem; }
.map-symbol { font-size: 2.2rem; }
.map-button { margin-top: 15px; }
.contact-extra, .product-page-content { margin-top: 30px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 20px 0; padding: 13px 15px; border-radius: 6px; font-size: .88rem; font-weight: 600; }
.form-notice-success { color: var(--success); background: #eaf8ee; border: 1px solid #a7dab6; }
.form-notice-error { color: #922b21; background: #fff0ee; border: 1px solid #edb8b1; }
.error-page { min-height: 62vh; }
.post-tags { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.post-tags a { color: var(--brand-primary); }

/* WooCommerce keeps catalog, price, stock, cart and checkout native. */
.woocommerce-section { min-height: 55vh; }
.woocommerce-shell .woocommerce-breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: .8rem; }
.woocommerce-shell .woocommerce-result-count,
.woocommerce-shell .woocommerce-ordering { margin-bottom: 28px; }
.woocommerce-shell .woocommerce-ordering select { min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; clear: both; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { float: none; width: auto; margin: 0; padding: 0 0 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; margin: 0 0 18px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-right: 18px; margin-left: 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font-size: 1rem; }
.woocommerce ul.products li.product .price { color: var(--brand-primary); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  min-height: 44px; padding: 11px 16px; color: var(--paper); background: var(--brand-primary); border-radius: 6px; font-weight: 800;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { color: var(--paper); background: var(--brand-hover); }
.woocommerce div.product div.images img { border-radius: var(--radius-md); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand-primary); font-weight: 800; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--brand-primary); background: var(--soft-blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand-primary); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce .quantity .qty { min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; }
.woocommerce table.shop_table { border-color: var(--line); border-radius: var(--radius-sm); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Empty state / utility */
.not-found { min-height: 56vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.not-found h1 { margin-bottom: 18px; }
.not-found p { max-width: 520px; margin: 0 auto 26px; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; color: var(--steel); font-size: .76rem; }
.breadcrumbs a:hover { color: var(--navy-900); }
.breadcrumbs span { color: #a3afbb; }
.service-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 28px; color: var(--paper); background: var(--navy-900); border-radius: var(--radius-md); }
.service-cta h2 { color: var(--paper); font-size: 1.55rem; }
.service-cta p { margin: 8px 0 0; color: #edf4ff; font-size: .88rem; }

@media (max-width: 1080px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 0; }
  .nav-link, .nav-parent { padding-inline: 7px; font-size: .78rem; }
  .phone-link { display: none; }
  .hero-copy { width: min(62%, 610px); }
  .catalog-layout { gap: 30px; }
  .article-layout { gap: 45px; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .section { padding: 70px 0; }
  .section-tight { padding: 52px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 160px; height: 52px; }
  .mobile-toggle { display: inline-flex; }
  .header-contact { display: none; }
  .main-nav { position: fixed; inset: 72px 0 0; display: block; padding: 18px 20px 40px; background: var(--navy-900); overflow-y: auto; transform: translateX(100%); transition: transform .25s var(--ease); }
  .main-nav.is-open { transform: translateX(0); }
  .simple-nav-menu { display: block; }
  .simple-nav-menu > li > a { width: 100%; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.13); border-radius: 0; }
  .simple-nav-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 7px 12px; color: var(--paper); background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .simple-nav-menu .sub-menu a { color: var(--brand-light); }
  .nav-link, .nav-parent { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: .95rem; }
  .nav-link[aria-current="page"]::after { right: auto; bottom: 4px; left: 4px; width: 30px; }
  .nav-parent[aria-current="page"]::after { right: auto; bottom: 4px; left: 4px; width: 30px; }
  .desktop-service-menu { position: static; width: auto; margin: 7px 0 8px; padding: 7px 0 7px 12px; transform: none; opacity: 1; visibility: visible; pointer-events: auto; display: none; color: var(--paper); background: rgba(255,255,255,.05); border: 0; border-radius: 6px; box-shadow: none; }
  .desktop-service-menu.is-open { display: block; transform: none; }
  .menu-grid { grid-template-columns: 1fr; gap: 7px; }
  .menu-brand-grid { grid-template-columns: 1fr 1fr; }
  .menu-column { padding: 4px; }
  .menu-column + .menu-column { border-left: 0; }
  .menu-column h3 { color: var(--paper); }
  .menu-column h3 span { color: var(--brand-light); }
  .menu-column a { padding: 6px 4px; color: #edf4ff; font-size: .84rem; }
  .split, .detail-intro, .contact-grid, .detail-columns { grid-template-columns: 1fr; gap: 36px; }
  .product-showcase, .product-brand-panel { grid-template-columns: 1fr; }
  .product-feature { min-height: 360px; padding: 38px; }
  .hero-inner { min-height: 700px; }
  .hero-copy { width: min(100%, 570px); padding: 64px 0; }
  .hero-background img { object-position: 65% center; }
  .hero-home::after { background: linear-gradient(90deg, rgba(2,12,35,.8), rgba(2,12,35,.63)); }
  .split.reverse > :first-child { order: initial; }
  .split-media, .split-media img { min-height: 320px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .process-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .needs-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; gap: 25px; }
  .filter-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .filter-button { border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
  .filter-button:hover, .filter-button.is-active { border-color: var(--navy-900); }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .article-aside { position: static; order: -1; }
  .cta-band-inner { display: block; }
  .cta-actions { margin-top: 23px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-call { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: inline-flex; min-height: 48px; padding: 12px 15px; color: var(--paper); background: var(--navy-800); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; box-shadow: var(--shadow-md); font-size: .81rem; font-weight: 800; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .section-head { display: block; margin-bottom: 27px; }
  .section-head .text-link { margin-top: 17px; }
  .service-grid, .article-grid, .catalog-items { grid-template-columns: 1fr; }
  .product-category-row { grid-template-columns: 40px 1fr 22px; gap: 12px; min-height: 112px; padding: 22px 20px; }
  .product-feature { min-height: 330px; padding: 30px 24px; }
  .product-brand-panel { gap: 28px; padding: 30px 24px; }
  .product-brand-list { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 0; }
  .service-card-media { aspect-ratio: 16 / 9; height: auto; }
  .hero-actions, .hero-actions .button, .cta-actions, .cta-actions .button { width: 100%; }
  .hero-inner { min-height: 700px; }
  .hero-home h1 { font-size: clamp(2.5rem, 10.5vw, 3.2rem); }
  .hero-copy { padding: 50px 0 58px; }
  .hero-copy > p { margin: 22px 0 28px; font-size: .95rem; }
  .hero-meta { margin-top: 34px; }
  .hero-meta-item { padding: 0 8px 0 0; }
  .hero-meta-item + .hero-meta-item { padding-left: 10px; }
  .hero-meta strong { font-size: .76rem; }
  .hero-meta span { font-size: .68rem; }
  .hero-page { min-height: 260px; padding: 49px 0; }
  .hero-page p { font-size: .91rem; }
  .needs-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 21px; }
  .process-step, .process-step + .process-step, .process-step:nth-child(3) { padding: 0 0 0 26px; border-left: 1px solid var(--line); }
  .process-step::before { content: ''; position: absolute; top: 7px; left: -4px; width: 7px; height: 7px; background: var(--navy-800); border-radius: 50%; }
  .split-media, .split-media img, .detail-intro-media, .detail-intro-media img { min-height: 250px; }
  .form-panel { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .field-full { grid-column: auto; }
  .form-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .article-hero-image { height: 230px; }
  .service-cta { padding: 23px 20px; }
  .service-cta .button { width: 100%; }
  .empty-state { padding: 30px 20px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .brand::after { animation: none; opacity: 0; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
