/* =========================================================
   Al-Bahar National — Creative Corporate Design
   Palette: Warm slate blue, rich gold, terracotta, warm neutrals
   Typography: Manrope (headings) + Inter (body)
   Vibe: Bold, geometric, modern industrial with diagonal accents
   ========================================================= */

:root {
    --primary: #1e3a5f;
    --primary-dark: #13283f;
    --primary-light: #2a4f7a;
    --secondary: #d4a017;
    --secondary-dark: #b88910;
    --accent: #c75b39;
    --accent-light: #e07b56;
    --dark: #1a1a1a;
    --text: #2d2d2d;
    --text-light: #6e6e6e;
    --bg: #fcfbfa;
    --bg-alt: #f3f1ee;
    --bg-warm: #ebe7e2;
    --border: #ddd9d3;
    --shadow: 0 8px 32px rgba(30, 58, 95, 0.09);
    --shadow-hover: 0 14px 44px rgba(30, 58, 95, 0.15);
    --radius: 0px;
    --radius-sm: 0px;
    --max-width: 1280px;
    --header-height: 88px;
    --transition: all 0.3s ease;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.15; color: var(--primary); font-weight: 800; letter-spacing: -0.02em; }

p { margin-bottom: 1rem; }

section { padding: 5rem 1.25rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 0.7rem; display: inline-block; }
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 5px; background: var(--secondary); margin-top: 0.7rem;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 650px; margin: 0; }
.section-header.text-center { text-align: center; }
.section-header.text-center h2::after { margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 1.8rem; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1.5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--secondary); }

.btn-secondary { background: var(--secondary); color: var(--primary-dark); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg); }

.btn-light { background: var(--bg); color: var(--primary); border-color: var(--bg); }
.btn-light:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }

/* Top Bar */
.top-bar {
    background: var(--primary-dark); color: rgba(252,251,250,0.78);
    padding: 0.5rem 1.25rem; font-size: 0.78rem; letter-spacing: 0.6px; text-transform: uppercase;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar a { color: rgba(252,251,250,0.78); }
.top-bar a:hover { color: var(--secondary); }

/* Header */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(252,251,250,0.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); height: var(--header-height);
}
.header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo img { height: 58px; width: auto; max-width: 320px; object-fit: contain; }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 0.1rem; }
.nav-list a {
    display: block; padding: 0.55rem 0.85rem; color: var(--text);
    font-weight: 600; font-size: 0.78rem; letter-spacing: 0.8px;
    text-transform: uppercase; position: relative;
}
.nav-list a::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--accent); transition: var(--transition);
}
.nav-list a:hover::before, .nav-list a.active::before { width: 100%; }
.nav-list a:hover, .nav-list a.active { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-toggle::after { content: '▾'; margin-left: 0.35rem; font-size: 0.65rem; color: var(--accent); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--bg);
    min-width: 240px; box-shadow: var(--shadow-hover); border-radius: var(--radius);
    padding: 0.6rem 0; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: var(--transition); border-top: 4px solid var(--accent);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 0.7rem 1.3rem; font-size: 0.76rem; border-bottom: 1px solid var(--border); }
.dropdown-menu a::before { display: none; }

.mobile-menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.mobile-menu-toggle span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 1px; transition: var(--transition); }

/* Hero — diagonal split */
.hero {
    position: relative; min-height: 86vh; display: flex; align-items: center;
    background: var(--bg); overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 140%;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
    transform: skewX(-8deg); z-index: 0;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; position: relative; z-index: 2; }
.hero-content { padding: 2rem 0; }
.hero-kicker {
    display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2.5px; color: var(--accent); margin-bottom: 1.25rem;
    border-left: 4px solid var(--secondary); padding-left: 0.8rem;
}
.hero-content h1 { font-size: 3.2rem; margin-bottom: 1.2rem; color: var(--primary); text-transform: none; letter-spacing: -0.03em; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-frame {
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
    box-shadow: var(--shadow-hover);
}
.hero-frame img { width: 100%; height: 480px; object-fit: cover; }
.hero-frame::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(30,58,95,0.25) 0%, transparent 60%);
}
.hero-badge {
    position: absolute; bottom: -1.5rem; right: -1.5rem;
    background: var(--secondary); color: var(--primary-dark);
    padding: 1.25rem 1.6rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    text-align: center; box-shadow: var(--shadow); z-index: 3;
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 2rem; line-height: 1; }
.hero-badge span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }

/* Intro */
.intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intro-content h2 { font-size: 2.1rem; margin-bottom: 1rem; }
.intro-content h2::after { content: ''; display: block; width: 60px; height: 5px; background: var(--secondary); margin-top: 0.7rem; }
.intro-content p { color: var(--text-light); margin-bottom: 1rem; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-card {
    background: var(--bg-alt); padding: 1.25rem; border-left: 4px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); margin-bottom: 0.2rem; }
.stat-card span { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 380px; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }

/* Divisions */
.divisions-section { background: var(--primary); color: var(--bg); position: relative; }
.divisions-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}
.divisions-section .section-header h2 { color: var(--bg); }
.divisions-section .section-header h2::after { background: var(--secondary); }
.divisions-section .section-header p { color: rgba(252,251,250,0.75); }
.divisions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.division-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    padding: 2.25rem; text-align: center; transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.division-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-6px); }
.division-icon { width: 90px; height: 90px; margin: 0 auto 1.25rem; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.division-icon img { width: 70px; height: 70px; object-fit: contain; }
.division-card h3 { color: var(--secondary); font-size: 1.4rem; margin-bottom: 0.7rem; }
.division-card p { color: rgba(252,251,250,0.75); font-size: 0.95rem; margin-bottom: 1.25rem; }
.division-card a { font-weight: 700; font-size: 0.76rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }
.division-card a:hover { color: var(--bg); }

/* Projects */
.projects-section { background: var(--bg-alt); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.project-card {
    background: var(--bg); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.project-image { position: relative; height: 220px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-tag {
    position: absolute; top: 1rem; left: 0; background: var(--accent); color: white;
    padding: 0.35rem 0.9rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.project-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0; }

/* Values */
.values-section { background: var(--bg); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--bg); padding: 2.2rem; border: 1px solid var(--border); transition: var(--transition); clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.value-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.value-icon { width: 52px; height: 52px; background: var(--primary); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.2rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.value-card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.value-card p { color: var(--text-light); font-size: 0.94rem; margin-bottom: 0; }

/* Clients */
.clients-section { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; align-items: center; }
.client-card {
    background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; height: 120px;
    transition: var(--transition); border: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.client-card:hover { background: white; border-color: var(--secondary); box-shadow: var(--shadow); }
.client-card img { max-height: 80px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(40%); transition: var(--transition); }
.client-card:hover img { filter: grayscale(0%); }

/* CTA */
.cta-banner {
    background: var(--primary); color: var(--bg); padding: 4.5rem 1.25rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
    background: rgba(255,255,255,0.03); transform: skewX(-12deg);
}
.cta-banner h2 { color: var(--bg); font-size: 2.2rem; margin-bottom: 0.9rem; position: relative; }
.cta-banner p { font-size: 1.05rem; opacity: 0.85; max-width: 700px; margin: 0 auto 1.5rem; position: relative; }

/* Page Header */
.page-header {
    background: var(--primary); color: var(--bg); padding: 6.5rem 1.25rem 4.5rem;
    text-align: left; position: relative; overflow: hidden;
}
.page-header::after {
    content: ''; position: absolute; right: -10%; top: -50%; width: 50%; height: 200%;
    background: rgba(212,160,23,0.08); transform: skewX(-10deg);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--bg); font-size: 2.6rem; margin-bottom: 0.7rem; }
.breadcrumbs { display: flex; gap: 0.6rem; font-size: 0.85rem; }
.breadcrumbs a { color: rgba(252,251,250,0.75); }
.breadcrumbs a:hover { color: var(--secondary); }
.breadcrumbs span { color: rgba(252,251,250,0.45); }

/* Content */
.content-section { padding: 4rem 1.25rem; }
.content-section.alt { background: var(--bg-alt); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.content-block h2 { font-size: 2rem; margin-bottom: 1rem; }
.content-block h2::after { content: ''; display: block; width: 60px; height: 5px; background: var(--secondary); margin-top: 0.7rem; }
.content-block p { color: var(--text-light); margin-bottom: 1rem; }
.content-block ul { margin: 1rem 0 1.25rem 0; list-style: none; }
.content-block ul li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: var(--text-light); }
.content-block ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-item {
    display: flex; gap: 1.1rem; background: var(--bg); padding: 1.4rem;
    border: 1px solid var(--border); transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.feature-item:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.feature-icon { flex-shrink: 0; width: 52px; height: 52px; background: var(--primary); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.feature-text h4 { font-size: 1.1rem; margin-bottom: 0.3rem; font-family: var(--font-heading); }
.feature-text p { font-size: 0.9rem; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-detail { display: flex; gap: 1.1rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-detail i { width: 48px; height: 48px; background: var(--primary); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail strong { display: block; color: var(--primary); margin-bottom: 0.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-detail span { color: var(--text-light); font-size: 0.95rem; }
.contact-form { background: white; padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 700; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; background: var(--bg); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.footer { background: var(--primary-dark); color: rgba(252,251,250,0.7); padding: 4rem 1.25rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 58px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(252,251,250,0.2); display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 0.8rem; font-weight: 700; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.footer-social a:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.footer-links h4 { color: var(--secondary); font-size: 0.8rem; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-body); font-weight: 700; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(252,251,250,0.65); font-size: 0.88rem; }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(252,251,250,0.12); padding: 1.25rem 1.25rem; text-align: left; font-size: 0.78rem; color: rgba(252,251,250,0.5); }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: var(--secondary); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); border: none; z-index: 999; font-size: 1.2rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.back-to-top.visible { opacity: 1; visibility: visible; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .mobile-menu-toggle { display: flex; }
    .nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--bg); padding: 1.5rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; box-shadow: var(--shadow-hover); }
    .nav.active { transform: translateX(0); }
    .nav-list { flex-direction: column; gap: 0.5rem; }
    .nav-list a { padding: 0.9rem; border-bottom: 1px solid var(--border); }
    .nav-list a::before { display: none; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; display: none; padding-left: 1rem; }
    .dropdown.open .dropdown-menu { display: block; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-content { order: 2; text-align: center; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { max-width: none; }
    .hero-media { order: 1; }
    .hero-frame img { height: 320px; }
    .hero-badge { right: 1rem; bottom: -1rem; }
    .intro-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
    .intro-image { order: -1; }
    .intro-stats { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    :root { --header-height: 74px; }
    .logo img { height: 48px; }
    section { padding: 3.5rem 1rem; }
    .section-header h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-frame img { height: 260px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}
