/* Add @font-face declaration at the top of your CSS */
@font-face {
    font-family: 'Sofachrome';
    src: url('fonts/Sofachrome.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add standardized text styles */
:root {
    --text-color: #333;
    --text-size: 1.1rem;
    --line-height: 1.8;
    --font-family: 'Open Sans', sans-serif;
}

/* Update base body text */
body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-color);
    font-size: var(--text-size);
}

/* Standardize paragraph text */
p {
    font-size: var(--text-size);
    color: var(--text-color);
    line-height: var(--line-height);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 3rem;
    background-color: #fff;
    box-shadow: none;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    max-width: 90px;
    height: auto;
    border-radius: 50%;
    display: block;
}

.logo-container {
    padding: 2px;
    margin-left: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 3rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.25rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0C4DA2;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #0C4DA2;
}

.nav-link.active {
    color: #0C4DA2;
}

.phone-number a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.phone-number a i {
    color: #0C4DA2;
    font-size: 1rem;
}

.phone-number a:hover {
    color: #0C4DA2;
}

/* Hero Section Styles */
.hero {
    padding: 0;
    background-color: #f8f9fa;
}

.hero-container {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(auto, 600px) 1fr;
    gap: 0;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 4rem 1.5rem 4rem 6rem;
    max-width: 600px;
    margin-left: auto;
}

.hero-logo {
    max-width: 300px;
    height: auto;
}

.hero-left h1 {
    color: #0C4DA2;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hero-left h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
}

.business-hours {
    color: #555;
    font-size: 1.25rem;
    line-height: 1.6;
}

.contact-info .phone {
    color: #0C4DA2;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .phone:hover {
    color: #0C4DA2;
}

.social p {
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-left h2 {
        font-size: 1.5rem;
    }

    .business-hours {
        font-size: 1.15rem;
        text-align: center;
        width: 100%;
    }

    .contact-info .phone {
        font-size: 1.3rem;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #f9f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #0C4DA2;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-top: 1rem;
    color: var(--text-color);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Logo Column */
.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Info Column */
.footer-info {
    text-align: left;
}

.footer-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-info .footer-phone,
.footer-info .footer-location {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-info address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ffffff;
}

/* Chamber Column */
.footer-chamber {
    text-align: center;
}

.footer-chamber img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-chamber p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #ffffff;
    font-style: italic;
    letter-spacing: 0.5px;
    position: relative;
    padding: 1rem 0;
}

.footer-chamber p::before,
.footer-chamber p::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-chamber p::before {
    top: 0;
}

.footer-chamber p::after {
    bottom: 0;
}

/* Bottom Section */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .footer-info {
        text-align: center;
    }

    .footer-chamber img {
        margin: 0 auto 1rem;
    }

    .footer-info h3 {
        font-size: 1.75rem;
    }

    .footer-chamber p {
        font-size: 1rem;
    }

    .footer-chamber p::before,
    .footer-chamber p::after {
        width: 40px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        grid-template-columns: auto auto auto;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .phone-number {
        order: 2;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .phone-number {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #0C4DA2;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Add styles for the right column image */
.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.hero-car-image {
    width: 85%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-left: auto;
}

/* Update mobile responsive styles */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: 2;
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-left {
        order: 1;
        padding: 2rem 1.5rem;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .hero-logo {
        margin: 0 auto;
    }

    .business-hours {
        text-align: center;
        width: 100%;
    }

    .cta-button {
        margin: 1rem auto;
    }

    .navbar {
        position: relative;
        width: 100%;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
    }

    .animate-left, .animate-right {
        animation: none;
        opacity: 1;
    }

    .hero-car-image {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Update CTA button styles */
.cta-button {
    display: inline-block;
    background-color: #0C4DA2;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    width: fit-content;
}

.cta-button:hover {
    background-color: #0a3f87;
}

/* Mobile styles */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Add animation keyframes */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add animation classes */
.animate-left {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0; /* Start invisible */
}

.animate-right {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0; /* Start invisible */
}

/* Optional: Disable animations on mobile for better performance */
@media (max-width: 768px) {
    .animate-left, .animate-right {
        animation: none;
        opacity: 1;
    }
}

/* Update header and navbar styles - remove shadows */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Lighter bottom shadow only */
}

.navbar {
    width: 100%;
    background-color: #fff;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 0.5rem;
    gap: 3rem;
    box-shadow: none; /* Remove navbar shadow */
}

/* Mobile responsive */
@media (max-width: 768px) {
    header {
        box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Even lighter shadow for mobile */
    }
}

/* Update mobile menu styles */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%; /* Position right below the sticky header */
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Ensure content doesn't jump when menu opens */
    body.menu-open {
        overflow: hidden;
    }
}

/* Update address section with background image and overlay */
.address-section {
    position: relative;
    padding: 3.5rem 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-image: url('img/devider-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .address-section {
        background-attachment: scroll;
    }
}

/* Add overlay */
.address-section::after {
    content: '';
    position: absolute;
    inset: 0; /* Shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    background-color: #0C4DA2;
    opacity: 0.75; /* Reduced opacity from 0.85 to 0.75 */
    z-index: -1;
}

.address-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Ensure content stays above overlay */
}

.address {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .address-section {
        padding: 2.5rem 1rem;
    }
    
    .address {
        font-size: 1.25rem;
    }
}

/* Update about section styles */
.about-title {
    color: #0C4DA2;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: var(--text-size);
    line-height: var(--line-height);
    margin-bottom: 2rem;
    text-align: justify;
}

.welcome-text {
    color: #0C4DA2;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-text p {
        text-align: left;
        margin-bottom: 2rem;
    }

    .welcome-text {
        font-size: 1.4rem;
    }
}

/* Add gallery styles */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
}

/* Update about section padding and spacing */
.about {
    padding: 6rem 0;
    background-color: #fff;
}

/* Standardize h2 styles across the site */
h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0C4DA2;
    line-height: 1.2;
}

/* Update address section h2 */
.address-section h2.address {
    font-family: 'Sofachrome', Arial, sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Update other section h2 styles to match */
.about-title {
    text-align: center;
}

.services h2 {
    text-align: center;
}

.contact h2 {
    margin-bottom: 1.5rem;
}

/* Mobile responsive h2 */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .address-section h2.address {
        font-size: 1.5rem;
    }
}

/* Update specific text elements */
.business-hours p {
    font-size: var(--text-size);
    color: var(--text-color);
}

.about-text p {
    font-size: var(--text-size);
    line-height: var(--line-height);
    margin-bottom: 2rem;
    text-align: justify;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-top: 1rem;
}

.contact-info p,
.contact-info address {
    font-size: var(--text-size);
    color: var(--text-color);
    line-height: var(--line-height);
    font-style: normal;
}

/* Mobile responsive text */
@media (max-width: 768px) {
    :root {
        --text-size: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Update specific elements that might have inherited different fonts */
h1, h2, h3, 
.nav-link,
.phone-number,
.cta-button,
.address,
.service-card h3,
.contact-info {
    font-family: var(--font-family);
}

/* Update auto repair section styles */
.auto-repair {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.repair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.repair-content {
    max-width: 600px;
}

.repair-content h2 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.repair-content p {
    font-size: var(--text-size);
    line-height: var(--line-height);
    text-align: justify;
    color: var(--text-color);
}

.repair-image {
    width: 80%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-left: auto;
}

.maintenance-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.maintenance-image:hover {
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .auto-repair {
        padding: 4rem 0;
    }

    .repair-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .repair-content {
        max-width: 100%;
        text-align: center;
        padding: 0 1rem;
        order: 1 !important;
    }

    .repair-content h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .repair-content p {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        font-size: var(--text-size);
        padding: 0 0.5rem;
    }

    .repair-image {
        width: 85%;
        max-height: 300px;
        margin: 1.5rem auto;
        order: 2 !important;
    }

    .auto-repair .container {
        padding: 0;
    }
}

/* Update custom exhaust section heading */
.brake-service .repair-content h2 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Remove the reverse grid styles since we're using standard layout */
.repair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Update mobile responsive styles specifically for auto repair section */
@media (max-width: 768px) {
    .auto-repair .repair-grid {
        display: flex;
        flex-direction: column;
    }

    .auto-repair .repair-content {
        order: 1;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .auto-repair .repair-image {
        order: 2;
        width: 85%;
        margin: 0 auto;
    }

    /* Keep brake service section layout as is */
    .brake-service .repair-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Update mobile responsive styles for address sections */
@media (max-width: 768px) {
    .address-section {
        padding: 2.5rem 1rem;
    }
    
    .address-section h2.address {
        font-size: 1.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-link::after {
        height: 1px;
    }
}

/* Add styles for services intro text */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: var(--text-size);
    line-height: var(--line-height);
    color: var(--text-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .services {
        padding: 4rem 0;
    }
    
    .services-intro {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Map Section Styles */
.map-section {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-section {
        height: 350px;
    }
}

/* Add transition properties to header elements */
.navbar, .logo, .nav-link, .phone-number a {
    transition: all 0.3s ease;
}

/* Default header state */
.navbar {
    padding: 1rem 1.5rem;
}

.logo {
    max-width: 90px;
}

/* Shrunk header state */
@media (min-width: 769px) {
    .navbar.shrink {
        padding: 0.5rem 1.5rem;
    }

    .navbar.shrink .logo {
        max-width: 70px;
    }

    .navbar.shrink .nav-link {
        font-size: 1rem;
    }

    .navbar.shrink .phone-number a {
        font-size: 1rem;
    }
}

/* Mobile styles - prevent shrinking */
@media (max-width: 768px) {
    .navbar, .navbar.shrink {
        padding: 0.5rem 1.5rem;
    }

    .logo, .navbar.shrink .logo {
        max-width: 70px;
    }

    .nav-link, .navbar.shrink .nav-link {
        font-size: 1.1rem;
    }

    .phone-number a, .navbar.shrink .phone-number a {
        font-size: 1.1rem;
    }
}

/* Update mobile styles for phone number */
@media (max-width: 768px) {
    .phone-number {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .phone-number a, .navbar.shrink .phone-number a {
        font-size: 0.95rem;
    }

    .phone-number a i {
        font-size: 0.9rem;
    }
}

/* Add smooth scrolling behavior to html */
html {
    scroll-behavior: smooth;
}

/* Style the logo links */
.logo-container a,
.hero-left a {
    display: inline-block;
    text-decoration: none;
}

/* Offset scroll position for sections to account for fixed header */
#home, #services, #about {
    scroll-margin-top: 80px; /* Adjust based on your header height */
}

/* Add styles for footer logo link */
.footer-logo a {
    display: inline-block;
    text-decoration: none;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}