/* Harbor Auto Body - Stylesheet */

/* Google Fonts - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ============================================
   CSS Variables - Blue color scheme
   ============================================ */
:root {
    --color-primary: rgb(0, 73, 163);        /* Deep blue */
    --color-primary-hover: rgb(0, 56, 130);  /* Darker blue for hover */
    --color-accent: rgb(0, 149, 219);        /* Sky blue accent */
    --color-accent-light: rgb(230, 243, 255); /* Very light blue background */
    --color-text: #333333;
    --color-text-secondary: #666666;
    --color-text-light: #888888;
    --color-border: #dcd7ca;
    --color-background: #ffffff;
    --color-background-dark: #1a1a1a;
    --color-background-light: #f5f5f5;
    --color-header-footer: #1a1a1a;
    --font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

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

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

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

ul, ol {
    list-style: none;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-rounded {
    border-radius: 25px;
    padding: 12px 28px;
    font-weight: 500;
}

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

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

.header-branding {
    display: flex;
    align-items: center;
}

.header-branding .logo-img {
    height: 70px;
    width: auto;
}

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

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

.nav-menu a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Header Phone */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 500;
}

.header-phone:hover {
    color: var(--color-accent-light);
}

.phone-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* ============================================
   Mobile Menu Modal
   ============================================ */
.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-accent);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.menu-modal-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-close svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: #ffffff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav a:hover {
    color: var(--color-accent-light);
}

.mobile-phone {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    background: var(--color-primary);
    padding: 12px 24px;
    border-radius: 25px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    background-color: var(--color-background-dark);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 120px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 73, 163, 0.85), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (for interior pages) */
.page-hero {
    min-height: 600px;
    padding: 120px 20px;
}

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

/* ============================================
   Insurance Partners Section
   ============================================ */
.insurance-section {
    background: var(--color-background);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.insurance-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.insurance-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.insurance-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.insurance-logo {
    height: 120px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.insurance-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 80px 0;
}

.services-section-dark {
    background: var(--color-background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.service-desc {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* View All Services Link */
.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-section {
    padding: 80px 0;
    background: var(--color-accent-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.why-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   About Section (Homepage)
   ============================================ */
.about-preview {
    padding: 80px 0;
    background: var(--color-background);
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   About Page Content
   ============================================ */
.about-section {
    padding: 80px 0;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--color-background-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.value-icon {
    font-size: 36px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.value-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.value-content p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: var(--color-background-light);
}

.contact-inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.contact-info {
    flex: 1;
    max-width: 450px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.contact-intro {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    color: var(--color-primary);
    width: 24px;
    text-align: center;
    margin-top: 3px;
}

.contact-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.contact-item-content a:hover {
    color: var(--color-primary);
}

/* Contact Form Box */
.contact-form-box {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.contact-form-box h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 25px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group label .optional {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 13px;
}

.form-errors {
    background: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.form-errors .error {
    color: #dc3545;
    margin: 0;
}

.btn-submit {
    margin-top: 10px;
    border-radius: 10px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Contact Success */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-success p {
    color: var(--color-text-secondary);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--color-primary);
    text-align: center;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-section .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section .btn-outline:hover {
    background: #ffffff;
    color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-header-footer);
    color: #ffffff;
    padding: 50px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.6;
}

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

.footer-section a:hover {
    color: #ffffff;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: background 0.2s ease;
}

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

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

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .insurance-row {
        gap: 30px;
    }

    .insurance-logo {
        height: 100px;
    }
}

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

    .nav-menu,
    .header-phone {
        display: none;
    }

    .header-inner {
        padding: 10px 15px;
    }

    .header-branding .logo-img {
        height: 55px;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 400px;
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

    .page-hero {
        min-height: 250px;
        padding: 60px 20px;
    }

    .page-hero .hero-title {
        font-size: 28px;
    }

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

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

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

    .contact-inner {
        flex-direction: column;
    }

    .contact-info {
        max-width: 100%;
    }

    .contact-form-box {
        max-width: 100%;
        padding: 30px;
    }

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

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

    .insurance-row {
        gap: 20px;
    }

    .insurance-logo {
        height: 80px;
    }
}

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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