/* IIC Group — palette taken from the company profile booklet */
:root {
    --navy: #0a1a33;
    --navy-2: #12284a;
    --green: #0d3b2e;
    --green-2: #14543f;
    --gold: #c9a24d;
    --gold-light: #e4c778;
    --cream: #f6f1e4;
    --paper: #fbf9f3;
    --ink: #1c2434;
    --muted: #5c6577;
    --line: #e3dccb;
    --radius: 14px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --arabic: 'Amiri', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6rem; color: var(--navy); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
[lang="ar"] { font-family: var(--arabic); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: .2s; cursor: pointer; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(201, 162, 77, .15); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 26, 51, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 162, 77, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 9px;
    border: 1px solid rgba(201, 162, 77, .38);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand:hover .brand-logo-wrap {
    transform: translateY(-1px);
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(201, 162, 77, .3);
}
.brand-logo {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: #dfe6f2; text-decoration: none; font-size: .92rem; }
.nav a:not(.btn):hover { color: var(--gold-light); }
.nav .btn-gold { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { color: #fff; text-align: center; padding: 110px 0 100px; position: relative; overflow: hidden;
    background: radial-gradient(1200px 500px at 50% -10%, rgba(201, 162, 77, .22), transparent 60%),
                linear-gradient(160deg, var(--navy) 0%, #0b2540 55%, var(--green) 130%); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 900px; transform: translateX(-50%);
    border: 2px solid rgba(201, 162, 77, .25); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--gold-light); margin-bottom: .8rem; }
.eyebrow.dark { color: #9a7a2f; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-sub { color: var(--gold-light); font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: 1.2rem; }
.hero-lead { color: #cdd7e8; font-size: 1.1rem; max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 2.4rem; }
.hero-tag { font-size: 1.7rem; color: var(--gold); margin: 0; }
.hero-tag-en { font-size: .85rem; color: #aebbd2; margin: 0; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: linear-gradient(160deg, var(--navy), #0b2540); color: #dfe6f2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-green { background: linear-gradient(160deg, var(--green), #0a2b22); color: #dcebe4; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { font-size: 1.1rem; color: var(--muted); }
.lead.light { color: #c9d4e6; }
.section-green .lead.light { color: #cfe3d9; }
.muted-light { color: #b6c3da; }
.center-text { text-align: center; }
.closing { text-align: center; font-family: var(--serif); font-size: 1.25rem; color: #8a6a1f; margin-top: 2.4rem; }
.subhead { text-align: center; font-size: 1.5rem; margin: 4rem 0 1rem; }
.subhead.dark { color: var(--navy); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card.arch { border-top: 3px solid var(--gold); border-radius: 80px 80px var(--radius) var(--radius); padding-top: 2.6rem; text-align: center; }
.card .ar { color: #8a6a1f; font-size: 1.3rem; margin-bottom: .6rem; }
.card-dark { background: rgba(255, 255, 255, .06); border-color: rgba(201, 162, 77, .35); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #cfe3d9; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; margin-bottom: .8rem; }

.quote { text-align: center; margin: 0 auto 3rem; max-width: 640px; }
.quote p { font-size: 2.3rem; color: var(--gold); margin: 0; }
.quote footer { color: var(--muted); font-style: italic; }
.quote footer span { font-style: normal; font-size: .85rem; }

/* ---------- Bridge ---------- */
.bridge { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 1.4rem; align-items: stretch; }
.bridge-side, .bridge-mid { border-radius: var(--radius); padding: 1.8rem; }
.bridge-side { background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 162, 77, .3); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(201, 162, 77, .15); color: var(--gold-light); }
.bridge-mid { background: #fff; color: var(--ink); text-align: center; border: 2px solid var(--gold); }
.bridge-mid p { font-weight: 600; color: var(--navy); }
.bridge-mid ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; }
.bridge-mid strong { display: block; background: var(--gold); color: var(--navy); padding: .8rem; border-radius: 10px; font-size: .95rem; }

.chain { display: grid; grid-template-columns: repeat(8, 1fr); gap: .6rem; margin-top: 2rem; counter-reset: c; }
.chain li { background: linear-gradient(160deg, var(--gold-light), var(--gold)); color: var(--navy); font-size: .8rem; font-weight: 600; text-align: center; padding: .9rem .4rem; border-radius: 10px; }
.chain li span { display: block; font-family: var(--serif); font-size: 1.3rem; }
.chain li:nth-child(n+6) { background: linear-gradient(160deg, #fff, #dfe5ee); }

/* ---------- Portfolio ---------- */
.unit-card { text-decoration: none; transition: .2s; display: flex; flex-direction: column; gap: .4rem; border-top: 3px solid var(--gold); }
.unit-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 26, 51, .12); }
.sector { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #9a7a2f; font-weight: 600; }
.unit-card .more { margin-top: auto; padding-top: .8rem; font-size: .85rem; color: var(--navy); font-weight: 600; }

/* ---------- Unit sections ---------- */
.unit { padding: 72px 0; border-top: 1px solid var(--line); }
.unit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.unit-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.unit-headline { font-family: var(--serif); font-size: 1.3rem; color: #8a6a1f; }
.unit-links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.ticks li { position: relative; padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 77, .2); }
.note { margin-top: 1.4rem; padding: 1rem 1.2rem; font-size: .88rem; color: var(--muted); background: rgba(13, 59, 46, .06); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: relative; }
.steps li span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.steps h4 { font-size: 1.05rem; }
.steps p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contacts .card { text-align: center; }
.contacts .card a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: .92rem; }
.contacts .card a:hover { color: #8a6a1f; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.6rem; padding: 2rem; background: var(--cream); border-radius: var(--radius); }
.contact-meta h4 { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #9a7a2f; margin: 1rem 0 .3rem; }
.contact-meta h4:first-child { margin-top: 0; }
.contact-meta p { margin-bottom: .6rem; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebbd2; font-size: .85rem; padding: 28px 0; border-top: 2px solid var(--gold); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner strong { display: block; color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Grid 2 & QR / Barcode Section ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.qr-grid { margin-top: 1.5rem; align-items: stretch; }
.qr-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 26, 51, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 26, 51, .09);
}
.qr-card-header {
    margin-bottom: 1.2rem;
    width: 100%;
}
.qr-badge {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.qr-badge-navy {
    background: rgba(10, 26, 51, .08);
    color: var(--navy);
    border: 1px solid rgba(10, 26, 51, .18);
}
.qr-badge-green {
    background: rgba(13, 59, 46, .1);
    color: var(--green);
    border: 1px solid rgba(13, 59, 46, .22);
}
.qr-card-title {
    font-size: 1.35rem;
    margin-bottom: .35rem;
    color: var(--navy);
}
.qr-card-subtitle {
    font-size: .95rem;
    color: #8a6a1f;
    font-weight: 600;
    margin-bottom: 0;
}
.qr-scanner-box {
    margin: 1.2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qr-frame {
    position: relative;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(201, 162, 77, .3);
}
.qr-frame .corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold);
    border-style: solid;
    pointer-events: none;
}
.qr-frame .corner.tl { top: 6px; left: 6px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.qr-frame .corner.tr { top: 6px; right: 6px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.qr-frame .corner.bl { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.qr-frame .corner.br { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }
.qr-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}
.qr-scan-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .9rem;
    font-size: .84rem;
    color: var(--muted);
}
.qr-icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}
.qr-card-body {
    width: 100%;
    margin-top: .6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.qr-desc {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}
.qr-actions {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.qr-btn-main {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.btn-icon {
    display: inline-block;
    vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .chain { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 10px 20px 20px; display: none; border-bottom: 1px solid rgba(201, 162, 77, .35); }
    .nav.open { display: flex; }
    .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav .btn { margin-top: .8rem; text-align: center; border-bottom: 0; }
    .grid-3, .grid-2, .bridge, .unit-grid, .contact-meta { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .hero { padding: 80px 0 70px; }
}
@media (max-width: 560px) {
    .grid-5, .grid-4, .steps { grid-template-columns: 1fr; }
    .chain { grid-template-columns: repeat(2, 1fr); }
}
