/* ===============================================================
   BRHM Digital — brand layer on top of Bootstrap 5.3
   =============================================================== */

/* ---- Brand tokens & Bootstrap variable overrides ---- */
:root {
  --brhm-blue: #1e50ff;
  --brhm-blue-2: #2f6bff;
  --brhm-navy: #0a1d4d;
  --brhm-accent: #4f8bff;
  --brand-grad: linear-gradient(120deg, #2f6bff 0%, #1e50ff 45%, #12308f 100%);
  --nav-h: 76px;

  --bs-primary: #1e50ff;
  --bs-primary-rgb: 30, 80, 255;
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 20px;
}

/* Dark theme (default) */
[data-bs-theme="dark"] {
  --bs-body-bg: #05070f;
  --bs-body-color: #c7d0e0;
  --bs-heading-color: #f4f7ff;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(120, 160, 255, 0.35);
  --muted: #8b97ad;
  --hero-fade: #05070f;
}

/* Light theme */
[data-bs-theme="light"] {
  --bs-body-bg: #f4f7fe;
  --bs-body-color: #3a4358;
  --bs-heading-color: #0a1638;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --stroke: rgba(16, 40, 100, 0.10);
  --stroke-strong: rgba(30, 80, 255, 0.3);
  --muted: #6a7690;
  --hero-fade: #f4f7fe;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: hidden; }

body {
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}
img, svg { max-width: 100%; }
:lang(en) body, html[dir="ltr"] body { font-family: "Space Grotesk", "Cairo", system-ui, sans-serif; }

h1, h2, h3, h4 { color: var(--bs-heading-color); font-weight: 800; letter-spacing: -0.01em; }

section { position: relative; z-index: 1; }

/* ---- Background FX ---- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.glow-1 { width: 620px; height: 620px; background: radial-gradient(circle, #1e50ff, transparent 70%); top: -180px; inset-inline-start: -160px; }
.glow-2 { width: 560px; height: 560px; background: radial-gradient(circle, #12308f, transparent 70%); bottom: -160px; inset-inline-end: -140px; opacity: 0.4; }
[data-bs-theme="light"] .glow { opacity: 0.22; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--stroke) 1px, transparent 1px), linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  opacity: 0.6;
}
.float-letter {
  position: absolute; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(9rem, 22vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--stroke);
  opacity: 0.5; user-select: none;
}
.fl-1 { top: 4%; inset-inline-start: 3%; animation: floaty 14s ease-in-out infinite; }
.fl-2 { bottom: 6%; inset-inline-start: -2%; animation: floaty 18s ease-in-out infinite reverse; }
.fl-3 { top: 30%; inset-inline-end: 4%; animation: floaty 16s ease-in-out infinite; }
.fl-4 { bottom: 12%; inset-inline-end: -1%; animation: floaty 20s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-34px) rotate(6deg); } }

/* ---- Buttons ---- */
.btn { font-weight: 700; border-radius: 999px; padding: 0.72rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-lg { padding: 0.9rem 2rem; }
.btn-brand { background: var(--brand-grad); color: #fff; border: none; box-shadow: 0 10px 30px -8px rgba(30, 80, 255, 0.65); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(30, 80, 255, 0.8); }
.btn-ghost { background: var(--surface-2); color: var(--bs-heading-color); border: 1px solid var(--stroke); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--stroke-strong); color: var(--bs-heading-color); transform: translateY(-2px); }

/* ---- Navbar ---- */
.site-nav {
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bs-body-bg) 72%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--stroke); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; color: var(--brhm-accent); }
[data-bs-theme="light"] .brand-mark { color: var(--brhm-blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { color: var(--bs-heading-color); font-size: 1.25rem; letter-spacing: 3px; font-family: "Space Grotesk", sans-serif; }
.brand-text em { color: var(--muted); font-style: normal; font-size: 0.7rem; letter-spacing: 1px; margin-top: 3px; }
.site-nav .nav-link { color: var(--bs-body-color); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--bs-heading-color); background: var(--surface-2); }
.navbar-toggler:focus { box-shadow: none; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface-2);
  color: var(--bs-heading-color); cursor: pointer; font-weight: 700; font-size: 0.8rem;
  font-family: "Space Grotesk", sans-serif; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.ic-sun { display: none; } .ic-moon { display: block; }
[data-bs-theme="light"] .ic-sun { display: block; } [data-bs-theme="light"] .ic-moon { display: none; }
.site-offcanvas { background: var(--bs-body-bg); border-inline-start: 1px solid var(--stroke); }

/* ---- Hero ---- */
.hero { padding-top: calc(var(--nav-h) + 5rem); padding-bottom: 6rem; text-align: center; }
.pill {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--stroke-strong);
  color: var(--brhm-accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 1.6rem;
}
[data-bs-theme="light"] .pill { color: var(--brhm-blue); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.18; margin-bottom: 1.3rem; }
.hero-title span { display: block; }
.hero-title .grad { margin-top: 0.35em; padding-bottom: 0.12em; }
.grad { background: linear-gradient(100deg, #4f8bff, #2f6bff 40%, #9db8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 720px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); margin-bottom: 2.2rem; }
.hero-stats { max-width: 560px; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--stroke); }
.hstat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--bs-heading-color); }
.hstat span { color: var(--muted); font-size: 0.85rem; }

/* ---- Sections ---- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.eyebrow { display: inline-block; color: var(--brhm-accent); font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 0.8rem; text-transform: uppercase; }
[data-bs-theme="light"] .eyebrow { color: var(--brhm-blue); }
.eyebrow.light { color: #bcd2ff; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 1.1rem; line-height: 1.2; }
.section-head { margin-bottom: 3rem; }
.section-lead { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.lead-p { font-size: 1.08rem; color: var(--bs-body-color); }

/* ---- About ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chips span { padding: 0.45rem 1rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); font-size: 0.85rem; font-weight: 600; color: var(--bs-heading-color); }
.about-card {
  position: relative; border-radius: var(--bs-border-radius-lg); padding: 2.5rem 2rem;
  background: var(--surface); border: 1px solid var(--stroke); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.about-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(30,80,255,.25), transparent 55%); }
.ac-logo { width: 66px; height: 66px; border-radius: 16px; background: var(--brand-grad); display: grid; place-items: center; margin-bottom: 1.5rem; position: relative; }
.ac-logo img { width: 40px; height: 40px; color: #fff; }
.about-card blockquote { font-size: 1.15rem; font-weight: 600; color: var(--bs-heading-color); line-height: 1.7; position: relative; }
.ac-foot { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 2px; position: relative; }
.ac-foot strong { color: var(--brhm-accent); font-family: "Space Grotesk", sans-serif; letter-spacing: 2px; }
.ac-foot span { color: var(--muted); font-size: 0.85rem; }

/* ---- Service cards ---- */
.svc-card {
  height: 100%; border-radius: var(--bs-border-radius-lg); padding: 2rem 1.7rem;
  background: var(--surface); border: 1px solid var(--stroke); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: 0 24px 50px -26px rgba(30,80,255,.6); }
.svc-ic { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47,107,255,.22), rgba(18,48,143,.15)); border: 1px solid var(--stroke-strong); color: var(--brhm-accent); margin-bottom: 1.3rem; font-size: 1.6rem; }
.svc-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.svc-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-tags span { font-size: 0.78rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); color: var(--bs-body-color); }
.svc-price { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); }
.svc-price b { color: var(--brhm-accent); font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }

/* ---- Pricing ---- */
.pricing-tabs { gap: 0.6rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.pricing-tabs .nav-link {
  border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface-2);
  color: var(--bs-body-color); font-weight: 700; padding: 0.6rem 1.3rem; cursor: pointer;
}
.pricing-tabs .nav-link .t-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.pricing-tabs .nav-link.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(30,80,255,.7); }
.pricing-tabs .nav-link.active .t-sub { color: rgba(255,255,255,.8); }

.price-card {
  height: 100%; display: flex; flex-direction: column; border-radius: var(--bs-border-radius-lg);
  padding: 2rem 1.6rem; background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; position: relative; overflow: hidden;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: 0 26px 55px -28px rgba(30,80,255,.55); }
.price-card.featured { border-color: var(--stroke-strong); background: linear-gradient(180deg, rgba(30,80,255,.12), var(--surface)); }
.price-card.featured::after { content: attr(data-badge); position: absolute; top: 1.1rem; inset-inline-end: -3.2rem; transform: rotate(45deg); background: var(--brand-grad); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 3rem; }
.pc-tier { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; color: var(--brhm-accent); text-transform: uppercase; }
.pc-price { font-family: "Space Grotesk", sans-serif; font-weight: 700; margin: 0.6rem 0 0.2rem; line-height: 1; }
.pc-price .amt { font-size: 2rem; color: var(--bs-heading-color); }
.pc-price .cur { font-size: 0.9rem; color: var(--muted); }
.pc-per { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.3rem; }
.pc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; flex: 1; }
.pc-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--bs-body-color); }
.pc-list li svg { flex: 0 0 18px; margin-top: 3px; color: var(--brhm-accent); }
.price-card .btn { margin-top: auto; }

/* ---- Why ---- */
.why-item { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--bs-border-radius); background: var(--surface); border: 1px solid var(--stroke); height: 100%; transition: border-color .2s; }
.why-item:hover { border-color: var(--stroke-strong); }
.wi-num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--brhm-accent); opacity: .8; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---- CTA / Contact ---- */
.cta-box { border-radius: 26px; overflow: hidden; border: 1px solid var(--stroke-strong); background: linear-gradient(135deg, #0d245f, #061436); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.cta-copy { padding: clamp(2rem, 4vw, 3.4rem); }
.cta-copy .section-title, .cta-copy p { color: #eef3ff; }
.cta-copy p { color: #b9c8ee; }
.contact-methods { display: grid; gap: 0.7rem; margin: 1.6rem 0; }
.cm { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-decoration: none; transition: background .2s, border-color .2s; }
.cm:hover { background: rgba(255,255,255,.1); border-color: var(--stroke-strong); }
.cm-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.cm span span, .cm > span:last-child { display: flex; flex-direction: column; }
.cm em { color: #9fb3e0; font-style: normal; font-size: 0.75rem; }
.cm b { color: #fff; font-size: 0.95rem; }
.cta-locs { display: grid; gap: 0.35rem; }
.cta-loc { color: #9fb3e0; font-size: 0.9rem; margin: 0; }
.contact-form { padding: clamp(2rem, 4vw, 3.4rem); background: var(--surface); height: 100%; }
.form-label { font-weight: 600; color: var(--bs-heading-color); font-size: 0.9rem; }
.form-control, .form-select { background: var(--surface-2); border: 1px solid var(--stroke); color: var(--bs-heading-color); padding: 0.7rem 0.9rem; border-radius: 12px; }
.form-control:focus, .form-select:focus { background: var(--surface-2); border-color: var(--brhm-blue); box-shadow: 0 0 0 3px rgba(30,80,255,.2); color: var(--bs-heading-color); }
.price-note { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--stroke); padding-top: 3.5rem; margin-top: 2rem; position: relative; z-index: 1; }
.footer-top { padding-bottom: 2.5rem; }
.foot-brand p { color: var(--muted); margin-top: 1rem; max-width: 280px; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--stroke); color: var(--bs-body-color); transition: all .2s; }
.socials a:hover { color: #fff; background: var(--brand-grad); border-color: transparent; transform: translateY(-2px); }
.foot-links h4, .foot-contact h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--bs-heading-color); margin-bottom: 1.1rem; }
.foot-links a, .foot-contact a, .foot-contact span { display: block; color: var(--muted); text-decoration: none; margin-bottom: 0.7rem; font-size: 0.92rem; transition: color .2s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--brhm-accent); }
.foot-bottom { border-top: 1px solid var(--stroke); padding: 1.4rem 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s; animation: pulse 2.4s infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .site-offcanvas { width: 300px; }
  .navbar-nav { margin-block: 1rem; }
  .site-nav .nav-link { padding: 0.7rem 0.4rem; }
  .nav-actions { margin-top: 1rem; }
  .contact-form { border-top: 1px solid var(--stroke); }
}
@media (max-width: 767.98px) {
  /* Comfortable side spacing + prevent wide-gutter rows from overflowing */
  .container { padding-inline: 1.75rem; max-width: 100%; }
  .row.g-5, .row.g-4, .row.g-3 { --bs-gutter-x: 1rem; }
  .hero { padding-inline: 0; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cta-copy, .contact-form { padding: 1.75rem 1.35rem; }

  .footer { text-align: center; }
  .footer .brand { justify-content: center; }
  .foot-brand p { margin-inline: auto; }
  .socials { justify-content: center; }
  .foot-links a, .foot-contact a, .foot-contact span { margin-inline: auto; }
  .cta-copy, .contact-methods, .cta-locs { text-align: center; }
  .cm { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .float-letter, .whatsapp-fab { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
