/* style.css - Kings Heavy Machinery
 * Matching live website with black/yellow color scheme and multi-page structure
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching live site - black background with yellow accents */
    --primary-black: #121212;
    --secondary-black: #1a1a1a;
    --accent-yellow: #FFD700;
    --accent-yellow-dark: #E6C200;
    --white-accent: #f8f9fa;
    --text-light: #f5f5f5;
    --text-gray: #aaa;
    --card-bg: #1e1e1e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--primary-black);
    border-bottom: 1px solid var(--accent-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-yellow);
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-yellow);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--white-accent);
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-yellow);
}

.cta-button {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-yellow-dark);
    transform: translateY(-1px);
}

/* Outlined button style (for "Get a Quote" button) */
.cta-button.outlined {
    background-color: transparent;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

.cta-button.outlined:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Animated color effect for outlined button */
@keyframes colorPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.cta-button.outlined:hover {
    animation: colorPulse 1.5s infinite;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== HERO CAROUSEL SECTION ===== */
.hero-carousel {
    position: relative;
    height: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-accent);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--white-accent);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hover-highlight {
    color: var(--accent-yellow);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: default;
}

.hover-highlight:hover {
    color: var(--accent-yellow-dark);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hover-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.hover-highlight:hover::after {
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 180px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.carousel-nav-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-nav-btn:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-yellow);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background-color: rgba(255, 215, 0, 0.7);
}

/* ===== SECTIONS ===== */
.page-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--white-accent);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-img i {
    color: var(--white);
    font-size: 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.5);
    padding: 1rem;
    border-radius: 8px;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content ul li {
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.card-content ul li::before {
    content: '•';
    color: var(--accent-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== ABOUT/WHO WE ARE ===== */
.history-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.history-text h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.history-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.milestones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
}

.milestone-card h4 {
    color: var(--accent-yellow);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.milestone-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== PROJECTS ===== */
.project-highlight {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
    border: 1px solid var(--accent-yellow);
}

.project-highlight-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
}

.project-overlay-text h3 {
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.project-highlight-content {
    padding: 2rem;
}

.project-highlight-content h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-highlight-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-yellow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 0.3rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.contact-info h3 {
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-detail i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-detail div p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: var(--white-accent);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-black);
    color: var(--white);
    padding: 3rem 1.5rem 2rem;
    border-top: 2px solid var(--accent-yellow);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-contact-item i {
    color: var(--accent-yellow);
    margin-top: 0.2rem;
}

.footer-contact-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: var(--accent-yellow);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-black);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--text-gray);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--accent-yellow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        display: block;
        padding: 0.8rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Carousel Responsive */
    .hero-carousel {
        height: 500px;
        max-height: 70vh;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-tagline {
        font-size: 1.1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .carousel-nav {
        bottom: 1rem;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-yellow { color: var(--accent-yellow); }
.text-gray { color: var(--text-gray); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
