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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #000000;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

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

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    cursor: pointer;
}

nav a:hover {
    color: #e31e24;
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/car diag.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #e31e24;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(227,30,36,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: #c71a1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227,30,36,0.6);
}

.section {
    padding: 60px 20px;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

h2 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

h3 {
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #e31e24;
}

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

.service-icon {
    font-size: 3rem;
    color: #e31e24;
    margin-bottom: 1rem;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: #e31e24;
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000000;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #e31e24;
}

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

.submit-btn {
    background: #e31e24;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #c71a1f;
    transform: translateY(-2px);
}

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

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e31e24;
}

.contact-item-icon {
    font-size: 2.5rem;
    color: #e31e24;
    margin-bottom: 1rem;
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 3px solid #e31e24;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Dyno iframe responsive styles */
.iframe-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.iframe-container {
    position: relative;
    padding-bottom: 0;
    height: 900px; /* large fixed height on desktop to avoid internal scrolling */
    min-height: 600px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive sizes for different breakpoints */
@media (max-width: 1200px) {
    .iframe-wrapper {
        max-width: 1100px;
        padding: 0 15px;
    }
    .iframe-container {
        height: 700px;
    }
}
@media (max-width: 992px) {
    .iframe-container {
        height: 600px;
    }
}
@media (max-width: 768px) {
    .iframe-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    /* On small screens use aspect-ratio style to keep it visible and avoid excessive height */
    .iframe-container {
        padding-bottom: 85%;
        height: auto;
        min-height: 420px;
    }
}

/* Footer layout and responsive styles */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact,
.footer-hours {
    display: flex;
    flex-direction: column;
}

.footer-contact h4,
.footer-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact p,
.footer-hours p {
    color: #d0d0d0;
    margin: 0.4rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-contact a,
.footer-hours a {
    color: #e31e24;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover,
.footer-hours a:hover {
    color: #ff4444;
    text-decoration: underline;
}

footer > .container > p {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 20px 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .footer-contact h4,
    .footer-hours h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-contact p,
    .footer-hours p {
        font-size: 0.9rem;
        margin: 0.3rem 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

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

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.gallery-content {
    padding: 1.5rem;
}

.highlight {
    background: #f5f5f5;
    padding: 1.5rem;
    border-left: 4px solid #e31e24;
    margin: 2rem 0;
    border-radius: 5px;
}

ul {
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message.show {
    display: block;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 60px 20px;
        background-position: center top;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        flex-wrap: wrap;
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        width: 100%;
        margin-top: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        border-bottom: 1px solid #333;
        padding: 0;
        margin-bottom: 0;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}
