/* HK Motors Kenya Ltd - Caterpillar-inspired clean industrial theme */

:root {
    --cat-yellow: #FFC107;
    --cat-yellow-dark: #E6AC00;
    --cat-black: #1a1a1a;
    --cat-dark-gray: #333333;
    --cat-medium-gray: #666666;
    --cat-light-gray: #f5f5f5;
    --cat-border: #dddddd;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--cat-dark-gray);
    background-color: var(--white);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--cat-yellow);
    color: var(--cat-black);
}

.btn-primary:hover {
    background-color: var(--cat-yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background-color: var(--cat-black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--cat-dark-gray);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--cat-black);
    border: 2px solid var(--cat-black);
}

.btn-outline:hover {
    background-color: var(--cat-black);
    color: var(--white);
}

.filter-btn {
    margin: 0 8px 12px 8px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--cat-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-text span {
    color: var(--cat-yellow);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-dark-gray);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cat-black);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--cat-yellow);
    transition: width 0.3s ease;
}

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

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--cat-black);
}

.header-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-medium-gray);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--cat-black);
}

/* Hero */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../images/pexels-timepro-tv-2148736540-33321450.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cat-yellow);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.95;
}

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

/* Section styling */
.section {
    padding: 90px 0;
}

.section-light {
    background-color: var(--cat-light-gray);
}

.section-dark {
    background-color: var(--cat-black);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cat-yellow);
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title.light {
    color: var(--white);
}

.section-text {
    font-size: 17px;
    color: var(--cat-medium-gray);
    line-height: 1.7;
}

.section-text.light {
    color: rgba(255, 255, 255, 0.75);
}

/* Category grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    display: block;
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.category-image {
    height: 220px;
    overflow: hidden;
}

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

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-content {
    padding: 24px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.category-desc {
    font-size: 14px;
    color: var(--cat-medium-gray);
    margin-bottom: 16px;
}

.category-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-black);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-link:hover {
    color: var(--cat-yellow-dark);
}

/* Features / Why choose us */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--cat-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--cat-black);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Inventory cards */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.machine-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--cat-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.machine-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.machine-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--cat-yellow);
    color: var(--cat-black);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

.machine-content {
    padding: 24px;
}

.machine-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cat-yellow-dark);
    margin-bottom: 6px;
}

.machine-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cat-black);
}

.machine-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.machine-spec {
    font-size: 13px;
    color: var(--cat-medium-gray);
}

.machine-spec strong {
    color: var(--cat-dark-gray);
    display: block;
    font-size: 14px;
}

.machine-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--cat-black);
    margin-bottom: 16px;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.about-content p {
    font-size: 16px;
    color: var(--cat-medium-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--cat-yellow);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--cat-black);
}

.stat-label {
    font-size: 13px;
    color: var(--cat-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/20260715230906_563_2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-text {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 16px;
    color: var(--cat-medium-gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--cat-light-gray);
    border-radius: 4px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--cat-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cat-black);
    flex-shrink: 0;
}

.contact-icon.whatsapp-icon {
    background-color: #25D366;
    background-image: url('../images/whatsapp-logo-4456_256.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    font-size: 0;
}

.contact-icon.wechat-icon {
    background-color: #07C160;
    background-image: url('../images/wechat-logo-svgrepo-com.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    font-size: 0;
}

.contact-detail h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
    font-size: 15px;
    color: var(--cat-medium-gray);
}

.contact-detail a:hover {
    color: var(--cat-yellow-dark);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--cat-dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--cat-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cat-yellow);
}

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

/* Privacy policy */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.privacy-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.privacy-content .effective-date {
    color: var(--cat-medium-gray);
    margin-bottom: 40px;
    font-size: 14px;
}

.privacy-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--cat-black);
}

.privacy-content p,
.privacy-content li {
    font-size: 15px;
    color: var(--cat-medium-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: var(--cat-black);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-img {
    margin-top: -20px;
    height: 150px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-logo-text span {
    color: var(--cat-yellow);
}

.page-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.about-logo {
    width: 200px;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--cat-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--cat-yellow);
}

.footer-contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    background-image: url('../images/whatsapp-logo-4456_256.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: var(--shadow-strong);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--cat-light-gray);
    padding: 20px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: var(--cat-medium-gray);
}

.breadcrumb a:hover {
    color: var(--cat-black);
}

.breadcrumb span {
    color: var(--cat-black);
    font-weight: 600;
}

/* Page header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../images/20260715231000_565_2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title,
    .page-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 58px;
    }

    .logo-text {
        font-size: 18px;
    }

    .footer-logo-img {
        height: 90px;
    }

    .footer-logo-text {
        font-size: 20px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow);
        gap: 16px;
    }

    .nav.active {
        display: flex;
    }

    .header-contact {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero {
        min-height: 600px;
        padding: 80px 0;
    }

    .section {
        padding: 60px 0;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .privacy-content {
        padding: 32px 24px;
    }

    .cta-title,
    .page-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .machine-specs {
        grid-template-columns: 1fr;
    }
}
