/* ═══════════════════════════════════════════════════════════
   Thongpin Refined UI v3 — Blue & White Tech
   ═══════════════════════════════════════════════════════════ */

/* ── Global text: dark/black, not gray ── */
body,
p, li, label,
.section-header p,
.credibility-head p,
.cred-card p,
.about-duo-card p,
.about-value p,
.service-card p,
.process-step p,
.why-card p,
.portfolio-info p,
.contact-item p,
.services-intro-text p,
.hero p,
.stat-label,
.trust-label,
.header .nav-link {
    color: var(--lux-espresso) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--lux-amber) !important;
}

.tab-btn:not(.active) {
    color: var(--lux-espresso-mid) !important;
}

/* Hero → hero-banner.css */

/* ── Stats: light blue section ── */
.stats {
    background: var(--lux-brown-light) !important;
    margin-top: clamp(-48px, -4vw, -28px);
    padding: clamp(16px, 2vw, 24px) 0 clamp(48px, 6vw, 72px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #FFFFFF !important;
    border: 1px solid var(--lux-border) !important;
    border-radius: 16px !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
}

.stat-item {
    color: var(--lux-espresso) !important;
    padding: clamp(28px, 3.5vw, 36px) 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 28%;
    height: 44%;
    width: 1px;
    background: var(--lux-border);
}

.stat-item:hover {
    background: rgba(37, 99, 235, 0.06) !important;
}

.stat-num {
    font-size: clamp(2.25rem, 3.8vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--lux-espresso) 0%, var(--lux-antique-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-num::after {
    -webkit-text-fill-color: var(--lux-amber);
    color: var(--lux-amber);
}

.stat-label {
    color: var(--lux-espresso) !important;
    opacity: 1 !important;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Blue band sections ── */
.credibility {
    background: #FFFFFF !important;
}

.trust-strip {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%) !important;
    border: none !important;
}

.trust-strip .trust-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.trust-strip .trust-tags span {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(8px);
}

.trust-strip .trust-tags span:hover {
    background: #FFFFFF !important;
    color: #1E40AF !important;
    border-color: #FFFFFF !important;
}

.about-v2-bg {
    background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%) !important;
}

.services {
    background: #FFFFFF !important;
}

.process {
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%) !important;
}

.tech {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%) !important;
}

.tech .section-header h2,
.tech .section-header p,
.tech .section-tag {
    color: #FFFFFF !important;
}

.tech .section-tag::before,
.tech .section-tag::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6)) !important;
}

.tech .tech-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.tech .tech-badge:hover {
    background: #FFFFFF !important;
    color: #1E40AF !important;
}

.contact {
    background: #FFFFFF !important;
}

.cta {
    background: linear-gradient(135deg, #0B1D3A 0%, #1E40AF 60%, #2563EB 100%) !important;
}

.cta-inner h2,
.cta-inner p {
    color: #FFFFFF !important;
}

.cta .btn-primary {
    background: #FFFFFF !important;
    color: #1E40AF !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2) !important;
}

.cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #FFFFFF !important;
}

/* ── Section typography polish ── */
.section-header h2,
.credibility-head h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-header p,
.credibility-head p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem) !important;
    line-height: 1.7;
    max-width: 620px;
}

.section-tag {
    font-size: 0.7rem !important;
    letter-spacing: 0.18em !important;
    color: var(--lux-antique-gold) !important;
}

.section-tag::before,
.section-tag::after {
    width: 24px !important;
    opacity: 0.7;
}

/* ── Credibility: white section ── */
.credibility {
    padding: clamp(64px, 8vw, 96px) 0 !important;
    background: #FFFFFF !important;
}

.cred-card {
    background: var(--lux-brown-light) !important;
    border: 1px solid var(--lux-border) !important;
    border-radius: 14px !important;
    padding: 28px 24px 32px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cred-card::before {
    height: 2px;
    background: linear-gradient(90deg, var(--lux-antique-gold), var(--lux-amber)) !important;
}

.cred-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}

.cred-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 0 !important;
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    border-radius: 10px !important;
    color: var(--lux-espresso) !important;
    margin-bottom: 18px;
}

.cred-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--lux-espresso);
}

.cred-card h3 {
    font-size: 1rem !important;
    margin-bottom: 10px;
}

.cred-card p {
    font-size: 0.875rem !important;
    line-height: 1.65;
    color: var(--lux-espresso) !important;
}

/* ── Trust strip padding ── */
.trust-strip {
    padding: clamp(40px, 5vw, 56px) 0 !important;
}

.trust-label {
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    font-size: 0.68rem !important;
    text-transform: uppercase;
}

.trust-tags span {
    border-radius: 999px !important;
    padding: 9px 18px !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* ── Cards ── */
.about-duo-card,
.about-value {
    background: #FFFFFF !important;
    border: 1px solid var(--lux-border) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}

.about-values {
    background: var(--lux-brown-mid) !important;
    border: 1px solid var(--lux-border) !important;
}

.about-value {
    background: #FFFFFF !important;
}

.service-card,
.process-step,
.why-card,
.contact-item,
.portfolio-card {
    background: var(--lux-brown-light) !important;
    border: 1px solid var(--lux-border) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

/* white-section cards override below */

.about-duo-card:hover,
.about-value:hover,
.service-card:hover,
.process-step:hover,
.why-card:hover,
.contact-item:hover,
.portfolio-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ── Services: white section, blue cards ── */
.services {
    background: #FFFFFF !important;
}

.services .service-card {
    background: var(--lux-brown-light) !important;
}

.service-tabs {
    background: var(--lux-brown-light) !important;
    border: 1px solid var(--lux-border) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.tab-btn {
    border-radius: 10px !important;
    color: var(--lux-espresso) !important;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--lux-amber-bright), var(--lux-amber)) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
}

.tab-btn.active .pct {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

.tab-btn:not(.active):hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--lux-espresso) !important;
}

.services-intro--compact {
    background: #FFFFFF !important;
    border: 1px solid var(--lux-border) !important;
    border-left: 4px solid var(--lux-amber) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

.services-intro-text h3 {
    color: var(--lux-espresso) !important;
}

.services-intro-text p {
    color: var(--lux-espresso) !important;
}

.services-intro-tags span {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    color: var(--lux-espresso) !important;
    border-radius: 999px !important;
}

.service-icon {
    background: linear-gradient(135deg, var(--lux-amber), var(--lux-amber-bright)) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--lux-espresso-mid), var(--lux-espresso)) !important;
}

.portfolio {
    background: #FFFFFF !important;
}

.portfolio .portfolio-card {
    background: var(--lux-brown-light) !important;
}

.why {
    background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%) !important;
}

.why .why-card {
    background: #FFFFFF !important;
    border: 1px solid var(--lux-border) !important;
}

.process .process-step {
    background: #FFFFFF !important;
}

.contact .contact-item {
    background: var(--lux-brown-light) !important;
}

/* ── Header (scrolled state — transparent handled in hero-banner.css) ── */
.why-card {
    border-left: 3px solid var(--lux-amber) !important;
}

.why-icon {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--lux-espresso) !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

.about-duo-icon {
    background: linear-gradient(135deg, var(--lux-amber), var(--lux-amber-bright)) !important;
    color: #FFFFFF !important;
}

.about-value-icon {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: var(--lux-espresso) !important;
}

/* ── Header nav ── */
.header .nav-link::before {
    background: linear-gradient(90deg, var(--lux-amber-bright), var(--lux-amber)) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--lux-amber) !important;
}

/* ── Buttons global ── */
.btn {
    border-radius: 12px;
}

.btn-primary {
    border-radius: 12px !important;
}

/* ── Contact form ── */
.contact-form {
    background: #FFFFFF !important;
    border-radius: 16px !important;
}

.form-group input,
.form-group textarea {
    border-radius: 10px !important;
}

.contact-item span {
    border-radius: 10px !important;
}

/* ── Footer stays dark ── */
.footer {
    background: linear-gradient(180deg, var(--lux-midnight) 0%, #061528 100%) !important;
}

/* ── Responsive (non-hero) ── */
@media (max-width: 960px) {
    /* hero responsive → hero-banner.css */
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .credibility-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid var(--lux-border);
    }
}
