/* =========================================================
   Alamiah Building Company K.S.C.C. — Distinct Corporate Design
   Palette: Deep teal, warm gold, terracotta, warm stone neutrals
   Typography: Playfair Display (headings) + Inter (body)
   ========================================================= */

:root {
    --primary: #0d3b3b;
    --primary-dark: #082929;
    --primary-light: #1a5555;
    --secondary: #c9a96e;
    --secondary-dark: #b08b4d;
    --accent: #c17c53;
    --accent-light: #d99a72;
    --dark: #1f1f1f;
    --text: #333333;
    --text-light: #6b6b6b;
    --bg: #faf9f6;
    --bg-alt: #f0ede5;
    --bg-warm: #e8e4dc;
    --border: #d6d1c8;
    --shadow: 0 10px 40px rgba(13, 59, 59, 0.08);
    --shadow-hover: 0 16px 50px rgba(13, 59, 59, 0.14);
    --radius: 2px;
    --radius-lg: 4px;
    --max-width: 1240px;
    --header-height: 86px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', 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: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1.1rem; }

section { padding: 5.5rem 1.25rem; }

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

.section-header { margin-bottom: 3.5rem; text-align: left; }
.section-header h2 { font-size: 2.4rem; margin-bottom: 0.8rem; display: inline-block; position: relative; }
.section-header h2::after {
    content: ''; display: block; width: 70px; height: 4px; background: var(--secondary);
    margin-top: 0.75rem;
}
.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.9rem; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1.5px;
}

.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: rgba(250,249,246,0.95); color: var(--primary); border-color: transparent; }
.btn-light:hover { background: var(--secondary); color: var(--primary-dark); }

/* Top Bar */
.top-bar {
    background: var(--primary-dark); color: rgba(250,249,246,0.78);
    padding: 0.5rem 1.25rem; font-size: 0.78rem; letter-spacing: 0.5px; 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(250,249,246,0.78); }
.top-bar a:hover { color: var(--secondary); }

/* Header */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(250,249,246,0.97); backdrop-filter: blur(8px);
    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: 54px; 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.9rem; color: var(--text);
    font-weight: 500; font-size: 0.82rem; letter-spacing: 0.5px;
    text-transform: uppercase; position: relative;
}
.nav-list a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; right: 50%; height: 2px;
    background: var(--secondary); transition: var(--transition);
}
.nav-list a:hover::after, .nav-list a.active::after { left: 0.9rem; right: 0.9rem; }
.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(--secondary); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: var(--bg);
    min-width: 230px; 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: 3px solid var(--secondary);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 0.7rem 1.3rem; font-size: 0.78rem; border-bottom: 1px solid var(--border); }
.dropdown-menu a::after { 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: 2px; background: var(--primary); border-radius: 1px; transition: var(--transition); }

/* Hero — split magazine layout */
.hero {
    position: relative; min-height: 84vh; display: flex; align-items: center;
    background: var(--bg); overflow: hidden;
}
.hero .container {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
    position: relative; z-index: 2;
}
.hero-content { padding: 2rem 0; }
.hero-kicker {
    display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent); margin-bottom: 1.25rem; border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.4rem;
}
.hero-content h1 { font-size: 3.2rem; margin-bottom: 1.25rem; color: var(--primary); text-transform: none; letter-spacing: -0.02em; }
.hero-content h1 span { color: var(--accent); font-style: italic; }
.hero-content p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-hover); border: 8px solid white;
}
.hero-frame img { width: 100%; height: 520px; object-fit: cover; }
.hero-frame::before {
    content: ''; position: absolute; inset: 0; border: 1px solid var(--secondary); transform: translate(18px, 18px);
    border-radius: var(--radius-lg); z-index: -1;
}
.hero-badge {
    position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--primary);
    color: var(--secondary); padding: 1.25rem 1.5rem; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; line-height: 1; }
.hero-badge span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; }

.hero-dots { display: none; }

/* 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.2rem; margin-bottom: 1rem; }
.intro-content h2 span { color: var(--accent); font-style: italic; }
.intro-content p { color: var(--text-light); margin-bottom: 1rem; }
.intro-stats { display: flex; gap: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.stat-card { text-align: left; }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; color: var(--primary); margin-bottom: 0.2rem; }
.stat-card span { font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.intro-image::before {
    content: ''; position: absolute; top: 1.25rem; left: -1.25rem; right: 1.25rem; bottom: -1.25rem;
    border: 2px solid var(--secondary); border-radius: var(--radius-lg); z-index: -1;
}

/* Sectors */
.sectors-section { background: var(--bg-alt); }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.sector-card {
    background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
    border-bottom: 4px solid var(--secondary);
}
.sector-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.sector-image { height: 210px; overflow: hidden; }
.sector-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sector-card:hover .sector-image img { transform: scale(1.05); }
.sector-body { padding: 1.9rem; flex: 1; display: flex; flex-direction: column; }
.sector-body h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.sector-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.2rem; flex: 1; }
.sector-body a { font-weight: 600; font-size: 0.82rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.sector-body a:hover { color: var(--primary); }

/* Projects */
.projects-section { background: var(--bg); }
.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-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.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(--secondary); color: var(--primary-dark); padding: 0.35rem 0.9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.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; }

/* Clients */
.clients-section { background: var(--bg-alt); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; align-items: center; }
.client-card {
    background: white; padding: 1.5rem; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center; height: 120px;
    box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--secondary); }
.client-card img { max-height: 75px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(30%); transition: var(--transition); }
.client-card:hover img { filter: grayscale(0%); }

/* Values */
.values-section { background: var(--bg); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.value-card { background: var(--bg); padding: 2.2rem; border-radius: var(--radius-lg); text-align: left; border: 1px solid var(--border); transition: var(--transition); }
.value-card:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.value-icon { font-size: 2.4rem; margin-bottom: 1.1rem; color: var(--accent); }
.value-card h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.value-card p { color: var(--text-light); font-size: 0.94rem; margin-bottom: 0; }

/* CTA */
.cta-banner {
    background: var(--primary); color: var(--bg);
    padding: 4.5rem 1.25rem; text-align: center; position: relative;
}
.cta-banner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.cta-banner h2 { color: var(--bg); font-size: 2.2rem; margin-bottom: 0.9rem; }
.cta-banner p { font-size: 1.05rem; opacity: 0.85; max-width: 700px; margin: 0 auto 1.5rem; }

/* Page Header */
.page-header {
    background: var(--primary); color: var(--bg); padding: 6rem 1.25rem 4rem;
    text-align: left; position: relative; overflow: hidden;
}
.page-header::after {
    content: ''; position: absolute; right: 0; bottom: 0; width: 40%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(201,169,110,0.08) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--bg); font-size: 2.8rem; margin-bottom: 0.7rem; }
.breadcrumbs { display: flex; gap: 0.6rem; font-size: 0.85rem; }
.breadcrumbs a { color: rgba(250,249,246,0.75); }
.breadcrumbs a:hover { color: var(--secondary); }
.breadcrumbs span { color: rgba(250,249,246,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 span { color: var(--accent); font-style: italic; }
.content-block p { color: var(--text-light); margin-bottom: 1rem; }
.content-block ul { margin: 1rem 0 1.25rem 1.5rem; 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(--secondary); font-weight: 700; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-item {
    display: flex; gap: 1rem; background: var(--bg); padding: 1.4rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition);
}
.feature-item:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.feature-icon { flex-shrink: 0; width: 52px; height: 52px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1.3rem; }
.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: 46px; height: 46px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1.1rem; flex-shrink: 0; }
.contact-detail strong { display: block; color: var(--primary); margin-bottom: 0.2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-detail span { color: var(--text-light); font-size: 0.94rem; }
.contact-form { background: white; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; 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(201,169,110,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(250,249,246,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: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(250,249,246,0.2); display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 0.8rem; }
.footer-social a:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.footer-links h4 { color: var(--secondary); font-size: 0.85rem; 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(250,249,246,0.65); font-size: 0.88rem; }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(250,249,246,0.12); padding: 1.25rem 1.25rem; text-align: left; font-size: 0.8rem; color: rgba(250,249,246,0.5); }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--secondary); color: var(--primary-dark); border-radius: 50%; 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; }
.back-to-top.visible { opacity: 1; visibility: visible; }

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

/* Print report styles override */
@media print {
    .header, .top-bar, .footer, .back-to-top, .mobile-menu-toggle { display: none !important; }
}

/* 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); border-radius: 0; }
    .nav-list a::after { 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.2rem; }
    .hero-content p { max-width: none; }
    .hero-media { order: 1; }
    .hero-frame img { height: 320px; }
    .hero-badge { left: 1rem; bottom: -1rem; }
    .intro-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
    .intro-image { order: -1; }
    .intro-image::before { display: none; }
    .intro-stats { flex-direction: column; gap: 1rem; }
    .page-header h1 { font-size: 2rem; }
}

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