/* =========================
   GLOBALMEDX IMPORTERS PAGE
   Premium / Modern / Responsive
========================= */

:root{
  --blue:#0c63e7;
  --deep:#0a3fa3;
  --aqua:#00c6c2;

  --bg:#f4f8fe;
  --bg-soft:#eef5ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15, 23, 42, 0.08);

  --hero-overlay:linear-gradient(135deg, rgba(7,33,94,0.96), rgba(12,99,231,0.88), rgba(0,198,194,0.72));
  --shadow-sm:0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-md:0 18px 42px rgba(15, 23, 42, 0.09);
  --shadow-lg:0 28px 70px rgba(10, 63, 163, 0.18);

  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:28px;

  --container:1240px;
  --transition:.28s cubic-bezier(.2,.8,.2,1);
}

/* =========================
   BASE
========================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, "Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(12,99,231,0.05), transparent 28%),
    radial-gradient(circle at top right, rgba(0,198,194,0.06), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #f9fbff 100%);
  line-height:1.6;
}

img{
  max-width:100%;
  display:block;
}

button,
input,
select{
  font:inherit;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

/* =========================
   COMMON
========================= */

.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--deep);
  background:rgba(12,99,231,0.08);
  border:1px solid rgba(12,99,231,0.10);
}

.section-kicker-light{
  color:#ffffff;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
}

.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 22px;
  border:none;
  outline:none;
  cursor:pointer;
  border-radius:15px;
  font-size:15px;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg, var(--blue), var(--deep));
  box-shadow:0 14px 32px rgba(12,99,231,0.22);
  transition:transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition), color var(--transition);
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(12,99,231,0.26);
}

.btn:active{
  transform:translateY(0);
}

.btn.small{
  min-height:40px;
  padding:0 16px;
  font-size:13px;
  border-radius:12px;
}

/* =========================
   HERO
========================= */

.hero{
  position:relative;
  overflow:hidden;
  padding:54px 0 34px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:100%;
  background:var(--hero-overlay);
  border-radius:0 0 38px 38px;
  z-index:0;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto auto -120px -80px;
  width:320px;
  height:320px;
  background:radial-gradient(circle, rgba(255,255,255,0.14), transparent 68%);
  z-index:0;
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
  gap:34px;
  align-items:center;
}

.hero-content{
  color:#fff;
  padding:30px 0;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  padding:9px 15px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
}

.hero h1{
  margin:18px 0 16px;
  max-width:700px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:1.08;
  font-weight:800;
  letter-spacing:-0.03em;
}

.hero p{
  margin:0;
  max-width:620px;
  font-size:17px;
  line-height:1.8;
  color:rgba(255,255,255,0.84);
}

.hero-cta{
  margin-top:28px;
}

.hero-visual{
  position:relative;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-orb{
  position:absolute;
  border-radius:50%;
}

.hero-orb-one{
  width:250px;
  height:250px;
  top:18px;
  right:22px;
  background:radial-gradient(circle, rgba(255,255,255,0.34), rgba(255,255,255,0.02) 68%, transparent 72%);
}

.hero-orb-two{
  width:200px;
  height:200px;
  bottom:22px;
  left:20px;
  background:radial-gradient(circle, rgba(0,198,194,0.34), rgba(0,198,194,0.02) 68%, transparent 72%);
}

.hero-panel{
  position:absolute;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  color:#fff;
}

.hero-panel-main{
  width:min(100%, 390px);
  padding:28px;
  border-radius:28px;
}

.hero-panel-main span{
  display:block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.72);
  margin-bottom:12px;
}

.hero-panel-main strong{
  display:block;
  font-size:30px;
  line-height:1.15;
  font-weight:800;
  margin-bottom:10px;
}

.hero-panel-main small{
  display:block;
  font-size:15px;
  color:rgba(255,255,255,0.8);
}

.hero-panel-float{
  padding:14px 18px;
  border-radius:18px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}

.hero-panel-float-one{
  top:46px;
  left:6px;
}

.hero-panel-float-two{
  right:0;
  bottom:54px;
}

/* =========================
   SECTION HEAD
========================= */

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  padding:52px 0 20px;
}

.section-head-left h2{
  margin:14px 0 0;
  font-size:clamp(28px, 3.1vw, 40px);
  line-height:1.15;
  letter-spacing:-0.02em;
}

.section-head p{
  max-width:440px;
  margin:0;
  color:var(--muted);
  font-size:15px;
}

/* =========================
   CONTROLS
========================= */

.controls{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:center;
  margin-bottom:30px;
  padding:18px;
  border:1px solid rgba(12,99,231,0.08);
  background:rgba(255,255,255,0.82);
  box-shadow:var(--shadow-sm);
  border-radius:22px;
  backdrop-filter:blur(12px);
}

.control-search input{
  width:100%;
  height:58px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(12,99,231,0.10);
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color var(--transition), box-shadow var(--transition);
}

.control-search input::placeholder{
  color:#94a3b8;
}

.control-search input:focus{
  border-color:rgba(12,99,231,0.30);
  box-shadow:0 0 0 4px rgba(12,99,231,0.08);
}

.control-filters{
  display:flex;
  gap:10px;
  align-items:center;
}

.clear-btn{
  min-width:110px;
}

/* =========================
   GRID / CARDS
========================= */

#importersList{
  padding-bottom:20px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:335px;
  padding:24px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border:1px solid rgba(15, 23, 42, 0.08);
  border-radius:24px;
  box-shadow:0 10px 30px rgba(15, 23, 42, 0.05);
  overflow:hidden;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 42px rgba(15, 23, 42, 0.08);
  border-color:rgba(12,99,231,0.15);
}

.importer-card{
  position:relative;
}

.card-link-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
}

.card-top,
.card-body,
.card-bottom{
  position:relative;
  z-index:2;
}

.card-top{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  margin-bottom:20px;
}

.logo-box{
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.04em;
  color:var(--deep);
  background:linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border:1px solid rgba(12, 99, 231, 0.08);
  overflow:hidden;
  flex-shrink:0;
  padding:0.5px;
}

.logo-box-large{
  width:96px;
  height:96px;
  font-size:22px;
  box-shadow:0 10px 28px rgba(12,99,231,0.10);
}

.logo-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  display: block;
}

.card-body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:0;
}

.company-title{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.24;
  letter-spacing:-0.025em;
  font-weight:800;
  color:var(--text);
}

.meta-row{
  margin-bottom:16px;
}

.meta{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  background:#f8fafc;
  border:1px solid rgba(15, 23, 42, 0.06);
}

.brands-list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:auto;
}

.brands-list a,
.brand-tag{
  position:relative;
  z-index:3;
}

.brand-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:var(--deep);
  background:rgba(12,99,231,0.07);
  border:1px solid rgba(12,99,231,0.12);
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.brand-tag:hover{
  transform:translateY(-1px);
  color:#fff;
  background:linear-gradient(135deg, var(--blue), var(--deep));
  border-color:transparent;
  box-shadow:0 10px 20px rgba(12,99,231,0.18);
}

.brand-tag.muted{
  pointer-events:none;
  opacity:.75;
}

.card-bottom{
  display:flex;
  align-items:center;
  margin-top:24px;
}

.card-view-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:800;
  color:var(--blue);
}

.card-view-link::after{
  content:"→";
  font-size:15px;
}

.empty-state{
  width:100%;
  padding:40px 24px;
  border-radius:24px;
  border:1px dashed rgba(15, 23, 42, 0.12);
  background:rgba(255,255,255,0.72);
  text-align:center;
}

.empty-state h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.25;
}

.empty-state p{
  margin:0;
  color:var(--muted);
}

/* =========================
   BRANDS SHOWCASE
========================= */

.brands{
  position:relative;
  overflow:hidden;
  margin:44px 0 0;
  padding:34px 28px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,0.97), rgba(238,245,255,0.97));
  border:1px solid rgba(12,99,231,0.08);
  box-shadow:var(--shadow-sm);
}

.brands::before{
  content:"";
  position:absolute;
  top:-50px;
  right:-50px;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(12,99,231,0.08), transparent 70%);
  pointer-events:none;
}

.brands-head{
  margin-bottom:22px;
}

.brands-head h2{
  margin:14px 0 0;
  font-size:clamp(24px, 2.8vw, 34px);
  letter-spacing:-0.02em;
}

.brands-showcase-shell{
  display:grid;
  grid-template-columns:56px minmax(0, 1fr) 56px;
  gap:18px;
  align-items:center;
}

.brands-nav{
  width:56px;
  height:56px;
  border:none;
  border-radius:18px;
  cursor:pointer;
  font-size:28px;
  line-height:1;
  color:var(--deep);
  background:#ffffff;
  border:1px solid rgba(12,99,231,0.10);
  box-shadow:0 12px 24px rgba(15,23,42,0.06);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.brands-nav:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 30px rgba(15,23,42,0.10);
  border-color:rgba(12,99,231,0.18);
}

.brands-stage{
  overflow:hidden;
  padding:16px 0;
}

.brands-carousel{
  display:flex;
  align-items:center;
  gap:18px;
  transition:transform .42s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}

.brand-card{
  flex:0 0 calc(33.333% - 12px);
  min-width:0;
  display:block;
  opacity:.45;
  transform:scale(.88);
  transition:transform .38s ease, opacity .38s ease, filter .38s ease;
  filter:blur(.2px);
}

.brand-card.is-active{
  opacity:1;
  transform:scale(1);
  filter:none;
}

.brand-card.is-near{
  opacity:.72;
  transform:scale(.93);
  filter:none;
}

.brand-card-inner{
  min-height:220px;
  border-radius:28px;
  background:linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border:1px solid rgba(12,99,231,0.09);
  box-shadow:0 18px 38px rgba(15,23,42,0.07);
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.brand-card-logo{
  width:100%;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}

.brand-card-logo img{
  max-width:100%;
  max-height:78px;
  object-fit:contain;
}

.brand-card-logo span{
  font-size:28px;
  font-weight:800;
  line-height:1.2;
  color:var(--deep);
}

.brand-card-name{
  font-size:18px;
  font-weight:800;
  line-height:1.3;
  color:var(--text);
}

/* =========================
   CTA
========================= */

.cta{
  position:relative;
  overflow:hidden;
  margin:38px 0 70px;
  padding:38px 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-radius:30px;
  background:var(--hero-overlay);
  box-shadow:var(--shadow-lg);
}

.cta::before{
  content:"";
  position:absolute;
  top:-80px;
  right:-40px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  pointer-events:none;
}

.cta-content,
.cta-actions{
  position:relative;
  z-index:1;
}

.cta h2{
  margin:14px 0 12px;
  max-width:650px;
  font-size:clamp(30px, 3vw, 42px);
  line-height:1.12;
  letter-spacing:-0.03em;
  color:#fff;
  font-weight:800;
}

.cta p{
  margin:0;
  max-width:540px;
  color:rgba(255,255,255,0.84);
  font-size:16px;
  line-height:1.75;
}

.cta .btn{
  background:#fff;
  color:var(--deep);
  font-weight:800;
  box-shadow:0 16px 34px rgba(0,0,0,0.12);
}

.cta .btn:hover{
  box-shadow:0 20px 40px rgba(0,0,0,0.16);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1100px){
  .hero-inner{
    grid-template-columns:1fr;
  }

  .hero-content{
    padding:18px 0 0;
  }

  .hero-visual{
    min-height:350px;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .section-head p{
    max-width:100%;
  }

  .grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .brand-card{
    flex:0 0 calc(50% - 9px);
  }

  .cta{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:780px){
  .hero{
    padding:34px 0 24px;
  }

  .hero::before{
    border-radius:0 0 28px 28px;
  }

  .hero h1{
    font-size:clamp(28px, 8vw, 42px);
  }

  .hero p{
    font-size:15px;
  }

  .hero-visual{
    min-height:300px;
  }

  .hero-panel-main{
    padding:22px;
    border-radius:24px;
  }

  .hero-panel-main strong{
    font-size:24px;
  }

  .hero-panel-float{
    font-size:13px;
    padding:12px 14px;
  }

  .controls{
    grid-template-columns:1fr;
    padding:16px;
    border-radius:20px;
  }

  .control-filters{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .clear-btn{
    width:100%;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .card{
    min-height:auto;
  }

  .company-title{
    font-size:22px;
  }

  .brands{
    padding:24px 18px;
    border-radius:24px;
  }

  .brands-showcase-shell{
    grid-template-columns:44px minmax(0, 1fr) 44px;
    gap:12px;
  }

  .brands-nav{
    width:44px;
    height:44px;
    border-radius:14px;
    font-size:24px;
  }

  .brand-card{
    flex:0 0 100%;
    opacity:.6;
    transform:scale(.94);
  }

  .brand-card.is-active{
    transform:scale(1);
  }

  .brand-card-inner{
    min-height:190px;
    padding:22px 18px;
    border-radius:24px;
  }

  .cta{
    margin:30px 0 54px;
    padding:28px 20px;
    border-radius:24px;
  }

  .cta h2{
    font-size:clamp(24px, 7vw, 32px);
  }

  .cta p{
    font-size:15px;
  }
}

@media (max-width:520px){
  .container,
  .hero-inner{
    width:min(var(--container), calc(100% - 20px));
  }

  .hero-badge,
  .section-kicker{
    font-size:11px;
  }

  .btn{
    width:100%;
  }

  .hero-panel-float-one{
    top:14px;
    left:0;
  }

  .hero-panel-float-two{
    right:0;
    bottom:20px;
  }

  .card{
    padding:18px;
    border-radius:20px;
  }

  .logo-box-large{
    width:84px;
    height:84px;
    font-size:20px;
    border-radius:20px;
  }

  .company-title{
    font-size:20px;
  }

  .meta{
    font-size:12px;
    padding:7px 11px;
  }

  .brand-tag{
    font-size:11px;
    padding:6px 10px;
  }

  .brand-card-logo span{
    font-size:22px;
  }

  .brand-card-name{
    font-size:16px;
  }
}