/*
Theme Name: iRIF Technologies V15 (iRIF Mail)
Theme URI: https://www.iriftechnologies.com/
Author: Jaky I Tech
Description: Premium animated light-tech corporate theme for iRIF Technologies. Full customer-document content, project logos, editable project URLs/logo sizes, project briefing blogs, investor form, Elementor compatibility, and responsive motion effects.
Version: 15.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: irif-v11
*/

:root{
  --irif-blue:#075cff;
  --irif-blue-2:#00a9ff;
  --irif-cyan:#29e1ff;
  --irif-green:#45d337;
  --irif-green-2:#0cae77;
  --irif-navy:#082b5b;
  --irif-ink:#12335f;
  --irif-muted:#6a809d;
  --irif-line:#dce9f7;
  --irif-soft:#f7fbff;
  --irif-card:#fff;
  --irif-shadow:0 16px 42px rgba(24,76,155,.11);
  --irif-radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--irif-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.62;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(1200px,calc(100% - 34px));margin:auto;position:relative;z-index:2}
.section{padding:76px 0;position:relative;overflow:hidden}
.section.soft{background:linear-gradient(rgba(255,255,255,.88),rgba(255,255,255,.95)),url('assets/images/irif-background.png') center/cover no-repeat}
.section.soft:before,.page-hero:before,.hero:after{
  content:"";position:absolute;inset:-30%;pointer-events:none;opacity:.35;
  background:
    radial-gradient(circle at 20% 20%,rgba(41,225,255,.22),transparent 12%),
    radial-gradient(circle at 78% 26%,rgba(69,211,55,.15),transparent 13%),
    radial-gradient(circle at 70% 80%,rgba(7,92,255,.14),transparent 12%);
  animation:ambientShift 18s ease-in-out infinite alternate
}
@keyframes ambientShift{to{transform:translate3d(3%,-2%,0) scale(1.04)}}
.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--irif-blue);font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin-bottom:12px}
.eyebrow:before{content:"";width:24px;height:2px;background:linear-gradient(90deg,var(--irif-green),var(--irif-blue-2))}
h1,h2,h3,h4{line-height:1.1;margin:0 0 14px}
h1{font-size:clamp(2.8rem,5.2vw,5.55rem);letter-spacing:-.05em}
h2{font-size:clamp(1.9rem,3.35vw,3.35rem);letter-spacing:-.035em}
h3{font-size:1.16rem}
p,li{color:var(--irif-muted)}
strong{color:var(--irif-ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:0 18px;border-radius:10px;border:1px solid #bdd4f1;font-size:.82rem;font-weight:900;position:relative;overflow:hidden;transition:.22s}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(7,92,255,.14)}
.btn-primary{color:#fff;border-color:transparent;background:linear-gradient(100deg,var(--irif-blue),#1452d8 58%,var(--irif-blue-2));box-shadow:0 9px 24px rgba(7,92,255,.22)}
.btn-primary:after{content:"";position:absolute;top:-90%;left:-35%;width:23%;height:280%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.56),transparent);transform:rotate(18deg);animation:btnShine 3.8s linear infinite}
@keyframes btnShine{0%{left:-35%}60%,100%{left:135%}}
.btn-light{background:rgba(255,255,255,.92);color:var(--irif-blue)}
.btn-green{background:linear-gradient(100deg,#18b646,#56d71e);color:#fff;border:0}

/* Ambient animated background */
.irif-ambient{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ambient-particle{position:absolute;border-radius:50%;background:linear-gradient(135deg,var(--irif-cyan),var(--irif-blue));box-shadow:0 0 22px rgba(41,225,255,.45);opacity:.22;animation:particleFloat var(--dur,14s) ease-in-out infinite alternate}
.ambient-particle.green{background:linear-gradient(135deg,#9cff44,var(--irif-green-2));box-shadow:0 0 22px rgba(69,211,55,.35)}
@keyframes particleFloat{to{transform:translate3d(var(--dx,50px),var(--dy,-80px),0) scale(1.35);opacity:.08}}
.site-header,.site-main,.site-footer,.float-contact{position:relative;z-index:3}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.91);backdrop-filter:blur(16px);border-bottom:1px solid rgba(18,67,140,.08)}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand img{width:185px;max-height:58px;object-fit:contain}
.main-nav ul{display:flex;align-items:center;gap:20px;list-style:none;margin:0;padding:0}
.main-nav a{font-size:.75rem;font-weight:900;color:#173766;display:flex;align-items:center;gap:7px}
.main-nav li{position:relative}
.main-nav .sub-menu{display:none;position:absolute;top:100%;left:-12px;min-width:300px;padding:10px;background:rgba(255,255,255,.98);border:1px solid var(--irif-line);border-radius:14px;box-shadow:var(--irif-shadow)}
.main-nav li:hover>.sub-menu{display:block;animation:menuDrop .18s ease-out}
@keyframes menuDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.main-nav .sub-menu a{display:flex;padding:8px 10px;border-radius:9px}
.main-nav .sub-menu a:hover{background:#f3f8ff}
.menu-project-logo{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#fff;border:1px solid #e0eaf7;overflow:hidden;flex:0 0 28px}
.menu-project-logo img{width:26px;height:26px;object-fit:contain}
.menu-project-logo.mart-mark{font-size:15px}
.nav-actions{display:flex;gap:9px}.menu-toggle{display:none;background:transparent;border:0;color:var(--irif-navy);font-size:1.45rem}

/* Hero */
.hero{min-height:690px;display:flex;align-items:center;position:relative;overflow:hidden;background:radial-gradient(circle at 78% 35%,rgba(0,164,255,.13),transparent 24%),radial-gradient(circle at 88% 67%,rgba(71,213,56,.10),transparent 23%),linear-gradient(120deg,#fff 0%,#fbfdff 58%,#f4f9ff 100%)}
.hero:before{content:"";position:absolute;inset:0;opacity:.3;background-image:linear-gradient(rgba(7,92,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(7,92,255,.03) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(90deg,transparent,#000 58%,#000)}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:44px;align-items:center;position:relative;z-index:2}
.hero-copy p{font-size:1.01rem;max-width:680px}
.hero-copy em{font-style:normal;color:var(--irif-blue)}
.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #c4ead6;border-radius:999px;background:#fff;color:#178d69;font-size:.71rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}
.hero-kicker i{width:7px;height:7px;border-radius:50%;background:var(--irif-green);animation:pulse 1.7s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(71,213,56,.42)}70%{box-shadow:0 0 0 9px rgba(71,213,56,0)}}
.hero-actions,.status-row,.inline-links{display:flex;flex-wrap:wrap;gap:9px}.hero-actions{margin-top:22px}.status-row{margin:18px 0}
.status{padding:7px 10px;border-radius:999px;border:1px solid var(--irif-line);background:#fff;font-size:.68rem;font-weight:900;color:#647b99}
.status.live{color:#238f44}.status.live:before{content:"●";color:#39cf4d;margin-right:6px}.status.next{color:#7954ba;background:#f8f3ff}
.hero-art{position:relative;min-height:500px;display:grid;place-items:center}
.eco-art{width:min(610px,100%);filter:drop-shadow(0 25px 52px rgba(12,81,175,.17));animation:ecoFloat 5s ease-in-out infinite}
@keyframes ecoFloat{50%{transform:translateY(-9px) scale(1.01)}}
.orbit-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:var(--irif-cyan);box-shadow:0 0 18px var(--irif-cyan);animation:blink 2.3s ease-in-out infinite}
.d1{top:14%;left:16%}.d2{top:25%;right:7%;animation-delay:.4s}.d3{bottom:15%;left:8%;animation-delay:.8s}.d4{bottom:19%;right:5%;animation-delay:1.1s}
@keyframes blink{50%{transform:scale(1.7);opacity:.35}}

.live-strip{position:relative;z-index:5;margin-top:-35px}
.live-strip-inner{display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);border:1px solid var(--irif-line);border-radius:16px;box-shadow:var(--irif-shadow);overflow:hidden}
.live-item{padding:16px 18px;border-right:1px solid var(--irif-line)}.live-item:last-child{border-right:0}
.live-item small{font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em;color:#239b49}.live-item.next small{color:#7654bb}.live-item h3{font-size:.95rem;margin:4px 0}

/* Compact components */
.section-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:30px}.section-head p{max-width:560px;margin:0}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.grid-5{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}
.card,.panel{background:rgba(255,255,255,.94);border:1px solid var(--irif-line);border-radius:var(--irif-radius);box-shadow:var(--irif-shadow);backdrop-filter:blur(8px)}
.card{padding:21px;position:relative;overflow:hidden;transition:.22s transform,.22s box-shadow}
.card:hover{transform:translateY(-5px);box-shadow:0 21px 52px rgba(20,78,160,.16)}
.panel{padding:27px}
.card.feature{min-height:185px}.card.feature p{font-size:.88rem}
.card.project-card{min-height:300px;display:flex;flex-direction:column;justify-content:space-between}
.card.flash:before{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;animation:cardFlash 3.2s infinite}
@keyframes cardFlash{50%{box-shadow:inset 0 0 0 1px rgba(0,167,255,.28),0 0 18px rgba(0,167,255,.13)}}
.card.feature:nth-child(2n){transform:translateY(10px)}.card.feature:nth-child(2n):hover{transform:translateY(5px)}
.icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#f1f7ff;border:1px solid #d7e7fa;color:var(--irif-blue);font-size:1.35rem;margin-bottom:15px}
.icon.green{background:#f2fff7;border-color:#ceedd9;color:#18a35a}
.badge-live,.badge-next,.badge-future{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;width:max-content}
.badge-live{background:#eefcf3;color:#248e43}.badge-next{background:#edf6ff;color:#2a71ba}.badge-future{background:#f4efff;color:#7b55bd}

/* Project logos */
.project-logo-wrap{height:112px;display:flex;align-items:center;justify-content:center;margin:6px 0 12px;position:relative}
.project-logo{max-width:160px;max-height:100px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 9px 13px rgba(9,66,148,.10));transform:scale(var(--project-logo-scale,1));transform-origin:center;animation:logoBreathe 4.5s ease-in-out infinite}
.project-logo.wide{max-width:190px}
@keyframes logoBreathe{50%{filter:drop-shadow(0 12px 18px rgba(0,152,255,.18));transform:scale(calc(var(--project-logo-scale,1) * 1.025))}}
.project-logo-placeholder{width:100px;height:76px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#eef7ff,#f6fff6);border:1px solid #cfe3f7;color:var(--irif-blue);font-size:2rem;box-shadow:0 10px 24px rgba(7,92,255,.08)}
.project-mini{display:flex;align-items:center;gap:9px}
.project-mini .project-logo-wrap{height:38px;width:48px;margin:0;flex:0 0 48px}
.project-mini .project-logo{max-width:45px;max-height:34px;animation:none}
.project-mini .project-logo-placeholder{width:36px;height:32px;border-radius:8px;font-size:16px}

/* Layout visuals */
.split{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.visual{background:rgba(255,255,255,.84);border:1px solid var(--irif-line);border-radius:24px;box-shadow:var(--irif-shadow);padding:14px;overflow:hidden}
.visual img{border-radius:14px}.visual.ecosystem img{max-height:610px;margin:auto;object-fit:contain}.visual.logo img{max-height:290px;margin:auto;object-fit:contain}
.timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.phase{padding:19px;border:1px solid var(--irif-line);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(18,70,145,.06)}.phase b{display:block;color:var(--irif-blue);font-size:.66rem;letter-spacing:.1em;margin-bottom:7px}
.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px;border-radius:22px;border:1px solid #bfd8f4;background:linear-gradient(110deg,rgba(249,252,255,.97),rgba(239,247,255,.97) 62%,rgba(245,255,247,.97));box-shadow:var(--irif-shadow)}.cta p{max-width:680px;margin-bottom:0}
.page-hero{padding:118px 0 56px;position:relative;overflow:hidden;background:radial-gradient(circle at 82% 22%,rgba(0,167,255,.10),transparent 24%),linear-gradient(110deg,#fff,#f7fbff)}
.page-hero-grid{display:grid;grid-template-columns:1fr .72fr;gap:34px;align-items:center}.page-hero .visual{max-width:440px;margin-left:auto}
.prose{max-width:930px}.prose h2,.prose h3{margin-top:1.2em}.prose ul,.prose ol{padding-left:22px}

/* Blog */
.blog-shell{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px}
.blog-article{background:rgba(255,255,255,.96);border:1px solid var(--irif-line);border-radius:18px;padding:30px;box-shadow:var(--irif-shadow)}
.blog-meta{font-size:.75rem;color:#8b9caf;margin-bottom:18px}
.sidebar-box{padding:18px;border:1px solid var(--irif-line);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:var(--irif-shadow);margin-bottom:15px}

/* Forms */
.form{display:grid;gap:13px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form label{display:block;font-size:.75rem;font-weight:900;margin-bottom:5px}.form input,.form textarea,.form select{width:100%;padding:11px 12px;border:1px solid #cbdcf1;border-radius:10px;background:#fbfdff;color:var(--irif-ink);font:inherit}.form textarea{min-height:125px}.form button{border:0;cursor:pointer}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px}
.notice{padding:11px 13px;border-radius:10px;background:#effcf4;border:1px solid #c8e8d2;margin-bottom:12px}

/* Footer */
.site-footer{padding:54px 0 22px;border-top:1px solid var(--irif-line);background:linear-gradient(180deg,#f7fbff,#edf7ff)}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1.3fr 1.3fr;gap:25px}.footer-grid .brand img{width:205px}.footer-links{list-style:none;padding:0}.footer-links li{margin:7px 0;color:var(--irif-muted)}
.footer-projects{display:grid;gap:8px}
.footer-bottom{display:flex;justify-content:space-between;gap:18px;border-top:1px solid var(--irif-line);margin-top:30px;padding-top:18px;font-size:.8rem;color:#71839e}
.float-contact{position:fixed;right:18px;bottom:18px;z-index:950;padding:12px 16px;border-radius:999px;color:#fff;font-weight:950;background:linear-gradient(90deg,var(--irif-blue),var(--irif-blue-2));box-shadow:0 11px 30px rgba(7,92,255,.25);animation:contactPulse 2.7s infinite}
@keyframes contactPulse{50%{box-shadow:0 0 0 7px rgba(7,92,255,.06),0 11px 30px rgba(7,92,255,.25)}}

/* reveal/tilt */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.reveal.is-visible{opacity:1;transform:none}
.tilt-card{will-change:transform}

/* Elementor */
.elementor-page .site-main{width:100%}
.page-template-template-elementor-fullwidth .site-main{width:100%}

/* accessibility */
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}
  .reveal{opacity:1;transform:none}
}
@media(max-width:980px){
  .main-nav{display:none}.main-nav.open{display:block;position:absolute;top:78px;left:0;right:0;padding:20px;background:#fff;border-top:1px solid var(--irif-line)}
  .main-nav.open ul{flex-direction:column;align-items:flex-start}.main-nav .sub-menu{display:block;position:static;box-shadow:none;border:0;padding-left:12px}
  .menu-toggle{display:block}.nav-actions .btn-light{display:none}
  .hero-grid,.page-hero-grid,.split,.contact-grid,.blog-shell{grid-template-columns:1fr}.hero-art{min-height:440px}
  .live-strip{margin-top:15px}.live-strip-inner{grid-template-columns:repeat(2,1fr)}
  .grid-5{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}.timeline{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1.2fr 1fr 1fr}
}
@media(max-width:640px){
  .section{padding:58px 0}.hero{min-height:auto;padding:52px 0}.hero-art{min-height:320px}
  .live-strip-inner,.grid-5,.grid-4,.grid-3,.grid-2,.timeline,.form-row{grid-template-columns:1fr}
  .card.feature:nth-child(2n){transform:none}.section-head,.cta{display:block}.cta .btn{margin-top:15px}
  .nav-actions .btn-primary{display:none}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}
  .project-logo-wrap{height:96px}
}

/* ============================================================
   V11 FINAL LAYOUT CORRECTIONS
   Customer handoff polish: image integration, typography,
   project rows, richer information cards, dropdown logos.
   ============================================================ */

/* Balanced site-wide typography: strong, not oversized */
h1{font-size:clamp(2.45rem,4.15vw,4.45rem);line-height:1.06;letter-spacing:-.045em}
h2{font-size:clamp(1.72rem,2.7vw,2.75rem);line-height:1.1;letter-spacing:-.03em}
.hero h1{font-size:clamp(2.75rem,4.45vw,4.75rem);max-width:760px}
.page-hero h1{font-size:clamp(2.35rem,3.85vw,4rem);max-width:780px}
.hero-copy p,.page-hero p{font-size:.98rem;line-height:1.68}
.section-head{margin-bottom:26px}
.section{padding:68px 0}

/* Transparent artwork integration — no white pasted image boxes */
.visual,
.visual.transparent-visual,
.page-hero .visual,
.page-hero .visual.logo,
.page-hero .visual.ecosystem{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
  backdrop-filter:none!important;
}
.visual img,
.visual.logo img,
.visual.ecosystem img,
.transparent-visual img{
  border-radius:0!important;
  width:auto;
  max-width:100%;
  height:auto;
  object-fit:contain;
  margin:auto;
  filter:drop-shadow(0 18px 30px rgba(16,87,170,.14));
}
.visual.ecosystem img{max-height:590px}
.visual.logo img{max-height:255px;max-width:520px}
.page-hero .visual{max-width:520px;margin-left:auto}
.page-hero-grid{grid-template-columns:minmax(0,1.06fr) minmax(320px,.64fr);gap:50px}
.page-hero .visual:before,.visual:before{display:none!important}

/* Project/blog hero logo: float naturally in page, no card */
.project-hero-media{
  min-height:300px;display:flex;align-items:center;justify-content:center;
  position:relative;padding:8px 0;
}
.project-hero-media:before{
  content:"";position:absolute;width:72%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(30,190,255,.15),rgba(69,211,55,.06) 38%,transparent 70%);
  filter:blur(8px);pointer-events:none;
}
.project-hero-media .project-logo-wrap{height:250px;width:100%;margin:0;z-index:1}
.project-hero-media .project-logo{max-width:min(440px,92%);max-height:235px;filter:drop-shadow(0 20px 28px rgba(8,78,165,.16))}
.project-hero-media .project-logo.wide{max-width:min(500px,96%)}

/* Home ecosystem artwork should float directly on the section background */
.section.soft .visual.ecosystem{align-self:center}
.section.soft .visual.ecosystem img{animation:ecoFloat 5.2s ease-in-out infinite}

/* Priority projects: one perfect row on desktop */
.priority-project-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.priority-project-row .project-card{height:100%}
.project-card{min-height:0;height:100%;padding:22px}
.project-card>div:first-child{display:flex;flex-direction:column}
.project-card .inline-links{margin-top:auto;padding-top:8px}
.project-logo-wrap{height:104px;margin:6px 0 10px}
.project-logo{max-height:92px}
.project-logo.wide{max-width:205px}

/* Home Linx/Mall cards replacing generic cards */
.ecosystem-live-cards{margin-top:18px}
.ecosystem-project{min-height:290px!important;display:flex;flex-direction:column}
.ecosystem-project .ecosystem-card-logo .project-logo-wrap{height:96px;margin:0 0 8px}
.ecosystem-project .ecosystem-card-logo .project-logo{max-height:84px;max-width:180px}
.ecosystem-project p{font-size:.86rem;margin:.4em 0}
.ecosystem-project .inline-links{margin-top:auto;padding-top:8px}

/* Rich AI and Technology cards — compact, informative, consistent */
.info-card{min-height:220px!important;padding:20px!important}
.info-card .icon{width:46px;height:46px;font-size:1.2rem;margin-bottom:13px}
.info-card h3{font-size:1.02rem;margin-bottom:8px}
.info-card p{font-size:.82rem!important;line-height:1.55;margin:0}
.grid-5 .info-card{min-height:235px!important}
.card.feature:nth-child(2n),.card.feature:nth-child(2n):hover{transform:none}

/* Contact branding */
.contact-brand-panel{overflow:hidden}
.contact-brand-logos{display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap;margin-top:28px;padding-top:22px;border-top:1px solid rgba(23,79,151,.09)}
.contact-brand-logos img{object-fit:contain;width:auto;height:auto;filter:drop-shadow(0 10px 18px rgba(11,75,157,.13))}
.contact-company-logo{max-width:260px;max-height:150px}
.contact-linx-logo{max-width:190px;max-height:125px}

/* Dropdown project logos: no blank framed boxes */
.main-nav .sub-menu{min-width:330px}
.main-nav .sub-menu a{gap:10px;align-items:center;min-height:47px}
.menu-project-logo{
  width:40px!important;height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 40px!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important
}
.menu-project-logo img.menu-project-image{display:block!important;width:auto!important;height:auto!important;max-width:38px!important;max-height:31px!important;object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(12,77,157,.10))}

/* Footer mini logos also stay transparent */
.project-mini .project-logo-wrap{background:transparent!important;border:0!important}

/* Better visual balance */
.hero-grid{grid-template-columns:minmax(0,1.02fr) minmax(380px,.98fr);gap:48px}
.hero-art{min-height:470px}
.eco-art{width:min(570px,100%)}
.card,.panel{border-radius:16px}

@media(max-width:1100px){
  .hero h1{font-size:clamp(2.55rem,5vw,4.1rem)}
  .page-hero-grid{grid-template-columns:1fr .72fr;gap:34px}
  .project-hero-media .project-logo{max-width:380px}
}
@media(max-width:980px){
  h1{font-size:clamp(2.2rem,6vw,3.6rem)}
  h2{font-size:clamp(1.65rem,4.6vw,2.45rem)}
  .hero-grid,.page-hero-grid{grid-template-columns:1fr}
  .hero-art,.project-hero-media{min-height:330px}
  .page-hero .visual{margin:14px auto 0;max-width:560px}
  .priority-project-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  h1,.hero h1,.page-hero h1{font-size:clamp(2rem,11vw,3rem)}
  h2{font-size:clamp(1.55rem,8vw,2.2rem)}
  .section{padding:54px 0}
  .priority-project-row,.grid-5{grid-template-columns:1fr}
  .project-hero-media{min-height:245px}
  .project-hero-media .project-logo-wrap{height:205px}
  .project-hero-media .project-logo{max-height:190px}
  .contact-brand-logos{display:grid;grid-template-columns:1fr;justify-items:center}
  .contact-company-logo{max-width:230px}.contact-linx-logo{max-width:175px}
}


/* ============================================================
   V11.2 MEDIA + LIVE CHAT POLISH
   ============================================================ */

/* New ecosystem image is transparent and should always float naturally */
.hero-art .eco-art,
.visual.ecosystem img,
.transparent-visual img{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
}
.hero-art .eco-art{max-height:610px}
.visual.ecosystem img{max-height:560px}

/* iRIF Mart physical-store showcase */
.mart-marketing-showcase{
  position:relative;
  overflow:hidden;
  padding:64px 0;
  background:
    radial-gradient(circle at 80% 25%,rgba(0,157,255,.10),transparent 26%),
    radial-gradient(circle at 18% 80%,rgba(71,213,56,.07),transparent 24%),
    linear-gradient(180deg,#ffffff,#f8fcff);
}
.mart-marketing-grid{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:44px;
  align-items:center;
}
.mart-marketing-copy h2{max-width:520px}
.mart-marketing-copy p{max-width:570px}
.mart-shop-visual{
  position:relative;
  min-height:430px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mart-shop-visual:before{
  content:"";
  position:absolute;
  width:78%;
  height:72%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(25,173,255,.14),rgba(60,214,77,.06) 45%,transparent 72%);
  filter:blur(16px);
}
.mart-shop-visual img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  max-width:980px;
  height:auto;
  max-height:560px;
  object-fit:contain;
  border:0;
  border-radius:20px;
  box-shadow:0 24px 55px rgba(17,73,145,.15);
  animation:martShopFloat 5.5s ease-in-out infinite;
}
@keyframes martShopFloat{
  50%{transform:translateY(-7px)}
}

/* iRIF Linx chat button */
.float-linx-chat{
  position:fixed;
  right:18px;
  bottom:76px;
  z-index:951;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:0 16px;
  border-radius:999px;
  color:#fff;
  font-size:.82rem;
  font-weight:950;
  letter-spacing:.01em;
  background:linear-gradient(90deg,#13a446,#50d92f);
  box-shadow:0 12px 30px rgba(32,161,67,.22);
  transition:transform .22s ease,box-shadow .22s ease;
}
.float-linx-chat:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(32,161,67,.30);
}
.float-linx-chat .chat-dot{
  width:8px;height:8px;border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 0 rgba(255,255,255,.55);
  animation:linxChatPulse 1.8s infinite;
}
@keyframes linxChatPulse{
  70%{box-shadow:0 0 0 8px rgba(255,255,255,0)}
}
@media(max-width:980px){
  .mart-marketing-grid{grid-template-columns:1fr}
  .mart-shop-visual{min-height:360px}
}
@media(max-width:640px){
  .mart-marketing-showcase{padding:48px 0}
  .mart-shop-visual{min-height:260px}
  .mart-shop-visual img{max-height:360px;border-radius:14px}
  .float-linx-chat{
    right:12px;
    bottom:72px;
    padding:0 13px;
    font-size:.74rem;
  }
}

/* V12: only the SECOND Home ecosystem visual uses the new transparent artwork */
.home-second-ecosystem-v12{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.home-second-ecosystem-v12 img{width:min(100%,720px)!important;height:auto!important;max-height:720px!important;object-fit:contain!important;filter:drop-shadow(0 18px 30px rgba(0,108,255,.16));background:transparent!important;border:0!important;box-shadow:none!important}
/* V12 Linx live chat */
.irif-chat{position:fixed;right:18px;bottom:18px;z-index:9998;font-family:inherit}.irif-chat-launch{border:0;border-radius:999px;background:linear-gradient(135deg,#075cff,#00a9ff);color:#fff;font-weight:900;padding:13px 18px;box-shadow:0 14px 35px rgba(7,92,255,.28);cursor:pointer}.irif-chat-launch i{display:inline-block;width:8px;height:8px;background:#48e35e;border-radius:50%;margin-left:8px}.irif-chat-panel{position:absolute;right:0;bottom:58px;width:min(370px,calc(100vw - 28px));background:#fff;border:1px solid #dce9f7;border-radius:20px;box-shadow:0 24px 70px rgba(8,43,91,.22);overflow:hidden}.irif-chat-panel header{position:relative;padding:16px 48px 14px 18px;color:#fff;background:linear-gradient(135deg,#075cff,#00a9ff)}.irif-chat-panel header strong,.irif-chat-panel header small{display:block}.irif-chat-panel header small{opacity:.88}.irif-chat-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}.irif-chat-onboard{padding:16px}.irif-chat-onboard label{display:block;font-weight:800;font-size:13px;margin-bottom:11px}.irif-chat-onboard input,.irif-chat-onboard select{display:block;width:100%;margin-top:5px;border:1px solid #dce9f7;border-radius:10px;padding:11px;background:#fff;color:#12335f}.irif-chat-onboard em{font-weight:500}.country-note{display:block;margin-top:4px;color:#6a809d;font-weight:500}.irif-chat-start{width:100%;border:0;border-radius:10px;background:#075cff;color:#fff;padding:12px;font-weight:900;cursor:pointer}.irif-chat-consent{font-size:11px;color:#6a809d;line-height:1.45}.irif-chat-room{height:430px}.irif-chat-messages{height:365px;overflow:auto;padding:14px;background:#f7fbff}.irif-chat-msg{max-width:82%;margin:7px 0;padding:9px 11px;border-radius:13px;background:#fff;border:1px solid #dce9f7;white-space:pre-wrap}.irif-chat-msg.me{margin-left:auto;background:#075cff;color:#fff;border-color:#075cff}.irif-chat-compose{display:flex;gap:7px;padding:9px;border-top:1px solid #dce9f7}.irif-chat-compose textarea{flex:1;resize:none;height:42px;border:1px solid #dce9f7;border-radius:10px;padding:9px}.irif-chat-compose button{border:0;border-radius:10px;background:#075cff;color:#fff;font-weight:900;padding:0 14px}.irif-chat-status{padding:8px 14px;font-size:12px;color:#b23b2a;background:#fff4f1}.float-linx-chat,.float-contact{display:none!important}@media(max-width:600px){.irif-chat{right:12px;bottom:12px}.irif-chat-panel{position:fixed;right:10px;left:10px;bottom:68px;width:auto}}


/* V12.0.1 hotfix: keep Linx chat launcher clickable above all theme layers */
#irif-chat.irif-chat{position:fixed!important;right:18px!important;bottom:18px!important;z-index:2147483000!important;pointer-events:auto!important;isolation:isolate!important}
#irif-chat .irif-chat-launch{position:relative!important;z-index:2!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}
#irif-chat .irif-chat-panel{z-index:3!important;pointer-events:auto!important}
#irif-chat .irif-chat-panel[hidden]{display:none!important}
#irif-chat .irif-chat-panel:not([hidden]){display:block!important}
#irif-chat button,#irif-chat input,#irif-chat select,#irif-chat textarea{pointer-events:auto!important}
@media(max-width:600px){#irif-chat.irif-chat{right:12px!important;bottom:12px!important}}

/* V12.1 two-way Linx WebChat */
.irif-chat-onboard textarea[name="initial_message"]{display:block;width:100%;margin-top:5px;border:1px solid #dce9f7;border-radius:10px;padding:11px;background:#fff;color:#12335f;resize:vertical;min-height:78px;font:inherit}
\n\n/* =========================================================\n   iRIF Technologies V13 FINAL CUSTOMER HANDOFF\n   Locked final homepage / menu / Mall / Mart / Contact pass\n   ========================================================= */\n.site-header .nav{min-height:92px;padding-top:10px;padding-bottom:10px}\n.main-nav ul{gap:25px}\n.main-nav a{font-size:.91rem;font-weight:500;letter-spacing:.005em;color:#173766}\n.main-nav a:hover{color:#076cf2}\n.brand img{max-height:70px}\n\n.final-home-hero{padding-top:78px;padding-bottom:70px}\n.final-home-hero .hero-grid{grid-template-columns:minmax(0,.95fr) minmax(460px,1.05fr);gap:54px;align-items:center}\n.final-home-hero .hero-copy h1{font-size:clamp(2.85rem,4.2vw,4.65rem);line-height:1.02;max-width:820px;letter-spacing:-.045em}\n.final-home-hero .hero-copy h1 .hero-line{display:block;white-space:nowrap}\n.final-home-hero .hero-copy h1 em{font-style:normal;color:#0878f9}\n.final-home-hero .hero-copy p{max-width:720px}\n.final-hero-art{min-height:590px;display:flex;align-items:center;justify-content:center}\n.final-hero-art .eco-art{width:min(100%,650px);max-height:650px;object-fit:contain;filter:drop-shadow(0 28px 36px rgba(0,117,255,.18))}\n\n.final-ecosystem-grid{grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);align-items:center;gap:52px}\n.final-ecosystem-copy h2{max-width:700px}\n.ecosystem-points{list-style:none;padding:0;margin:24px 0 18px;display:grid;gap:10px}\n.ecosystem-points li{position:relative;padding-left:28px;color:#395a83;line-height:1.5}\n.ecosystem-points li:before{content:'✓';position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#21c763;color:#fff;font-size:11px;font-weight:900}\n.ecosystem-points strong{color:#123966}\n.ecosystem-statement{margin-top:20px;color:#103d70}\n.ecosystem-tagline{font-weight:800;letter-spacing:.18em;color:#54749b;font-size:.85rem}\n.final-ecosystem-art img{width:min(100%,760px)!important;max-height:760px!important}\n\n.project-final-hero{padding-top:92px;padding-bottom:76px}\n.project-final-hero .page-hero-grid{grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:52px}\n.project-final-hero h1{font-size:clamp(3rem,4.8vw,5.4rem);line-height:.95}\n.project-final-hero h1 em{font-style:normal;color:#0878f9}\n.project-final-hero .project-subtitle{font-size:1.22rem;color:#173766;margin-bottom:18px}\n.project-feature-row{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}\n.project-feature-row span{display:inline-flex;align-items:center;min-height:42px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.8);border:1px solid rgba(28,121,230,.12);box-shadow:0 7px 18px rgba(13,85,166,.07);font-weight:650;font-size:.86rem;color:#193b68}\n.final-project-logo{min-height:410px}\n.final-project-logo .project-logo-wrap{height:360px}\n.final-project-logo .project-logo{max-width:min(660px,100%)!important;max-height:340px!important}\n.project-mall-final{background:radial-gradient(circle at 82% 28%,rgba(0,145,255,.17),transparent 28%),radial-gradient(circle at 66% 85%,rgba(35,217,117,.12),transparent 22%),linear-gradient(110deg,#fff,#f4fbff)}\n.project-mart-final{background:radial-gradient(circle at 82% 28%,rgba(0,151,255,.13),transparent 25%),radial-gradient(circle at 68% 85%,rgba(40,205,83,.10),transparent 24%),linear-gradient(110deg,#fff,#f7fbff)}\n.mart-marketing-showcase{padding:66px 0;background:linear-gradient(110deg,#f7fbff,#fff)}\n.mart-marketing-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(500px,1.2fr);gap:46px;align-items:center}\n.mart-shop-visual{border-radius:28px;overflow:hidden;box-shadow:0 22px 60px rgba(20,78,142,.12);background:#fff}\n.mart-shop-visual img{width:100%;height:auto;display:block;object-fit:cover}\n\n.final-contact-panel{padding:38px}\n.contact-detail{display:grid;grid-template-columns:58px 1fr;gap:16px;align-items:center;margin:20px 0}\n.contact-detail p{margin:0}\n.contact-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#eaf6ff;font-size:23px}\n.contact-social{margin-top:30px;padding-top:26px;border-top:1px solid rgba(23,79,151,.11)}\n.contact-social h3{margin-bottom:6px}\n.contact-linx-social{display:inline-block;margin-top:15px}\n.contact-linx-social img{display:block;width:min(100%,410px);max-height:100px;object-fit:contain;object-position:left center;filter:drop-shadow(0 10px 18px rgba(11,75,157,.13))}\n.final-contact-form>p{margin-top:-8px;color:#5c7596}\n\n@media (max-width:1100px){\n  .final-home-hero .hero-grid,.final-ecosystem-grid,.project-final-hero .page-hero-grid,.mart-marketing-grid{grid-template-columns:1fr}\n  .final-home-hero .hero-copy h1 .hero-line{white-space:normal}\n  .final-hero-art{min-height:420px}\n  .final-project-logo{min-height:320px}\n}\n@media (max-width:780px){\n  .site-header .nav{min-height:78px}\n  .brand img{max-height:58px}\n  .final-home-hero{padding-top:48px}\n  .final-home-hero .hero-copy h1{font-size:clamp(2.2rem,10vw,3.2rem)}\n  .final-hero-art{min-height:330px}\n  .final-ecosystem-art img{max-height:520px!important}\n  .project-final-hero h1{font-size:clamp(2.5rem,12vw,4rem)}\n  .final-project-logo .project-logo-wrap{height:250px}\n  .final-project-logo .project-logo{max-height:235px!important}\n}\n
/* =========================================================
   iRIF Technologies V14 FINAL REPAIR
   Site-wide asset reset + new Mall/Mart logos
   ========================================================= */
.project-logo-wrap{display:flex;align-items:center;justify-content:center;overflow:visible}
.project-logo{object-fit:contain!important;object-position:center!important}
.project-card[data-project="mall"] .project-logo,
.project-card[data-project="mart"] .project-logo{max-width:260px!important;max-height:110px!important;width:auto!important;height:auto!important}
.project-card[data-project="mall"] .project-logo-wrap,
.project-card[data-project="mart"] .project-logo-wrap{height:122px!important}
.project-mini .project-logo{max-width:46px!important;max-height:35px!important}
.menu-project-logo img.menu-project-image{object-fit:contain!important;background:transparent!important}

.project-mall-final .final-project-logo .project-logo{max-width:min(720px,100%)!important;max-height:360px!important}
.project-mart-final .final-project-logo .project-logo{max-width:min(760px,100%)!important;max-height:330px!important}
.project-mart-final .final-project-logo .project-logo-wrap,
.project-mall-final .final-project-logo .project-logo-wrap{height:370px!important}

.page-hero .visual img,
.page-hero .visual.ecosystem img,
.page-hero .visual.logo img{display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;max-width:100%!important;margin:auto!important;object-fit:contain!important}
.page-hero .visual.ecosystem img{max-height:560px!important}
.page-hero .visual.logo img{max-height:285px!important}

@media(max-width:780px){
  .project-mall-final .final-project-logo .project-logo,
  .project-mart-final .final-project-logo .project-logo{max-width:96%!important;max-height:220px!important}
  .project-mart-final .final-project-logo .project-logo-wrap,
  .project-mall-final .final-project-logo .project-logo-wrap{height:235px!important}
}

/* =========================================================
   iRIF Technologies V15 — iRIF Mail project
   Four live/next projects share one row on desktop.
   ========================================================= */
.grid-3:has(> .project-card[data-project="mail"]),
.priority-project-row:has(> .project-card[data-project="mail"]){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}
.grid-3:has(> .project-card[data-project="mail"]) .project-card{padding:20px}
.grid-3:has(> .project-card[data-project="mail"]) .inline-links{flex-wrap:nowrap;gap:8px}
.grid-3:has(> .project-card[data-project="mail"]) .inline-links .btn{padding:10px 13px;font-size:13px;white-space:nowrap}
.project-card[data-project="mail"] .project-logo{max-width:230px!important;max-height:110px!important;width:auto!important;height:auto!important}
.project-card[data-project="mail"] .project-logo-wrap{height:122px!important}
.project-mail-final .final-project-logo .project-logo{max-width:min(640px,100%)!important;max-height:320px!important}
.project-mail-final .final-project-logo .project-logo-wrap{height:340px!important}
@media(max-width:1180px){
  .grid-3:has(> .project-card[data-project="mail"]),
  .priority-project-row:has(> .project-card[data-project="mail"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .grid-3:has(> .project-card[data-project="mail"]),
  .priority-project-row:has(> .project-card[data-project="mail"]){grid-template-columns:1fr!important}
  .project-mail-final .final-project-logo .project-logo{max-height:200px!important}
  .project-mail-final .final-project-logo .project-logo-wrap{height:215px!important}
}
