/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #1e3a8a;
    --primary-dark: #1e293b;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-base);
}

.logo:hover {
    color: var(--primary-light);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-weight: var(--font-weight-black);
    font-size: 0.9em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(59, 130, 246, 0.70) 100%), url('/images/delco-matic_2.png') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(0px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===========================
   Section Styles
   =========================== */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===========================
   History Timeline Section
   =========================== */
.history-section {
    background: var(--bg-light);
}

.history-narrative {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.history-narrative h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.history-narrative p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.history-narrative p:last-child {
    margin-bottom: 0;
}

.history-narrative strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-marker {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-marker {
    grid-column: 2;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    position: relative;
    z-index: 2;
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Historical Image Section
   =========================== */
.historical-image-section {
    margin: 3rem 0;
}

.historical-image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.historical-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.historical-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.historical-image-caption {
    padding: 2rem;
    background: linear-gradient(to bottom, white, var(--bg-light));
}

.historical-image-caption h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-bold);
}

.historical-image-caption p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

/* ===========================
   Services Section
   =========================== */
.services-section {
    background: white;
}

.service-intro {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.service-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.service-card.detailed p {
    font-size: 1.05rem;
    text-align: left;
}

.service-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.service-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.service-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.service-cta .btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* ===========================
   Manufacturers Section
   =========================== */
.manufacturers-section {
    background: white;
}

.manufacturer-story {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border-top: 4px solid var(--primary-color);
}

.manufacturer-story h3 {
    color: var(--primary-color);
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.story-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.story-content ul, .story-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.story-content li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.story-content h4 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: var(--font-weight-semibold);
}

.story-content strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.product-lines {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.product-lines h4 {
    color: var(--primary-dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.product-lines ol {
    margin-left: 1.25rem;
}

.product-lines li {
    margin-bottom: 0.75rem;
}

.manufacturer-story-with-image {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.manufacturer-image-wrapper {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.manufacturer-logo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@media (max-width: 968px) {
    .manufacturer-story-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .manufacturer-image-wrapper {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ===========================
   Brands Section
   =========================== */
.brands-section {
    background: var(--bg-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.brand-logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.brand-image {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.brand-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.brand-features {
    list-style: none;
    padding: 0;
}

.brand-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
}

.brand-features li:first-child {
    border-top: none;
}

.brand-features li::before {
    content: '✓ ';
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    margin-right: 0.5rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.contact-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-weight: var(--font-weight-semibold);
}

.contact-item p {
    color: var(--text-light);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.contact-link:hover {
    color: var(--primary-light);
}

.features-list {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.features-list h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.features-list li {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
    background: white;
}

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

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
    transition: var(--transition-base);
}

.footer-phone:hover {
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-note {
    margin-top: 0.5rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: var(--transition-slow);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-left"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="zoom-in"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-marker {
        grid-column: 1;
    }
    
    .timeline-marker {
        width: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid,
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list ul {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    :root {
        --section-padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

