/* RCI responsive quality pass V11 — mobile, tablet, laptop and wide desktop */
:root{--rci-gutter:clamp(14px,2.5vw,30px)}
html{overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:320px;overflow-x:clip}
main{width:100%;min-width:0}
img,video,iframe,svg{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,.btn,.nav-cta{touch-action:manipulation}
.section,.form-wrap{width:min(100%,var(--content));min-width:0}
.section>* ,.form-card>*{min-width:0}
.hero{width:calc(100% - 2*var(--rci-gutter));max-width:var(--content);margin-left:auto;margin-right:auto}
.hero>*{min-width:0}
.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{min-width:0;overflow-wrap:anywhere}
.card img{max-width:100%}
.supplier-card-head{align-items:flex-start}
.supplier-card-title{flex:1;min-width:0}
.supplier-card-title h3,.card h2,.card h3{overflow-wrap:anywhere}
.profile-layout>*{min-width:0}
.product-img,.retailer-photo-grid img,.facility-gallery img{max-width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.table-wrap table{white-space:normal}
.form-grid>*{min-width:0}
input,select,textarea{max-width:100%}
input[type=file]{width:100%;min-width:0}
.actions .btn{min-width:120px}
.site-footer{overflow:hidden}
.footer-main>*{min-width:0}
.footer-logo{width:124px!important;height:124px!important;max-width:100%;}
.footer-logo img{object-fit:contain}
.footer-column a,.footer-column p,.footer-bottom span{overflow-wrap:anywhere}

/* Wide desktop: preserve a readable content measure rather than stretching cards */
@media(min-width:1440px){
 .header-inner{max-width:1360px!important;padding-inline:36px!important}
 .section{max-width:1280px}
 .hero{max-width:1280px}
 .footer-main,.footer-bottom{max-width:1280px!important}
 .grid{gap:22px}
}

/* Compact laptops and tablets: switch before the navigation becomes crowded */
@media(max-width:1024px){
 .site-header{height:82px!important}
 .header-inner{padding-inline:20px!important;gap:16px!important}
 .brand img{width:78px!important;height:72px!important}
 .menu-toggle{display:flex!important;flex:0 0 44px;width:44px;height:44px}
 .primary-nav{display:none!important;position:absolute!important;top:81px!important;left:0!important;right:0!important;z-index:70!important;max-height:calc(100dvh - 82px);overflow-y:auto;padding:12px 20px 22px!important;background:#fff!important;border-bottom:1px solid var(--line)!important;box-shadow:0 18px 28px rgba(7,24,63,.12)!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important;white-space:normal!important}
 .primary-nav.is-open{display:flex!important}
 .primary-nav>a:not(.nav-cta){padding:14px 10px!important;border-bottom:1px solid #edf0f5!important;font-size:15px!important}
 .primary-nav .nav-cta{justify-content:center!important;margin-top:12px!important}
 .hero{margin-top:22px;padding:clamp(24px,4vw,38px)}
 .section{padding-inline:20px}
 .footer-main{grid-template-columns:minmax(190px,.8fr) minmax(0,2fr)!important;gap:32px!important}
 .footer-links{gap:22px!important}
}

/* Tablet landscape / portrait */
@media(min-width:701px) and (max-width:1024px){
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero{grid-template-columns:1.05fr .95fr}
 .hero h1{font-size:clamp(32px,4.4vw,46px)}
 .details{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-layout{grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr)}
 .footer-main{grid-template-columns:1fr!important}
 .footer-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Phones */
@media(max-width:700px){
 .site-header{height:74px!important}
 .header-inner{padding-inline:14px!important;gap:10px!important}
 .brand img{width:72px!important;height:66px!important}
 .primary-nav{top:73px!important;max-height:calc(100dvh - 74px);padding-inline:14px!important}
 .hero{width:calc(100% - 24px);margin:14px 12px 22px;padding:22px 18px;border-radius:18px;grid-template-columns:1fr;gap:12px}
 .hero h1{font-size:clamp(30px,8.5vw,40px);line-height:1.12;overflow-wrap:anywhere}
 .hero p{font-size:15px;line-height:1.65}
 .hero>img{max-height:180px;width:100%;object-fit:contain}
 .section{padding-inline:14px;margin:34px auto}
 .section-head{align-items:flex-start;flex-direction:column}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .card{padding:15px;border-radius:15px}
 .form-wrap{padding-inline:12px;margin:22px auto 44px}
 .form-card{padding:16px;border-radius:16px}
 .form-grid{grid-template-columns:1fr;gap:14px}
 .field.full{grid-column:auto}
 .field .grid{grid-template-columns:1fr}
 .profile-top{gap:14px;align-items:flex-start}
 .profile-avatar{width:92px;height:92px;flex-basis:92px}
 .profile-top h1{font-size:clamp(23px,6vw,31px)}
 .details{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .detail{padding:11px}
 .supplier-card-head{gap:12px}
 .supplier-thumb{width:88px;height:88px;flex-basis:88px}
 .supplier-card-title h3{font-size:15px;line-height:1.3}
 .product-img,.retailer-photo-grid img,.facility-gallery img{aspect-ratio:1/1;height:auto}
 .directory-tools{display:grid;grid-template-columns:1fr;gap:9px}
 .directory-tools input,.directory-tools select{width:100%;max-width:none}
 .directory-tools .btn,.actions .btn{width:100%;min-height:46px}
 .actions{display:grid;grid-template-columns:1fr;gap:9px}
 .admin-shell{padding-inline:12px}
 .admin-heading{align-items:flex-start;flex-direction:column}
 .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-tabs{margin-right:-12px;padding-bottom:12px}
 .table-wrap{border-radius:12px}
 .table-wrap table{min-width:760px}
 .admin-inline{align-items:stretch}
 .admin-inline select,.admin-inline input{max-width:100%;min-width:0}
 .site-footer{margin-top:48px!important;padding:34px 16px 17px!important}
 .footer-main{grid-template-columns:1fr!important;gap:24px!important;padding-bottom:24px!important}
 .footer-logo{width:104px!important;height:104px!important}
 .footer-tagline{margin:13px 0 6px!important;font-size:14px!important}
 .footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}
 .footer-column{gap:10px!important}
 .footer-column a,.footer-column>span{font-size:13px!important}
 .footer-about{grid-column:1/-1!important}
 .footer-bottom{align-items:flex-start!important;flex-direction:column!important;gap:6px!important;padding-top:15px!important}
}

@media(max-width:420px){
 .grid{grid-template-columns:1fr}
 .admin-shortcuts{grid-template-columns:1fr}
 .details{grid-template-columns:1fr}
 .supplier-thumb{width:78px;height:78px;flex-basis:78px}
 .profile-avatar{width:82px;height:82px;flex-basis:82px}
 .footer-links{grid-template-columns:1fr!important}
 .footer-about{grid-column:auto!important}
 .field .grid{grid-template-columns:1fr}
}

@media(hover:none){a.card:hover{transform:none;box-shadow:0 5px 20px rgba(16,40,75,.035)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* RCI Motion System V12 — subtle, purposeful and accessible */
:root{--rci-ease:cubic-bezier(.2,.75,.25,1);--rci-shadow-hover:0 18px 42px rgba(7,24,63,.12)}
html{scroll-behavior:smooth;scroll-padding-top:100px}
.site-header{transition:box-shadow .28s var(--rci-ease),background-color .28s var(--rci-ease)}
.site-header.is-scrolled{box-shadow:0 8px 28px rgba(7,24,63,.10);background:rgba(255,255,255,.96);backdrop-filter:saturate(150%) blur(12px)}
.brand img{transition:transform .35s var(--rci-ease)}
.brand:hover img{transform:translateY(-2px) scale(1.025)}
.primary-nav a{transition:color .2s ease,background-color .2s ease,transform .2s ease}
.primary-nav .nav-cta,.btn{position:relative;isolation:isolate;overflow:hidden;transition:transform .22s var(--rci-ease),box-shadow .22s var(--rci-ease),background-color .22s ease}
.primary-nav .nav-cta:hover,.btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(7,24,63,.16)}
.primary-nav .nav-cta:active,.btn:active{transform:translateY(0) scale(.985)}
.menu-toggle span{transition:transform .25s ease,opacity .2s ease}
.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
.primary-nav.is-open{animation:rciMenuIn .24s var(--rci-ease) both}
@keyframes rciMenuIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.hero{position:relative;isolation:isolate;overflow:hidden}
.hero:before{content:"";position:absolute;z-index:-1;width:340px;height:340px;right:-150px;top:-190px;border-radius:50%;background:radial-gradient(circle,rgba(21,151,75,.10),transparent 68%);pointer-events:none}
.hero:after{content:"";position:absolute;z-index:-1;width:260px;height:260px;left:-160px;bottom:-190px;border-radius:50%;background:radial-gradient(circle,rgba(245,126,25,.10),transparent 70%);pointer-events:none}
.hero>img{animation:rciFloat 6s ease-in-out infinite;transform-origin:center}
@keyframes rciFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.card,.supplier-card,.product-card,.detail,.form-card,.admin-stat,.profile-panel{transition:transform .28s var(--rci-ease),box-shadow .28s var(--rci-ease),border-color .28s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.card:hover,.supplier-card:hover,.product-card:hover{transform:translateY(-5px);box-shadow:var(--rci-shadow-hover);border-color:rgba(21,151,75,.25)}.card img,.product-card img{transition:transform .55s var(--rci-ease)}.card:hover img,.product-card:hover img{transform:scale(1.035)}}
.card,.supplier-card,.product-card{backface-visibility:hidden}
.section-head h2{ text-wrap:balance }
.footer-column a{transition:color .2s ease,transform .2s ease}
.footer-column a:hover{transform:translateX(3px)}
/* Elements only become hidden after JS has successfully initialized. */
.js-motion [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .65s var(--rci-ease),transform .65s var(--rci-ease);transition-delay:var(--reveal-delay,0ms)}
.js-motion [data-reveal].is-visible{opacity:1;transform:translateY(0)}
.js-motion [data-reveal="zoom"]{transform:translateY(12px) scale(.985)}
.js-motion [data-reveal="zoom"].is-visible{transform:translateY(0) scale(1)}
:focus-visible{outline:3px solid rgba(21,151,75,.55);outline-offset:3px}
@media(max-width:700px){.hero>img{animation-duration:7s}.js-motion [data-reveal]{transition-duration:.48s}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero>img{animation:none!important}.js-motion [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}.primary-nav.is-open{animation:none!important}}

/* V14: premium motion graphics + admin control room */
.hero-motion{position:relative;isolation:isolate;background:linear-gradient(118deg,#edf4ff 0%,#f7fbff 48%,#edf9f1 100%)}
.hero-motion:before,.hero-motion:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none;filter:blur(1px)}
.hero-motion:before{width:230px;height:230px;right:7%;top:-90px;border:1px solid #15944735;box-shadow:0 0 0 22px #15944708,0 0 0 48px #f5822010;animation:rci-orbit 16s linear infinite}
.hero-motion:after{width:90px;height:90px;right:33%;bottom:-44px;background:radial-gradient(circle,#f5822030,transparent 70%);animation:rci-float 6s ease-in-out infinite}
@keyframes rci-orbit{to{transform:rotate(360deg)}}@keyframes rci-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.featured-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.featured-product-card{padding:12px;overflow:hidden}.featured-product-image{position:relative;display:block;overflow:hidden;border-radius:13px;background:#f4f6f9;aspect-ratio:1/1}.featured-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}.featured-product-card:hover .featured-product-image img{transform:scale(1.07)}.featured-ribbon{position:absolute;left:10px;top:10px;padding:5px 9px;background:#07183f;color:white;border-radius:20px;font-size:10px;font-weight:800;letter-spacing:.04em}.featured-product-copy{padding:12px 4px 4px}.featured-product-copy h3{font-size:16px;line-height:1.3;margin:6px 0 10px}.featured-meta{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}.featured-meta span{background:#f1f5f9;padding:4px 8px;border-radius:7px;font-size:11px;color:#536176}.featured-product-copy .btn{width:100%}.image-placeholder{display:grid;place-items:center;height:100%;color:#9aa7ba;font-weight:900}.featured-home-section{overflow:hidden}
/* Admin layout */
.admin-shell{max-width:1440px!important;padding-top:25px!important}.admin-heading{padding:26px 28px;border-radius:22px;background:linear-gradient(115deg,#07183f,#12356d 68%,#155b48);color:#fff;box-shadow:0 16px 36px #07183f22}.admin-heading h1{color:#fff!important;font-size:clamp(27px,3vw,36px)!important;margin:7px 0}.admin-heading .eyebrow{color:#a9e6c0}.admin-heading .muted{color:#d5deed}.admin-heading-actions{display:flex;gap:9px;flex-wrap:wrap}.admin-heading-actions .btn:not(.primary){background:#ffffff18;color:#fff;border-color:#ffffff30}.admin-tabs{padding:9px;background:#f1f4f9;border:1px solid #e5eaf1;border-radius:15px;gap:6px!important}.admin-tabs a{border:0!important;border-radius:10px!important;padding:11px 15px!important;color:#536176}.admin-tabs a.active{background:#07183f!important;box-shadow:0 5px 13px #07183f24}.admin-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.admin-stats .card{position:relative;overflow:hidden;padding:20px;border-radius:17px;border-color:#e7edf5;box-shadow:0 7px 22px #07183f08}.admin-stats .card:after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;right:-28px;top:-28px;background:#15944712}.admin-stats .stat{font-size:32px}.admin-shortcuts .card{min-height:130px;padding:22px;border-radius:17px;transition:transform .25s,box-shadow .25s}.admin-shortcuts .card:hover{transform:translateY(-5px);box-shadow:0 16px 30px #07183f12}.admin-shell h2{font-size:23px}.admin-section-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 0}.admin-section-title h2{margin:4px 0}.featured-counter{display:flex;flex-direction:column;min-width:145px;padding:13px 17px;border-radius:14px;background:#eaf7ef;color:#146b37}.featured-counter strong{font-size:22px}.featured-counter span{font-size:11px;font-weight:700}.admin-products-table table{min-width:1040px}.admin-product-cell{display:flex;align-items:center;gap:11px;min-width:200px}.admin-product-cell img,.admin-product-placeholder{width:54px;height:54px;border-radius:10px;object-fit:cover;background:#f0f3f7}.admin-product-placeholder{display:grid;place-items:center;color:#738198;font-weight:900}.feature-toggle{border:1px solid #dce5ef;background:#fff;color:#46566d;border-radius:9px;padding:8px 10px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}.feature-toggle.selected{background:#fff7e8;border-color:#f4d59b;color:#9a5b00}.feature-toggle:disabled{opacity:.45;cursor:not-allowed}.admin-status{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:800;background:#f1f4f8;color:#475467}.status-active,.status-approved{background:#e9f8ef;color:#14733a}.status-pending{background:#fff7e8;color:#946200}.status-rejected,.status-suspended{background:#fff0f0;color:#a12828}
@media(max-width:1000px){.featured-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.featured-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.featured-product-card{padding:8px}.featured-product-copy h3{font-size:14px}.featured-product-copy .btn{font-size:12px;padding:9px}.admin-heading{padding:21px 18px;align-items:flex-start}.admin-heading-actions{width:100%}.admin-heading-actions .btn{flex:1}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-section-title{align-items:flex-start;flex-direction:column}.featured-counter{width:100%}.admin-tabs{border-radius:12px}.admin-shell{padding-inline:12px!important}}
@media(prefers-reduced-motion:reduce){.hero-motion:before,.hero-motion:after{animation:none!important}.featured-product-image img{transition:none!important}}
