/* ============================================================
   PREMIUM UI/UX REFINEMENT — Siam Agro Export
   Overrides and enhancements for premium appearance
   ============================================================ */

/* ============================================================
   1. SECTION SPACING — Generous White Space
   ============================================================ */
.company-intro-section,
.why-choose-section,
.featured-products-section,
.testimonials-section,
.contact-cta-section,
.section--gray {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-title::after {
    width: 60px;
    height: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 3rem;
    max-width: 620px;
}

/* ============================================================
   2. TYPOGRAPHY — Elegant Hierarchy
   ============================================================ */
body {
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.35;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    line-height: 1.8;
}

/* ============================================================
   3. BUTTONS — Premium Consistency
   ============================================================ */
.btn {
    padding: 0.85rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.01em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg {
    padding: 1rem 2.75rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.btn-gold-premium {
    border-radius: 6px;
    background: linear-gradient(135deg, #C8963E 0%, #D4A84B 50%, #C8963E 100%);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-gold-premium:hover {
    box-shadow: 0 10px 30px rgba(200,150,62,0.4);
}

.btn-outline {
    border-radius: 6px;
    border-width: 2px;
}

.btn-outline-premium {
    border-radius: 6px;
}

/* ============================================================
   4. COMPANY OVERVIEW
   ============================================================ */
.company-intro-section {
    background: #fff;
}

.company-intro-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

/* ============================================================
   5. PRODUCT CATEGORY CARDS — With Images
   ============================================================ */
.premium-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.premium-category-card {
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.premium-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--green-light);
}

.premium-category-card .card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.premium-category-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.premium-category-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.premium-category-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 992px) {
    .premium-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   6. WHY CHOOSE — 4 Cards Premium
   ============================================================ */
.why-choose-section .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: var(--green-light);
}

.feature-card .feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .why-choose-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-choose-section .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   7. FEATURED PRODUCTS — Cleaner Cards
   ============================================================ */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.featured-product-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.featured-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.featured-product-image img {
    height: 220px;
    object-fit: cover;
}

.featured-product-content {
    padding: 1.75rem;
}

.featured-product-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.featured-product-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   8. TESTIMONIALS — Elegant
   ============================================================ */
.testimonials-section {
    background: #fff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.testimonial-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--gray-50);
    transition: all 0.35s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.testimonial-card cite {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   9. COMPANY STATISTICS — Compact Row
   ============================================================ */
.stats-strip {
    background: linear-gradient(135deg, #0a4f33 0%, #0B5D3B 50%, #0a4f33 100%);
    padding: 3.5rem 0;
}

.stats-strip .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-strip .stat-item {
    color: #fff;
}

.stats-strip .stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-strip .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

@media (max-width: 576px) {
    .stats-strip .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   10. CONTACT PREVIEW — Clean
   ============================================================ */
.contact-preview-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

.contact-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.contact-preview-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-preview-card .cp-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-pale);
    border-radius: 50%;
}

.contact-preview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-preview-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.contact-preview-card a {
    color: var(--green);
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   11. CTA BANNER — Premium
   ============================================================ */
.contact-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a4f33 0%, #0B5D3B 50%, #0a4f33 100%);
}

.contact-cta-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.contact-cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* ============================================================
   12. PREMIUM FOOTER — 4 Columns
   ============================================================ */
.site-footer {
    background: #111827;
    padding: 3.5rem 0 0;
}

.premium-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
}

.premium-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.premium-footer .footer-brand img {
    max-height: 50px;
    margin-bottom: 1.25rem;
}

.premium-footer .footer-brand p {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.premium-footer .footer-social {
    display: flex;
    gap: 0.75rem;
}

.premium-footer .footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #9CA3AF;
    transition: all 0.3s;
}

.premium-footer .footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.premium-footer .footer-social a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.premium-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-footer ul li {
    margin-bottom: 0.75rem;
}

.premium-footer ul li a {
    color: #9CA3AF;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.premium-footer ul li a:hover {
    color: var(--gold-light);
}

.premium-footer .footer-contact-info p {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.premium-footer .footer-contact-info a {
    color: #9CA3AF;
}

.premium-footer .footer-contact-info a:hover {
    color: var(--gold-light);
}

/* Footer bottom bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-bar p {
    color: #6B7280;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #6B7280;
    font-size: 0.85rem;
    transition: color 0.25s;
}

.footer-bottom-links a:hover {
    color: var(--gold-light);
}

/* Newsletter horizontal */
.footer-newsletter {
    margin-top: 1.25rem;
}

.footer-newsletter p {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px 0 0 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.footer-newsletter-form input::placeholder {
    color: #6B7280;
}

.footer-newsletter-form button {
    padding: 0.6rem 1rem;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter-form button:hover {
    background: var(--gold-dark);
}

@media (max-width: 992px) {
    .premium-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .premium-footer {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   13. BLOG — Modern Cards
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, rgba(10,79,51,0.85), rgba(11,93,59,0.9)),
                url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=80') center/cover;
    padding: 6rem 0 4rem;
    color: #fff;
    text-align: center;
}

.blog-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.blog-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    padding: 4rem 0;
}

.blog-featured {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 3rem;
}

.blog-featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-featured .featured-content {
    padding: 2rem;
}

.blog-featured .featured-badge {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.blog-featured h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-featured h2 a {
    color: var(--dark);
}

.blog-featured h2 a:hover {
    color: var(--green);
}

.blog-featured .featured-meta {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-featured p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card .blog-card-body {
    padding: 1.5rem;
}

.blog-card .blog-card-badge {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.blog-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--green);
}

.blog-card .blog-card-meta {
    display: flex;
    gap: 1rem;
    color: #9CA3AF;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}

.blog-card .read-more:hover {
    color: var(--green-dark);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.sidebar-widget h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar-search input:focus {
    border-color: var(--green);
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories li a {
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.sidebar-categories li a:hover {
    color: var(--green);
}

.sidebar-categories li a span {
    color: #9CA3AF;
    font-size: 0.8rem;
}

.sidebar-recent .recent-post {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-recent .recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-recent .recent-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-recent .recent-post h5 {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.sidebar-recent .recent-post h5 a {
    color: var(--dark);
}

.sidebar-recent .recent-post h5 a:hover {
    color: var(--green);
}

.sidebar-recent .recent-post span {
    font-size: 0.75rem;
    color: #9CA3AF;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   14. HERO SLIDER — Refinements
   ============================================================ */
.hero-slider {
    min-height: 600px;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ============================================================
   15. RESPONSIVE — Section Spacing
   ============================================================ */
@media (max-width: 992px) {
    .company-intro-section,
    .why-choose-section,
    .featured-products-section,
    .testimonials-section,
    .contact-cta-section,
    .section--gray {
        padding: 4rem 0;
    }

    .contact-preview-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 576px) {
    .company-intro-section,
    .why-choose-section,
    .featured-products-section,
    .testimonials-section,
    .contact-cta-section,
    .section--gray {
        padding: 3rem 0;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ============================================================
   16. MOBILE UX — COMPREHENSIVE RESPONSIVE FIXES
   ============================================================ */

/* ---- TABLET (max-width: 992px) ---- */
@media (max-width: 992px) {
    .hero-slider { min-height: 450px; }
    .slide-content h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
    .slide-content p { font-size: 1rem; max-width: 90%; }
    .slide-buttons { gap: 0.75rem; }
    .slide-buttons .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

    .company-intro-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .premium-category-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .featured-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .testimonials-slider { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-preview-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .premium-footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---- MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {

    /* === GLOBAL === */
    html { font-size: 15px; }
    body { line-height: 1.75; overflow-x: hidden; }
    .container { padding-left: 1rem; padding-right: 1rem; max-width: 100%; }

    /* === TYPOGRAPHY === */
    h1 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 1rem; }
    h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 0.75rem; }
    h3 { font-size: clamp(1.1rem, 4vw, 1.35rem); margin-bottom: 0.5rem; }
    p { line-height: 1.75; margin-bottom: 1rem; }
    .section-title { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 0.5rem; padding-bottom: 0.75rem; }
    .section-subtitle { font-size: 0.95rem; margin-top: 0.75rem; margin-bottom: 2rem; padding: 0 0.5rem; }

    /* === SECTION SPACING === */
    .company-intro-section,
    .why-choose-section,
    .featured-products-section,
    .testimonials-section,
    .contact-cta-section,
    .contact-preview-section,
    .section--gray { padding: 2.5rem 0; }

    /* === HERO === */
    .hero-slider { min-height: 350px; }
    .slide-content { padding: 0 0.5rem; }
    .slide-content h1 { font-size: clamp(1.4rem, 7vw, 2rem); line-height: 1.25; margin-bottom: 0.75rem; }
    .slide-content p { font-size: 0.95rem; max-width: 100%; margin-bottom: 1.25rem; line-height: 1.5; }
    .slide-buttons { flex-direction: column; gap: 0.6rem; width: 100%; max-width: 300px; }
    .slide-buttons .btn { width: 100%; justify-content: center; padding: 0.75rem 1.25rem; font-size: 0.9rem; }
    .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .slider-dots { bottom: 12px; }
    .slider-dot { width: 10px; height: 10px; }

    /* === MOBILE NAV — ACCORDION DRAWER === */
    /* Kill ALL desktop hover behaviors on mobile */
    .has-dropdown:hover > .dropdown,
    .has-dropdown:hover::before,
    .has-submenu:hover > .submenu { display: none !important; opacity: 0 !important; visibility: hidden !important; }

    /* OPEN states MUST override hover with !important */
    .has-dropdown.open:hover > .dropdown,
    .has-dropdown.open > .dropdown { display: block !important; opacity: 1 !important; visibility: visible !important; }
    .has-submenu.open:hover > .submenu,
    .has-submenu.open > .submenu { display: block !important; opacity: 1 !important; visibility: visible !important; }

    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto;
        width: 85%; max-width: 340px;
        background: #fff; flex-direction: column; justify-content: flex-start;
        padding: 70px 0 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto; overflow-x: hidden;
        z-index: 998;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.active { transform: translateX(0); }
    .main-nav::before {
        content: '\2715'; position: absolute; top: 16px; right: 16px;
        width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
        font-size: 1.25rem; color: var(--dark); background: var(--gray-100);
        border-radius: 50%; cursor: pointer; z-index: 10; line-height: 1;
    }

    .nav-list { flex-direction: column; gap: 0; width: 100%; padding: 0; margin: 0; }
    .nav-list > li { border-bottom: 1px solid #f0f0ec; }
    .nav-list > li:last-child { border-bottom: none; }
    .nav-list a {
        display: block; padding: 14px 24px; font-size: 1.05rem; font-weight: 500;
        color: var(--dark); border-radius: 0; transition: background 0.2s, color 0.2s; white-space: nowrap;
    }
    .nav-list a:hover, .nav-list a.active { background: var(--green-pale); color: var(--green); padding-left: 28px; }

    .has-dropdown > a { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
    .has-dropdown > a::after {
        content: '+'; font-size: 1.4rem; font-weight: 300; line-height: 1;
        float: none; transition: transform 0.3s ease; color: var(--gray-400);
    }
    .has-dropdown.open > a::after { content: '\2212'; color: var(--green); }
    .has-dropdown.open > a { background: var(--green-pale); color: var(--green); }

    .dropdown {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        transform: none !important; box-shadow: none !important;
        display: none; background: #f8f9fa; border-radius: 0; width: 100%;
        min-height: 0; padding: 0; flex-direction: column; pointer-events: auto !important;
        max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    }
    .dropdown.open { display: block !important; max-height: 500px; overflow: visible; }
    .dropdown > li { border-bottom: 1px solid #eee; }
    .dropdown > li:last-child { border-bottom: none; }
    .dropdown > li > a { padding: 12px 24px 12px 36px; font-size: 1rem; font-weight: 500; color: var(--text); }
    .dropdown > li > a:hover { background: #e8f5e9; color: var(--green); padding-left: 40px; }

    .has-submenu > a { display: flex; align-items: center; justify-content: space-between; }
    .has-submenu > a::after {
        content: '+'; font-size: 1.2rem; font-weight: 300; line-height: 1;
        float: none; color: var(--gray-400); transition: transform 0.2s;
    }
    .has-submenu.open > a::after { content: '\2212'; color: var(--green); }
    .has-submenu.open > a { background: #e8f5e9; color: var(--green); }

    .submenu {
        position: static !important; opacity: 1 !important; visibility: visible !important;
        transform: none !important; box-shadow: none !important;
        display: none; background: #f0f0ec; border-radius: 0;
        min-width: 0; min-height: 0; padding: 0;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        pointer-events: auto !important; overflow: hidden !important; width: 100%;
        max-height: 0; transition: max-height 0.3s ease;
    }
    .submenu.open { display: block !important; max-height: 500px; overflow: visible !important; }
    .submenu a {
        padding: 10px 24px 10px 48px !important; font-size: 0.95rem !important;
        font-weight: 400; color: var(--text-light); white-space: normal; border-radius: 0 !important;
    }
    .submenu a:hover { background: #e0e0d8 !important; color: var(--green) !important; padding-left: 52px !important; }

    .header-cta { display: none; }
    .header-cta-mobile {
        display: flex !important; flex-direction: column; gap: 0.75rem;
        margin: 1.5rem 24px 0; padding-top: 1.5rem; border-top: 2px solid var(--gray-100);
    }
    .header-cta-mobile .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.95rem; border-radius: 6px; }

    body.menu-open::before {
        content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5); z-index: 997; opacity: 1; pointer-events: auto;
    }

    .site-header { padding: 10px 0; min-height: auto; }
    .site-header.scrolled { padding: 8px 0; }
    .header-inner { position: relative; }
    .logo { order: 1; flex: 1; }
    .mobile-toggle { order: 2; padding: 8px; }
    .logo-img { height: 42px !important; max-height: 48px !important; }
    .site-header.scrolled .logo-img { height: 38px !important; max-height: 42px !important; }

    /* === FLOATING BUTTONS === */
    .buyer-assistant-toggle, .buyer-assistant-window { display: none !important; }
    .whatsapp-popup { display: none !important; }

    .whatsapp-float { bottom: 80px; right: 16px; width: 50px; height: 50px; z-index: 90; }
    .whatsapp-float .wa-logo { width: 24px; height: 24px; }
    .wa-pulse { width: 50px; height: 50px; }

    .sticky-quote {
        position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
        text-align: center; justify-content: center;
        padding: 12px 16px; font-size: 0.9rem; z-index: 100;
        border-radius: 0; box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    }
    main { padding-bottom: 48px; }

    /* === CONTENT GRIDS === */
    .company-intro-content > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .company-intro-content p { font-size: 0.95rem; margin-bottom: 0.75rem; }

    .premium-category-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .premium-category-card .card-image { height: 120px; }
    .premium-category-card .card-body { padding: 1rem; }
    .premium-category-card h3 { font-size: 0.95rem; }
    .premium-category-card p { font-size: 0.8rem; }

    .why-choose-section .features-grid { grid-template-columns: 1fr !important; gap: 1.25rem; max-width: 100%; }
    .feature-card { padding: 1.5rem; }
    .feature-card h3 { font-size: 1.05rem; }
    .feature-card p { font-size: 0.9rem; }

    .featured-products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .featured-product-card { display: flex; flex-direction: row; overflow: hidden; }
    .featured-product-image { width: 120px; min-width: 120px; flex-shrink: 0; }
    .featured-product-image img { width: 100%; height: 100%; object-fit: cover; }
    .featured-product-content { padding: 1rem; flex: 1; }
    .featured-product-content h3 { font-size: 1rem; margin-bottom: 0.35rem; }
    .featured-product-content p { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .featured-product-content .btn { padding: 0.4rem 1rem; font-size: 0.8rem; }

    .testimonials-slider { grid-template-columns: 1fr; gap: 1.25rem; }
    .testimonial-card { padding: 1.5rem; }
    .testimonial-card blockquote { font-size: 0.95rem; }

    .section--gray > .container > div[style*="grid-template-columns:repeat(3"] {
        display: grid !important; grid-template-columns: 1fr !important; gap: 1.25rem !important;
    }
    .blog-card .blog-card-body { padding: 1.25rem; }
    .blog-card h3 { font-size: 1rem; }
    .blog-card p { font-size: 0.85rem; }
    .blog-card img { height: 160px; }

    .contact-cta-section { padding: 3rem 0; }
    .contact-cta-section h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 0.75rem; }
    .contact-cta-section p { font-size: 1rem; margin-bottom: 1.5rem; padding: 0 0.5rem; }
    .cta-buttons { flex-direction: column; gap: 0.75rem; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; padding: 0.85rem 2rem; font-size: 0.95rem; }

    .contact-preview-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-preview-card { padding: 1.5rem; }

    .stats-strip { padding: 2rem 0; }
    .stats-strip .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stats-strip .stat-number { font-size: 2rem; }
    .stats-strip .stat-label { font-size: 0.8rem; }

    /* === FOOTER === */
    .site-footer { padding: 2.5rem 0 0; }
    .premium-footer { grid-template-columns: 1fr; gap: 2rem; }
    .premium-footer h4 { font-size: 0.9rem; margin-bottom: 1rem; }
    .premium-footer ul li { margin-bottom: 0.6rem; }
    .premium-footer ul li a { font-size: 0.85rem; }
    .footer-brand p { font-size: 0.85rem; }
    .footer-bottom-bar { flex-direction: column; text-align: center; gap: 0.75rem; margin-top: 1.5rem; padding: 1rem 0; }
    .footer-bottom-bar p { font-size: 0.8rem; }
    .footer-bottom-links { gap: 1rem; }
    .footer-bottom-links a { font-size: 0.8rem; }
    .footer-newsletter-form input { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
    .footer-newsletter-form button { padding: 0.5rem 0.75rem; font-size: 0.75rem; }

    /* === BUTTONS === */
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.85rem 2rem; font-size: 0.95rem; }
    .btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

    /* === BLOG PAGE === */
    .blog-hero { padding: 3rem 0 2rem; }
    .blog-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .blog-hero p { font-size: 0.95rem; }
    .blog-layout { grid-template-columns: 1fr; padding: 2rem 0; gap: 2rem; }
    .blog-featured img { height: 200px; }
    .blog-featured .featured-content { padding: 1.25rem; }
    .blog-featured h2 { font-size: 1.25rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .blog-sidebar { position: static; }
    .sidebar-widget { padding: 1.25rem; }

    /* === PAGES === */
    .page-header { padding: 2rem 0 1.5rem; }
    .page-header h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .page-header p { font-size: 0.95rem; }

    /* === OVERFLOW PREVENTION === */
    img { max-width: 100%; height: auto; }
    iframe { max-width: 100%; }
}

/* ---- SMALL MOBILE (max-width: 414px) ---- */
@media (max-width: 414px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .hero-slider { min-height: 300px; }
    .slide-content h1 { font-size: 1.35rem; }
    .slide-content p { font-size: 0.85rem; }
    .premium-category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .premium-category-card .card-image { height: 100px; }
    .premium-category-card .card-body { padding: 0.75rem; }
    .premium-category-card h3 { font-size: 0.85rem; }
    .premium-category-card p { font-size: 0.75rem; }
    .featured-product-card { flex-direction: column; }
    .featured-product-image { width: 100%; min-width: 100%; }
    .featured-product-image img { height: 180px; }
    .section-title { font-size: 1.25rem; }
    .stats-strip .stat-number { font-size: 1.75rem; }
    .whatsapp-float { bottom: 72px; right: 12px; width: 44px; height: 44px; }
    .whatsapp-float .wa-logo { width: 20px; height: 20px; }
    .wa-pulse { width: 44px; height: 44px; }
}

/* ---- EXTRA SMALL (max-width: 375px) ---- */
@media (max-width: 375px) {
    html { font-size: 14px; }
    .hero-slider { min-height: 280px; }
    .slide-content h1 { font-size: 1.2rem; }
    .slide-buttons .btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
    .premium-category-grid { gap: 0.5rem; }
    .premium-category-card .card-body { padding: 0.5rem; }
    .stats-strip .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-social a { width: 32px !important; height: 32px !important; }
    .footer-social a svg { width: 14px !important; height: 14px !important; }
}

/* ---- MINIMUM (max-width: 320px) ---- */
@media (max-width: 320px) {
    .container { padding-left: 0.5rem; padding-right: 0.5rem; }
    .hero-slider { min-height: 260px; }
    .slide-content h1 { font-size: 1.1rem; }
    .slide-content p { font-size: 0.8rem; }
    .nav-list a { padding: 12px 16px; font-size: 0.95rem; }
    .submenu a { padding-left: 36px !important; }
}

/* ============================================================
   17. PREMIUM HEADER REDESIGN
   ============================================================ */

/* --- TOP BAR: Compact 34px --- */
.top-bar {
    padding: 6px 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    box-shadow: none;
    background: linear-gradient(135deg, #0a4f33 0%, #0B5D3B 100%);
}

.top-bar-inner {
    gap: 2rem;
}

.top-bar-item {
    gap: 0.35rem;
    letter-spacing: 0.01em;
}

.top-bar-item svg {
    width: 13px;
    height: 13px;
    stroke: var(--gold-light);
}

.top-bar-item a {
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 1px 3px;
}

.top-bar-item a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* --- MAIN HEADER: 75px compact --- */
.site-header {
    min-height: auto;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
    gap: 1.5rem;
    padding: 12px 0;
}

/* Logo — larger by ~40% */
.logo-img {
    height: 72px;
    max-height: 72px;
    filter: none;
    border-radius: 0;
    transition: height 0.3s ease, max-height 0.3s ease;
}

.site-header.scrolled .logo-img {
    height: 56px;
    max-height: 56px;
}

.logo a {
    font-size: 0;
    gap: 0;
}

.logo a:hover .logo-img {
    transform: none;
}

/* Navigation — centered, clean */
.main-nav {
    flex: 1;
    justify-content: center;
}

.nav-list {
    gap: 0.25rem;
}

.nav-list a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-list a:hover {
    color: var(--green);
    background: transparent;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after {
    width: 60%;
}

.nav-list a.active {
    color: var(--green);
    background: transparent;
    font-weight: 600;
}

.nav-list a.active::after {
    width: 60%;
    background: var(--green);
}

/* Dropdown arrow */
.has-dropdown > a::after {
    content: ' \25BC';
    font-size: 0.5rem;
    margin-left: 3px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* --- REQUEST QUOTE BUTTON --- */
.header-cta .btn-primary {
    height: 46px;
    min-width: 160px;
    padding: 0 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #C8963E 0%, #D4A84B 50%, #C8963E 100%);
    border: none;
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(200,150,62,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,150,62,0.4);
    background: linear-gradient(135deg, #B8862E 0%, #C8963E 50%, #B8862E 100%);
    color: #fff;
}

/* --- STICKY HEADER (scrolled) --- */
.site-header.scrolled {
    padding: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-bottom-color: rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header.scrolled .header-inner {
    padding: 8px 0;
}

.site-header.scrolled .nav-list a {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.site-header.scrolled .header-cta .btn-primary {
    height: 40px;
    min-width: 140px;
    font-size: 0.8rem;
}

/* ============================================================
   18. MOBILE HEADER REDESIGN
   ============================================================ */
@media (max-width: 768px) {

    /* Top bar — ultra compact */
    .top-bar {
        padding: 4px 0;
        font-size: 0.75rem;
    }

    .top-bar-inner {
        gap: 0.75rem;
        justify-content: center;
    }

    .top-bar-item svg {
        width: 11px;
        height: 11px;
    }

    .top-bar-item a {
        font-size: 0.75rem;
    }

    /* Main header — compact */
    .site-header {
        padding: 0;
    }

    .header-inner {
        padding: 10px 0;
        gap: 0.75rem;
    }

    /* Logo — centered */
    .logo {
        order: 1;
        flex: 1;
        justify-content: center;
    }

    .logo-img {
        height: 48px !important;
        max-height: 48px !important;
    }

    .site-header.scrolled .logo-img {
        height: 40px !important;
        max-height: 40px !important;
    }

    /* Hide desktop CTA on mobile */
    .header-cta {
        display: none;
    }

    /* Hamburger — right side */
    .mobile-toggle {
        order: 3;
        padding: 6px;
        margin-left: auto;
    }

    /* Scrolled mobile */
    .site-header.scrolled .header-inner {
        padding: 6px 0;
    }

    /* Nav underline disabled on mobile */
    .nav-list a::after {
        display: none;
    }

    .nav-list a.active::after {
        display: none;
    }
}

@media (max-width: 414px) {
    .top-bar { padding: 3px 0; }
    .top-bar-inner { gap: 0.5rem; }
    .top-bar-item { gap: 0.2rem; }
    .top-bar-item svg { width: 10px; height: 10px; }
    .top-bar-item a { font-size: 0.7rem; }

    .header-inner { padding: 8px 0; }
    .logo-img { height: 40px !important; max-height: 40px !important; }
}
