/* Global Styles */
:root {
    --danger-red: #d32f2f;
    /* Fixed missing variable for emergency buttons */
    --dark-grey: #1f2937;
    /* Fixed missing var for contrast */
    --primary-gold: #D4AF37;
    --primary-gold-bright: #D4AF37;
    /* Synced with primary gold */
    --primary-gold-hover: #B8860B;
    --secondary-gold: #C5A028;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --border-color: #E5E5E5;
    --spacing-unit: 8px;
    --header-height: 100px;
    /* Adjust as needed */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bai Jamjuree', 'Sarabun', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Menu - Global Styles */
.main-nav {
    background-color: #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-menu>li>a:hover {
    background-color: var(--primary-gold);
    color: #fff;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    border-top: 2px solid var(--primary-gold);
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    color: #ddd;
    border-bottom: 1px solid #444;
}

.dropdown-content li a:hover {
    background-color: #444;
    color: var(--primary-gold);
}

@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile Navigation */
.nav-mobile-header {
    display: none;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
}

.nav-brand-mobile {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-gold);
}

.nav-toggle {
    background: none;
    border: 1px solid #555;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 12px 16px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10002;
        /* Above almost everything */
        height: auto !important;
        background-color: #222;
        min-height: 50px;
    }

    body {
        /* Standard mobile offset */
        padding-top: 50px;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-mobile-header {
        display: flex !important;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
    }

    .nav-toggle {
        touch-action: manipulation;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #222;
        z-index: 10001;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu>li {
        width: 100%;
        text-align: left;
        border-top: 1px solid #444;
    }

    .dropdown-content {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        background-color: #1a1a1a;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .nav-menu>li>a {
        padding: 15px 20px;
    }

    .dropdown-content li a {
        padding-left: 40px;
    }

    /* เพิ่มระยะห่างให้โลโก้ไม่ติดเมนูบนมือถือ (แก้ปัญหามองไม่เห็นช่องว่าง) */
    /* Logo spacing removed from here and moved to end of file for priority */
}

/* Header */
/* Header & Contact Bar */
header {
    background-color: var(--white);
    /* padding-top: 40px;  <-- Removed padding, matching original look */
    /* padding-bottom: 20px; */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header-top {
    /* Main wrapper for the top section */
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    width: 100%;
}



/* Original Contact Bar Layout */
.contact-bar-container {
    width: 100%;
    max-width: 1200px;
    /* Enforcing the Standardized Width */
    margin: 0 auto;
    padding: 10px 20px;
    /* Reduced vertical padding */
    position: relative;
}



/* ... */
/* Card Buttons Alignment */
.card .btn-primary,
.card .btn-gold,
.product-card .btn-primary {
    margin-top: auto !important;
}

.card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-actions {
    /* ... No changes needed here, just fixing previous context ... */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 10;
}

/* Fix for giant images in flex containers & Standardize LINE button size */
.contact-actions img {
    max-width: none !important;
    width: auto !important;
    height: 44px !important;
    /* Force height to match other buttons */
    display: block;
    object-fit: contain;
    /* Ensure it doesn't stretch weirdly */
}

/* ... */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.15rem;
    /* Increased font size */
}

.btn-primary:hover {
    background-color: var(--secondary-gold);
    color: var(--white);
}

/* Base Contact Bar Button Style */
.btn-contact {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-contact:hover {
    background-color: #fff;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Header */
/* Mobile Responsiveness for Header */
@media (min-width: 768px) {

    /* Ensure content stays centered and stacked on larger screens too, matching the reference */
    .contact-inner {
        flex-direction: column;
        justify-content: center;
    }

    .contact-actions {
        justify-content: center;
    }
}

/* Hero Section */
.hero,
.hero-content {
    color: white !important;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
    color: white !important;
}

.hero {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    width: 100%;
}

.hero h1 {
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Added text shadow from Services page */
}

.hero p,
.hero .tagline {
    font-size: 1.2rem;
    color: #eee !important;
    /* Force readable text on dark bg */
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.15rem;
    /* Increased font size */
}

.btn-primary:hover {
    background-color: var(--secondary-gold);
    color: var(--white);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 15px auto 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* Explicitly ensure stretching */
}

.card,
.product-card {
    /* Added .product-card */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Ensure content formatting */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card .btn-primary,
.card .btn {
    margin-top: auto !important;
}

.card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 30px 0 15px;
    /* Compact padding */
    margin-top: auto;
    font-size: 0.95rem;
    /* Below-fold optimization */
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    /* Reduced gap */
}

.footer-info h3 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.address-block p {
    margin: 0;
    line-height: 1.4;
}

.address-block .th {
    font-size: 1rem;
    margin-bottom: 4px;
}

.address-block .en {
    font-size: 0.8rem;
    color: #bbb;
    margin-bottom: 8px;
}

.footer-info .tel {
    margin-top: 5px;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-info .tel a {
    color: var(--primary-gold);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.social-icon {
    color: var(--white);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-gold);
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #444;
    padding-top: 15px;
    width: 100%;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-bar {
        justify-content: center;
        gap: 15px;
    }
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: #dc3545;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
    border-color: var(--primary-gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mobile Responsiveness for Form */
@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Header Alignment - Centered Variant */
.header-centered {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 25px !important;
}

.header-centered .contact-bar {
    width: 100%;
    justify-content: center;
}

/* Button Outline Style (for Header) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    height: 40px;
    /* Match Line button height */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-outline i {
    margin-right: 8px;
}

/* 🛡️ Defensive Ribbon Removal */
img[src*="black_ribbon"],
.black-ribbon,
.mourning-ribbon,
*[class*="ribbon"],
.stick-top.stick-left,
.stick-top.stick-right {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Standardized Hero & Emergency Buttons (Global) */
.hero .btn,
.hero-content .btn,
.emergency-box .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    margin: 5px;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    box-sizing: border-box;
    font-family: 'Bai Jamjuree', sans-serif;
}

/* Gold Button Style */
.hero .btn-gold,
.hero-content .btn-gold,
.hero-content .btn-primary {
    background-color: var(--primary-gold);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    border: 2px solid transparent;
    /* Invisible border to match outline height */
}

.hero .btn-gold:hover,
.hero-content .btn-gold:hover,
.hero-content .btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* Outline Button Style */
.hero .btn-outline,
.hero-content .btn-outline {
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
}

.hero .btn-outline:hover,
.hero-content .btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* --- FIXES FOR LAYOUT --- */

/* 1. Header Centering Fix */
.header-centered {
    align-items: center !important;
    /* Critical for centering in column mode */
    text-align: center;
}

/* 2. Map Section Grid Layout */
.grid-2-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.map-container {
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    /* Flexbox for the placeholder text centering */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Standardize Product Card Buttons */
.btn-catalog,
.btn-order,
.product-card .btn-catalog,
.product-card .btn-order {
    display: block;
    /* Force full width block */
    background-color: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 12px 20px;
    /* Slightly taller for better clickability */
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    width: 100%;
    /* Fill the entire available width */
    min-width: unset;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    /* Force Standard Font Size (overriding 0.9em) */
    line-height: 1.5;
    margin-top: auto;
    /* Push button to bottom */
    box-sizing: border-box;
}

.product-info {
    padding: 20px;
    flex: 1;
    /* Fill remaining space in card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Ensure content distribution */
}

.btn-catalog:hover,
.btn-order:hover,
.product-card .btn-catalog:hover,
.product-card .btn-order:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .grid-2-map {
        grid-template-columns: 1fr;
        /* Stack vertically on tablet/mobile */
        gap: 30px;
    }

    .map-container {
        height: 300px;
        /* Slightly shorter on mobile */
    }
}

/* --- FONT FIX --- */
/* Force Bai Jamjuree on all elements to prevent inheritance issues */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
select,
textarea,
label,
li,
.btn-primary,
.btn-outline {
    font-family: 'Bai Jamjuree', 'Sarabun', sans-serif;
}

/* 🛡️ Global PDPA & Sticky CTA Styles */
.sticky-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    background: #1f2937;
    color: white;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    /* iOS safe-area support */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    transform: translateZ(0);
    /* GPU layer - prevents CLS */
}

.sticky-cta-text {
    flex: 1;
}

.sticky-cta-text p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.sticky-cta-text strong {
    font-size: 0.875rem;
    display: block;
    color: #fbbf24;
}

.sticky-cta-btn {
    background: #f59e0b;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.sticky-cta-btn:hover {
    background: #fbbf24;
    transform: scale(1.05);
}

#pdpa-consent-banner {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 10001;
    display: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#pdpa-consent-banner.show {
    display: block;
    animation: slideInUp 0.6s both;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.pdpa-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #111;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdpa-text {
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pdpa-text a {
    color: #b8860b;
    text-decoration: underline;
}

.pdpa-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pdpa-btn {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    background: #b8860b;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    border: none;
    text-align: center;
}

.pdpa-btn-accept {
    background: #b8860b;
    color: #fff;
}

.pdpa-btn-reject {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pdpa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#pdpa-revisit-btn {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.6;
}

#pdpa-revisit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Modern Footer Styles */
/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 50px 0 100px;
    /* Space for Sticky CTA on Desktop */
    font-size: 0.95em;
    margin-top: 50px;
}

.footer-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    text-align: center;
    align-items: center;
    /* Changed from start to center */
}

.footer-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #FFD700;
}

.footer-logo {
    color: #FFD700;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}

.footer-tagline {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Added utility class for logo centering */
.footer-contact-title {
    color: #FFD700;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-info {
    color: #ccc;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background: #FFD700;
    color: #000;
}

.footer-divider {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 0;
    border: none;
    border-top: 1px solid #333;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.8em;
}

.footer-bottom span {
    color: #FFD700;
}

@media (max-width: 768px) {
    .sticky-cta {
        flex-direction: column;
        text-align: center;
    }

    .sticky-cta-btn {
        width: 100%;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding-bottom: 150px;
        /* Enhanced space for stacked Sticky CTA on Mobile */
    }
}

@media (max-width: 480px) {
    #pdpa-consent-banner {
        width: calc(100% - 40px);
        bottom: 80px;
    }
}

/* 🔍 Safe Recommendation Quiz Styles */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.quiz-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.quiz-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.quiz-close:hover {
    color: var(--primary-gold);
}

.quiz-header {
    text-align: center;
    margin-bottom: 25px;
}

.quiz-header h2 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quiz-progress-container {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--primary-gold);
    width: 20%;
    transition: width 0.3s ease;
}

.quiz-step-content {
    min-height: 250px;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quiz-option {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.quiz-option-icon {
    font-size: 1.5rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-quiz-nav {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-quiz-nav.primary {
    background: var(--primary-gold);
    color: white;
    border: none;
}

.btn-quiz-nav.secondary {
    background: white;
    color: #555;
    border: 1px solid #ccc;
}

.btn-quiz-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Results Content */
.quiz-results-container {
    text-align: center;
}

.quiz-recommendation-card {
    background: #fdfdfd;
    border: 2px solid var(--primary-gold);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.quiz-recommendation-card h3 {
    color: var(--primary-gold);
}

.quiz-lead-form {
    margin-top: 25px;
    text-align: left;
}

.quiz-lead-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.quiz-success-msg {
    color: #28a745;
    font-weight: bold;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .quiz-modal-content {
        padding: 20px;
    }

    .quiz-question {
        font-size: 1.1rem;
    }
}

/* 💚 Stylized Add Line Button for Quiz */
.btn-line-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #06C755;
    color: white;
    border: none;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(6, 199, 85, 0.2);
}

.btn-line-add:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 199, 85, 0.3);
}

.btn-line-add img {
    height: 44px !important;
    width: auto !important;
}

.btn-line-add span {
    font-family: 'Bai Jamjuree', sans-serif !important;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fix for Highlight Box Contrast inside Articles */
.highlight-box,
footer.highlight-box {
    color: #333 !important;
    /* Force dark text on light background */
}

/* Sticky CTA Placeholder to prevent CLS */
.sticky-cta-placeholder {
    height: 70px;
    /* Match the probable height of the CTA */
    display: none;
    width: 100%;
}

@media (max-width: 768px) {
    .sticky-cta-placeholder {
        display: block;
    }
}

/* Skip Link Styles (Migrated from inline) */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: -1;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    clip: auto;
    overflow: visible;
    border-radius: 4px;
    text-decoration: underline;
    z-index: 10001;
}

/* Video Section Styles (Migrated from inline) */
.video-section {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-facade img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-section:hover .video-facade img {
    opacity: 0.6;
}

.play-button {
    width: 68px;
    height: 48px;
    background: rgba(33, 33, 33, .8);
    border-radius: 12px;
    position: relative;
    transition: background-color .2s;
    z-index: 2;
}

.video-section:hover .play-button {
    background-color: #f00;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

/* Expertise & Trust Bar Styles (Migrated from inline) */
.expertise-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 25px 0;
    border-bottom: 2px solid var(--primary-gold);
}

.trust-bar {
    background-color: #f7f7f7;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* FAQ Section Styles (Restored) */
#faq {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

details {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

details[open] {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    background: #f9f9f9;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: 40px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--primary-gold);
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    color: #555;
    line-height: 1.6;
}

.faq-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Brand Logos (Authorized Dealer) */
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logos a {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-logos a:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Features Section (Chubbsafes) */
.features {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    position: relative;
    z-index: 2;
    /* Ensure it sits above hero */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Products Grid (Chubbsafes) */
.products {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    /* Added border to match .card */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    /* Match .card:hover */
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
    /* Changed from f0f0f0 for cleaner look */
    border-bottom: 1px solid #eee;
    /* Added separator */
    padding: 10px;
    /* Added internal padding */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.btn-catalog {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #ddd;
}

.btn-catalog:hover {
    background: #e0e0e0;
}

/* 📱 MOBILE NAVIGATION & HEADER FIXES (Priority) */
@media (max-width: 768px) {
    body {
        padding-top: 40px !important;
        /* Reduced from 100px as per user request */
    }

    .site-header-top {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    .contact-inner img {
        margin-top: 30px !important;
        /* Force direct space between nav and logo */
    }
}