/* =========================================================
   Asia Pallet — Theme Styles
   Palette: #0D221F (deep green), #C5A86A (gold),
            #3F7D58 (accent green), #F4F3EF (cream bg)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F4F3EF;
    color: #1a2e2a;
    overflow-x: hidden;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Sitewide glass backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(63, 125, 88, 0.28) 0%, transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(197, 168, 106, 0.30) 0%, transparent 40%),
        radial-gradient(circle at 20% 85%, rgba(197, 168, 106, 0.22) 0%, transparent 38%),
        radial-gradient(circle at 92% 80%, rgba(13, 34, 31, 0.20) 0%, transparent 42%);
    filter: blur(60px);
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

p { margin: 0; }

::selection { background: #C5A86A; color: #0D221F; }

/* ---------- Layout helpers ---------- */
.ap-container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.ap-narrow    { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.ap-wide      { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

.ap-grid { display: grid; gap: 2rem; }
.ap-grid-2 { grid-template-columns: repeat(1, 1fr); }
.ap-grid-3 { grid-template-columns: repeat(1, 1fr); }
.ap-grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
    .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .ap-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .ap-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .ap-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section-eyebrow {
    display: inline-block;
    width: 3rem;
    height: 2px;
    background: #C5A86A;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #0D221F;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-heading .accent-gold { color: #C5A86A; font-style: italic; font-weight: 400; }
.section-heading .accent-green { color: #3F7D58; font-style: italic; font-weight: 400; }

/* Glass panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
}

.glass-dark {
    background: rgba(13, 34, 31, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-cta {
    background: rgba(13, 34, 31, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Header (floating pill nav) ---------- */
.ap-header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: calc(100% - 2rem);
    max-width: 78rem;
    transition: top 0.35s ease, box-shadow 0.35s ease;
}
.ap-header-inner {
    max-width: none;
    margin: 0;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 8px 24px rgba(13, 34, 31, 0.06);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.ap-header.scrolled { top: 0.75rem; }
.ap-header.scrolled .ap-header-inner {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 16px 40px rgba(13, 34, 31, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.ap-logo img { height: 40px; width: auto; transition: transform 0.2s ease; }
.ap-logo:hover img { transform: scale(1.05); }

.ap-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .ap-nav { display: flex; } }
.ap-nav a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: #0D221F;
    transition: color 0.3s ease;
}
.ap-nav a:hover, .ap-nav a.is-active { color: #C5A86A; }

/* When the transparent header sits over a dark hero, invert nav colours */
.has-dark-hero .ap-header:not(.scrolled) .ap-header-inner {
    background: rgba(13, 34, 31, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.has-dark-hero .ap-header:not(.scrolled) .ap-nav a { color: #F4F3EF; }
.has-dark-hero .ap-header:not(.scrolled) .ap-nav a:hover,
.has-dark-hero .ap-header:not(.scrolled) .ap-nav a.is-active { color: #C5A86A; }
.has-dark-hero .ap-header:not(.scrolled) .ap-menu-toggle { color: #F4F3EF; }
.has-dark-hero .ap-header:not(.scrolled) .ap-header-cta {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.has-dark-hero .ap-header:not(.scrolled) .ap-header-cta:hover {
    background: #C5A86A; border-color: #C5A86A; color: #0D221F;
}

.ap-header-cta {
    display: none;
    padding: 0.7rem 1.4rem;
    background: #0D221F;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    border: 1px solid #0D221F;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
@media (min-width: 1024px) { .ap-header-cta { display: inline-block; } }
.ap-header-cta:hover { background: #C5A86A; border-color: #C5A86A; }

.ap-menu-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 0.5rem;
    margin-right: 0.5rem;
    color: #0D221F;
}
@media (min-width: 1024px) { .ap-menu-toggle { display: none; } }
.ap-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.ap-mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    max-width: 24rem;
    background: #F4F3EF;
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    padding: 8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ap-mobile-menu.open { transform: translateX(0); }
.ap-mobile-menu a {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: #0D221F;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(17,30,28,0.10);
    transition: color 0.2s ease;
}
.ap-mobile-menu a:hover, .ap-mobile-menu a.is-active { color: #C5A86A; }
.ap-mobile-menu .ap-header-cta { display: inline-block; text-align: center; margin-top: 1rem; }

.ap-mobile-overlay {
    position: fixed; inset: 0;
    background: #0D221F;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 30;
}
.ap-mobile-overlay.open { opacity: 0.5; pointer-events: auto; }

/* ---------- Hero (Home) ---------- */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0D221F;
    overflow: hidden;
    padding: 6rem 0 5rem;
}
.hero-home::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 0;
    opacity: 0.2;
    background-image: radial-gradient(#C5A86A 1px, transparent 1px);
    background-size: 24px 24px;
}
.hero-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    animation: hero-blob 8s ease-in-out infinite;
    pointer-events: none;
}
.hero-blob-1 { top: 5rem; right: 5rem; width: 24rem; height: 24rem; background: rgba(197,168,106,0.10); }
.hero-blob-2 { bottom: 5rem; left: 5rem; width: 20rem; height: 20rem; background: rgba(63,125,88,0.10); animation-duration: 10s; animation-delay: -3s; }
@keyframes hero-blob {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50%      { transform: scale(1.2); opacity: 0.5; }
}

.hero-home-inner {
    position: relative; z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}
@media (min-width: 1024px) {
    .hero-home-inner { grid-template-columns: 7fr 5fr; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    margin-bottom: 2rem;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: #C5A86A;
    border-radius: 9999px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.hero-badge-text {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #D1D7D6;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.hero-title .line { overflow: hidden; }
.hero-title .italic-gold { font-style: italic; font-weight: 400; color: #C5A86A; }
.hero-copy {
    font-size: 0.95rem;
    color: #A8B4B2;
    line-height: 1.7;
    max-width: 36rem;
    margin-bottom: 2.5rem;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-gold {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem;
    background: #C5A86A;
    color: #0D221F;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid #C5A86A;
    transition: all 0.3s ease;
}
.btn-gold:hover { background: transparent; color: #fff; }
.btn-gold svg { transition: transform 0.3s ease; }
.btn-gold:hover svg { transform: translateX(4px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: background 0.3s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

.hero-media {
    position: relative;
}
.hero-media .glass-panel { padding: 1rem; border-radius: 1rem; box-shadow: 0 32px 64px rgba(0,0,0,0.15); }
.hero-media-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.75rem;
}
.hero-media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-media-img:hover img { transform: scale(1.05); }

/* ---------- Page Hero (About/Contact/Products) ---------- */
.page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero.dark { background: #0D221F; color: #fff; }
.page-hero.dark::before {
    content: "";
    position: absolute; inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(#C5A86A 1px, transparent 1px);
    background-size: 24px 24px;
}
.page-hero.light { background: #F4F3EF; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.page-hero.dark h1 { color: #fff; }
.page-hero.light h1 { color: #0D221F; }
.page-hero p {
    max-width: 48rem;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
}
.page-hero.dark p { color: #D1D7D6; }
.page-hero.light p { color: #5A6563; }
.page-hero.light h1 .accent-green { color: #3F7D58; font-style: italic; font-weight: 400; }
.page-hero.dark h1 .accent-gold { color: #C5A86A; font-style: italic; font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; border-top: 1px solid rgba(17,30,28,0.10); }
.section.cream { background: #F4F3EF; }
.section.tint  { background: rgba(255,255,255,0.40); }
.section.cta   { padding: 6rem 0; }

/* Feature cards */
.feature-card { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; height: 100%; border-radius: 0.75rem; }
.feature-num { font-family: 'JetBrains Mono', monospace; font-size: 1.875rem; font-weight: 700; color: #C5A86A; margin-bottom: 1rem; }
.feature-card svg.feat-icon { width: 32px; height: 32px; color: #0D221F; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: #0D221F; margin-bottom: 0.75rem; }
.feature-card p  { font-size: 12px; color: #5A6563; line-height: 1.6; }
.feature-card .learn-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 2rem;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em; color: #0D221F;
}
.feature-card .learn-link svg { transition: transform 0.3s ease; }
.feature-card .learn-link:hover svg { transform: translateX(4px); }

/* Category card (used on home + products) */
.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #0D221F;
    border: 1px solid rgba(17, 30, 28, 0.08);
    min-height: 400px;
}
.category-card-media { position: absolute; inset: 0; z-index: 0; }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover .category-card-media img { transform: scale(1.08); }
.category-card-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,34,31,0.15) 0%, rgba(13,34,31,0.9) 100%); }
.category-card-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; min-height: 400px; }
.category-card-count { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #C5A86A; margin-bottom: 0.75rem; }
.category-card-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.category-card-desc  { font-size: 0.875rem; color: #D1D7D6; margin-bottom: 1rem; }
.category-card-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #fff;
    transition: gap 0.25s ease, color 0.25s ease;
}
.category-card:hover .category-card-cta { gap: 0.85rem; }
.category-card-cta svg { transition: transform 0.3s ease; }
.category-card:hover .category-card-cta svg { transform: translateX(8px); }

/* Product card */
.product-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17,30,28,0.08);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13,34,31,0.12); }
.product-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0D221F; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #3F7D58;
    background: rgba(63,125,88,0.10);
    border: 1px solid rgba(63,125,88,0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}
.product-card-title { font-size: 1.375rem; font-weight: 700; color: #0D221F; margin-bottom: 0.75rem; line-height: 1.3; }
.product-card-excerpt { font-size: 0.85rem; line-height: 1.6; color: #5A6563; margin-bottom: 1rem; flex: 1 1 auto; }
.product-spec-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #0D221F; margin: 0.5rem 0; }
.product-spec-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.product-spec-list li { font-size: 12px; color: #5A6563; display: flex; gap: 0.5rem; padding: 2px 0; }
.product-spec-list li::before { content: "•"; color: #C5A86A; }
.product-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.btn-solid {
    display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
    width: 100%;
    font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    background: #0D221F;
    color: #fff;
    border: 1px solid #0D221F;
    transition: all 0.25s ease;
}
.btn-solid:hover { background: #C5A86A; border-color: #C5A86A; color: #0D221F; }
.btn-solid svg { transition: transform 0.3s ease; }
.btn-solid:hover svg { transform: translateX(4px); }

/* Breadcrumb */
.breadcrumb-wrap { background: #F4F3EF; border-bottom: 1px solid rgba(17,30,28,0.10); padding: 8rem 0 1.5rem; }
.breadcrumb-nav { font-size: 12px; letter-spacing: 0.05em; color: #5A6563; padding: 1.5rem 0 0; }
.breadcrumb-nav a { color: #5A6563; transition: color 0.2s ease; }
.breadcrumb-nav a:hover { color: #3F7D58; }
.breadcrumb-sep { margin: 0 0.5rem; color: #A8B4B2; }
.breadcrumb-current { color: #0D221F; font-weight: 600; }

/* Product toolbar */
.product-toolbar-section { padding: 1.75rem 0 2.5rem; }
.product-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.50);
    border-radius: 1rem;
}
.product-search-wrap { position: relative; flex: 1 1 320px; max-width: 420px; display: flex; gap: 0.5rem; }
.product-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-size: 0.85rem;
    color: #0D221F;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(17,30,28,0.15);
    border-radius: 9999px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-search-input:focus { border-color: #3F7D58; box-shadow: 0 0 0 3px rgba(63,125,88,0.15); }
.product-search-input::placeholder { color: #9AA3A1; }
.product-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #5A6563; pointer-events: none; }
.product-search-btn {
    padding: 0.65rem 1.25rem;
    font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    background: #0D221F; color: #fff;
    border: 1px solid #0D221F;
    border-radius: 9999px;
    transition: background 0.25s ease;
}
.product-search-btn:hover { background: #C5A86A; border-color: #C5A86A; color: #0D221F; }

.product-filter-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: #0D221F;
    border: 1px solid rgba(17,30,28,0.2);
    border-radius: 9999px;
    transition: all 0.25s ease;
}
.product-filter-btn:hover { border-color: #3F7D58; color: #3F7D58; }

.product-count-line {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 3rem;
}
.product-count-line h2 { font-size: 2rem; font-weight: 700; color: #0D221F; }
.product-count-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #5A6563;
}
.no-products { text-align: center; padding: 5rem 0; color: #5A6563; font-size: 14px; }

/* Marquee */
.marquee-wrap { overflow: hidden; background: #F4F3EF; border-top: 1px solid rgba(17,30,28,0.10); border-bottom: 1px solid rgba(17,30,28,0.10); padding: 3rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { display: inline-block; margin: 0 2rem; font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(2.5rem, 6vw, 5rem); color: rgba(90,101,99,0.30); white-space: nowrap; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 1.5rem; border-radius: 0.75rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(13,34,31,0.08); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #C5A86A; margin-bottom: 0.5rem; line-height: 1; }
.stat-label { font-size: 1rem; font-weight: 700; color: #0D221F; margin-bottom: 0.25rem; }
.stat-sub   { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: #5A6563; }

/* CTA */
.cta-inner { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.cta-inner p  { color: #D1D7D6; font-size: 0.9rem; line-height: 1.7; margin: 1.5rem auto 2.5rem; max-width: 32rem; }

/* Story (About) */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .story-grid { grid-template-columns: 5fr 7fr; } }
.story-copy p { font-size: 0.9rem; color: #5A6563; line-height: 1.7; margin-bottom: 1rem; }
.story-media { border-radius: 1rem; padding: 1rem; }
.story-media img { border-radius: 0.75rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform 0.6s ease; }
.story-media:hover img { transform: scale(1.02); }

@media (min-width: 1024px) {
    .capability-row-reverse .story-copy { order: 2; }
    .capability-row-reverse .story-media { order: 1; }
}

/* Value cards */
.value-card { padding: 2rem; border-radius: 0.75rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13,34,31,0.12); }
.value-card svg.val-icon { width: 40px; height: 40px; color: #C5A86A; margin: 0 auto 1rem; }
.value-card h3 { font-size: 1.25rem; font-weight: 700; color: #0D221F; margin-bottom: 0.75rem; }
.value-card p  { font-size: 12px; color: #5A6563; line-height: 1.6; }

/* Contact info cards */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 2rem; border-radius: 0.75rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13,34,31,0.12); }
.contact-card svg.con-icon { width: 40px; height: 40px; color: #C5A86A; margin: 0 auto 1rem; }
.contact-card h3 { font-size: 1.25rem; font-weight: 700; color: #0D221F; margin-bottom: 0.75rem; }
.contact-card p  { font-size: 0.875rem; color: #5A6563; }
.contact-card p:first-of-type { color: #0D221F; font-weight: 600; }

/* Contact form */
.contact-form { padding: 3rem; border-radius: 1rem; }
@media (max-width: 640px) { .contact-form { padding: 2rem; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field label {
    display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #0D221F; margin-bottom: 0.5rem;
}
.form-field input, .form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(17,30,28,0.10);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0D221F;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus {
    border-color: #C5A86A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197,168,106,0.15);
}
.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: #0D221F;
    color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid #0D221F;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.3s ease;
}
.form-submit:hover { background: #C5A86A; border-color: #C5A86A; color: #0D221F; }
.form-notice { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.875rem; }
.form-notice.success { background: rgba(63,125,88,0.10); border: 1px solid rgba(63,125,88,0.3); color: #1a3d2a; }
.form-notice.error { background: rgba(180,60,60,0.10); border: 1px solid rgba(180,60,60,0.3); color: #6a1f1f; }

/* CF7 style overrides (when plugin is used) */
.wpcf7 label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #0D221F; margin-bottom: 0.5rem; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(17,30,28,0.10);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0D221F;
    font-family: inherit;
    outline: none;
    margin-bottom: 1rem;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #C5A86A; box-shadow: 0 0 0 3px rgba(197,168,106,0.15); }
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: #0D221F;
    color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid #0D221F;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wpcf7 input[type="submit"]:hover { background: #C5A86A; border-color: #C5A86A; color: #0D221F; }

/* ---------- Footer ---------- */
.ap-footer { padding: 5rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.10); }
.ap-footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .ap-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ap-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.ap-footer img { height: 48px; margin-bottom: 1rem; }
.ap-footer p, .ap-footer a { color: #D1D7D6; font-size: 0.875rem; line-height: 1.6; transition: color 0.2s ease; }
.ap-footer a:hover { color: #C5A86A; }
.ap-footer h3 { font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: #C5A86A; margin-bottom: 1rem; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ap-footer li { display: flex; align-items: flex-start; gap: 0.5rem; }
.ap-footer li svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.ap-footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.10); text-align: center; }
.ap-footer-bottom p { font-size: 12px; color: #A8B4B2; }

/* ---------- Scroll reveal (JS-driven) ---------- */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s cubic-bezier(0.21,0.47,0.32,0.98), transform 0.8s cubic-bezier(0.21,0.47,0.32,0.98); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-reveal-delay="1"].is-visible { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"].is-visible { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"].is-visible { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"].is-visible { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"].is-visible { transition-delay: 0.5s; }

/* Hero entrance */
.hero-line { opacity: 0; transform: translateY(20px); animation: heroLineIn 0.8s cubic-bezier(0.21,0.47,0.32,0.98) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.3s; }
.hero-line:nth-child(3) { animation-delay: 0.4s; }
@keyframes heroLineIn { to { opacity: 1; transform: translateY(0); } }

.hero-fade-1 { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.21,0.47,0.32,0.98) 0.8s forwards; }
.hero-fade-2 { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.21,0.47,0.32,0.98) 1.0s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Utility */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hide-lg { display: block; }
.show-lg { display: none; }
@media (min-width: 1024px) {
    .hide-lg { display: none; }
    .show-lg { display: inline-flex; }
}

.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4rem; flex-wrap: wrap; gap: 1rem; }
.section-header-row .btn-solid { width: auto; padding: 1rem 2rem; }

/* ---------- Floating WhatsApp button ---------- */
.ap-whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(13, 34, 31, 0.28), 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: apWhatsappPulse 2.4s ease-in-out infinite;
}
.ap-whatsapp-float svg { width: 1.75rem; height: 1.75rem; }
.ap-whatsapp-float:hover {
    transform: translateY(-3px) scale(1.06);
    background: #1EBE5A;
    box-shadow: 0 12px 30px rgba(13, 34, 31, 0.35), 0 4px 10px rgba(0,0,0,0.2);
    animation-play-state: paused;
}
@keyframes apWhatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(13, 34, 31, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 24px rgba(13, 34, 31, 0.28), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (max-width: 640px) {
    .ap-whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 3.25rem;
        height: 3.25rem;
    }
    .ap-whatsapp-float svg { width: 1.6rem; height: 1.6rem; }
}


/* ---------- Blog templates: single post, archive and table of contents ---------- */
.ap-post-section, .ap-blog-archive { background: #F7F5EF; color: #172B27; padding: 9rem 0 5rem; min-height: 65vh; }
.ap-post-container { width: min(100% - 2.5rem, 1100px); margin-inline: auto; }
.ap-post-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: #78817D; font-size: .78rem; margin-bottom: 2.5rem; }
.ap-post-breadcrumbs a { color: inherit; text-decoration: none; }
.ap-post-breadcrumbs a:hover { color: #99783E; }
.ap-post-header { max-width: 850px; margin: 0 auto 2rem; text-align: center; }
.ap-post-eyebrow { color: #99783E; font: 700 .72rem/1.4 'Source Sans 3', sans-serif; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1rem; }
.ap-post-title, .ap-blog-archive__header h1 { font: 600 clamp(2.25rem, 5vw, 4.4rem)/1.08 'Playfair Display', Georgia, serif; letter-spacing: -.035em; color: #102A25; margin: 0 auto 1.25rem; }
.ap-post-meta { display: flex; justify-content: center; gap: .65rem; color: #69736F; font-size: .85rem; }
.ap-post-featured-image { width: min(100%, 1000px); margin: 2.5rem auto 3.5rem; border-radius: 14px; overflow: hidden; background: #E7E5DC; }
.ap-post-featured-image img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.ap-post-layout { max-width: 760px; margin: 0 auto; }
.ap-post-content { color: #35413D; font: 400 1.06rem/1.85 'Source Sans 3', sans-serif; overflow-wrap: anywhere; }
.ap-post-content > * { margin-block: 0 1.4em; }
.ap-post-content h2, .ap-post-content h3, .ap-post-content h4 { color: #102A25; font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; scroll-margin-top: 110px; }
.ap-post-content h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-top: 2.6em; }
.ap-post-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); margin-top: 2em; }
.ap-post-content p, .ap-post-content ul, .ap-post-content ol { margin-bottom: 1.45em; }
.ap-post-content a { color: #84662F; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ap-post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ap-post-content blockquote { margin: 2rem 0; padding: .5rem 1.5rem; border-left: 3px solid #C5A86A; color: #43534D; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
.ap-post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .94rem; }
.ap-post-content th, .ap-post-content td { border: 1px solid #DCDDD5; padding: .7rem .85rem; text-align: left; }
.ap-post-content th { background: #EAE9E0; color: #102A25; }
.ap-post-toc { background: #fff; border: 1px solid #E3E1D7; border-left: 4px solid #C5A86A; border-radius: 10px; padding: 1.5rem 1.75rem; margin: 2.5rem 0 3rem; box-shadow: 0 10px 30px rgba(13,34,31,.035); }
.ap-post-toc__title { color: #102A25; font-weight: 700; font-size: .95rem; margin: 0 0 .75rem; }
.ap-post-toc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ap-post-toc__item { margin: 0; line-height: 1.45; }
.ap-post-toc__item--h3 { padding-left: 1.1rem; font-size: .94em; }
.ap-post-toc__item a { color: #52605A; text-decoration: none; }
.ap-post-toc__item a:hover, .ap-post-toc__item a:focus { color: #8C6A2D; text-decoration: underline; text-underline-offset: 3px; }
.ap-post-footer { max-width: 900px; margin: 4rem auto 0; }
.ap-post-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: #65706B; font-size: .85rem; margin-bottom: 2rem; }
.ap-post-tags a { display: inline-block; padding: .3rem .65rem; border-radius: 999px; background: #EAE9E0; color: #42524C; text-decoration: none; }
.ap-post-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 14px; background: #102A25; color: #fff; }
.ap-post-cta__eyebrow { color: #D7BE86; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; margin: 0 0 .6rem; }
.ap-post-cta h2 { color: #fff; font: 500 clamp(1.4rem, 3vw, 2rem)/1.2 'Playfair Display', Georgia, serif; margin: 0; }
.ap-post-cta__button { flex-shrink: 0; display: inline-flex; gap: .8rem; align-items: center; padding: .9rem 1.15rem; border-radius: 3px; background: #C5A86A; color: #102A25; font-size: .8rem; font-weight: 700; text-decoration: none; }
.ap-post-pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .85rem; }
.ap-post-pagination a { color: #52605A; text-decoration: none; }
.ap-post-pagination a:hover { color: #99783E; }
.ap-blog-archive__header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.ap-blog-archive__header h1 { margin-bottom: 1rem; }
.ap-blog-archive__header > p:last-child { color: #65706B; font-size: 1.05rem; }
.ap-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ap-blog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E4E1D7; border-radius: 12px; background: rgba(255,255,255,.75); transition: transform .25s ease, box-shadow .25s ease; }
.ap-blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(13,34,31,.09); }
.ap-blog-card__image { display: block; aspect-ratio: 16/10; background: #E5E4DA; overflow: hidden; }
.ap-blog-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ap-blog-card:hover .ap-blog-card__image img { transform: scale(1.035); }
.ap-blog-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #C5A86A; background: #102A25; font: 600 2.5rem 'Playfair Display', Georgia, serif; }
.ap-blog-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.ap-blog-card__meta { color: #7A827D; font-size: .75rem; margin: 0 0 .8rem; }
.ap-blog-card h2 { font: 600 1.4rem/1.25 'Playfair Display', Georgia, serif; margin: 0 0 .75rem; }
.ap-blog-card h2 a { color: #102A25; text-decoration: none; }
.ap-blog-card__body > p:not(.ap-blog-card__meta) { color: #64706A; font-size: .93rem; line-height: 1.65; }
.ap-blog-card__link { margin-top: auto; padding-top: .5rem; color: #84662F; font-weight: 700; font-size: .82rem; text-decoration: none; }
.ap-blog-pagination { margin-top: 3rem; }
.ap-blog-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.ap-blog-pagination a, .ap-blog-pagination span { padding: .55rem .8rem; border: 1px solid #DCDDD5; border-radius: 4px; color: #33443E; text-decoration: none; }
.ap-blog-pagination .current { background: #102A25; color: #fff; border-color: #102A25; }
.ap-blog-empty { text-align: center; padding: 3rem; background: #fff; border-radius: 12px; }
@media (max-width: 900px) { .ap-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ap-post-section, .ap-blog-archive { padding: 7rem 0 3rem; }
  .ap-post-container { width: min(100% - 1.5rem, 1100px); }
  .ap-post-breadcrumbs { margin-bottom: 1.75rem; }
  .ap-post-featured-image { margin: 1.75rem auto 2.5rem; border-radius: 8px; }
  .ap-post-content { font-size: 1rem; line-height: 1.78; }
  .ap-post-toc { padding: 1.1rem 1.2rem; }
  .ap-post-cta { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .ap-post-pagination { flex-direction: column; }
  .ap-blog-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ap-blog-card, .ap-blog-card__image img { transition: none; } }


/* Client-supplied packaging and collection media on the Products page */
.ap-client-services { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.ap-client-section-heading { max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.ap-client-section-heading p { max-width: 42rem; margin: 1rem auto 0; color: #64706A; line-height: 1.8; }
.ap-client-service-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.75rem, 4vw, 4.5rem); padding: clamp(2.25rem, 5vw, 3.75rem) 0; border-top: 1px solid #deded4; }
.ap-client-service-block--reverse .ap-client-service-copy { order: 2; }
.ap-client-service-block--reverse .ap-client-media-grid { order: 1; }
.ap-client-service-copy { min-width: 0; }
.ap-client-service-copy h3, .ap-client-video-wrap h3 { margin: .55rem 0 1rem; color: #102A25; font: 600 clamp(1.75rem, 2.8vw, 2.45rem)/1.16 'Playfair Display', Georgia, serif; letter-spacing: -.02em; }
.ap-client-service-copy p, .ap-client-service-copy li, .ap-client-video-wrap p { color: #64706A; line-height: 1.8; }
.ap-client-service-copy p { margin: 0 0 1rem; }
.ap-client-service-copy ul { padding-left: 1.2rem; margin: 1rem 0 1.5rem; }
.ap-client-service-copy li { padding: .22rem 0; }
.ap-client-kicker { display: inline-block; color: #9B793C; font-size: .7rem; font-weight: 800; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.ap-client-service-cta { display: inline-flex; gap: .65rem; align-items: center; margin-top: .25rem; color: #84662F; font-weight: 750; text-decoration: none; }
.ap-client-service-cta:hover, .ap-client-service-cta:focus-visible { color: #102A25; text-decoration: underline; text-underline-offset: 4px; }
.ap-client-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(145px, 15vw, 190px); gap: .8rem; min-width: 0; }
.ap-client-media { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 12px; background: #e6e4da; box-shadow: 0 8px 24px rgba(16, 42, 37, .07); }
.ap-client-media img { display: block; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.ap-client-media:hover img { transform: scale(1.025); }
.ap-client-media--large { grid-row: span 2; }
.ap-client-media--wide { grid-column: 1 / -1; }
.ap-client-media--wide img { min-height: 0; }
.ap-client-media figcaption { flex: 0 0 auto; padding: .65rem .8rem; color: #33443E; background: #fff; font-size: .78rem; line-height: 1.45; }
.ap-client-video-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; margin: clamp(2rem, 5vw, 3.5rem) 0; padding: clamp(1.25rem, 3.5vw, 2.5rem); border-radius: 16px; background: #102A25; }
.ap-client-video-wrap > div { min-width: 0; }
.ap-client-video-wrap h3 { color: #fff; }
.ap-client-video-wrap p { margin-bottom: 0; color: #d5ddd7; }
.ap-client-video-wrap video { display: block; width: 100%; max-height: 440px; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; background: #071b17; }
@media (max-width: 800px) {
  .ap-client-service-block, .ap-client-video-wrap { grid-template-columns: minmax(0, 1fr); }
  .ap-client-service-block--reverse .ap-client-service-copy, .ap-client-service-block--reverse .ap-client-media-grid { order: initial; }
  .ap-client-media-grid { grid-auto-rows: clamp(145px, 28vw, 210px); }
}
@media (max-width: 480px) {
  .ap-client-services { padding: 2.75rem 0; }
  .ap-client-service-block { gap: 1.5rem; padding: 2rem 0; }
  .ap-client-media-grid { gap: .55rem; grid-auto-rows: 135px; }
  .ap-client-media--large { grid-row: span 2; }
  .ap-client-media figcaption { padding: .5rem .55rem; font-size: .7rem; }
  .ap-client-video-wrap { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ap-client-media img { transition: none; } }


/* v1.1.3 fix: product-page packaging eyebrow should be text, not the decorative gold rule */
.ap-client-section-heading .section-eyebrow {
    display: block;
    width: auto;
    height: auto;
    margin: 0 auto .65rem !important;
    padding: 0;
    background: none;
    color: #9B793C;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ap-client-section-heading .section-heading {
    margin: 0;
    line-height: 1.12;
}
.ap-client-section-heading > p {
    max-width: 42rem;
    margin: 1rem auto 0;
    line-height: 1.8;
}
@media (max-width: 480px) {
    .ap-client-section-heading .section-eyebrow {
        font-size: .62rem;
        letter-spacing: .14em;
    }
}


/* v1.1.5: improve footer contact contrast on the dark green background */
.ap-footer, .ap-footer p, .ap-footer li, .ap-footer li strong, .ap-footer li span, .ap-footer address, .ap-footer address *, .ap-footer a, .ap-footer a:visited {
  color: #E2E8E6;
}
.ap-footer h3 { color: #D4B36B; }
.ap-footer li svg, .ap-footer li .icon { color: #B9C9C4; stroke: currentColor; }
.ap-footer a:hover, .ap-footer a:focus-visible { color: #E0BD70; }
.ap-footer strong { color: #F1F4F2; }
.ap-footer .ap-footer-grid > * { min-width: 0; }
.ap-footer address { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }


/* v1.1.7: four-category product selector and anchor navigation */
#wooden-crate-packaging, #used-pallet-collection { scroll-margin-top: 7rem; }
@media (min-width: 901px) { .ap-grid.ap-grid-2:has(.category-card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.category-card-count { max-width: 100%; }


/* v1.1.8: dedicated category detail pages, matching wooden/plastic pallet page styling */
.ap-category-detail { padding-top: 1rem; }
.ap-category-page-title { margin: .35rem 0 .55rem; color: #102A25; font: 600 clamp(2rem, 4vw, 3.25rem)/1.1 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.ap-category-page-intro { max-width: 42rem; margin: 0; color: #64706A; line-height: 1.75; }
.ap-category-detail .ap-client-service-block:first-child { border-top: 0; padding-top: 1.25rem; }
.ap-category-detail .ap-client-service-copy h2, .ap-category-detail .ap-client-video-wrap h2 { margin: .55rem 0 1rem; color: #102A25; font: 600 clamp(1.75rem, 2.8vw, 2.45rem)/1.16 'Playfair Display', Georgia, serif; letter-spacing: -.02em; }
.ap-category-detail .ap-client-video-wrap h2 { color: #fff; }
@media (max-width: 800px) { .ap-category-page-title { font-size: clamp(1.8rem, 8vw, 2.5rem); } .product-toolbar { align-items: flex-start; flex-direction: column; } }

/* v1.2.2: improve Wooden Crate Packaging video panel contrast and proportions */
.ap-client-video-wrap {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.ap-client-video-wrap .section-header { min-width: 0; text-align: left; }
.ap-client-video-wrap .section-eyebrow {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 .75rem !important;
  padding: 0 !important;
  background: transparent !important;
  color: #d8b56a !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}
.ap-client-video-wrap .section-header h2,
.ap-client-video-wrap .section-header .section-heading {
  margin: 0 0 .9rem !important;
  color: #fff !important;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important;
  line-height: 1.16 !important;
}
.ap-client-video-wrap .section-header p {
  margin: 0 !important;
  color: #e0e7e2 !important;
  line-height: 1.75 !important;
}
.ap-client-video-wrap video {
  width: 100%;
  max-width: 100% !important;
  max-height: 380px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #071b17;
}
@media (max-width: 800px) {
  .ap-client-video-wrap { grid-template-columns: minmax(0, 1fr); }
  .ap-client-video-wrap video { max-height: 360px; }
}
