/* Gas Tune - Automotive Website Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #999999;
    background: #f3f3f3;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #272727;
    margin-bottom: 1rem;
}

a {
    color: #ff2a13;
    text-decoration: none;
}

a:hover {
    color: #d80f0f;
}

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

/* Header Styles */
.header {
    position: relative;
    z-index: 1000;
}

.top-bar {
    background: transparent;
    color: white;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-content {
    text-align: right;
}

.top-bar a {
    color: #ff2a13;
    font-weight: 700;
}

.top-bar a:hover {
    color: #d80f0f;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(25, 25, 25, 0.9), rgba(25, 25, 25, 0.9)), 
                url('../images/hero.jpg') center/cover no-repeat;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 49px;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 2em;
    color: white;
    text-shadow: 0 0 0.65em rgba(0,0,0,0.8);
}

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

.btn {
    display: inline-block;
    padding: 0.5em 1.2em;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    margin: 0.4em;
}

.btn-primary {
    background: rgba(255,255,255,0.15);
    color: #b62e2e;
}

.btn-primary:hover {
    background: white;
    color: #1a27c7;
}

.btn-secondary {
    background: white;
    color: #ff2a13;
}

.btn-secondary:hover {
    color: #ff7f50;
}

/* Navigation */
.main-nav {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 0.15em 2em rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo img {
    max-width: 600px;
    height: auto;
}

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

.nav-menu a {
    color: rgba(0,0,0,0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1em 1.25em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ff2a13;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: calc(100% - 2em);
    height: 2px;
    background: #ff2a13;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.25);
    border: none;
    width: 2.75em;
    height: 2.75em;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.35);
}

.mobile-menu-toggle i {
    color: #272727;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.services-section {
    background: #f8f8f8;
    padding: 4rem 8.5vw;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
}

.services-left {
    flex: 1;
    min-width: 0;
}

.services-center {
    flex: 1;
    min-width: 0;
}

.services-right {
    flex: 1;
    min-width: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: hsl(229, 60%, 36%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 24px;
    flex-shrink: 0;
}

.service-icon.contact {
    background: #ff2a13;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* About Section */
.about-section {
    background: white;
    padding: 4rem 0;
    margin: 0;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.phone-tile {
    background: #ff2a13;
    color: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 42, 19, 0.3);
    position: sticky;
    top: 2rem;
}

.phone-tile h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.phone-tile .phone-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    display: block;
    color: white;
    text-decoration: none;
}

.phone-tile .phone-number:hover {
    color: #f0f0f0;
}

.phone-tile p {
    margin: 0.8rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.phone-tile .emphasis {
    font-weight: 700;
    margin-top: 1.5rem;
}

.youtube-section {
    background: white;
    padding: 3rem 0;
    margin: 0;
}

.youtube-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.youtube-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: #f8f8f8;
}

.testimonials-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonials-left {
    flex: 2;
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 2rem 0;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial .author {
    font-weight: 700;
    color: #272727;
}

.testimonials-right {
    flex: 1;
    background: hsl(229, 60%, 36%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.facebook-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.facebook-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-facebook {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1em 2em;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: white;
    color: hsl(229, 60%, 36%);
}

/* Parallax Banner */
.parallax-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/Feature - bottom.jpg') center/cover no-repeat fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-content {
    text-align: center;
    color: white;
}

/* Services Page Styles */
.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.services-items {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.services-items li {
    background: white;
    margin: 1rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid #ff2a13;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.services-items li::before {
    content: "✓";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff2a13;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Contact Page Styles - Full Width Layout */
.contact-info-fullwidth {
    background: #f8f8f8;
    padding: 5rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: #272727;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.contact-card .service-icon {
    margin: 0 auto 1.5rem;
}

.contact-card h3 {
    color: #272727;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-card a {
    color: #ff2a13;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #d80f0f;
}

/* Full Width Map */
.map-fullwidth {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
}

.map-fullwidth iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Active nav state */
.nav-menu a.active {
    color: #ff2a13;
}

.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Footer */
.footer {
    background: white;
    padding: 4rem 8.5vw;
    box-shadow: 0 0.15em 2em rgba(0,0,0,0.15);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.footer-nav a {
    color: rgba(0,0,0,0.75);
    font-weight: 700;
    padding: 1em;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #272727;
}

.footer-text {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(0,0,0,0.35);
    padding: 1.25em;
    text-align: center;
}

.footer-logo img {
    max-width: 150px;
}

/* Responsive Design */
@media (max-width: 978px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: #f8f8f8;
        color: #ff2a13;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .services-container,
    .testimonials-container,
    .footer-container {
        flex-direction: column;
    }
    
    /* Footer responsive for tablets */
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-nav a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Logo responsive sizing for tablets */
    .logo img {
        max-width: 400px;
    }
    
    /* Navigation container adjustments */
    .nav-container {
        padding: 0 1rem;
    }
    
    /* About page responsive for tablets */
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-tile {
        position: static;
        order: -1; /* Move phone tile above content */
    }
    
    .about-content {
        text-align: center;
    }
    
    /* Testimonials tablet improvements */
    .testimonials-left {
        padding: 0 1rem;
    }
    
    .testimonial-carousel {
        height: auto;
        min-height: 180px;
    }
    
    .testimonial {
        padding: 1.8rem;
        font-size: 0.96rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .services-section {
        padding: 2rem 15px;
    }
    
    .footer {
        padding: 2rem 15px;
    }
    
    /* Footer mobile responsive */
    .footer-container {
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .footer-nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
        text-align: center;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target size */
        line-height: 1.4;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .footer-nav a:hover {
        background-color: rgba(255, 42, 19, 0.05);
        color: #ff2a13;
    }
    
    .footer-nav li:last-child a {
        border-bottom: none;
    }
    
    .footer-text {
        font-size: 0.7rem;
        padding: 1rem 0;
        line-height: 1.5;
    }
    
    /* Critical mobile logo sizing */
    .logo img {
        max-width: 250px;
    }
    
    /* Navigation container mobile adjustments */
    .nav-container {
        padding: 0 15px;
    }
    
    .main-nav {
        padding: 1rem 0;
    }
    
    /* Mobile menu toggle improvements */
    .mobile-menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Hero section mobile improvements */
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        display: block;
        text-align: center;
        min-width: 200px;
    }
    
    /* Top bar mobile adjustments */
    .top-bar-content {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* About page mobile responsive */
    .about-container {
        gap: 1.5rem;
    }
    
    .phone-tile {
        padding: 2rem 1.5rem;
    }
    
    .phone-tile .phone-number {
        font-size: 1.8rem;
    }
    
    .youtube-section {
        padding: 2rem 0;
    }
    
    /* Contact page responsive */
    .contact-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .map-fullwidth {
        height: 350px;
    }

    /* Services page responsive */
    .services-items li {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .services-items li::before {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Testimonials mobile improvements */
    .testimonials-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .testimonials-left {
        padding: 0 15px;
    }
    
    .testimonial-carousel {
        height: auto;
        min-height: auto;
        position: static;
    }
    
    .testimonial-slide {
        position: static;
        opacity: 1;
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-slide:not(.active) {
        display: none;
    }
    
    .testimonial-slide.active {
        display: block;
        opacity: 1;
    }
    
    .testimonial {
        padding: 1.5rem;
        margin: 0 0 1rem 0;
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .testimonial p {
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    /* Services section mobile improvements */
    .services-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Ultra-small mobile logo */
    .logo img {
        max-width: 180px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .top-bar-content {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        min-width: 150px;
        padding: 0.8rem 1.5rem;
    }
    
    /* Footer ultra-mobile adjustments */
    .footer-nav a {
        padding: 0.8rem 0;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .footer-text {
        font-size: 0.65rem;
    }
    
    /* Ultra-small testimonials adjustments */
    .testimonials-left {
        padding: 0 10px;
    }
    
    .testimonial {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .testimonial p {
        line-height: 1.5;
    }
}