/* ==========================================================================
   Prime Horizon Company – corporate theme
   ========================================================================== */
:root {
  --ph-navy: #0a1a3a;
  --ph-navy-2: #0f2552;
  --ph-blue: #1f5eff;
  --ph-blue-2: #3b82f6;
  --ph-cyan: #19c3ff;
  --ph-ink: #0f172a;
  --ph-text: #475569;
  --ph-soft: #f4f7fc;
  --ph-line: #e2e8f0;
  --ph-radius: 18px;
  --ph-gradient: linear-gradient(135deg, var(--ph-blue) 0%, var(--ph-cyan) 100%);
  --ph-shadow: 0 10px 30px -12px rgba(15, 37, 82, .18);
  --ph-shadow-lg: 0 24px 60px -20px rgba(15, 37, 82, .30);
  --bs-primary: var(--ph-blue);
  --bs-primary-rgb: 31, 94, 255;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ph-ink);
}
[dir="rtl"] { --bs-body-font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }

body { font-family: var(--bs-body-font-family); color: var(--ph-ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--ph-ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
a { color: var(--ph-blue); }
img { max-width: 100%; height: auto; }
.text-secondary { color: var(--ph-text) !important; }
.text-gradient { background: var(--ph-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
.skip-link { position: absolute; z-index: 2000; top: 8px; inset-inline-start: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .65rem 1.3rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--ph-gradient); border: 0; }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #1a4fe0, #10a9e0); }
.btn-glow { box-shadow: 0 10px 25px -8px rgba(31, 94, 255, .6); }
.btn-outline-primary { color: var(--ph-blue); border-color: var(--ph-blue); }
.btn-outline-primary:hover { background: var(--ph-blue); border-color: var(--ph-blue); }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1eb957; color: #fff; }
.btn-lang { border: 1px solid var(--ph-line); color: var(--ph-ink); background: #fff; }
.btn-lang:hover { border-color: var(--ph-blue); color: var(--ph-blue); }

/* Top bar + header */
.topbar { background: var(--ph-navy); color: #b8c4dc; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #b8c4dc; text-decoration: none; }
.topbar a:hover { color: #fff; }
.social-mini a { font-size: .95rem; }

.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .7); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15, 23, 42, .35); }
.navbar { padding: .8rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.12rem; letter-spacing: .06em; color: var(--ph-navy); font-weight: 800; }
.brand-text small { font-size: .66rem; letter-spacing: .32em; color: var(--ph-blue); font-weight: 700; }
[dir="rtl"] .brand-text small { letter-spacing: 0; font-size: .75rem; }
.brand-text.light strong { color: #fff; }
.brand-text.light small { color: var(--ph-cyan); }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--ph-navy); padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar .nav-link { font-weight: 600; color: var(--ph-ink); padding: .5rem .9rem !important; border-radius: 10px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ph-blue); }
.navbar .nav-link.active { background: rgba(31, 94, 255, .07); }

.mega-menu { border: 0; border-radius: var(--ph-radius); padding: .8rem; margin-top: .6rem !important; }
@media (min-width: 992px) {
  .mega-menu { width: 720px; inset-inline-start: 50% !important; transform: translateX(-50%); }
  [dir="rtl"] .mega-menu { transform: translateX(50%); }
  .navbar .dropdown:hover > .dropdown-menu { display: block; }
  .navbar .dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
}
.mega-item { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; white-space: normal; }
.mega-item:hover { background: var(--ph-soft); }
.mega-item strong { display: block; font-size: .92rem; color: var(--ph-ink); }
.mega-item small { display: block; color: var(--ph-text); font-size: .78rem; }
.mega-icon { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(31, 94, 255, .1); color: var(--ph-blue); font-size: 1.1rem; }
.mega-footer { border-top: 1px solid var(--ph-line); margin-top: .5rem; padding: .8rem .8rem .2rem; }
.mega-footer a { font-weight: 600; text-decoration: none; font-size: .9rem; }

@media (max-width: 991.98px) {
  .offcanvas { max-width: 86vw; }
  .navbar .nav-link { padding: .75rem .5rem !important; border-bottom: 1px solid var(--ph-line); border-radius: 0; }
  .mega-menu { box-shadow: none !important; padding: 0; margin: 0 !important; }
  .mega-item small { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 6rem 0 7rem;
  background: radial-gradient(1200px 600px at 80% -10%, #173a8a 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #0c3a6b 0%, transparent 55%), var(--ph-navy); }
.hero-grid { position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.orb-1 { width: 380px; height: 380px; background: var(--ph-blue); top: -80px; inset-inline-end: 8%; }
.orb-2 { width: 300px; height: 300px; background: var(--ph-cyan); bottom: -120px; inset-inline-start: 10%; opacity: .25; }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #cfe3ff; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; line-height: 1.12; margin: 1.3rem 0 1.2rem; }
[dir="rtl"] .hero-title { line-height: 1.4; }
.hero-subtitle { color: #b9c7e3; font-size: 1.12rem; max-width: 620px; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: #cfdaf0; font-size: .92rem; }
.hero-points i { color: var(--ph-cyan); margin-inline-end: .45rem; }
.hero-visual { position: relative; }
.hero-visual img { filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.float-card { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 14px; font-weight: 600; font-size: .88rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); color: #fff; animation: floaty 6s ease-in-out infinite; }
.float-card i { color: var(--ph-cyan); font-size: 1.2rem; }
.fc-1 { top: 8%; inset-inline-start: 0; }
.fc-2 { top: 42%; inset-inline-end: -2%; animation-delay: -2s; }
.fc-3 { bottom: 6%; inset-inline-start: 12%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@media (max-width: 575.98px) { .float-card { display: none; } .hero { padding: 4rem 0 5rem; } }

/* Page hero */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 3.8rem;
  background: radial-gradient(900px 400px at 85% 0%, #1b3f94 0%, transparent 60%), var(--ph-navy); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.page-hero .lead { color: #b9c7e3; max-width: 760px; margin-bottom: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #7f93bd; --bs-breadcrumb-item-active-color: #cfdaf0; font-size: .88rem; }
.page-hero .breadcrumb a { color: #8fb4ff; text-decoration: none; }
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: var(--bs-breadcrumb-item-padding-x); padding-right: 0; }
.page-hero-icon { flex: 0 0 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--ph-gradient); box-shadow: 0 15px 30px -10px rgba(25,195,255,.5); }
@media (max-width: 575.98px) { .page-hero-icon { display: none; } }

/* Sections */
.section { padding: 5.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.8rem 0; } }
.bg-soft { background: var(--ph-soft); }
.section-head { max-width: 720px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-blue); margin-bottom: .8rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(31,94,255,.08); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow.light { color: var(--ph-cyan); background: rgba(25,195,255,.12); }

.intro-visual { border-radius: 24px; background: linear-gradient(160deg, #eef4ff, #f8fbff); padding: 1.5rem; }
.engage-pill { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--ph-line); border-radius: 14px; font-weight: 600; font-size: .92rem; height: 100%; }
.engage-pill i { color: var(--ph-blue); font-size: 1.3rem; }

/* Service cards */
.service-card { display: flex; flex-direction: column; height: 100%; padding: 2rem; border-radius: var(--ph-radius); background: #fff; border: 1px solid var(--ph-line);
  text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--ph-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
[dir="rtl"] .service-card::after { transform-origin: right; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--ph-shadow-lg); border-color: transparent; color: inherit; }
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 { font-size: 1.18rem; margin: 1.2rem 0 .6rem; }
.service-card p { color: var(--ph-text); font-size: .95rem; }
.service-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--ph-gradient); box-shadow: 0 12px 24px -10px rgba(31,94,255,.6); }
.mini-list { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .86rem; color: var(--ph-text); }
.mini-list li { padding: .3rem 0; padding-inline-start: 1.3rem; position: relative; }
.mini-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; color: var(--ph-blue); font-size: .8rem; top: .38rem; }
.card-link { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--ph-blue); text-decoration: none; }
.card-link i { transition: transform .25s; display: inline-block; }
.service-card:hover .card-link i { transform: translateX(4px); }
[dir="rtl"] .service-card:hover .card-link i { transform: scaleX(-1) translateX(4px); }

/* Technology strip */
.tech-section { background: linear-gradient(180deg, var(--ph-navy) 0%, var(--ph-navy-2) 100%); position: relative; overflow: hidden; }
.tech-tile { height: 100%; text-align: center; padding: 1.4rem .8rem; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #dbe6ff; transition: background .25s, transform .25s; }
.tech-tile:hover { background: rgba(25,195,255,.1); transform: translateY(-4px); }
.tech-tile i { display: block; font-size: 1.9rem; color: var(--ph-cyan); margin-bottom: .6rem; }
.tech-tile span { font-size: .86rem; font-weight: 600; }

/* Features */
.feature-box { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--ph-radius); background: #fff; border: 1px solid var(--ph-line); height: 100%; transition: box-shadow .3s; }
.feature-box:hover { box-shadow: var(--ph-shadow); }
.feature-box h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-box p { color: var(--ph-text); font-size: .92rem; margin: 0; }
.feature-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(31,94,255,.1); color: var(--ph-blue); font-size: 1.35rem; }

/* Process */
.process-step { position: relative; padding: 2rem 1.6rem; background: #fff; border-radius: var(--ph-radius); height: 100%; border: 1px solid var(--ph-line); }
.process-step .num { font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--ph-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-step h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.process-step p { color: var(--ph-text); font-size: .92rem; margin: 0; }

/* Industries */
.industry-card { height: 100%; padding: 1.8rem; border-radius: var(--ph-radius); border: 1px solid var(--ph-line); background: linear-gradient(180deg, #fff, #fafcff); transition: transform .3s, box-shadow .3s; }
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow); }
.industry-card i { font-size: 2rem; color: var(--ph-blue); }
.industry-card h3 { font-size: 1.1rem; margin: 1rem 0 .5rem; }
.industry-card p { color: var(--ph-text); font-size: .92rem; margin: 0; }
.industry-card.large { padding: 2.2rem; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 3.2rem; color: #fff; background: linear-gradient(120deg, #1a46d1 0%, #1f5eff 45%, #12b5f0 100%); box-shadow: var(--ph-shadow-lg); }
.cta-band h2 { color: #fff; font-weight: 800; }
.cta-band p { color: #e3edff; }
.cta-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.15); filter: blur(10px); top: -200px; inset-inline-end: -100px; }
@media (max-width: 575.98px) { .cta-band { padding: 2rem 1.4rem; } }

/* Contact */
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px dashed var(--ph-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list small { display: block; color: var(--ph-text); font-size: .8rem; }
.contact-list strong, .contact-list a { font-weight: 600; color: var(--ph-ink); text-decoration: none; }
.contact-list a:hover { color: var(--ph-blue); }
.ci { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,94,255,.1); color: var(--ph-blue); font-size: 1.15rem; }
.ci.wa { background: rgba(37,211,102,.12); color: #1eb957; }
.map-wrap { border-radius: var(--ph-radius); overflow: hidden; box-shadow: var(--ph-shadow); height: 100%; min-height: 360px; }
.map-wrap iframe, .map-full iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-full iframe { height: 420px; filter: grayscale(.2); }

.form-card { background: #fff; border-radius: 22px; padding: 2.4rem; border: 1px solid var(--ph-line); box-shadow: var(--ph-shadow); }
@media (max-width: 575.98px) { .form-card { padding: 1.5rem; } }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select { border-radius: 12px; padding: .75rem 1rem; border-color: #d6dfeb; background-color: #fbfcfe; }
[dir="rtl"] .form-select { background-position: left .75rem center; padding-left: 2.25rem; padding-right: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--ph-blue); box-shadow: 0 0 0 .22rem rgba(31,94,255,.15); background-color: #fff; }
.has-error .form-control, .has-error .form-select { border-color: #dc3545; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Service detail */
.lead-text p { font-size: 1.1rem; color: var(--ph-text); line-height: 1.8; }
.offer-item { display: flex; gap: .8rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--ph-soft); height: 100%; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.offer-item:hover { border-color: rgba(31,94,255,.3); background: #fff; }
.offer-item i { color: var(--ph-blue); font-size: 1.3rem; line-height: 1.2; }
.side-sticky { position: sticky; top: 110px; }
.side-cta { border-radius: 22px; padding: 2rem; color: #fff; background: linear-gradient(150deg, var(--ph-navy) 0%, #163a8f 100%); }
.side-cta > i { font-size: 2rem; color: var(--ph-cyan); }
.side-cta h3 { color: #fff; font-size: 1.3rem; margin: .8rem 0 .5rem; }
.side-cta p { color: #b9c7e3; font-size: .95rem; }
.check-list li { padding: .45rem 0; color: #dbe6ff; }
.check-list i { color: var(--ph-cyan); margin-inline-end: .55rem; }
.side-box { border: 1px solid var(--ph-line); border-radius: 22px; padding: 1.6rem; }
.side-box h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.side-links a { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; color: var(--ph-ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.side-links a:hover { color: var(--ph-blue); }
.side-links i { color: var(--ph-blue); }

/* Products */
.product-card { display: flex; flex-direction: column; height: 100%; padding: 1.8rem; border-radius: var(--ph-radius); border: 1px solid var(--ph-line); background: #fff; transition: box-shadow .3s, transform .3s; }
.product-card:hover { box-shadow: var(--ph-shadow); transform: translateY(-4px); }
.product-card h3 { font-size: 1.12rem; margin: .8rem 0 .5rem; }
.product-card p { color: var(--ph-text); font-size: .93rem; }
.product-card.compact { flex-direction: row; gap: 1rem; padding: 1.2rem; }
.product-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(31,94,255,.1); color: var(--ph-blue); font-size: 1.4rem; margin-bottom: .8rem; }
.product-card.compact .product-icon { margin: 0; }
.product-type { align-self: flex-start; font-weight: 600; color: var(--ph-blue) !important; background: rgba(31,94,255,.08) !important; }

/* About */
.mv-card, .engage-card { height: 100%; padding: 2.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--ph-line); }
.mv-card i, .engage-card i { font-size: 2.2rem; color: var(--ph-blue); }
.mv-card h3, .engage-card h3 { margin: 1rem 0 .6rem; font-size: 1.35rem; }
.mv-card p, .engage-card p { color: var(--ph-text); margin: 0; }
.value-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.2rem; border-radius: 999px; background: #fff; border: 1px solid var(--ph-line); font-weight: 600; font-size: .93rem; color: var(--ph-ink); }
.value-chip i { color: var(--ph-blue); }
.value-chip.link { text-decoration: none; transition: border-color .2s, color .2s; }
.value-chip.link:hover { border-color: var(--ph-blue); color: var(--ph-blue); }

/* Footer */
.site-footer { background: #071331; color: #c2cde3; padding: 4.5rem 0 0; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; }
.text-muted-light { color: #93a3c4; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: #c2cde3; text-decoration: none; font-size: .92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--ph-cyan); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; font-size: .92rem; }
.footer-contact i { color: var(--ph-cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.4rem 0; font-size: .85rem; color: #8292b3; }
.social-round a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; transition: background .25s; }
.social-round a:hover { background: var(--ph-blue); }
.social-round.dark a { background: var(--ph-soft); color: var(--ph-navy); }
.social-round.dark a:hover { background: var(--ph-blue); color: #fff; }

/* Floating buttons */
.whatsapp-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1030; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 1.9rem; box-shadow: 0 12px 28px -6px rgba(37,211,102,.6); transition: transform .25s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.back-to-top { position: fixed; bottom: 96px; inset-inline-end: 30px; z-index: 1030; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ph-navy); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; box-shadow: var(--ph-shadow); }
.back-to-top.show { opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pulse-dot { animation: none; }
}

/* ==========================================================================
   Product catalogue (brands / products)
   ========================================================================== */
.products-menu { border: 0; border-radius: 14px; padding: .5rem; min-width: 240px; }
.products-menu .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; }
.products-menu .dropdown-item i { color: var(--ph-blue); }

.brand-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; height: 100%; padding: 2rem 1.5rem;
  border-radius: var(--ph-radius); border: 1px solid var(--ph-line); background: #fff; text-decoration: none; color: var(--ph-ink); transition: transform .3s, box-shadow .3s; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow-lg); color: var(--ph-ink); }
.brand-logo { height: 90px; display: grid; place-items: center; margin-bottom: .5rem; font-size: 2.6rem; color: var(--ph-blue); }
.brand-logo img { max-height: 80px; max-width: 200px; object-fit: contain; }
.brand-monogram { font-weight: 800; font-size: 1.6rem; letter-spacing: .04em; color: var(--ph-navy); }
.brand-card strong { font-size: 1.15rem; }
.brand-card small { color: var(--ph-text); }
.brand-count { margin-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--ph-blue); background: rgba(31,94,255,.08); padding: .3rem .8rem; border-radius: 999px; }

.brand-intro { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-radius: var(--ph-radius); background: var(--ph-soft); }
.brand-intro p { flex: 1 1 480px; }

.catalog-sidebar { position: sticky; top: 100px; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); padding: 1.2rem; background: #fff; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 10px; color: var(--ph-ink); text-decoration: none; font-size: .9rem; }
.cat-list a i { color: var(--ph-blue); margin-inline-end: .5rem; }
.cat-list a:hover { background: var(--ph-soft); }
.cat-list a.active { background: rgba(31,94,255,.1); color: var(--ph-blue); font-weight: 600; }
.cat-list .badge { background: var(--ph-soft); color: var(--ph-text); font-weight: 600; }
@media (max-width: 991.98px) {
  .catalog-sidebar { position: static; }
  .cat-list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .cat-list a { white-space: nowrap; border: 1px solid var(--ph-line); }
}
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .92rem; color: var(--ph-text); }
.catalog-toolbar .form-select { min-width: 190px; }

.product-tile { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ph-line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.product-tile:hover { box-shadow: var(--ph-shadow); transform: translateY(-3px); }
.product-tile-img { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #f7f9fc; padding: 1rem; color: #b6c2d6; font-size: 2.5rem; }
.product-tile-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.product-tile:hover .product-tile-img img { transform: scale(1.05); }
.product-tile-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; flex: 1; }
.product-tile-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--ph-blue); background: rgba(31,94,255,.08); padding: .2rem .55rem; border-radius: 999px; text-decoration: none; }
.product-tile h3 { font-size: .98rem; margin: .2rem 0 0; line-height: 1.35; }
.product-tile h3 a { color: var(--ph-ink); text-decoration: none; }
.product-tile h3 a:hover { color: var(--ph-blue); }
.product-tile-sub { font-size: .8rem; color: var(--ph-text); margin: 0; }
.product-tile-sku { font-size: .78rem; color: #64748b; }
.product-tile-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.product-tile-actions .btn { flex: 1 1 auto; padding: .4rem .6rem; font-size: .8rem; border-radius: 10px; }
@media (max-width: 575.98px) { .product-tile-body { padding: .75rem; } .product-tile h3 { font-size: .88rem; } }

.product-crumbs { background: var(--ph-soft); padding: .9rem 0; font-size: .85rem; border-bottom: 1px solid var(--ph-line); }
.product-crumbs a { text-decoration: none; }
.product-gallery .gallery-main { aspect-ratio: 1 / 1; border-radius: 20px; background: #f7f9fc; border: 1px solid var(--ph-line); display: grid; place-items: center; padding: 1.5rem; font-size: 4rem; color: #b6c2d6; }
.product-gallery .gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 78px; height: 78px; padding: .3rem; border-radius: 12px; border: 2px solid var(--ph-line); background: #fff; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--ph-blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: .6rem 0 .3rem; }
.product-subtitle { color: var(--ph-blue); font-weight: 600; }
.product-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 1.2rem 0; }
.product-meta li { padding: .7rem .9rem; border-radius: 12px; background: var(--ph-soft); }
.product-meta span { display: block; font-size: .75rem; color: var(--ph-text); }
.product-meta a, .product-meta strong { font-weight: 700; text-decoration: none; }
.key-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.key-specs div { border: 1px solid var(--ph-line); border-radius: 12px; padding: .7rem .8rem; }
.key-specs small { display: block; font-size: .72rem; color: var(--ph-text); }
.key-specs strong { color: var(--ph-navy); }
.price-box { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px dashed rgba(31,94,255,.4); background: rgba(31,94,255,.04); font-weight: 600; font-size: .92rem; }
.price-box i { margin-inline-end: .45rem; }
.product-tabs .nav-tabs { border-bottom: 2px solid var(--ph-line); gap: .3rem; }
.product-tabs .nav-link { border: 0; color: var(--ph-text); font-weight: 600; padding: .8rem 1.2rem; border-radius: 10px 10px 0 0; }
.product-tabs .nav-link.active { color: var(--ph-blue); background: rgba(31,94,255,.07); box-shadow: inset 0 -3px 0 var(--ph-blue); }
.product-tabs .tab-content { padding: 1.8rem 0 0; }
.spec-table { border: 1px solid var(--ph-line); border-radius: 12px; overflow: hidden; }
.spec-table th { width: 40%; background: var(--ph-soft); font-weight: 600; font-size: .9rem; }
.spec-table td { font-size: .92rem; }
.doc-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border: 1px solid var(--ph-line); border-radius: 14px; text-decoration: none; color: var(--ph-ink); }
.doc-card:hover { border-color: var(--ph-blue); }
.doc-card > i { font-size: 2rem; color: #dc2626; }
.doc-card small { display: block; color: var(--ph-text); }
.product-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; display: flex; gap: .5rem; padding: .6rem 1rem; background: #fff; box-shadow: 0 -8px 24px -12px rgba(15,23,42,.3); }
.product-sticky .btn { flex: 1; }
@media (max-width: 991.98px) {
  body:has(.product-sticky) .whatsapp-float { bottom: 84px; }
  body:has(.product-sticky) .back-to-top { bottom: 152px; }
  body:has(.product-sticky) .site-footer { padding-bottom: 64px; }
}
.quote-product { display: flex; gap: 1rem; align-items: center; padding: 1rem; margin-bottom: 1.5rem; border-radius: 14px; background: var(--ph-soft); }
.quote-product img { object-fit: contain; background: #fff; border-radius: 10px; }
.quote-product small { display: block; color: var(--ph-text); font-size: .78rem; }
.quote-product strong { display: block; }
.quote-product span { font-size: .85rem; color: var(--ph-text); }

/* Hero slider: IT slide + featured product slides */
.hero .carousel-item { min-height: 560px; }
@media (min-width: 992px) { .hero .carousel-item > .container { min-height: 560px; display: flex; align-items: center; } .hero .carousel-item > .container > .row { width: 100%; } }
.hero-product .hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 1.1rem 0 .6rem; }
.hero-product-sub { color: var(--ph-cyan); font-weight: 600; font-size: 1.15rem; }
.hero-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.4rem; max-width: 560px; }
.hero-specs div { padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.hero-specs small { display: block; color: #9fb3d9; font-size: .72rem; }
.hero-specs strong { color: #fff; font-size: 1.02rem; }
@media (max-width: 575.98px) { .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }
.hero-product-ring { position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 58%, #e6efff 66%, rgba(25,195,255,.3) 72%, transparent 73%);
  box-shadow: 0 0 80px 10px rgba(25,195,255,.25); }
.hero-product-visual img { position: relative; width: 66%; height: 66%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s; }
.hero-product-visual:hover img { transform: scale(1.04) rotate(-2deg); }
.carousel-item.active .hero-product-visual img { animation: heroPop .9s ease both; }
@keyframes heroPop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-indicators { margin-bottom: -3.5rem; }
.hero-indicators [data-bs-target] { width: 34px; height: 5px; border-radius: 5px; border: 0; background: rgba(255,255,255,.45); }
.hero-indicators .active { background: var(--ph-cyan); }
.hero-control { width: 48px; height: 48px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); opacity: .8; font-size: 1.3rem; }
.hero-control:hover { background: rgba(255,255,255,.18); opacity: 1; }
.carousel-control-prev.hero-control { left: 1rem; }
.carousel-control-next.hero-control { right: 1rem; }
@media (max-width: 1399.98px) { .hero-control { display: none; } }
.products-promo { padding-top: 4.5rem; }

/* Product page: quotation by email box */
.email-quote { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1rem; padding: 1rem 1.2rem;
  border-radius: 14px; border: 1px solid var(--ph-line); background: #fff; }
.email-quote-icon { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(31,94,255,.1); color: var(--ph-blue); }
.email-quote-text { flex: 1 1 220px; }
.email-quote-text strong { display: block; font-size: .98rem; }
.email-quote-text span { font-size: .88rem; color: var(--ph-text); }
.email-quote-text a { font-weight: 700; text-decoration: none; }
.email-quote .btn { white-space: nowrap; }
@media (max-width: 575.98px) { .email-quote .btn { width: 100%; } }
