/* ============================================
   SHACMAN Trucks - Official Site
   Design system: industrial clean, series-coded colors
   ============================================ */

:root {
    /* Brand palette */
    --brand-primary: #c8102e;      /* SHACMAN red - main brand */
    --brand-dark: #1a1a2e;         /* near-black */
    --brand-light: #f5f7fa;
    --brand-gray: #6c757d;
    --brand-border: #e0e4e8;

    /* Series accents (used for section markers & hover) */
    --series-f: #0066cc;           /* F series - blue */
    --series-h: #ff8c1a;           /* H3000 - orange */
    --series-l: #0080ff;           /* L3000 - blue */
    --series-x: #0f1419;           /* X3000 - black */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

    --radius: 4px;
    --radius-lg: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--brand-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #8a0a1f;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--brand-dark);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 22px;
    font-style: italic;
}

.logo-text {
    font-weight: 800;
}

.logo-sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--brand-gray);
    text-transform: uppercase;
    margin-top: -2px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--brand-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-cta {
    background: var(--brand-primary);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
    font-weight: 600;
}

.header-cta:hover {
    background: #8a0a1f;
    color: #fff !important;
}

.header-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--brand-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
    background: var(--brand-dark);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 20, 25, 0.75) 0%,
        rgba(15, 20, 25, 0.4) 60%,
        rgba(15, 20, 25, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 0 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(200, 16, 46, 0.95);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 36px;
    opacity: 0.92;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #8a0a1f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    background: #fff;
    color: var(--brand-dark);
}

.btn-dark {
    background: var(--brand-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #2a2a3e;
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
    color: #fff;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--brand-light);
}

.section-dark {
    background: var(--brand-dark);
    color: #fff;
}

.section-dark h2 {
    color: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--brand-gray);
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================
   SERIES GRID
   ============================================ */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.series-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-border);
    position: relative;
}

.series-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.series-card .image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--brand-light);
}

.series-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.series-card:hover .image-wrap img {
    transform: scale(1.05);
}

.series-card .series-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.series-card .card-body {
    padding: 24px;
}

.series-card .series-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.series-card .series-tag {
    font-size: 12px;
    color: var(--brand-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.series-card .series-desc {
    font-size: 14px;
    color: var(--brand-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.series-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-primary);
}

.series-card .card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.series-card:hover .card-link::after {
    transform: translateX(4px);
}

.series-card.series-f { border-top: 4px solid var(--series-f); }
.series-card.series-h { border-top: 4px solid var(--series-h); }
.series-card.series-l { border-top: 4px solid var(--series-l); }
.series-card.series-x { border-top: 4px solid var(--series-x); }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(200, 16, 46, 0.08);
    color: var(--brand-primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--brand-gray);
    line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item .stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PRODUCT PAGE (gallery + spec)
   ============================================ */
.product-hero {
    position: relative;
    height: 50vh;
    min-height: 380px;
    overflow: hidden;
    background: var(--brand-dark);
}

.product-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
}

.product-hero h1 {
    max-width: 720px;
}

.breadcrumb {
    background: var(--brand-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-border);
    font-size: 14px;
}

.breadcrumb ul {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--brand-gray);
}

.breadcrumb li:last-child {
    color: var(--brand-gray);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brand-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--brand-border);
}

.spec-table th {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-table td:first-child {
    font-weight: 600;
    width: 30%;
    color: var(--brand-dark);
    background: var(--brand-light);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 32px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ============================================
   ABOUT / CONTACT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-grid img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-grid h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.about-grid p {
    margin-bottom: 16px;
    color: var(--brand-gray);
    line-height: 1.7;
}

.about-list {
    list-style: none;
    margin-top: 16px;
}

.about-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--brand-dark);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    background: var(--brand-dark);
    color: #fff;
    padding: 48px;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 28px;
    opacity: 0.8;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list .icon {
    width: 36px;
    height: 36px;
    background: rgba(200, 16, 46, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.contact-list .info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.contact-list .info-value {
    font-size: 15px;
    font-weight: 500;
}

.contact-form {
    background: #fff;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.contact-form .form-intro {
    color: var(--brand-gray);
    margin-bottom: 24px;
    font-size: 14px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.form-group label .req {
    color: var(--brand-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

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

.form-submit {
    margin-top: 12px;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    display: none;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0a0a14;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 6px 0;
    font-size: 14px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
    color: #fff;
}

.footer-brand {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 998;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .contact-info,
    .contact-form {
        padding: 32px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        padding: 14px 20px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 16px 0;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 24px;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--brand-border);
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
    }

    .main-nav .header-cta {
        margin-top: 12px;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        height: auto;
        padding: 60px 0;
        min-height: 420px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .section {
        padding: 56px 0;
    }

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

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

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}
