:root{
  --bg:#0b1220;
  --card:#0f1a2b;
  --text:#e9eef7;
  --muted:#a9b6cc;
  --accent:#4da3ff;
  --accent2:#7c5cff;
  --line:rgba(255,255,255,.08);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(77,163,255,.20), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(124,92,255,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(77,255,214,.10), transparent 55%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92vw); margin:0 auto}

/* =========================
   NAVBAR
   ========================= */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.70);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:18px}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px
}

/* Brand text (MECOM) */
.brand span{
  font-size: 20px;      /* mobile default */
  font-weight: 600;
  letter-spacing: .8px;
}
@media (min-width: 900px){
  .brand span{ font-size: 30px; } /* desktop size */
}

/* Logo hover animation */
.brand:hover .logo,
.brand:focus-visible .logo{
  transform: translateY(-1px) scale(1.035);
  opacity: 1;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.32)) saturate(.98) brightness(1.02);
}
.brand:active .logo{ transform: translateY(0) scale(1.01); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo{ transition:none; }
  .brand:hover .logo,
  .brand:focus-visible .logo,
  .brand:active .logo{ transform:none; }
}

.logo{
  width: clamp(34px, 3.2vw, 42px);
  height: clamp(34px, 3.2vw, 42px);
  border-radius: 12px;
  display: block;
  object-fit: cover;

  opacity: .95;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25)) saturate(.92) brightness(.97);

  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  will-change: transform, filter;
}

.links{display:flex; gap:16px; align-items:center}
.links a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
  transition: all .15s ease;
}
.links a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px;
  border:1px solid rgba(77,163,255,.35);
  background: rgba(77,163,255,.12);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.menu-btn{display:none}
.mobile-menu{display:none}

/* =========================
   ABOUT HERO IMAGE
   ========================= */
.about-hero{ margin: 10px 0 20px; }
.about-hero-img{
  width: 100%;
  height: clamp(220px, 28vw, 360px);
  object-fit: cover;
  display: block;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

/* =========================
   HERO
   ========================= */
.hero{padding:56px 0 24px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch
}
.kicker{color:var(--muted); font-weight:600; letter-spacing:.2px}
h1{margin:10px 0 14px; font-size: clamp(28px, 4vw, 44px); line-height:1.08}

.lead{
  color:var(--muted);
  font-size: 16px;
  line-height:1.7;
  margin: 0 0 16px;
}

.hero-actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}

/* =========================
   BUTTONS (single definition)
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;

  transition:
    transform .14s ease,
    background .14s ease,
    border-color .14s ease,
    box-shadow .14s ease,
    filter .14s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.btn:active{
  transform: translateY(0px) scale(.99);
}

/* Primary button */
.btn.primary{
  border-color: rgba(77,163,255,.45);
  background: linear-gradient(
    135deg,
    rgba(77,163,255,.22),
    rgba(124,92,255,.18)
  );
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.btn.primary:hover{
  border-color: rgba(77,163,255,.70);
  background: linear-gradient(
    135deg,
    rgba(77,163,255,.34),
    rgba(124,92,255,.26)
  );
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    0 0 0 1px rgba(77,163,255,.22);
  filter: brightness(1.05);
}

.btn.primary:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(77,163,255,.22),
    0 18px 44px rgba(0,0,0,.28);
}

/* Brighter "Open in Google Maps" button */
.map-btn{
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(135deg,
    rgba(77,163,255,.42),
    rgba(124,92,255,.34)
  );
  box-shadow:
    0 18px 44px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.10);
}

.map-btn:hover{
  border-color: rgba(255,255,255,.32);
  background: linear-gradient(135deg,
    rgba(77,163,255,.55),
    rgba(124,92,255,.45)
  );
  transform: translateY(-1px);
  box-shadow:
    0 24px 60px rgba(0,0,0,.42),
    0 0 0 1px rgba(77,163,255,.25);
}

.map-btn:active{
  transform: translateY(0) scale(.99);
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
  .btn:hover{ transform:none; }
}

/* =========================
   RIGHT PANEL
   ========================= */
.panel{
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(0,0,0,.40),
    0 0 0 1px rgba(124,92,255,.10);
  overflow: hidden;
}
.panel .pad{padding:18px}

.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.stat{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(15,26,43,.55);
}
.stat .n{font-size:20px; font-weight:800}
.stat .t{color:var(--muted); margin-top:4px; font-size:13px}

/* =========================
   SECTIONS + CARDS
   ========================= */
.section{padding:34px 0}
.section h2{font-size: 22px; margin:0 0 12px}
.section p{color:var(--muted); line-height:1.75; margin:0 0 10px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px
}

.card{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.075);
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px; line-height:1.6}

.small{font-size:13px; line-height:1.6}

/* =========================
   PRODUCT CARDS: LOGO + TITLE
   ========================= */
.product-card .product-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

/* Logo badge plate (helps dark transparent logos show up) */
.product-card .vendor-logo{
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:contain;
  padding:8px;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);

  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  filter: brightness(1.08) contrast(1.08);
}

.product-card h3{
  margin:0;
  font-size:16px;
  line-height:1.2;
}

.product-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

/* =========================
   FORMS
   ========================= */
.form{display:grid; gap:10px; margin-top:12px}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
.note{color:var(--muted); font-size:13px}

/* =========================
   CONTACT PAGE: MAP + DETAILS (fixed, no clipping)
   ========================= */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Map wrapper is the rounded card */
.map-wrap{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  box-shadow: var(--shadow);
  height: 340px;
}

/* iframe fills wrapper */
.map-embed{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px){
  .map-wrap{ height: 280px; }
}

/* WhatsApp link subtle emphasis */
a[href*="wa.me"]{
  color: #6fe3a2;
  font-weight: 600;
}
a[href*="wa.me"]:hover{
  text-decoration: underline;
  filter: brightness(1.1);
}

/* =========================
   MOBILE NAV
   ========================= */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}

  .links{display:none}

  .menu-btn{
    display:inline-flex;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
  }

  .mobile-menu{
    display:none;
    padding: 0 0 14px;
  }
  .mobile-menu a{
    display:block;
    padding:10px 0;
    color: var(--muted);
    border-top:1px solid var(--line);
  }
  .mobile-menu a:hover{color:var(--text)}
  .mobile-menu.open{display:block}
}

@media (max-width: 520px){
  /* keep logo + title on same row (like desktop) */
  .product-card .product-head{
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* smaller icon for mobile */
  .product-card .vendor-logo{
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 12px;

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    object-fit: contain;
  }

  /* prevent long titles wrapping awkwardly */
  .product-card h3{
    margin: 0;
    line-height: 1.15;
    font-size: 16px;
  }
}

/* =====================================================
   ADAPTIVE DESKTOP SPACING (scales by viewport size)
   Phones/tablets keep original spacing
   ===================================================== */
@media (min-width: 901px){
  :root{
    --vspace: clamp(10px, 1.2vh, 18px);
    --vspace-lg: clamp(16px, 2.2vh, 30px);
  }

  .hero{
    padding: calc(var(--vspace-lg) + 18px) 0 var(--vspace);
  }

  .section{
    padding: var(--vspace-lg) 0 calc(var(--vspace-lg) + 4px);
  }

  h1{
    margin: calc(var(--vspace) * 0.6) 0 var(--vspace);
  }

  .section h2{
    margin: 0 0 var(--vspace);
  }

  .lead{
    margin: 0 0 var(--vspace);
    line-height: 1.6;
    font-size: clamp(15px, 1.05vw, 16px);
  }

  .section p{
    margin: 0 0 calc(var(--vspace) * 0.75);
    line-height: 1.65;
  }

  .panel .pad{
    padding: clamp(12px, 1.6vh, 18px);
  }

  .stat{
    padding: clamp(11px, 1.4vh, 14px);
  }

  .stat .n{
    font-size: clamp(18px, 1.25vw, 20px);
  }

  .cards{
    margin-top: calc(var(--vspace) * 0.8);
  }

  .card{
    padding: clamp(14px, 1.6vh, 16px);
  }
}

