/**
 * GUOWIN Website - Core Styles
 * Version: 1.0.0
 * Description: Centralized CSS for header, footer, typography, and responsive design
 */

/* ============================================
   1. CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --green-dark: #004B44;
    --green-primary: #1B5E3B;
    --green-light: #2D8A5E;
    --green-accent: #3CA66B;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAF9;
    --gray-100: #F0F4F2;
    --gray-200: #E0E8E4;
    --gray-300: #C0CEC4;
    --gray-500: #6A7A6E;
    --gray-600: #4A5A4E;
    --gray-800: #2C3B30;

    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-link: #3CA66B;

    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Roboto Condensed', Arial Narrow, sans-serif;

    /* Font Scale */
    --text-xs:   0.75rem;   /* 12px — labels, tags */
    --text-sm:   0.875rem;  /* 14px — captions, footnotes */
    --text-base: 1rem;      /* 16px — body */
    --text-lg:   1.125rem;  /* 18px — lead text */
    --text-xl:   1.5rem;    /* 24px — H3 / subheadings */
    --text-2xl:  2rem;      /* 32px — H2 / section titles */
    --text-3xl:  2.5rem;    /* 40px — H1 / page hero */
    --text-4xl:  3rem;      /* 48px — Hero display */

    /* Spacing */
    --container-max: 1280px;
    --header-height: 100px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   1.1 DARK MODE VARIABLES
   ============================================ */
:root.dark-mode {
    /* Primary Colors - 调整以适应深色背景 */
    --green-dark: #002a26;
    --green-primary: #0d3d26;
    --green-light: #1a5c3d;
    --green-accent: #3CA66B;

    /* Neutral Colors - 反转 */
    --white: #1a1a1a;
    --gray-50: #121212;
    --gray-100: #1e1e1e;
    --gray-200: #2a2a2a;
    --gray-300: #3a3a3a;
    --gray-500: #888888;
    --gray-600: #aaaaaa;
    --gray-800: #e0e0e0;

    /* Text Colors - 高对比度 */
    --text-primary: #f5f5f5;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-link: #4ade80;

    /* Shadows - 更亮的阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}


/* ============================================
   2. BASE STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--white);
    font-size: var(--text-base);
    font-weight: 400;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   Inter (primary) for body / nav / buttons
   Roboto Condensed (secondary) for headings / data / emphasis
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--text-3xl); }  /* 40px */
h2 { font-size: var(--text-2xl); }  /* 32px */
h3 { font-size: var(--text-xl);  }  /* 24px */
h4 { font-size: var(--text-lg);  font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; }
h6 { font-size: var(--text-sm);  font-weight: 600; }

p {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
}

small, .text-sm {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--text-link);
}

/* Shared primary action used by forms and page-level conversion bands. */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.35rem;
    border: 1px solid var(--green-primary);
    border-radius: 6px;
    background: var(--green-primary);
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(12, 67, 48, 0.14);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-cta:hover {
    border-color: var(--green-light);
    background: var(--green-light);
    color: var(--white);
    box-shadow: 0 7px 18px rgba(12, 67, 48, 0.2);
    transform: translateY(-1px);
}

.cta-band .btn-cta {
    border-color: var(--white);
    background: var(--white);
    color: var(--green-primary);
}

.cta-band .btn-cta:hover {
    border-color: var(--green-accent);
    background: var(--green-accent);
    color: var(--white);
}

/* Responsive heading scale — mobile */
@media (max-width: 768px) {
    h1 { font-size: var(--text-2xl); }   /* 32px */
    h2 { font-size: var(--text-xl);  }   /* 24px */
    h3 { font-size: var(--text-lg);  }   /* 18px */
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }           /* 28px */
    h2 { font-size: 1.375rem; }          /* 22px */
    h3 { font-size: var(--text-base); }  /* 16px */
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   GLOBAL SCROLL ANCHOR OFFSET
   Prevents sticky header from covering anchor targets
   ============================================ */
html { scroll-padding-top: 60px; }
*[id] { scroll-margin-top: 60px; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5.5rem 0;
}


/* ============================================
   3. HEADER STYLES
   ============================================ */
header {
    background: var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Article header must NOT be sticky — override any inherited sticky behavior */
header.article-header,
.article-header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
}

/* Top Row: Logo + Company Values + Lang Switcher */
.header-top {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.35rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--green-dark);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-area img {
    height: 38px;
    width: auto;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
}

.company-values {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    height: 38px;
    color: var(--white);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    line-height: 1;
}

/* Language Switcher — top bar, top-right */
/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1.4;
    white-space: nowrap;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle[aria-expanded="true"] {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__arrow {
    transition: transform 0.2s;
    opacity: 0.7;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 110px;
    background: var(--green-dark, #003D35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 4px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lang-switcher__dropdown[hidden] {
    display: none;
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: var(--font-primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.lang-switcher__option:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.lang-switcher__option--active {
    color: #ffffff;
    font-weight: 600;
}

/* Navigation Row */
.header-nav {
    background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.header-nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 49px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    padding: 0.7rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--green-primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-trigger::after {
    content: '▾';
    font-size: 0.65rem;
    margin-left: 2px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content a {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    display: block;
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--green-primary);
}

/* Header CTA Button */
.header-cta {
    margin-left: auto;
}

.header-cta .btn-cta {
    background: var(--white);
    color: var(--green-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1.5px solid var(--green-primary);
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(27,94,59,0.1);
}

.header-cta .btn-cta:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 16px rgba(27,94,59,0.25);
    border-color: var(--green-primary);
}

/* Hamburger Menu Button */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-dark);
    margin: 5px 0;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    z-index: 99;
    overflow-y: auto;
}

.mobile-menu.open {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a:hover {
    color: var(--green-primary);
}

.mobile-submenu {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-submenu summary {
    padding: 0.875rem 0;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.mobile-submenu summary::-webkit-details-marker {
    display: none;
}

.mobile-submenu summary::after {
    content: '+';
    float: right;
    color: var(--green-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-submenu[open] summary::after {
    content: '−';
}

.mobile-submenu-links {
    padding: 0 0 0.75rem 1rem;
}

.mobile-submenu-links a {
    padding: 0.65rem 0;
    border-bottom: 0;
    font-size: 0.925rem;
}

.mobile-cta {
    background: var(--green-accent);
    color: var(--white);
    border-radius: 6px;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
}


/* ============================================
   4. FOOTER STYLES
   ============================================ */
footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 170px repeat(5, minmax(0, 1fr));
    gap: 2rem;
}

.footer-brand-cell img {
    display: block;
    width: 152px;
    height: auto;
}

.footer-col-title {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-grid > div > ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}

.footer-grid > div > ul > li > a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.footer-grid > div > ul > li > a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-company-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 3rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--green-accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-legal { display: flex; align-items: center; gap: 1.25rem; }
.footer-legal a { text-decoration: none; }


/* ============================================
   5. TYPOGRAPHY
   ============================================ */
.section-title {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
}

.section-title-dark {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 2rem;
}


/* ============================================
   6. NEWS SECTION STYLES
   ============================================ */
/* News list band — alternate background for homepage rhythm */
.section-news {
    background: var(--gray-100);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* "More news" entry below the home news cards */
.news-more {
    margin-top: 2.75rem;
    text-align: center;
}

.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.7rem;
    border-radius: 25px;
    border: 1.5px solid var(--green-primary);
    background: var(--white);
    color: var(--green-primary);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(27, 94, 59, 0.1);
}

.news-cta:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 94, 59, 0.25);
}

.news-cta span[aria-hidden] {
    transition: transform 0.25s ease;
}

.news-cta:hover span[aria-hidden] {
    transform: translateX(3px);
}

/* What's New — fixed image with a BCG-style expanding information panel. */
.zg-flip-card {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    outline-offset: 4px;
    box-shadow: 0 8px 24px rgba(3, 37, 26, 0.12);
}

.zg-flip-inner {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    background: #173f35;
}

.zg-flip-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 30, 23, 0.02) 35%, rgba(5, 30, 23, 0.78) 100%);
    pointer-events: none;
}

.zg-flip-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.zg-flip:nth-child(1) .zg-flip-image,
.zg-flip:nth-child(2) .zg-flip-image { object-fit: contain; padding: 2.25rem; background: #edf4f1; }

.zg-reveal-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.6rem;
    background: transparent;
    transform: translateY(calc(100% - 152px));
    transition: transform 0.72s cubic-bezier(0.22, 0.68, 0.2, 1), background 0.45s ease;
}

.zg-flip-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zg-flip-title {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 680;
    line-height: 1.45;
}

.zg-reveal-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: max-height 0.72s cubic-bezier(0.22, 0.68, 0.2, 1), opacity 0.35s ease, transform 0.72s cubic-bezier(0.22, 0.68, 0.2, 1);
}

.zg-flip-card:hover .zg-reveal-details,
.zg-flip-card:focus-visible .zg-reveal-details,
.zg-flip-card.is-flipped .zg-reveal-details {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
}

.zg-flip-card:hover .zg-reveal-panel,
.zg-flip-card:focus-visible .zg-reveal-panel,
.zg-flip-card.is-flipped .zg-reveal-panel {
    background: #fff;
    transform: translateY(0);
}

.zg-flip-card:hover .zg-flip-tag,
.zg-flip-card:focus-visible .zg-flip-tag,
.zg-flip-card.is-flipped .zg-flip-tag {
    background: #e1f0e8;
    color: #10483d;
}

.zg-flip-card:hover .zg-flip-title,
.zg-flip-card:focus-visible .zg-flip-title,
.zg-flip-card.is-flipped .zg-flip-title { color: #173b32; }

.zg-flip-summary {
    margin: 1rem 0 0;
    color: #33433c;
    font-size: 0.9rem;
    line-height: 1.65;
}

.zg-flip-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #d8e2dd;
}

.zg-flip-foot time { color: #68776f; font-size: 0.76rem; }
.zg-flip-more { color: #176844; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }

@media (hover: none) {
    .zg-flip-inner { min-height: 380px; }
}

.section-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.section-heading-row .section-title-dark { margin-bottom: 0; }
.section-heading-link {
    color: var(--green-primary);
    font-weight: 700;
    white-space: nowrap;
}
.section-heading-link:hover { color: var(--green-dark); }


/* ============================================
   7. WHAT WE DO SECTION
   ============================================ */
.wwd-section {
    background: var(--gray-100);
    padding: 5.5rem 0;
}

.wwd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.wwd-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.wwd-card:hover {
    border-color: var(--green-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.wwd-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(0,74,68,0.25);
    transition: transform 0.3s ease;
}
.wwd-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}
.wwd-card:hover .wwd-icon {
    transform: scale(1.1) rotate(4deg);
}

.wwd-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.wwd-desc {
    font-size: 0.825rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.wwd-card-more {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wwd-card-more:hover {
    box-shadow: 0 4px 12px rgba(0,74,68,0.1);
}

.wwd-card-more:hover .wwd-icon {
    background: linear-gradient(135deg, var(--green-accent) 0%, var(--green-light) 100%);
    transform: scale(1.1) rotate(4deg);
}

.wwd-card-more .wwd-icon {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    transition: all 0.25s;
}

.wwd-card-more .wwd-title {
    color: var(--green-primary);
}

.wwd-card-more .wwd-desc {
    font-size: 0.775rem;
}

.wwd-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.wwd-product {
    background: var(--green-dark);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.25s;
}

.wwd-product:hover {
    background: var(--green-primary);
}

.wwd-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #FFFFFF;
}

.wwd-product-tag {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
}

.wwd-product-more {
    background: #e8f5f0;
    border: 1px dashed #a8d5c2;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wwd-product-more:hover {
    border-style: solid;
    border-color: var(--green-accent);
    background: var(--white);
}

.wwd-product-more .wwd-product-name {
    color: var(--green-primary);
}

.wwd-product-more .wwd-product-tag {
    color: var(--gray-500);
}


/* ============================================
   8. WHO WE ARE SECTION
   ============================================ */
.wwa-section {
    background: var(--white);
}

.wwa-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.wwa-values-block {
    background: var(--green-dark);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: sticky;
    top: 120px;
}

.wwa-values-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.wwa-value-item {
    margin-bottom: 1.5rem;
}

.wwa-value-item:last-child {
    margin-bottom: 0;
}

.wwa-value-word {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.wwa-value-line {
    width: 40px;
    height: 2px;
    background: var(--green-accent);
}

.wwa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wwa-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
}

.wwa-item-banner {
    display: inline-block;
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.wwa-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.wwa-item-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
}


/* ============================================
   9. BRANDS STRIP
   ============================================ */
.brands-strip {
    background: var(--gray-100);
    padding: 3rem 0;
}

.brands-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.brand-name {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-top: 0.25rem;
    text-align: center;
}

.brand-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}


/* ============================================
   10. HERO STYLES
   ============================================ */
.hero {
    position: relative;
    height: 600px;
    background: var(--green-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated brand mesh gradient — slow, premium drift */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(55% 75% at 18% 22%, rgba(0, 184, 156, 0.40), transparent 60%),
        radial-gradient(50% 70% at 82% 28%, rgba(0, 122, 110, 0.36), transparent 62%),
        radial-gradient(60% 80% at 60% 100%, rgba(0, 90, 80, 0.30), transparent 65%),
        linear-gradient(135deg, var(--green-dark) 0%, #053b29 100%);
    background-size: 180% 180%;
    animation: heroMesh 22s ease-in-out infinite;
}

/* Drifting micro-abrasive grain — subtle nod to the abrasives business */
.hero::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
    background-size: 28px 28px;
    opacity: 0.45;
    animation: heroGrain 38s linear infinite;
    pointer-events: none;
}

/* Uploaded hero background video (rendered only when a file exists) */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark scrim over the video/photo for headline legibility */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 40, 30, 0.45) 0%, rgba(5, 40, 30, 0.30) 45%, rgba(5, 40, 30, 0.55) 100%);
    pointer-events: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/assets/images/general/hero-bg-1920.webp') center/cover no-repeat;
    opacity: 0.22;
}

/* Mobile: use smaller WebP variant */
@media (max-width: 768px) {
    .hero-image {
        background-image: url('/assets/images/general/hero-bg-1920.webp');
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, rgba(0,75,68,0.7) 100%);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 59, 36, 0.4);
}

.hero-slogan {
    position: relative;
    z-index: 3;
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(26px);
    animation: heroRise 1s cubic-bezier(0.22, 0.72, 0.2, 1) 0.15s forwards;
}

@keyframes heroMesh {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroGrain {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-28px, -28px, 0); }
}

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

/* Honor users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .hero-slogan {
        animation: none !important;
    }
    /* Static users get the gradient, not a moving video */
    .hero-video {
        display: none;
    }
    .hero-slogan {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   10. TRUSTED BY SECTION
   ============================================ */
.trusted-section {
    background: var(--white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.trusted-label {
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trusted-logo {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.trusted-logo:hover {
    color: var(--green-primary);
}

.client-logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 2rem;
}

.client-logo {
    max-height: 42px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.2s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trusted-logo-divider {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* ============================================
   11. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}


/* ============================================
   12. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
    .wwd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wwd-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
}

/* Mobile: 768px */
@media (max-width: 768px) {
    /* Header */
    .header-top {
        padding: 0.75rem 1.5rem;
    }

    .logo-area img {
        height: 38px;
    }

    .company-values {
        font-size: 0.7rem;
    }

    .header-nav-inner {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    #lang-switcher {
        flex-shrink: 0;
    }

    /* Hero */
    .hero {
        height: 500px;
    }

    .hero-slogan {
        font-size: 2.5rem;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* What We Do */
    .wwd-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wwd-products {
        grid-template-columns: 1fr;
    }

    /* Who We Are */
    .wwa-grid {
        grid-template-columns: 1fr;
    }

    .wwa-values-block {
        position: static;
        margin-bottom: 2rem;
    }

    .wwa-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    /* Trusted By */
    .trusted-section {
        padding: 2rem 0;
    }
    .trusted-logos {
        gap: 0.3rem;
    }
    .trusted-logo {
        font-size: var(--text-sm);
    }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-slogan {
        font-size: 2rem;
    }

    .wwd-grid {
        grid-template-columns: 1fr;
    }

    .brands-inner {
        gap: 1.5rem;
    }

    .brand-divider {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ============================================
   ARROW LINKS — 箭头链接样式（空心三角形）
   ============================================ */
.arrow-link,
.read-more,
.industry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--green-primary);
    transition: color 0.2s;
    text-decoration: none;
}
.arrow-link:hover,
.read-more:hover,
.industry-link:hover {
    color: var(--green-accent);
}
.arrow-link .arrow-icon,
.read-more .arrow-icon,
.industry-link .arrow-icon {
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s;
}
.arrow-link:hover .arrow-icon,
.read-more:hover .arrow-icon,
.industry-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* 按钮内的箭头图标（不覆盖按钮自身样式） */
.btn-primary .arrow-icon,
.brand-cta-primary .arrow-icon,
.ind-btn-primary .arrow-icon {
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.btn-primary:hover .arrow-icon,
.brand-cta-primary:hover .arrow-icon,
.ind-btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}


/* ============================================
   GLOBAL RESPONSIVE TABLE WRAPPER (TD-04)
   移动端表格横向滚动 — 防止规格参数表溢出
   ============================================ */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}
.table-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.table-scroll-wrapper::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.table-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* 全局表格默认响应式 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--green-dark);
}

/* 产品规格表格专用横向滚动 */
.spec-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.spec-table th,
.spec-table td {
    white-space: nowrap;
}

/* ============================================
   21. LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.lang-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.lang-switcher__flag {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher__arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 130px;
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher__dropdown[hidden] {
    display: none;
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.lang-switcher__option:hover {
    background: var(--gray-100);
}

.lang-switcher__option--active {
    color: var(--green-primary);
    font-weight: 600;
}

.lang-switcher__option--active svg {
    color: var(--green-accent);
}

/* 深色背景 Header 内的切换器样式 */
.site-header .lang-switcher__toggle {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.site-header .lang-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* ============================================
   DARK MODE COMPONENT STYLES
   ============================================ */

/* Header 深色模式 */
:root.dark-mode header {
    background: var(--green-dark);
}

/* Card 深色模式 */
:root.dark-mode .wwd-card,
:root.dark-mode .wwa-item {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

:root.dark-mode .wwd-card:hover,
:root.dark-mode .wwa-item:hover {
    border-color: var(--green-accent);
}

/* Section 深色模式 */
:root.dark-mode .wwd-section,
:root.dark-mode .brands-strip {
    background: var(--gray-50);
}

:root.dark-mode .wwa-section,
:root.dark-mode .trusted-section {
    background: var(--white);
}

/* Button 深色模式 */
:root.dark-mode .btn-cta {
    background: var(--green-accent);
}

:root.dark-mode .btn-cta:hover {
    background: var(--green-light);
}

/* Product card 深色模式 */
:root.dark-mode .wwd-product {
    background: var(--green-dark);
}

:root.dark-mode .wwd-product:hover {
    background: var(--gray-100);
}

/* Values block 深色模式 */
:root.dark-mode .wwa-values-block {
    background: var(--green-dark);
}

/* Footer 深色模式 */
:root.dark-mode footer {
    background: var(--green-dark);
}

:root.dark-mode .footer-col-title,
:root.dark-mode footer a {
    color: rgba(255, 255, 255, 0.9);
}

:root.dark-mode footer a:hover {
    color: var(--green-accent);
}

/* Social links */
:root.dark-mode .social-link {
    color: rgba(255, 255, 255, 0.7);
}

:root.dark-mode .social-link:hover {
    color: var(--green-accent);
}

/* Form elements 深色模式 */
:root.dark-mode input,
:root.dark-mode textarea,
:root.dark-mode select {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

/* Back to top button */
:root.dark-mode .back-to-top {
    background: var(--gray-800);
    color: var(--white);
}

:root.dark-mode .back-to-top:hover {
    background: var(--gray-600);
}

/* Mobile menu */
:root.dark-mode .mobile-menu {
    background: var(--gray-50);
}

:root.dark-mode .mobile-menu a {
    color: var(--text-primary);
    border-color: var(--gray-200);
}

/* Scrollbar styling for dark mode */
:root.dark-mode ::-webkit-scrollbar {
    width: 10px;
}

:root.dark-mode ::-webkit-scrollbar-track {
    background: var(--gray-100);
}

:root.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

:root.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection */
:root.dark-mode ::selection {
    background: var(--green-accent);
    color: var(--white);
}

/* Images - 保持对比度 */
:root.dark-mode img {
    opacity: 0.9;
}

:root.dark-mode img:hover {
    opacity: 1;
}

/* Table wrapper */
:root.dark-mode .spec-table-wrapper,
:root.dark-mode .table-scroll-wrapper {
    border-color: var(--gray-300);
}

/* Arrow links */
:root.dark-mode .arrow-link,
:root.dark-mode .read-more,
:root.dark-mode .industry-link {
    color: var(--green-accent);
}

/* Brand CTA buttons */
:root.dark-mode .btn-primary,
:root.dark-mode .brand-cta-primary,
:root.dark-mode .ind-btn-primary {
    background: var(--green-accent);
}

/* Hamburger menu icon */
:root.dark-mode .nav-hamburger span {
    background: var(--white);
}

/* Focus outlines */
:root.dark-mode *:focus-visible {
    outline-color: var(--green-accent);
}

/* ============================================================
   GUOWIN rebuild additions (optimizations on top of live design)
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--green-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ===== Site Search (header, aligned with logo) ===== */
.site-search {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.site-search__form {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 0.4rem 0 0.9rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.site-search__form:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
}
.site-search__icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.site-search__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
}
.site-search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.site-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.site-search__results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  z-index: 120;
  padding: 0.5rem 0;
}
.site-search__results[hidden] {
  display: none;
}
.site-search__group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  padding: 0.5rem 1rem 0.25rem;
}
.site-search__item {
  display: block;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f1f5f9;
}
.site-search__item:last-child {
  border-bottom: 0;
}
.site-search__item:hover,
.site-search__item.is-active {
  background: #f0fdf4;
}
.site-search__item-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.site-search__item-title mark {
  background: #bbf7d0;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.site-search__item-path {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.site-search__empty {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0.5rem 0 0;
  }
  .header-top {
    flex-wrap: wrap;
  }
}

/* Header top-right language action */
.header-actions-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.lang-switch-inline {
  display: flex;
  align-items: center;
}
.lang-switch-inline .lang-opt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch-inline .lang-opt:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero image fallback (use an available asset; gradient overlay stays) */
.hero-image {
  background-image: url('/assets/images/general/hero-bg-1920.webp');
  background-size: cover;
  background-position: center;
}
.hero-sub {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 1.25rem;
  opacity: 0.92;
}
/* Hero title reuses the slogan's display styling; reset native h1 metrics. */
.hero-title {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: inherit;
  color: inherit;
}
@media (max-width: 768px) {
  .hero-slogan { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }
}

/* Light-background content sections */
.section-light { background: var(--white); }
.section-muted { background: var(--gray-100); }

/* Generic content blocks */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--text-secondary); line-height: 1.75; margin: 0 0 1.25rem; }
.prose h2 { font-family: var(--font-secondary); color: var(--green-dark); font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose h3 { font-family: var(--font-secondary); color: var(--green-primary); font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
.prose ul { color: var(--text-secondary); line-height: 1.7; margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.lead { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2.25rem; }

/* CTA band */
.cta-band {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: var(--white); font-family: var(--font-secondary); font-size: 1.75rem; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

/* Card grid (generic) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.info-card h3 { font-family: var(--font-secondary); color: var(--green-primary); font-size: 1.1rem; margin-bottom: 0.5rem; }
.info-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* Home "Industries We Serve" preview cards — clickable, indexed, with a
   mapped-solution line and hover affordance. Scoped to .industries-grid so the
   /industries/ page cards (plain .card-grid) are unaffected. */
.industries-grid .info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--green-accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.industries-grid .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(27, 94, 59, 0.12);
  border-color: var(--green-primary);
}
.industries-grid .info-card p { margin-bottom: 0.85rem; }
.industry-index {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-accent);
  margin-bottom: 0.4rem;
}
.industry-solutions {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.industry-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.1rem;
  color: var(--green-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.industries-grid .info-card:hover .industry-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Product detail layout */
.product-hero-img { width: 100%; border-radius: 10px; border: 1px solid var(--gray-200); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-200); }
.spec-list li span:first-child { color: var(--text-muted); }
.spec-list li span:last-child { font-weight: 600; color: var(--gray-800); }

/* Forms */
.gw-form { max-width: 640px; margin: 0 auto; }
.gw-field { margin-bottom: 1.25rem; }
.gw-field label { display: block; font-weight: 600; color: var(--gray-800); margin-bottom: 0.4rem; font-size: 0.9rem; }
.gw-form input, .gw-form textarea, .gw-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-primary);
}
.gw-form input:focus, .gw-form textarea:focus, .gw-form select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 59, 0.12);
}
.gw-form .btn-cta { cursor: pointer; border: none; }
.form-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* Utility classes — replace inline styles so CSP can drop 'unsafe-inline' */
.lead--center { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.gw-field--inline { display: flex; gap: 0.5rem; align-items: flex-start; }
.consent-checkbox { width: auto; margin-top: 0.3rem; }
.consent-label { margin: 0; font-weight: 400; }
.mt-2rem { margin-top: 2rem; }

/* Inline note / callout */
.note {
  background: rgba(27, 94, 59, 0.06);
  border-left: 3px solid var(--green-accent);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Resource list (definition list used on Resources page) */
.resource-list { margin: 0 0 1.25rem; }
.resource-list dt {
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.resource-list dd {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0.25rem 0 0;
  padding-left: 0;
}
.resource-list dd + dt { margin-top: 1rem; }

/* Product and inquiry pages */
.product-family-grid,
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-family-card {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-family-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 10px 28px rgba(12, 67, 48, 0.12);
  transform: translateY(-2px);
}
.product-family-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1rem;
  background: var(--gray-50);
}
.product-family-media img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.product-family-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}
.product-family-copy strong { color: var(--green-dark); font-size: 1.15rem; }
.product-family-copy span { color: var(--text-secondary); line-height: 1.65; }

.product-overview,
.manufacturing-feature,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.product-overview__media {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gray-50);
}
.product-overview__media img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.product-overview__copy h2,
.manufacturing-feature h2,
.contact-layout h2 { color: var(--green-dark); margin-bottom: 1rem; }
.product-overview__copy p,
.product-overview__copy li,
.manufacturing-feature p,
.contact-layout p,
.contact-layout li { color: var(--text-secondary); line-height: 1.75; }
.manufacturing-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.product-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-gallery img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}
.resource-card {
  padding: 1.5rem;
  border-left: 3px solid var(--green-primary);
  background: var(--gray-50);
}
.resource-card h3 { margin: 0.5rem 0; color: var(--green-dark); }
.resource-card p { color: var(--text-secondary); line-height: 1.65; }
.resource-card__type {
  color: var(--green-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.contact-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.75rem);
}
.section-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--green-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.contact-aside {
  position: sticky;
  top: 7.5rem;
}
.contact-aside h2,
.contact-form-header h2,
.contact-process-section h2 {
  margin: 0;
  color: var(--green-dark);
}
.contact-aside__lead {
  max-width: 580px;
  margin: 1rem 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.contact-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.contact-path {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.contact-path:hover,
.contact-path:focus-visible,
.contact-path.is-selected {
  border-color: var(--green-primary);
  background: var(--gray-50);
  box-shadow: 0 8px 24px rgba(12, 67, 48, 0.09);
  transform: translateY(-2px);
}
.contact-path.is-selected { box-shadow: inset 0 0 0 1px var(--green-primary); }
.contact-path__number {
  display: block;
  margin-bottom: 1rem;
  color: var(--green-accent);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 700;
}
.contact-path strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gray-800);
  font-family: var(--font-secondary);
  font-size: 1.05rem;
}
.contact-path > span:last-child {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.contact-direct {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--gray-200);
}
.contact-direct > span {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.contact-direct > a {
  min-width: 0;
  color: var(--green-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-copy {
  align-self: start;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}
.contact-copy:hover { color: var(--green-primary); }
.contact-direct p {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.contact-form-panel {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  box-shadow: 0 18px 50px rgba(12, 67, 48, 0.08);
}
.contact-form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--gray-200);
}
.contact-form-header p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.contact-form-panel .gw-form { max-width: none; margin: 0; }
.gw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.gw-field-help {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}
.contact-form-panel textarea { min-height: 150px; resize: vertical; }
.contact-form-panel .consent-label {
  flex: 1;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.contact-form-panel .gw-field--inline {
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.contact-form-panel .consent-checkbox,
.gw-form .consent-checkbox {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--green-primary);
  cursor: pointer;
}
.contact-form-panel .consent-label a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-submit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.contact-submit-row .btn-cta { white-space: nowrap; }
.contact-submit-row > span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.contact-form-panel .form-note {
  margin: 1rem 0 0;
  text-align: left;
  line-height: 1.5;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-form-panel .form-note.is-success { color: #176a48; font-weight: 700; }
.contact-form-panel .form-note.is-error { color: #a0322a; font-weight: 700; }
.contact-submit-row .btn-cta:disabled { opacity: 0.66; cursor: wait; }
.contact-process-section { background: var(--gray-50); }
.contact-process-section .section-heading-row { margin-bottom: 2rem; }
.contact-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--gray-300);
}
.contact-process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.75rem 2rem 0 0;
}
.contact-process__step + .contact-process__step {
  padding-left: 2rem;
  border-left: 1px solid var(--gray-200);
}
.contact-process__step > span {
  color: var(--green-accent);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 700;
}
.contact-process__step h3 { margin: 0 0 0.5rem; color: var(--gray-800); font-size: 1.1rem; }
.contact-process__step p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }

@media (max-width: 768px) {
  .product-family-grid,
  .resource-card-grid,
  .product-overview,
  .manufacturing-feature,
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .contact-process { grid-template-columns: 1fr; }
  .contact-process__step { padding: 1.5rem 0; }
  .contact-process__step + .contact-process__step { padding-left: 0; border-top: 1px solid var(--gray-200); border-left: 0; }
  .product-family-card { grid-template-columns: 120px 1fr; min-height: 180px; }
  .product-family-media img { height: 140px; }
  .product-overview__media { min-height: 280px; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery--two { grid-template-columns: 1fr 1fr; }
  .product-gallery img { height: 220px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .section-heading-row { align-items: center; }
}

@media (max-width: 520px) {
  .product-family-card { grid-template-columns: 1fr; }
  .product-family-copy { padding: 1.15rem; }
  .product-gallery--two,
  .gw-form-grid { grid-template-columns: 1fr; }
  .contact-paths { grid-template-columns: 1fr 1fr; }
  .contact-path { min-height: 138px; padding: 0.9rem; }
  .contact-submit-row { grid-template-columns: 1fr; }
  .contact-submit-row .btn-cta { width: 100%; text-align: center; }
  .section-heading-row { gap: 1rem; }
  .section-heading-link { font-size: 0.82rem; }
  .zg-flip-inner { min-height: 360px; }
  .zg-reveal-panel { padding: 1.35rem; transform: translateY(calc(100% - 146px)); }
  .zg-flip-card:hover .zg-reveal-panel,
  .zg-flip-card:focus-visible .zg-reveal-panel,
  .zg-flip-card.is-flipped .zg-reveal-panel { transform: translateY(0); }
  .zg-flip-title { font-size: 1.12rem; }
  .zg-flip-summary { font-size: 0.85rem; line-height: 1.6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .zg-reveal-panel,
  .zg-reveal-details { transition-duration: 0.01ms; }
  .product-family-card,
  .wwd-card,
  .social-link { transition-duration: 0.01ms; }
}
