/* ----------------------------------------------------
   ENMAA ARCHITECTURAL - PREMIUM STATIC STYLE SHEET
   Inspired by alemco.ae | Clean Green Engineering Aesthetic
   ---------------------------------------------------- */

:root {
    --primary: #115e59;          /* Deep Teal/Forest Green */
    --primary-hover: #0f766e;    /* Rich green highlight */
    --primary-light: #f0fdfa;    /* Soft mint background */
    --accent: #b45309;           /* Amber/Timber Gold */
    --accent-hover: #92400e;     /* Darker gold */
    --slate-dark: #0f172a;       /* Slate Slate Dark */
    --slate-light: #475569;      /* Body text slate */
    --bg-light: #f8fafc;         /* Main light background */
    --white: #ffffff;
    --border: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--slate-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-dark);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* Section Wrapper */
.section {
    padding: 80px 0;
}
.section-grey {
    background-color: #f1f5f9;
}
.section-dark {
    background-color: var(--slate-dark);
    color: #94a3b8;
}

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.header.scrolled {
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo container */
.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Main Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-dark);
    padding: 8px 0;
    cursor: pointer;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary);
}

/* Dropdown Menu styling */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    padding: 10px 0;
    min-width: 220px;
    transition: var(--transition);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--slate-light);
    font-weight: 500;
}

.dropdown-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--slate-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--slate-dark);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 35px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(17, 94, 89, 0.3);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--slate-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Section Header Typography */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 38px;
    color: var(--slate-dark);
    margin-bottom: 15px;
}

/* Division Grid / Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(17, 94, 89, 0.15);
}

.service-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.service-body {
    padding: 30px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--slate-light);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-item {
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.value-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 13px;
    color: var(--slate-light);
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--slate-light);
}

/* Client Logo ticker */
.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ticker-wrap {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-logo {
    display: inline-block;
    height: 45px;
    margin: 0 40px;
    opacity: 0.65;
    filter: grayscale(100%);
    transition: var(--transition);
}

.ticker-logo:hover {
    opacity: 1;
    filter: none;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Details Page (MEP, Wood, Fit-out) layouts */
.detail-hero {
    height: 400px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    background-color: var(--slate-dark);
}

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

.detail-hero-title {
    font-size: 48px;
    margin-top: 50px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-sub-section {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.detail-sub-section:last-child {
    border-bottom: none;
}

.detail-section-title {
    font-size: 26px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.detail-list {
    margin-top: 20px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-list-item {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
}

.detail-list-item::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

.sidebar-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list-item {
    margin-bottom: 12px;
}

.sidebar-list-item a {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-list-item.active a, .sidebar-list-item a:hover {
    color: var(--primary);
}

/* Portfolio Filter layout */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-tab {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-light);
    background-color: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(17, 94, 89, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-body {
    padding: 20px;
}

.portfolio-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.portfolio-title {
    font-size: 16px;
}

/* Contact page form elements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 20px;
    color: var(--primary);
    margin-top: 3px;
}

.info-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 94, 89, 0.1);
}

/* FAQ Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--slate-dark);
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-light);
}

.accordion-content {
    padding: 20px 24px;
    font-size: 14px;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Footer Section */
.footer {
    background-color: var(--slate-dark);
    color: #94a3b8;
    padding: 80px 0 30px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Responsive queries */
@media (max-width: 991px) {
    .services-grid, .portfolio-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid, .values-grid, .detail-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .services-grid, .portfolio-grid, .footer-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        height: 70px;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        width: 100%;
    }
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }
    .nav-item:hover .dropdown {
        display: block;
    }
}

/* ----------------------------------------------------
   RTL STYLES FOR ARABIC VERSION (html[dir="rtl"])
   ---------------------------------------------------- */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(10px);
}

html[dir="rtl"] .nav-item:hover .dropdown {
    transform: translateX(50%) translateY(0);
}

html[dir="rtl"] .dropdown-link {
    text-align: right;
}

html[dir="rtl"] .hero-subtitle {
    border-left: none;
    border-right: 3px solid var(--primary);
    padding-left: 0;
    padding-right: 15px;
}

html[dir="rtl"] .service-link i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}

html[dir="rtl"] .service-link:hover i {
    transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .detail-section-title {
    border-left: none;
    border-right: 4px solid var(--primary);
    padding-left: 0;
    padding-right: 15px;
}

html[dir="rtl"] .detail-list-item {
    padding-left: 0;
    padding-right: 24px;
}

html[dir="rtl"] .detail-list-item::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .ticker-logo {
    margin: 0 40px;
}

html[dir="rtl"] .info-item {
    text-align: right;
}

html[dir="rtl"] .info-icon {
    margin-right: 0;
    margin-left: 20px;
}

html[dir="rtl"] .footer-col {
    text-align: right;
}

html[dir="rtl"] .social-links {
    justify-content: flex-start;
}

@media (max-width: 767px) {
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        align-items: flex-start;
    }
    html[dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }
    html[dir="rtl"] .dropdown {
        padding-left: 0;
        padding-right: 20px;
        text-align: right;
    }
}
