/*
Theme Name: Baitu Native
Description: A responsive, native WordPress theme for BAITU's kayak product catalogue.
Version: 1.0.2
Text Domain: baitu-native
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* The site uses system fonts and local media; no third-party font service is required. */
:root {
  --baitu-navy: #073b5a;
  --baitu-deep: #052c43;
  --baitu-blue: #087bb8;
  --baitu-blue-hover: #056393;
  --baitu-sky: #eaf5fa;
  --baitu-ink: #193b4e;
  --baitu-muted: #536b79;
  --baitu-border: #dce7ed;
  --baitu-paper: #f5f8fa;
  --baitu-white: #fff;
  --baitu-radius: 8px;
  --baitu-shadow: 0 10px 28px rgb(4 46 71 / 7%);
  --baitu-container: 1200px;
  --baitu-header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--baitu-header-height) + 24px); }
body { margin: 0; color: var(--baitu-ink); background: var(--baitu-white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
svg { max-width: 100%; vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea { min-width: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--baitu-blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--baitu-blue-hover); }
button { color: inherit; }
:focus-visible { outline: 3px solid #1597dc; outline-offset: 4px; }
::selection { color: #fff; background: var(--baitu-blue); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .7em; color: var(--baitu-navy); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.65vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p, ul, ol, blockquote { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--baitu-border); margin: 2rem 0; }
iframe { max-width: 100%; border: 0; }
.container { width: min(var(--baitu-container), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999999; transform: translateY(-200%); padding: 10px 18px; border-radius: 4px; background: #fff; color: var(--baitu-navy); box-shadow: var(--baitu-shadow); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--baitu-header-height); background: rgb(255 255 255 / 98%); border-bottom: 1px solid rgb(9 61 91 / 8%); }
.site-header > .container, .header-inner { display: flex; align-items: center; gap: 34px; min-height: var(--baitu-header-height); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--baitu-navy); font-size: 1.8rem; font-weight: 800; letter-spacing: .035em; line-height: 1.1; text-decoration: none; }
.brand img, .site-header .custom-logo { width: 166px; max-height: 60px; object-fit: contain; }
.brand small, .brand .tagline { display: block; font-size: .65rem; font-weight: 500; letter-spacing: .06em; line-height: 1.5; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav > ul, .main-nav > div > ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; margin: 0; list-style: none; }
.main-nav a { display: block; padding: 29px 0; color: #233e4e; font-size: .9rem; font-weight: 600; line-height: 1.65; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav a[aria-current="page"] { color: var(--baitu-blue); }
.main-nav .sub-menu { position: absolute; top: 100%; left: -20px; display: none; width: 240px; max-height: 65vh; margin: 0; padding: 10px; overflow: auto; background: #fff; border: 1px solid var(--baitu-border); border-radius: 0 0 6px 6px; box-shadow: var(--baitu-shadow); }
.main-nav .sub-menu a { padding: 9px 11px; font-size: .87rem; }
.main-nav .sub-menu a:hover { background: var(--baitu-sky); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu .sub-menu { position: static; display: block; width: auto; max-height: none; padding: 0 0 0 10px; border: 0; box-shadow: none; }
.site-header .button { flex: 0 0 auto; padding: 11px 20px; font-size: .83rem; }
.main-nav .button, .main-nav .button:hover { color: #fff; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--baitu-border); border-radius: 5px; font-size: .85rem; font-weight: 700; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .menu-icon { position: relative; display: inline-block; width: 20px; height: 2px; background: currentColor; }
.menu-toggle .menu-icon::before, .menu-toggle .menu-icon::after { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; content: ""; }
.menu-toggle .menu-icon::before { top: -6px; }
.menu-toggle .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.admin-bar .site-header { top: 32px; }

/* Buttons and section structure */
.button, button.button, input[type="submit"], .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 25px; border: 1px solid var(--baitu-blue); border-radius: 5px; background: var(--baitu-blue); color: #fff; font-size: .91rem; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover, button.button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { color: #fff; background: var(--baitu-blue-hover); border-color: var(--baitu-blue-hover); box-shadow: 0 5px 14px rgb(0 91 139 / 15%); }
.button-outline { color: var(--baitu-blue); background: transparent; border-color: currentColor; }
.button-outline:hover { color: #fff; background: var(--baitu-blue); }
.button[disabled], .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.button-group, .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--baitu-blue); font-weight: 650; text-decoration: none; }
.text-link::after { content: "\2192"; }
.section { padding-block: 88px; }
.section + .section { border-top: 1px solid rgb(220 231 237 / 35%); }
.section.alt, .section-muted, .section-light, .bg-light { background: var(--baitu-paper); }
.section-blue, .bg-blue { color: #fff; background: var(--baitu-navy); }
.section-blue :is(h2, h3, h4), .bg-blue :is(h2, h3, h4) { color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading p { max-width: 660px; color: var(--baitu-muted); font-size: 1.02rem; }
.section-heading.center, .text-center { margin-inline: auto; text-align: center; }
.section-heading.center p { margin-inline: auto; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-heading-row .section-heading { margin-bottom: 0; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--baitu-blue); font-size: .75rem; font-weight: 750; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > *, .split > *, .contact-grid > *, .product-layout > * { min-width: 0; }

/* Image hero: retains the original full-width, blue-water visual direction. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(720px, calc(100svh - var(--baitu-header-height))); padding-block: 108px; overflow: hidden; color: #fff; background-color: var(--baitu-navy); background-position: center; background-repeat: no-repeat; background-size: cover; }
.hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(3 37 56 / 85%) 0%, rgb(3 37 56 / 68%) 30%, rgb(3 37 56 / 22%) 68%, rgb(3 37 56 / 10%) 100%); content: ""; }
.hero > img, .hero > picture, .hero .hero-media, .hero .hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero > picture img, .hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; max-width: 590px; }
.hero h1 { max-width: 590px; margin-bottom: 25px; color: #fff; font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; }
.hero p, .hero .feature-list { max-width: 550px; color: #f1f7fa; font-size: 1.06rem; }
.hero .eyebrow { color: #a8e2ff; }
.hero .button-outline { color: #fff; border-color: rgb(255 255 255 / 70%); }
.hero .button-outline:hover { color: var(--baitu-navy); border-color: #fff; background: #fff; }
.hero .feature-list { margin-bottom: 0; }
.hero .feature-list li { padding-block: 4px; }
.hero .feature-list li::before { color: #9cddff; }
.hero.compact, .hero-small { min-height: 340px; padding-block: 78px; }
.hero.compact h1, .hero-small h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.page-heading { padding-block: 58px 48px; background: var(--baitu-paper); }
.page-heading h1 { margin-bottom: 15px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--baitu-muted); font-size: .8rem; line-height: 1.5; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--baitu-blue); text-decoration: underline; }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #d9edf7; }

/* Product catalogue and cards */
.card { overflow: hidden; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: #fff; }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 26px; }
.card p { color: var(--baitu-muted); font-size: .93rem; }
.card a { text-decoration: none; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.product-card:hover, .product-card:focus-within { border-color: #9fcce2; box-shadow: var(--baitu-shadow); }
.product-card > a { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.product-card > a.product-image { flex: 0 0 auto; }
.product-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 20px; overflow: hidden; background: #f7fafb; border-bottom: 1px solid var(--baitu-border); }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 11px; padding: 23px; }
.product-body h2, .product-body h3 { margin: 0; font-size: 1.13rem; line-height: 1.4; }
.product-body h2 a, .product-body h3 a { color: var(--baitu-navy); text-decoration: none; }
.product-body h2 a:hover, .product-body h3 a:hover { color: var(--baitu-blue); }
.product-body p { margin-bottom: 0; color: var(--baitu-muted); font-size: .87rem; }
.product-body .button, .product-body .text-link { margin-top: auto; }
.product-body .button { min-height: 40px; padding: 9px 16px; font-size: .8rem; }
.product-category, .category-label { color: var(--baitu-blue); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.category-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 32px; padding: 0; list-style: none; }
.category-nav li { list-style: none; }
.category-nav a, .category-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid var(--baitu-border); border-radius: 5px; background: #fff; color: var(--baitu-muted); font-size: .83rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.category-nav a:hover, .category-nav button:hover { border-color: var(--baitu-blue); color: var(--baitu-blue); }
.category-nav .active, .category-nav [aria-current="page"], .category-nav [aria-pressed="true"], .category-nav .current-cat > a { border-color: var(--baitu-navy); background: var(--baitu-navy); color: #fff; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 38px; }
.pagination a, .pagination span, .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 7px 13px; border: 1px solid var(--baitu-border); border-radius: 4px; color: var(--baitu-ink); font-size: .88rem; text-decoration: none; }
.pagination .current, .nav-links .current { border-color: var(--baitu-navy); background: var(--baitu-navy); color: #fff; }
.pagination a:hover { border-color: var(--baitu-blue); color: var(--baitu-blue); }
.empty-state { grid-column: 1 / -1; padding: 45px 25px; border: 1px dashed #b7cbd6; border-radius: var(--baitu-radius); background: var(--baitu-paper); text-align: center; color: var(--baitu-muted); }

/* About, manufacturing, and content sections */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split > img, .split > figure, .split > picture { width: 100%; margin: 0; overflow: hidden; border-radius: var(--baitu-radius); }
.split > img { aspect-ratio: 5 / 4; object-fit: cover; }
.split > figure img, .split > picture img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 7px 0 7px 27px; }
.feature-list li::before { position: absolute; left: 0; top: 6px; color: var(--baitu-blue); content: "\2713"; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 35px; padding-block: 30px; border-block: 1px solid var(--baitu-border); }
.stat { padding: 5px 25px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--baitu-border); }
.stat strong, .stat .number, .stat-value { display: block; color: var(--baitu-blue); font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.15; }
.stat span, .stat p, .stat-label { display: block; margin: 10px 0 0; color: var(--baitu-muted); font-size: .8rem; }
.feature-icon, .card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 7px; background: var(--baitu-sky); color: var(--baitu-blue); font-size: 1.5rem; }
.feature-icon svg, .card-icon svg { width: 25px; height: 25px; }
.prose { max-width: 820px; color: var(--baitu-ink); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.7rem; font-size: 1.3rem; }
.prose li { margin-block: .45rem; }
.prose img { max-width: 100%; height: auto; margin-block: 24px; border-radius: 5px; }
.prose figure { max-width: 100%; margin: 28px 0; }
.prose figcaption { margin-top: 8px; color: var(--baitu-muted); font-size: .8rem; text-align: center; }
.prose table, .product-details table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td, .product-details th, .product-details td { padding: 12px 15px; border: 1px solid var(--baitu-border); text-align: left; vertical-align: top; }
.prose th, .product-details th { background: var(--baitu-paper); font-weight: 650; }
.prose blockquote { margin: 28px 0; padding: 18px 25px; border-left: 3px solid var(--baitu-blue); background: var(--baitu-paper); }
.prose pre { max-width: 100%; padding: 18px; overflow: auto; background: var(--baitu-paper); }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin-right: 24px; }
.prose .alignright { float: right; margin-left: 24px; }
.prose::after { display: table; clear: both; content: ""; }
.wp-block-image img { height: auto; }
.wp-block-table { overflow-x: auto; }

/* Product details and progressive gallery */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 58px; }
.product-gallery { min-width: 0; }
.product-gallery > img, .product-gallery [data-gallery-main], .product-gallery .main-image img { width: 100%; height: auto; aspect-ratio: 5 / 4; padding: 25px; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: #f8fafb; object-fit: contain; }
.gallery-thumbs, .gallery-thumbnails, .product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbnails button, .product-thumbnails button, [data-gallery-thumb] { padding: 6px; border: 1px solid var(--baitu-border); border-radius: 5px; background: #fff; }
.gallery-thumbnails img, .product-thumbnails img, [data-gallery-thumb] img { width: 100%; aspect-ratio: 1; object-fit: contain; }
[data-gallery-thumb][aria-pressed="true"], [data-gallery-thumb][aria-current="true"] { border-color: var(--baitu-blue); box-shadow: 0 0 0 1px var(--baitu-blue); }
.product-details h1 { margin-bottom: 20px; font-size: clamp(2rem, 3.4vw, 2.85rem); }
.product-details > p { color: var(--baitu-muted); }
.product-details .button { margin-top: 20px; }
.product-meta { display: grid; gap: 9px; padding-block: 20px; margin-bottom: 24px; border-block: 1px solid var(--baitu-border); font-size: .9rem; }
.product-meta dt { font-weight: 650; }
.product-meta dd { margin: 0; color: var(--baitu-muted); }

/* FAQ, inquiry form, and contact */
.faq { max-width: 900px; margin-inline: auto; }
.faq details { margin-bottom: 12px; border: 1px solid var(--baitu-border); border-radius: 6px; background: #fff; }
.faq summary { position: relative; padding: 20px 55px 20px 24px; list-style: none; cursor: pointer; color: var(--baitu-navy); font-weight: 650; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--baitu-blue); content: "+"; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--baitu-border); }
.faq details > :not(summary) { margin: 0; padding: 20px 24px; color: var(--baitu-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 60px; }
/* Let the two contact sections participate in the grid through WordPress's group wrapper. */
.contact-grid > .wp-block-group__inner-container { display: contents; }
.contact-grid > .wp-block-group__inner-container > .wp-block-group { min-width: 0; margin-block: 0; }
.contact-card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: var(--baitu-paper); }
.contact-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.contact-card p, .contact-card address { margin-bottom: 0; color: var(--baitu-muted); font-size: .92rem; font-style: normal; }
.contact-card a { overflow-wrap: anywhere; text-decoration: none; }
.inquiry-form { padding: 34px; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: #fff; box-shadow: var(--baitu-shadow); }
.inquiry-form .grid { gap: 18px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.field label, .inquiry-form > label { display: block; color: var(--baitu-ink); font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea, .inquiry-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .inquiry-form select, .inquiry-form textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #bfcfd8; border-radius: 4px; background: #fff; color: var(--baitu-ink); line-height: 1.5; }
.field textarea, .inquiry-form textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--baitu-blue); }
.field small, .form-note { color: var(--baitu-muted); font-size: .78rem; }
.inquiry-form :is(input, textarea)::placeholder { color: #748793; opacity: 1; }
.inquiry-form input[type="checkbox"], .inquiry-form input[type="radio"] { width: 17px; height: 17px; accent-color: var(--baitu-blue); }
.inquiry-form .button { width: 100%; }
.notice { margin-bottom: 22px; padding: 14px 18px; border: 1px solid #b7d8e9; border-radius: 5px; background: var(--baitu-sky); color: var(--baitu-navy); font-size: .9rem; }
.notice.success, .notice-success { border-color: #aed9c2; background: #eff9f3; color: #235b3d; }
.notice.error, .notice-error { border-color: #e3b9b9; background: #fff5f5; color: #8e2a2a; }
.inquiry-form .baitu-trap { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.cta-band { padding-block: 56px; color: #fff; background: var(--baitu-navy); }
.cta-band > .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin-bottom: 10px; color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.45rem); }
.cta-band p { max-width: 690px; margin-bottom: 0; color: #d4e8f2; }
.cta-band .button { flex: 0 0 auto; border-color: #fff; background: #fff; color: var(--baitu-navy); }
.cta-band .button:hover { border-color: #dcf1fc; background: #dcf1fc; }

/* Blog and footer */
.blog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--baitu-border); border-radius: var(--baitu-radius); background: #fff; }
.blog-card > a > img, .blog-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card .card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.blog-card h2, .blog-card h3 { font-size: 1.18rem; line-height: 1.4; }
.blog-card h2 a, .blog-card h3 a { color: var(--baitu-navy); text-decoration: none; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--baitu-blue); }
.blog-card p { color: var(--baitu-muted); font-size: .9rem; }
.blog-card time, .post-meta { display: block; margin-bottom: 13px; color: var(--baitu-muted); font-size: .76rem; }
.blog-card .text-link { margin-top: auto; }
.site-footer { padding-top: 66px; color: #c2d7e2; background: var(--baitu-deep); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.2fr; gap: 42px; padding-bottom: 50px; }
.site-footer h2, .site-footer h3, .site-footer h4 { margin-bottom: 20px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer .brand { margin-bottom: 20px; color: #fff; }
.site-footer .brand img { max-width: 172px; }
.site-footer p, .site-footer address { color: #bed3df; font-size: .85rem; font-style: normal; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d4e5ee; font-size: .85rem; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 21px; border-top: 1px solid rgb(255 255 255 / 13%); color: #a9c3d2; font-size: .75rem; }
.footer-bottom p { margin: 0; color: inherit; font-size: inherit; }
.footer-bottom a { font-size: inherit; }

/* Responsive layouts: navigation remains available when JavaScript is absent. */
@media (min-width: 961px) {
  .main-nav { display: flex !important; }
}
@media (max-width: 1100px) {
  .site-header > .container, .header-inner { gap: 22px; }
  .main-nav > ul, .main-nav > div > ul { gap: 20px; }
  .brand img, .site-header .custom-logo { width: 145px; }
  .site-header .button { padding-inline: 15px; }
  .split { gap: 42px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { gap: 28px; }
}
@media (max-width: 960px) {
  :root { --baitu-header-height: 74px; }
  .container { width: calc(100% - 48px); }
  .site-header > .container, .header-inner { flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
  .brand { margin-right: auto; }
  .site-header > .container > .button, .header-inner > .button { margin-left: auto; }
  .main-nav { display: block; order: 5; flex-basis: 100%; width: 100%; margin: 0; padding-block: 10px 18px; border-top: 1px solid var(--baitu-border); }
  .main-nav > ul, .main-nav > div > ul { flex-wrap: wrap; gap: 6px 22px; }
  .main-nav a { padding: 10px 0; }
  .main-nav .nav-cta { margin-top: 12px; }
  .main-nav .sub-menu { position: static; display: block; width: auto; max-height: none; margin: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; }
  .main-nav .sub-menu a { padding: 7px 0; font-size: .82rem; }
  .site-header[data-nav-enhanced="true"] .menu-toggle { display: inline-flex; }
  .site-header[data-nav-enhanced="true"] .main-nav { max-height: calc(100svh - 108px); overflow-y: auto; }
  .site-header[data-nav-enhanced="true"] .main-nav > ul, .site-header[data-nav-enhanced="true"] .main-nav > div > ul { display: block; }
  .hero { min-height: 610px; padding-block: 85px; background-position: 60% center; }
  .hero-content { max-width: 540px; }
  .hero h1 { font-size: clamp(2.5rem, 6.4vw, 3.6rem); }
  .section { padding-block: 66px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 32px; }
  .contact-grid { gap: 32px; }
  .product-layout { gap: 32px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 35px; }
  .cta-band > .container { align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 700px) {
  .split, .contact-grid, .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .split > img { max-height: 450px; }
  .split.reverse > :first-child { order: 2; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .cta-band > .container { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero::before { background: linear-gradient(90deg, rgb(3 37 56 / 82%), rgb(3 37 56 / 45%)); }
  .product-gallery { max-width: 580px; }
  .prose :is(.alignleft, .alignright) { float: none; margin-inline: 0; }
}
@media (max-width: 600px) {
  :root { --baitu-header-height: 70px; }
  .container { width: calc(100% - 36px); }
  .site-header > .container, .header-inner { column-gap: 12px; }
  .site-header .brand img, .site-header .custom-logo { width: 132px; max-height: 48px; }
  .site-header > .container > .button, .header-inner > .button { display: none; }
  .site-header .menu-toggle { margin-left: auto; }
  .admin-bar .site-header { top: 0; }
  .hero { min-height: 580px; padding-block: 70px; background-position: 62% center; }
  /* Bound the flex item and its content to the mobile viewport before text wraps. */
  .hero > .container { flex: 0 1 calc(100% - 36px); width: calc(100% - 36px); min-width: 0; max-width: calc(100% - 36px); }
  .hero .hero-content { width: 100%; min-width: 0; max-width: 100%; }
  .hero .hero-content > *, .hero .feature-list li { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3rem); }
  .hero p, .hero .feature-list { font-size: .95rem; }
  .hero.compact, .hero-small { min-height: 280px; padding-block: 54px; }
  .hero.compact h1, .hero-small h1 { font-size: 2.25rem; }
  .section { padding-block: 52px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading p { font-size: .94rem; }
  .grid { gap: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 3 / 2; }
  .product-body { padding: 22px; }
  .category-nav { gap: 7px; margin-bottom: 26px; }
  .category-nav a, .category-nav button { min-height: 40px; padding: 8px 13px; font-size: .78rem; }
  .page-heading { padding-block: 38px 34px; }
  .stats { margin-top: 25px; padding-block: 24px; }
  .stat { padding-inline: 15px; }
  .stat span, .stat p { font-size: .74rem; }
  .inquiry-form { padding: 24px 20px; }
  .inquiry-form .grid { gap: 0; }
  .contact-card { padding: 22px; }
  .faq summary { padding: 18px 45px 18px 18px; font-size: .94rem; }
  .faq summary::after { right: 18px; }
  .faq details > :not(summary) { padding: 18px; font-size: .92rem; }
  .cta-band { padding-block: 42px; }
  .site-footer { padding-top: 46px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding-bottom: 34px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .gallery-thumbs, .gallery-thumbnails, .product-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header { position: static; }
  .main-nav, .menu-toggle, .site-header .button, .inquiry-form, .cta-band, .pagination { display: none !important; }
  .container { width: 100%; }
  .hero { min-height: 0; padding-block: 30px; color: #000; background: #fff !important; }
  .hero::before, .hero > img, .hero > picture { display: none; }
  .hero :is(h1, p, .feature-list, .eyebrow) { color: #000; }
  .section { padding-block: 24px; }
  .card, .product-card, .contact-card { break-inside: avoid; }
  .site-footer { color: #000; background: #fff; }
  .site-footer :is(h2, h3, h4, p, a, address) { color: #000; }
}
