/*
Theme Name: Car Repair
Theme URI: 
Author: 
Author URI: 
Description: A theme based on the car-repair-js static site
Version: 1.0
Text Domain: car-repair
*/

/* RTL support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] nav ul {
    padding-right: 0;
}

/* Language toggle styles */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid #000080;
    color: #000080;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #000080;
    color: white;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000080;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
background: #b5b5b5;
background: linear-gradient(0deg,rgba(181, 181, 181, 1) 0%, rgba(224, 224, 224, 1) 5%, rgba(255, 255, 255, 1) 22%, rgba(255, 255, 255, 1) 100%);
    color: #000080;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	
}

.logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    width: 95%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #000080;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #000080;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000080;
    left: 0;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: #000080;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #1a5fb4;
}


/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('Engine-Repair.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    margin-bottom: -2rem; /* Compensate for footer margin */
}

.hero {
    font-size: 2.5rem;
    margin-bottom: 0rem;
	margin-top:-3rem;
}

.hero p {
    
    font-size: 2.7rem;
    margin-bottom: 1rem;
    
    max-width: 1100px;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background: #f0c14b;
    color: #111;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #ddb347;
    cursor: pointer;
}


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

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #DDDDDD;
        padding: 1rem 1rem;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav.active {
        transform: scaleY(1);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 1rem 0;
		font-size: 1.5rem;
    }



.hero h1 {
    
    font-size: 1rem;
   
	margin-top:0rem;
}

.hero p {
    font-size: 1.2rem;
   
    max-width: 800px;
}



}



/* Footer styles */
footer {
  /*  position: fixed;
	background: #DDDDDD;
    color: #000080;
    text-align: center;
    bottom: 0;
	padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);*/
	
	position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: #DDDDDD;
   color: #000080;
   text-align: center;
	
	
    
}

/* Contact page styles */
.contact-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2 2rem;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-page p {
    text-align: center;
    margin-left: 2rem;
	margin-right: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #000080;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    text-align: center;
}

/* Services page styles */
.services-page {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.service {
    margin-bottom: 3rem;
    color: #000080;
}

.service img {
    width: 50%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* About page styles */
.about-page {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #000080;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2rem 0;
}

.member {
    flex-basis: 30%;
    text-align: center;
    margin-bottom: 2rem;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member h3 {
    margin-bottom: 0.5rem;
}
