:root {
    --gold: #c9a227;
    --gold-light: #e6c65c;
    --gold-dark: #9c7c14;
    --navy: #0f1b2d;
    --navy-2: #172a45;
    --soft: #f7f5ef;
    --text: #22262e;
    --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', system-ui, sans-serif;
    color: var(--text);
    background: #fff;
}
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; color: var(--navy) !important; }
.bg-soft { background: var(--soft); }
.bg-navy { background: var(--navy); }
.pre-line { white-space: pre-line; }

/* Buttons */
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); border: 0; font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold-dark); font-weight: 700; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-dark-navy { background: var(--navy); color: #fff; font-weight: 700; }
.btn-dark-navy:hover { background: var(--navy-2); color: var(--gold-light); }
.link-gold { color: var(--gold-dark); font-weight: 700; }

/* Topbar + nav */
.topbar { background: var(--navy); color: #cfd6e0; font-size: .85rem; padding: 6px 0; }
.topbar a { color: #cfd6e0; }
.topbar i { color: var(--gold); margin-inline-end: 4px; }
.social a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--gold-light); }
.social a:hover { background: var(--gold); color: var(--navy); }

.main-nav { background: #fff; box-shadow: 0 2px 18px rgba(15,27,45,.08); padding: 10px 0; }
.main-nav .nav-link { font-weight: 600; color: var(--navy); position: relative; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--gold-dark); }
.main-nav .nav-link.active::after { content: ""; position: absolute; bottom: 0; right: 20%; left: 20%; height: 3px; border-radius: 3px; background: var(--gold); }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--navy); font-weight: 800; font-size: 1.5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--navy); font-size: 1.1rem; }
.brand-text small { color: var(--gold-dark); font-size: .75rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 30px; border: 1px solid #e7e0c9; background: var(--soft); color: var(--navy); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.lang-switch:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lang-switch i { color: var(--gold-dark); }
.lang-switch:hover i { color: var(--navy); }

/* Hero */
.hero .carousel-item { min-height: 560px; background: radial-gradient(circle at 20% 30%, var(--navy-2), var(--navy)); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,45,.35), rgba(15,27,45,.85)); }
[dir="ltr"] .hero-overlay { background: linear-gradient(270deg, rgba(15,27,45,.35), rgba(15,27,45,.85)); }
.hero-overlay::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(201,162,39,.18) 1px, transparent 1px); background-size: 22px 22px; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 140px 12px 120px; max-width: 820px; margin-inline-start: auto; margin-inline-end: auto; text-align: center; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; color: #d9dee6; margin-bottom: 2rem; }
.hero-kicker { display: inline-block; color: var(--gold-light); border: 1px solid var(--gold); padding: 4px 16px; border-radius: 30px; margin-bottom: 1rem; font-weight: 600; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; }

/* Stats */
.stats-bar { margin-top: -50px; position: relative; z-index: 5; }
.stats-bar .row { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(15,27,45,.12); padding: 20px 10px; margin: 0; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat i { font-size: 1.8rem; color: var(--gold); }
.stat strong { font-size: 1.7rem; color: var(--navy); }
.stat span { color: #6b7280; font-size: .9rem; }

/* Sections */
.section { padding: 80px 0; }
.section-kicker { color: var(--gold-dark); font-weight: 700; display: block; margin-bottom: .3rem; }
.section-kicker::before { content: "— "; }
.section-title { font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.bg-navy .section-title { color: #fff; }

.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-tile { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; transition: transform .2s; }
.about-tile:nth-child(2), .about-tile:nth-child(3) { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.about-tile i { font-size: 2.4rem; }
.about-tile span { font-weight: 700; }
.about-tile:hover { transform: translateY(-4px); }
.about-text { line-height: 2; }

.service-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid #ece7d8; transition: all .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15,27,45,.1); border-color: var(--gold); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(201,162,39,.12); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1rem; }
.service-card h5 { font-weight: 700; color: var(--navy); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 30px; background: var(--soft); color: var(--navy); border: 1px solid #e7e0c9; font-weight: 600; }
.chip:hover, .chip.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Product card */
.product-card { border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.product-card:hover { box-shadow: 0 14px 30px rgba(15,27,45,.12); transform: translateY(-4px); }
.product-thumb { display: block; position: relative; aspect-ratio: 4/3; background: var(--soft); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card .card-title { font-size: 1.05rem; font-weight: 700; }
.product-card .card-title a { color: var(--navy); }
.badge-featured { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: var(--navy); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fbf7ea, #efe6c8); color: var(--gold-dark); font-size: 4rem; }
.thumb-placeholder.dark { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--gold); }
.thumb-placeholder.big { aspect-ratio: 4/3; font-size: 8rem; border-radius: var(--radius); }

.product-gallery { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.spec-list { list-style: none; padding: 0; }
.spec-list li { padding: 8px 0; border-bottom: 1px dashed #e5e7eb; }
.spec-list i { color: var(--gold); margin-inline-end: 6px; }

.category-list .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 4px; font-weight: 600; }
.category-list .list-group-item i { color: var(--gold); margin-inline-end: 6px; }
.category-list .list-group-item.active { background: var(--navy); color: #fff; }

/* Project card */
.project-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover img { transform: scale(1.06); }
.project-overlay { position: absolute; inset: auto 0 0 0; padding: 20px; color: #fff; background: linear-gradient(0deg, rgba(15,27,45,.95), transparent); }
.project-overlay h5 { font-weight: 700; margin-bottom: 4px; }
.info-box { background: var(--soft); border-radius: var(--radius); padding: 24px; border-inline-start: 4px solid var(--gold); }
.info-box li { padding: 6px 0; }
.info-box i { color: var(--gold-dark); }

/* Page header */
.page-header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 60px 0; text-align: center; position: relative; }
.page-header::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--gold); }
.page-header h1 { font-weight: 800; }
.page-header.small-header { padding: 24px 0; }
.page-header .breadcrumb-item a { color: var(--gold-light); }
.page-header .breadcrumb-item.active, .page-header .breadcrumb-item::before { color: #cfd6e0 !important; }

.vm-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; }
.vm-card i { font-size: 2.2rem; color: var(--gold); }
.why i { font-size: 2.4rem; color: var(--gold); }

.contact-box { text-align: center; background: var(--soft); border-radius: var(--radius); padding: 28px; height: 100%; }
.contact-box i { font-size: 2rem; color: var(--gold); }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.empty-state { text-align: center; padding: 60px 0; color: #9ca3af; }
.empty-state i { font-size: 3rem; }

.cta { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); padding: 50px 0; }
.cta h3 { font-weight: 800; }

/* Footer */
.site-footer { background: var(--navy); color: #cfd6e0; padding: 60px 0 20px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links li, .footer-contact li { padding: 4px 0; }
.footer-links a, .footer-contact a { color: #cfd6e0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact i { color: var(--gold); margin-inline-end: 6px; }

.whatsapp-float { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 1000; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

@media (max-width: 767px) {
    .hero .carousel-item { min-height: 460px; }
    .hero-content { padding: 100px 16px 90px; }
    .hero .carousel-control-prev, .hero .carousel-control-next { width: 44px; }
    .section { padding: 56px 0; }
}
@media (max-width: 575px) {
    .main-nav .navbar-brand { flex: 1 1 0; min-width: 0; white-space: normal; margin-inline-end: 8px; }
    .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; flex-shrink: 0; }
    .brand-text strong { font-size: .95rem; }
    .lang-switch { padding: 4px 10px; font-size: .8rem; }
}

/* Flip product card (home page) */
.flip-card { perspective: 1200px; height: 100%; min-height: 380px; outline: none; cursor: pointer; }
.flip-card-inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4, .2, .2, 1); }
.flip-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; }
.flip-front { background: #fff; border: 1px solid #eee; display: flex; flex-direction: column; }
.flip-front .product-thumb { flex: 1 1 auto; }
.flip-front-body { padding: 14px 16px 16px; }
.flip-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.flip-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .78rem; color: var(--gold-dark); }
.flip-back {
    transform: rotateY(180deg);
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 22px 20px;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    color: #d9dee6;
    border: 1px solid rgba(201, 162, 39, .35);
}
.flip-back .card-title { color: #fff; margin-bottom: 8px; }
.flip-back-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; background: rgba(201, 162, 39, .15); color: var(--gold); font-size: 1.35rem; }
.flip-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--gold-light); margin-bottom: 10px; }
.flip-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.flip-specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: .82rem; }
.flip-specs li { padding: 3px 0; }
.flip-specs i { color: var(--gold); margin-inline-end: 4px; }

@media (hover: hover) {
    .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
    .flip-hint { display: none; }
}
.flip-card:focus-visible .flip-card-inner,
.flip-card:has(a:focus-visible) .flip-card-inner,
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card:hover .flip-front, .flip-card.flipped .flip-front { box-shadow: 0 14px 30px rgba(15, 27, 45, .12); }

@media (prefers-reduced-motion: reduce) {
    .flip-card-inner { transition: none; }
}

.agencies { background: var(--soft); }



/* Company profile: header button + highlighted card under the stats */
.btn-profile { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: var(--gold-light); border: 1px solid var(--navy); font-weight: 700; white-space: nowrap; position: relative; }
.btn-profile:hover { background: var(--navy-2); color: #fff; }
.btn-profile i { font-size: 1.1rem; }
.btn-profile::after { content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,162,39,.7); animation: profile-ping 2s infinite; }
@keyframes profile-ping { 0% { box-shadow: 0 0 0 0 rgba(201,162,39,.7); } 70% { box-shadow: 0 0 0 10px rgba(201,162,39,0); } 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); } }

.profile-highlight { padding-top: 34px; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--navy-2)); border: 1px solid rgba(201,162,39,.45); box-shadow: 0 14px 34px rgba(15,27,45,.18); color: #d9dee6; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.profile-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(201,162,39,.16) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(15,27,45,.25); color: #d9dee6; }
.profile-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: rgba(201,162,39,.15); color: var(--gold); font-size: 2rem; position: relative; }
.profile-text { display: flex; flex-direction: column; flex: 1 1 260px; position: relative; }
.profile-text strong { color: #fff; font-size: 1.35rem; font-weight: 800; }
.profile-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.profile-cta small { background: var(--navy); color: var(--gold-light); border-radius: 6px; padding: 1px 7px; font-size: .72rem; }
.profile-card:hover .profile-cta { background: var(--gold-dark); color: #fff; }

@media (max-width: 991px) {
    .btn-profile { margin: 10px 0 4px; justify-content: center; }
}
@media (max-width: 575px) {
    .profile-card { padding: 18px; }
    .profile-cta { width: 100%; justify-content: center; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-profile::after { animation: none; }
}

/* several phone numbers, each its own link */
.phone-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.phone-sep { opacity: .6; }

/* Client card: name on top, logo below, gold border */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 20px; }
.client-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px 16px; background: #fff; border: 2.5px solid #f2b927; border-radius: 16px; text-align: center; transition: transform .25s, box-shadow .25s; }
.client-name { font-weight: 800; font-size: .95rem; line-height: 1.4; color: #111; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.client-logo { flex: 1; width: 100%; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.client-logo img { max-width: 100%; max-height: 105px; object-fit: contain; }
.client-logo i { font-size: 2.6rem; color: #d7d2c2; }
a.client-tile:hover, .client-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,27,45,.15); }
@media (max-width: 575px) {
    .client-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .client-name { font-size: .85rem; }
    .client-logo { min-height: 80px; }
    .client-logo img { max-height: 80px; }
}

/* Navbar: keep everything on one line on desktop widths (992px+) */
.main-nav .nav-link, .main-nav .btn, .navbar-brand, .brand-text strong, .brand-text small, .lang-switch { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-nav .navbar-nav { gap: 0 !important; margin-inline-end: .5rem !important; }
    .main-nav .nav-link { padding-inline: .5rem !important; font-size: .93rem; }
    .main-nav .navbar-brand img { height: 40px; }
    .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; }
    .brand-text strong { font-size: .98rem; }
    .brand-text small { font-size: .7rem; }
    .main-nav .btn-gold, .main-nav .btn-profile { padding: .35rem .7rem; font-size: .88rem; }
    .main-nav .btn-gold.me-lg-3 { margin-inline-end: .5rem !important; }
    .lang-switch { padding: 4px 10px; font-size: .82rem; }
}
