/* IRA Auto Services Limited - Main Stylesheet */
/* Based on Dynatrade UAE design, adapted for IRA Tanzania */

:root {
    --primary-color: #9f080d;
    --primary-dark: #7a0609;
    --secondary-color: #1a1a1a;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide Scrollbar but Keep Scrolling */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.625rem 0;
    font-size: clamp(12px, 1.5vw, 14px);
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-top>.container>div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-top a {
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-top a:hover {
    color: var(--primary-color);
}

.header-contact-link {
    padding: 0.3125rem 0.9375rem;
    border-radius: 3px;
    font-size: clamp(12px, 1.5vw, 14px);
}

.btn-whatsapp.header-contact-link {
    background: #25D366;
    color: white;
}

.btn-whatsapp.header-contact-link:hover {
    background: #20BA5A;
    opacity: 1;
}

.header-main {
    background: var(--primary-color);
    padding: 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.875rem 1.25rem;
}

.logo {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: white;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo-image {
    height: clamp(45px, 5vw, 60px);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-top-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-divider {
    width: 1px;
    height: 1.25rem;
    background: var(--border-color);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-main {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: var(--text-dark);
}

.logo-text-sub {
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(8px, 1.5vw, 16px);
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-menu>li>a {
    font-weight: 500;
    color: white;
    padding: 0.5rem 0.75rem;
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: clamp(13px, 1.4vw, 15px);
    border-radius: 4px;
}

.nav-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-menu>li>button {
    margin: 0;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu>li>button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin: 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.25rem;
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: clamp(14px, 1.5vw, 16px);
    white-space: nowrap;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    margin: 0;
    align-self: center;
    order: 2;
}

.menu-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(11px, 1.2vw, 13px);
}

.lang-switcher button:hover {
    color: var(--primary-color);
}

.lang-switcher button.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: clamp(500px, 75vh, 700px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 6rem);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-two-column .hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-two-column .hero-slide {
    position: absolute;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(1) {
    background-image: url('../assets/images/SDIGITAL 0658031993-71.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../assets/images/wheel alignment.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../assets/images/ira tyre services.JPG');
}

.hero-slide:nth-child(4) {
    background-image: url('../assets/images/ira namanga branch view.JPG');
}

.hero-slide:nth-child(5) {
    background-image: url('../assets/images/mbezi branch jogoo.jpg');
}

.hero-slide:nth-child(6) {
    background-image: url('../assets/images/sinza branch.JPG');
}

.hero-slide:nth-child(7) {
    background-image: url('../assets/images/ira painting service.JPG');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    margin-bottom: 1.25rem;
    color: white;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.6),
        6px 6px 12px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(12px, 1.6vw, 16px);
    margin-bottom: 2.5rem;
    color: white;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.7),
        2px 2px 4px rgba(0, 0, 0, 0.5),
        3px 3px 8px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(16px, 2.2vw, 18px);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.7;
    font-weight: 400;
}

.hero-content-column .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-content-column .btn-primary {
    background: white;
    color: #1a1a1a;
    border: 2px solid white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: clamp(15px, 1.8vw, 17px);
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.hero-content-column .btn-primary:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-3px);
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
}

.hero-content-column .btn-whatsapp {
    background: rgba(37, 211, 102, 0.9);
    border: 2px solid rgba(37, 211, 102, 1);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: clamp(15px, 1.8vw, 17px);
    letter-spacing: 0.5px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15);
}

.hero-content-column .btn-whatsapp:hover {
    background: rgba(37, 211, 102, 1);
    border-color: rgba(37, 211, 102, 1);
    transform: translateY(-3px);
    color: white;
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-buttons .btn-primary {
    background: white;
    color: #1a1a1a;
    border: 2px solid white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: clamp(15px, 1.8vw, 17px);
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-3px);
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
}

.hero-buttons .btn-whatsapp {
    background: rgba(37, 211, 102, 0.9);
    border: 2px solid rgba(37, 211, 102, 1);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: clamp(15px, 1.8vw, 17px);
    letter-spacing: 0.5px;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-whatsapp:hover {
    background: rgba(37, 211, 102, 1);
    border-color: rgba(37, 211, 102, 1);
    transform: translateY(-3px);
    color: white;
    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    margin-left: 0.9375rem;
}

/* Section Styles */
.section {
    padding: clamp(50px, 8vw, 80px) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: clamp(30px, 5vw, 50px);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: clamp(30px, 5vw, 50px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .btn {
    margin-top: auto;
    width: 100%;
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Hide SVG placeholder images */
.service-icon img[src*="data:image/svg"] {
    display: none;
}

/* Hide the icon container if it only contains SVG placeholder */
.service-icon:empty,
.service-icon:has(img[src*="data:image/svg"]:only-child) {
    display: none;
}

/* Typography design for service cards without visible icons */
.service-card:not(:has(.service-icon img[src*="assets"])) h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.service-card:not(:has(.service-icon img[src*="assets"])) h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.service-card:not(:has(.service-icon img[src*="assets"])):hover h3::before {
    width: 80px;
    transition: width 0.3s ease;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Statistics Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    margin-bottom: 10px;
    color: white;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.trust-badge {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-badge-icon {
    display: none;
}

.trust-badge h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.trust-badge h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.trust-badge h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-item {
    background: var(--bg-light);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9e9e9;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="date"],
.form-group input[type="time"] {
    cursor: pointer;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.brand-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    overflow: hidden;
}

.brand-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-item .btn {
    margin-top: auto;
    width: 100%;
}

.contact-item p {
    flex-grow: 1;
}

.contact-item>div:last-of-type:not(.contact-item-icon) {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item>div:last-of-type:not(.contact-item-icon) .btn {
    width: 100%;
    margin-bottom: 0;
}

.contact-item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.contact-icon {
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

/* Page Content Styles */
.section-top-padding {
    padding-top: clamp(80px, 10vw, 120px);
}

.page-subtitle {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.page-text {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.8;
    margin-bottom: 1.875rem;
}

.brand-category {
    margin-top: clamp(40px, 6vw, 60px);
}

/* Clients Section */
.clients-section {
    background: var(--bg-light);
    padding: clamp(50px, 8vw, 80px) 0;
}

.clients-scroll-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px 0;
}

.clients-scroll {
    display: flex;
    flex-direction: row;
    animation: scroll-horizontal 30s linear infinite;
    gap: 50px;
    align-items: center;
    width: fit-content;
}

.clients-scroll:hover {
    animation-play-state: paused;
}

.client-item {
    flex-shrink: 0;
    height: 120px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: scale(1.05);
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%); Removed to keep colored */
    opacity: 1;
    transition: all 0.3s ease;
}

.client-item:hover img {
    /* filter: grayscale(0%); */
    transform: scale(1.1);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modern Layout Components */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
    margin: clamp(40px, 6vw, 80px) 0;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse>* {
    direction: ltr;
}

.two-column-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.two-column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.two-column-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-column-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

.two-column-content h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.two-column-content p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.two-column-content .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    margin: clamp(40px, 6vw, 80px) 0;
}

.three-column-item {
    background: white;
    padding: clamp(25px, 4vw, 40px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.three-column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.three-column-item h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.three-column-item p {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Hero Two-Column Layout */
.hero-two-column {
    position: relative;
    min-height: clamp(500px, 80vh, 800px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.hero-image-column {
    position: relative;
    overflow: hidden;
}

.hero-image-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
}

/* Branches Section */
.branches-section {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 60px;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.branch-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.branch-card-content {
    padding: 20px;
    text-align: left;
}

.branch-card h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.branch-card p {
    color: var(--text-light);
    font-size: 15px;
}

.hero-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-column {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero-content-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.hero-content-column>* {
    position: relative;
    z-index: 1;
}

.hero-content-column h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 10px rgba(0, 0, 0, 0.7),
        6px 6px 16px rgba(0, 0, 0, 0.5),
        8px 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-content-column .hero-subtitle {
    font-size: clamp(13px, 1.8vw, 16px);
    margin-bottom: 2.5rem;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.8),
        2px 2px 6px rgba(0, 0, 0, 0.6),
        3px 3px 10px rgba(0, 0, 0, 0.4),
        4px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll-Triggered Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-up {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for sequential animations */
.scroll-fade-in.delay-1 {
    transition-delay: 0.15s;
}

.scroll-fade-in.delay-2 {
    transition-delay: 0.3s;
}

.scroll-fade-in.delay-3 {
    transition-delay: 0.45s;
}

.scroll-fade-in.delay-4 {
    transition-delay: 0.6s;
}

.scroll-slide-left.delay-1 {
    transition-delay: 0.2s;
}

.scroll-slide-left.delay-2 {
    transition-delay: 0.4s;
}

.scroll-slide-left.delay-3 {
    transition-delay: 0.6s;
}

.scroll-scale-up.delay-1 {
    transition-delay: 0.1s;
}

.scroll-scale-up.delay-2 {
    transition-delay: 0.25s;
}

.scroll-scale-up.delay-3 {
    transition-delay: 0.4s;
}

.scroll-scale-up.delay-4 {
    transition-delay: 0.55s;
}

@keyframes countUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Service Page Specific Styles */

/* Service Hero */
.service-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.service-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    font-weight: 700;
}

.service-hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Timeline */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Service Info Sections */
.service-info-section {
    padding: 80px 0;
}

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.info-card ul {
    list-style-type: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Timeline */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-left::after,
    .timeline-right::after {
        left: 15px;
    }

    .timeline-right {
        left: 0%;
    }
}

/* Specialized Services List (Text Only) */
.specialized-services {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.specialized-services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--primary-color);
}

.specialized-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.specialized-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.specialized-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(159, 8, 13, 0.03);
    transition: width 0.3s ease;
}

.specialized-item:hover::after {
    width: 100%;
}

.specialized-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.specialized-item h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.specialized-item p {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.specialized-item .btn-link {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.specialized-item .btn-link:hover {
    text-decoration: underline;
}