/**
 * Theme Name: AL Azhar Auto
 * Theme URI: https://al-azhar-auto.local
 * Description: Professional WordPress theme for truck maintenance services in Fujairah, UAE
 * Version: 1.0.0
 * Author: AL AZHAR AUTO
 * Author URI: https://al-azhar-auto.local
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: al-azhar-auto
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --white: #ffffff;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1f3246 0%, var(--primary-color) 65%, #2f86c5 100%);
    color: var(--white);
    padding: 18px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    position: sticky;
    top: 0;
    z-index: 1200;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-branding {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-description {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 2px;
    max-width: 320px;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contact-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.header-contact-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* Navigation */
.site-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav li {
    display: flex;
    align-items: center;
}

.site-nav a {
    color: var(--white);
    font-weight: 500;
    padding: 6px 0;
}

.site-nav a:hover {
    color: #d7edff;
}

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

.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Contact Info Bar */
.contact-info-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 20px;
}

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

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 36px;
    color: var(--white);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex-grow: 1;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    display: block;
}

.contact-value:hover {
    color: var(--light-gray);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
    color: var(--white);
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    font-size: 14px;
    flex-grow: 1;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* About Us Section */
.about-us-section {
    padding: 60px 20px;
    margin-bottom: 50px;
    background-color: var(--light-gray);
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-us-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-us-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-us-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-us-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item h4 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    margin-bottom: 50px;
}

.feature-item {
    background-color: var(--light-gray);
    padding: 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    border-radius: 4px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 16px;
}

/* Why Choose Us */
.why-us-section {
    background: linear-gradient(
179deg, #db3131 0%, #9f1d1d 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.why-us-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

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

.why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.why-us-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* Call Button */
.call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b4a);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.call-button:hover {
    background: linear-gradient(135deg, #c0392b, #d64541);
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    color: var(--white);
}

.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2500;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal__dialog {
    position: relative;
    width: min(100%, 430px);
    background: var(--white);
    color: var(--text-color);
    border-radius: 18px;
    padding: 30px 24px 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.contact-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal__dialog h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-modal__dialog p {
    color: #666;
    margin-bottom: 16px;
}

.contact-modal__list {
    display: grid;
    gap: 12px;
}

.contact-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    color: var(--primary-color);
    font-weight: 600;
}

.contact-modal__item i {
    color: var(--secondary-color);
    font-size: 18px;
}

.contact-modal__item--whatsapp {
    background: linear-gradient(135deg, #f0fff8, #e3f8e9);
}

.contact-modal__item--whatsapp i {
    color: #25D366;
}

.footer-cta-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.footer-cta-text {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-section a {
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .call-button {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .about-us-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .tagline {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
