@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Poppins:wght@400;600;700&display=swap');

:root {
    --navy: #0a2342;
    --navy-2: #12345c;
    --gold: #c5a059;
    --gold-2: #e0c07a;
    --light: #f4f7fb;
    --text: #1d2a3a;
    --muted: #66758a;
    --white: #ffffff;
    --line: #e4e9f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', 'Poppins', Tahoma, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    padding-bottom: 74px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(10, 35, 66, .18);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    flex: 0 0 auto;
}
.logo-mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .04em;
}
.logo-text { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.navbar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-inline-start: auto;
}
.navbar a {
    color: #e8eef6;
    font-weight: 600;
    white-space: nowrap;
    font-size: .95rem;
}
.navbar a:hover,
.navbar a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn,
.admin-link {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .85rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 35, 66, .86), rgba(10, 35, 66, .42));
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; max-width: 720px; }
.hero-content span {
    color: var(--gold);
    letter-spacing: .18em;
    font-weight: 700;
    font-size: .82rem;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.2;
    margin: 10px 0 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    border: 0;
    padding: 12px 22px;
    cursor: pointer;
    font-family: inherit;
}
.btn.ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gold);
}

/* Counters */
.counters {
    background: var(--navy);
    color: var(--white);
    padding: 36px 0;
}
.counters .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
.counters strong {
    display: block;
    font-size: 2.2rem;
    color: var(--gold);
}
.counters span { color: #cdd7e4; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--light); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); }
.section-head p { color: var(--muted); }

.about-grid,
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.about-grid img { width: 100%; height: 360px; object-fit: cover; }
.lead { font-size: 1.15rem; color: var(--navy-2); margin-bottom: 12px; }

.cards,
.projects-grid,
.team-grid,
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 22px;
    box-shadow: 0 10px 24px rgba(10, 35, 66, .05);
}
.card h3 { color: var(--navy); margin-bottom: 8px; }
.price { color: var(--gold); font-size: 1.4rem; font-weight: 800; margin: 8px 0; }
.card ul { padding-inline-start: 18px; color: var(--muted); }

.project-card { position: relative; min-height: 260px; overflow: hidden; }
.project-card img { width: 100%; height: 260px; object-fit: cover; }
.project-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(10, 35, 66, .88));
    color: var(--white);
}

.member { text-align: center; }
.member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--gold);
}
.role { color: var(--gold); font-weight: 700; }

.video-card {
    background: var(--navy);
    color: var(--white);
    min-height: 210px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
}
.video-card iframe { width: 100%; height: 210px; border: 0; }
.play {
    width: 58px;
    height: 58px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 1.2rem;
}

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 11px 12px;
    font-family: inherit;
    background: var(--white);
}
.info-box { background: var(--navy); color: var(--white); padding: 28px; }
.info-box p { margin: 8px 0; color: #d7e1ee; }

.alert { padding: 12px 16px; margin: 16px 0; }
.alert.ok { background: #e8f7ee; color: #146c2e; }
.alert.err { background: #fdecec; color: #9b1c1c; }

table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; }

.page-hero {
    background: linear-gradient(90deg, var(--navy), var(--navy-2));
    color: var(--white);
    padding: 48px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.footer {
    background: #07182e;
    color: #c5d0dc;
    padding: 36px 0 90px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer strong { color: var(--gold); }
.footer a { color: #dbe4ef; }

.mobile-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    background: var(--navy);
    border-top: 2px solid var(--gold);
    z-index: 90;
}
.mobile-nav a {
    flex: 1;
    text-align: center;
    color: #e8eef6;
    font-size: .68rem;
    padding: 8px 0 10px;
}
.mobile-nav span { display: block; font-size: 1.15rem; }

@media (min-width: 961px) {
    body { padding-bottom: 0; }
    .mobile-nav { display: none; }
    .footer { padding-bottom: 36px; }
}

@media (max-width: 960px) {
    .navbar { display: none !important; }
    .nav-actions { margin-inline-start: auto; }
    .counters .grid,
    .cards,
    .projects-grid,
    .team-grid,
    .videos-grid,
    .about-grid,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }
}
