/* --- Industrial Theme Variables --- */
:root {
    /* Colors */
    --gold: #c5a059;       /* Bright Metallic Gold */
    --gold-dark: #9e7f42;  /* Darker Bronze */
    --charcoal: #1a1a1a;   /* Dark Grey/Black Backgrounds */
    --slate: #2b2b2b;      /* Slightly Lighter Grey */
    --concrete: #f4f4f4;   /* Light Grey Background */
    --white: #ffffff;
    
    --text-main: #111111;
    --text-light: #e0e0e0;
    --text-muted: #666666;
    
    /* Structure */
    --border-color: #d1d1d1;
    --border-thick: 3px solid var(--gold);
    --border-thin: 1px solid var(--border-color);
    
    /* Design System */
    --radius: 2px; /* Sharp corners for industrial look */
    --shadow-sharp: 4px 4px 0px rgba(0,0,0,0.1); /* Hard shadow */
    --shadow-hover: 8px 8px 0px rgba(197, 160, 89, 0.2); /* Gold shadow */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1240px;
    
    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Roboto', sans-serif;
    --font-heading-en: 'Oswald', sans-serif; /* Tall, blocky font for English */
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* LTR Switch */
html[lang="en"] body {
    font-family: var(--font-en);
}
html[lang="en"] h1, 
html[lang="en"] h2, 
html[lang="en"] h3, 
html[lang="en"] .btn {
    font-family: var(--font-heading-en);
    text-transform: uppercase;
    letter-spacing: 1px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.center-text { text-align: center; }

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--charcoal);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 15px 0 25px;
    display: inline-block;
}
.center-text .title-underline { margin: 15px auto 25px; }

/* --- Buttons (Industrial Style) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); /* Chamfered corners */
}

.btn--primary {
    background-color: var(--gold);
    color: var(--charcoal);
}
.btn--primary:hover {
    background-color: var(--gold-dark);
    color: white;
    transform: translateY(-2px);
}

.btn--dark {
    background-color: var(--charcoal);
    color: white;
}
.btn--dark:hover {
    background-color: var(--gold);
    color: var(--charcoal);
}

.btn--outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    clip-path: none; /* No cut corners for outline */
    border-radius: 0;
}
.btn--outline-light:hover {
    background: white;
    color: var(--charcoal);
    border-color: white;
}

.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--border-color);
    clip-path: none;
    border-radius: 4px;
    padding: 8px 16px;
}
.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Header --- */
.header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header__top-bar {
    height: 4px;
    background: repeating-linear-gradient(
        45deg,
        var(--gold),
        var(--gold) 10px,
        var(--gold-dark) 10px,
        var(--gold-dark) 20px
    );
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--charcoal);
    text-transform: uppercase;
}
.logo-icon { color: var(--gold); font-size: 1.2rem; }

.nav__list { display: flex; gap: 40px; }
.nav__link {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1rem;
    position: relative;
}
.nav__link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}
.nav__link:hover:after { width: 100%; }
.nav__link:hover { color: var(--gold); }

.header__actions { display: flex; gap: 20px; align-items: center; }

/* Mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--charcoal);
}

.mobile-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    padding: 30px;
    border-bottom: 4px solid var(--gold);
    transform: translateY(-150%);
    transition: 0.4s ease;
    z-index: 999;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu__list li { text-align: center; margin-bottom: 20px; }

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    background-color: var(--charcoal);
    /* Subtle concrete texture overlay via CSS */
    background-image: 
        linear-gradient(rgba(26,26,26,0.9), rgba(26,26,26,0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .badge {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
    padding: 5px 15px;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
    display: inline-block;
    margin-bottom: 20px;
}

.hero__title {
    color: white;
    font-size: 3.5rem; /* Massive text */
    margin-bottom: 20px;
}

.hero__desc { color: #cccccc; font-size: 1.2rem; max-width: 550px; }

.hero__btns { display: flex; gap: 20px; margin-top: 30px; }

.tech-frame {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.tech-frame:before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
}
.tech-frame:after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
}

/* --- Services (Grid) --- */
.bg-pattern {
    background-color: var(--concrete);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--gold); /* Industrial Accent */
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sharp);
}

.card__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.card__num {
    font-size: 2rem;
    font-weight: 900;
    color: #f0f0f0; /* Subtle background number */
}

.card__icon img { width: 300px; height: 300px; margin-bottom: 20px; }

.card__title { margin-bottom: 15px; font-size: 1.4rem; }

.card__link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--gold);
}

/* --- Features (Dark) --- */
.section-dark {
    background-color: var(--charcoal);
    color: white;
}
.section-dark h2 { color: white; }
.section-dark .title-underline { background-color: var(--gold); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; /* Gap for grid lines */
    background: rgba(255,255,255,0.1); /* Divider color */
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
}

.feature-item {
    background: var(--charcoal);
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s;
}
.feature-item:hover { background: #222; }

.feature-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.feature-item h4 { color: white; margin-bottom: 10px; }
.feature-item p { color: #888; font-size: 0.9rem; margin: 0; }

/* --- About --- */
.stats-grid {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}
.stat-box strong {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
}
.stat-box span {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--charcoal);
    font-weight: 700;
}
.about-image .tech-frame { border-color: var(--charcoal); }

/* --- CTA --- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--gold);
    text-align: center;
    overflow: hidden;
}
/* Hazard stripes background */
.cta-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05) 20px,
        transparent 20px,
        transparent 40px
    );
}
.cta-container { position: relative; z-index: 2; }
.cta-title { color: var(--charcoal); font-size: 2.5rem; }
.cta-section .btn {
    background: var(--charcoal);
    color: white;
    border: none;
}
.cta-section .btn:hover { background: white; color: var(--charcoal); }

/* --- Contact --- */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sharp);
}

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    background: var(--concrete);
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 0; /* Square inputs */
    margin-bottom: 20px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
}

.info-card {
    background: var(--charcoal);
    color: white;
    padding: 40px;
    position: relative;
}
.info-card h3 { color: white; }
.info-divider { width: 40px; height: 3px; background: var(--gold); margin: 20px 0; }
.info-item { color: #ccc; margin-bottom: 20px; display: flex; gap: 15px; }
.info-item .icon { color: var(--gold); }

/* Add this to styles.css */
.map-container {
    height: 250px;
    width: 100%;
    margin-top: 20px;
    border: 2px solid var(--charcoal); /* Industrial Border */
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* INDUSTRIAL EFFECT: Makes the map Black & White to match your site */
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease;
}

/* Bring back color when user hovers over the map */
.map-container:hover iframe {
    filter: grayscale(0%);
}
/* --- Footer --- */
.footer {
    background: #111;
    color: #888;
    padding: 80px 0 30px;
    border-top: 5px solid var(--gold);
}
.footer h3, .footer h4 { color: white; margin-bottom: 25px; text-transform: uppercase; }
.footer ul li { margin-bottom: 12px; }
.footer a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 10px; }
.social-box {
    width: 40px; height: 40px;
    background: #222;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.social-box:hover { background: var(--gold); }
.footer__bottom {
    margin-top: 60px;
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Animation Utilities --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .display-desktop { display: none; }
    .two-col-grid, .hero__container, .footer__container { grid-template-columns: 1fr; gap: 40px; }
    .hero { text-align: center; padding: 60px 0; }
    .hero__btns { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .card { text-align: center; }
    .card__header { justify-content: center; }
}