/* ============================================
   ACAL AUTOMOTIVE - GLOBAL STYLES
   ============================================ */

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

/* ============================================
   ROOT VARIABLES & TYPOGRAPHY
   ============================================ */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #1976d2;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #424242;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #ffffff;
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

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

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        gap: 0;
        box-shadow: var(--box-shadow-lg);
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--medium-gray);
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--light-gray);
        color: var(--primary-color);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.cta-button,
.cta-button-primary,
.submit-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover,
.cta-button-primary:hover,
.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.cta-button:active,
.cta-button-primary:active,
.submit-btn:active {
    transform: translateY(0);
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   MAIN CONTENT & SECTIONS
   ============================================ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    padding: 3rem 2rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

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

.service-card,
.service-detail-card,
.reason-card,
.benefit {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.service-card:hover,
.service-detail-card:hover,
.reason-card:hover,
.benefit:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
    background-color: var(--white);
}

.service-card h3,
.service-detail-card h3,
.reason-card h3,
.benefit h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p,
.service-detail-card p,
.reason-card p,
.benefit p {
    color: var(--text-light);
}

/* ============================================
   ABOUT & PREVIEW SECTIONS
   ============================================ */

.about-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.about-section h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

.about-preview {
    background-color: var(--light-gray);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.about-preview h2 {
    color: var(--primary-color);
}

.certifications {
    display: grid;
    gap: 2rem;
}

.cert-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.cert-card h3 {
    color: var(--primary-color);
}

.cert-card ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.cert-card li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   LEGAL SECTIONS (Privacy, Terms)
   ============================================ */

.legal-section {
    margin-bottom: 3rem;
}

.legal-content h3 {
    margin-top: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

.legal-content h3:first-of-type {
    margin-top: 0;
    color: var(--text-dark);
    border: none;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-info-section {
    padding: 0;
}

.contact-info-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

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

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

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.submit-btn:disabled {
    background-color: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #4caf50;
    color: var(--white);
    display: block;
}

.form-message.error {
    background-color: #f44336;
    color: var(--white);
    display: block;
}

.info-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-card p {
    margin-bottom: 0.5rem;
}

.info-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.map-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose {
    background-color: var(--light-gray);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.why-choose h2 {
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px)
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 3rem 2rem;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-header {
        padding: 2.5rem 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .services-detailed,
    .reasons-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (480px)
   ============================================ */

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-button,
    .cta-button-primary,
    .submit-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .service-card,
    .service-detail-card,
    .reason-card,
    .benefit {
        padding: 1.5rem;
    }

    .about-section {
        padding: 1.5rem;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }
}
