/* =========================================
   0. Reset & Fonts
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

/* تعريف الخطوط (ارفع ملفات الخطوط في assets/fonts/ وعدل الأسماء هنا حسب الملفات اللي عندك) */
@font-face {
    font-family: 'Stage Grotesk';
    src: url('../fonts/StageGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Stage Grotesk';
    src: url('../fonts/StageGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unitea Sans';
    src: url('../fonts/UniteaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --aot-red: #FF2400;         /* اللون الأحمر الأساسي لهوية AOT */
    --aot-black: #111111;
    --aot-gray: #666666;
    --aot-border: #E5E5E5;
    --aot-bg: #FFFFFF;
    --font-heading: 'Stage Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Unitea Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.aot-projects-archive,
.aot-single-project {
    background-color: var(--aot-bg);
    color: var(--aot-black);
    font-family: var(--font-body);
    padding: 60px 0 100px;
    line-height: 1.6;
}

/* العرض الكامل بهوامش معمارية خفيفة */
.aot-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* === الأزرار (LET'S CONNECT) === */
.aot-cta-btn {
    display: inline-block;
    background-color: var(--aot-black);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.25s ease;
    margin-top: 20px;
}
.aot-cta-btn:hover {
    background-color: var(--aot-red);
    color: #FFFFFF;
}

/* =========================================
   1. صفحة الأرشيف (Our Work)
   ========================================= */
.aot-archive-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}
.aot-archive-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}
.aot-archive-desc {
    font-size: 14px;
    color: var(--aot-gray);
    max-width: 480px;
    margin: 0 0 0 auto;
}

.aot-archive-hero {
    width: 100%;
    margin-bottom: 70px;
    overflow: hidden;
}
.aot-archive-hero img {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 650px;
    object-fit: cover;
    display: block;
}

.aot-section-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 28px;
}

/* شريط الفلترة */
.aot-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}
.aot-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.aot-filter-btn {
    background: transparent;
    border: 1px solid var(--aot-border);
    color: var(--aot-black);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.aot-filter-btn:hover {
    border-color: var(--aot-red);
    color: var(--aot-red);
}
.aot-filter-btn.active {
    background-color: var(--aot-red);
    border-color: var(--aot-red);
    color: #FFFFFF;
}
.aot-project-count {
    font-size: 13px;
    color: var(--aot-gray);
}

/* شبكة الكروت */
.aot-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
    transition: opacity 0.25s ease;
}
.aot-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.aot-card-img-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #F4F4F4;
    margin-bottom: 14px;
}
.aot-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.aot-card-link:hover .aot-card-img {
    transform: scale(1.04);
}
.aot-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
    transition: color 0.2s ease;
}
.aot-card-link:hover .aot-card-title {
    color: var(--aot-red);
}
.aot-card-location {
    font-size: 13px;
    color: var(--aot-gray);
    margin: 0;
}

/* Pagination */
.aot-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 72px;
}
.aot-page-arrow {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--aot-black);
    transition: color 0.2s ease;
}
.aot-page-arrow:hover:not(:disabled) {
    color: var(--aot-red);
}
.aot-page-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.aot-page-indicator {
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* =========================================
   2. صفحة تفاصيل المشروع (Project Overview)
   ========================================= */
.aot-single-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
    align-items: start;
}
.aot-single-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 500;
    margin: 0 0 6px;
}
.aot-single-location {
    font-size: 14px;
    color: var(--aot-gray);
    margin: 0;
}
.aot-single-intro {
    font-size: 14px;
    color: var(--aot-gray);
    max-width: 520px;
    margin-left: auto;
}
.aot-single-intro p {
    margin: 0;
}

.aot-single-hero {
    margin-bottom: 70px;
}
.aot-hero-img,
.aot-hero-video {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 820px;
    object-fit: cover;
    display: block;
}

/* Design Approach */
.aot-approach-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.aot-sub-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}
.aot-approach-text-col p {
    font-size: 13.5px;
    color: var(--aot-gray);
    margin: 0;
}

.aot-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.7fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 70px;
}
.aot-approach-img-box img {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    display: block;
}
.aot-approach-side p {
    font-size: 13.5px;
    color: var(--aot-gray);
    margin: 0;
}

/* Floor Plan / Full Feature Image */
.aot-floorplan-section {
    margin: 70px 0;
    text-align: center;
}
.aot-floorplan-img {
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    object-fit: cover;
    display: block;
}

/* Editorial Rows */
.aot-editorial-row {
    display: grid;
    gap: 40px;
    margin-bottom: 70px;
}
.aot-row-1 {
    grid-template-columns: 0.35fr 1fr;
    align-items: start;
}
.aot-row-2 {
    grid-template-columns: 0.55fr 0.45fr;
    align-items: end;
}
.aot-ed-text p {
    font-size: 13.5px;
    color: var(--aot-gray);
    max-width: 380px;
    margin: 0;
}
.aot-ed-img img {
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
    display: block;
}

.aot-editorial-wide {
    width: 100%;
    max-width: 100%;
    margin: 0 0 70px;
}
.aot-editorial-wide img {
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
    display: block;
}

/* Specs Section */
.aot-specs-section {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 48px;
    align-items: end;
    padding-top: 20px;
}
.aot-specs-table {
    border-top: 1px solid var(--aot-border);
    margin-bottom: 16px;
}
.aot-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--aot-border);
    font-size: 13px;
}
.aot-spec-row span {
    color: var(--aot-gray);
}
.aot-spec-row strong {
    font-weight: 500;
    color: var(--aot-black);
}
.aot-specs-caption {
    font-size: 13.5px;
    color: var(--aot-gray);
    max-width: 460px;
    margin: 0 0 28px;
}
.aot-specs-right img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

/* =========================================
   3. Responsive (التابلت والموبايل)
   ========================================= */
@media (max-width: 992px) {
    .aot-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aot-archive-header,
    .aot-single-header,
    .aot-approach-top,
    .aot-approach-grid,
    .aot-row-1,
    .aot-row-2,
    .aot-specs-section {
        grid-template-columns: 1fr;
    }
    .aot-archive-desc,
    .aot-single-intro {
        margin-left: 0;
    }
    .aot-hero-img,
    .aot-hero-video {
        height: 55vh;
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .aot-projects-grid {
        grid-template-columns: 1fr;
    }
    .aot-container {
        padding: 0 20px;
    }
    .aot-projects-archive,
    .aot-single-project {
        padding: 40px 0 80px;
    }
}
.aot-home-projects {
    width: 100%;
    padding: 60px 0 80px;
    background-color: #FFFFFF;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.aot-home-projects .aot-card-img-wrap,
.aot-projects-archive .aot-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 360px;
    overflow: hidden;
    background-color: #F4F4F4;
    margin-bottom: 14px;
}

.aot-home-projects .aot-card-img,
.aot-projects-archive .aot-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.aot-home-projects-footer {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.aot-explore-btn {
    display: inline-block;
    background-color: #111111;
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background-color 0.25s ease;
}

.aot-explore-btn:hover {
    background-color: #FF2400;
    color: #FFFFFF !important;
}