/* =========================================================================
   IPTVMall.net — Homepage redesign (assets/css/homepage.css)
   Modern dark/premium IPTV style. Loaded ONLY on the homepage (index.php).
   ========================================================================= */

:root {
  --im-bg: #3B2F2A;
  --im-bg-2: #4a3a33;
  --im-surface: #4a3a33;
  --im-surface-2: #55433a;
  --im-border: #6b5749;
  --im-text: #F7F1E3;
  --im-muted: #C9B28A;
  --im-accent: #556B2F;
  --im-accent-2: #8A9B63;
  --im-whatsapp: #556B2F;
  --im-green: #8A9B63;
  --im-radius: 16px;
  --im-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.im-home {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--im-bg);
  color: var(--im-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.im-home a { color: var(--im-accent-2); text-decoration: none; }
.im-home a:hover { color: #fff; }

.im-home img { max-width: 100%; }

.im-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.im-section { padding: 72px 0; }

.im-section-alt { background: var(--im-bg-2); }

.im-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.im-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--im-accent-2);
  background: rgba(138, 155, 99, 0.1);
  border: 1px solid rgba(138, 155, 99, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.im-section-head h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.im-section-head p {
  color: var(--im-muted);
  font-size: 16px;
  margin: 0;
}

/* ============ BUTTONS ============ */
.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.im-btn:hover { transform: translateY(-2px); }
.im-btn:active { transform: translateY(0); }

.im-btn-primary {
  background: linear-gradient(135deg, var(--im-accent), #8A9B63);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(85, 107, 47, 0.35);
}
.im-btn-primary:hover { box-shadow: 0 12px 30px rgba(85, 107, 47, 0.5); }

.im-btn-whatsapp {
  background: var(--im-whatsapp);
  color: #F7F1E3 !important;
  box-shadow: 0 8px 24px rgba(85, 107, 47, 0.3);
}
.im-btn-whatsapp:hover { box-shadow: 0 12px 30px rgba(85, 107, 47, 0.45); }

.im-btn-outline {
  background: transparent;
  border-color: var(--im-border);
  color: var(--im-text) !important;
}
.im-btn-outline:hover { border-color: var(--im-accent-2); color: var(--im-accent-2) !important; }

.im-btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============ HEADER ============ */
.im-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(59, 47, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--im-border);
  transition: box-shadow 0.2s ease;
}
.im-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.im-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.im-logo img { height: 44px; width: auto; display: block; }

.im-nav { display: flex; align-items: center; gap: 6px; }
.im-nav a {
  color: var(--im-muted);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.im-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.im-nav a.im-nav-active { color: #fff; }

.im-nav-cta { margin-left: 10px; }

.im-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--im-border);
  border-radius: 10px;
  cursor: pointer;
}
.im-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--im-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.im-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.im-hamburger.open span:nth-child(2) { opacity: 0; }
.im-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.im-hero {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(85, 107, 47, 0.22), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(138, 155, 99, 0.16), transparent 60%),
    linear-gradient(180deg, #3B2F2A 0%, #4a3a33 100%);
  overflow: hidden;
}
.im-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.im-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--im-accent-2);
  background: rgba(138, 155, 99, 0.1);
  border: 1px solid rgba(138, 155, 99, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.im-hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--im-green);
  animation: imPulse 2s infinite;
}
@keyframes imPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.im-hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.im-hero h1 .grad {
  background: linear-gradient(90deg, var(--im-accent), var(--im-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.im-hero p {
  color: var(--im-muted);
  font-size: 18px;
  margin: 0 0 30px;
  max-width: 560px;
}
.im-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.im-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--im-muted);
  font-size: 14px;
}
.im-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.im-hero-trust svg { color: var(--im-green); flex-shrink: 0; }

.im-hero-visual {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 26px;
  box-shadow: var(--im-shadow);
}
.im-hero-visual .tv-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--im-border);
  background: #2a211d;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.im-hero-visual .tv-frame img { width: 100%; height: 100%; object-fit: cover; }
.im-visual-row { display: flex; justify-content: space-between; align-items: center; }
.im-visual-row .brands { display: flex; gap: 8px; flex-wrap: wrap; }
.im-visual-row .brands img {
  height: 30px; width: auto;
  background: #fff; border-radius: 6px; padding: 4px 6px;
}
.im-visual-note { color: var(--im-muted); font-size: 13px; }

/* ============ SERVICES CARDS ============ */
.im-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* Force 4 pricing cards in one row on desktop */
.im-pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 992px) {
  .im-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .im-pricing-grid { grid-template-columns: 1fr; }
}
.im-card {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.im-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 107, 47, 0.5);
  box-shadow: var(--im-shadow);
}
.im-card-logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.im-card-logo img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.im-card h3 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.im-card p { color: var(--im-muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.im-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.im-card-price .from { color: var(--im-muted); font-size: 13px; }
.im-card-price .amount { font-size: 26px; font-weight: 800; color: #fff; }
.im-card-price .per { color: var(--im-muted); font-size: 13px; }
.im-card .im-btn { width: 100%; }

/* ============ PLAN LIST (pricing cards) ============ */
.im-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.im-plan-list li {
  position: relative;
  padding-left: 22px;
  color: var(--im-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.im-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--im-accent-2);
}

/* ============ WHY CHOOSE ============ */
.im-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.im-feature {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 26px;
  text-align: center;
}
.im-feature .icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(85, 107, 47, 0.12);
  color: var(--im-accent-2);
}
.im-feature h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.im-feature p { color: var(--im-muted); font-size: 14px; margin: 0; }

/* ============ HOW IT WORKS ============ */
.im-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: imStep;
}
.im-step {
  position: relative;
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 30px 26px;
}
.im-step .num {
  font-size: 44px;
  font-weight: 800;
  color: rgba(85, 107, 47, 0.25);
  line-height: 1;
  margin-bottom: 14px;
  font-family: inherit;
}
.im-step h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.im-step p { color: var(--im-muted); font-size: 15px; margin: 0; }

/* ============ DEVICES ============ */
.im-devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.im-device {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
}
.im-device .icon {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 155, 99, 0.1);
  color: var(--im-accent-2);
}
.im-device h4 { font-size: 15px; margin: 0; font-weight: 600; }

/* ============ RESELLER ============ */
.im-reseller {
  background:
    radial-gradient(700px 400px at 90% 20%, rgba(85, 107, 47, 0.18), transparent 60%),
    linear-gradient(135deg, #4a3a33, #55433a);
  border: 1px solid var(--im-border);
  border-radius: 22px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.im-reseller h2 { font-size: 30px; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.im-reseller p { color: var(--im-muted); font-size: 16px; margin: 0 0 26px; }
.im-reseller-points { list-style: none; padding: 0; margin: 0 0 26px; }
.im-reseller-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--im-text);
  margin-bottom: 12px;
  font-size: 15px;
}
.im-reseller-points svg { color: var(--im-green); flex-shrink: 0; }
.im-reseller-visual {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 26px;
  text-align: center;
}
.im-reseller-visual .big { font-size: 40px; font-weight: 800; color: #fff; }
.im-reseller-visual .lbl { color: var(--im-muted); font-size: 14px; margin-bottom: 18px; }

/* ============ FAQ ============ */
.im-faq { max-width: 780px; margin: 0 auto; }
.im-faq details {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.im-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-right: 48px;
}
.im-faq summary::-webkit-details-marker { display: none; }
.im-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--im-accent-2);
  transition: transform 0.2s ease;
}
.im-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.im-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--im-muted);
  font-size: 15px;
}

/* ============ TRUST / SUPPORT ============ */
.im-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.im-trust-item {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  padding: 26px;
  text-align: center;
}
.im-trust-item .icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(85, 107, 47, 0.12);
  color: var(--im-whatsapp);
}
.im-trust-item h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.im-trust-item p { color: var(--im-muted); font-size: 14px; margin: 0; }

/* ============ FINAL CTA ============ */
.im-cta {
  text-align: center;
  padding: 80px 0;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(85, 107, 47, 0.2), transparent 60%),
    var(--im-bg-2);
  border-top: 1px solid var(--im-border);
  border-bottom: 1px solid var(--im-border);
}
.im-cta h2 { font-size: 36px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.5px; }
.im-cta p { color: var(--im-muted); font-size: 17px; margin: 0 auto 30px; max-width: 520px; }
.im-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ FOOTER ============ */
.im-footer {
  background: #2a211d;
  border-top: 1px solid var(--im-border);
  padding: 56px 0 0;
}
.im-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.im-footer h4 { font-size: 15px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.im-footer .brand img { height: 40px; width: auto; margin-bottom: 14px; }
.im-footer .brand p { color: var(--im-muted); font-size: 14px; margin: 0 0 18px; }
.im-footer ul { list-style: none; padding: 0; margin: 0; }
.im-footer ul li { margin-bottom: 10px; }
.im-footer ul a { color: var(--im-muted); font-size: 14px; }
.im-footer ul a:hover { color: var(--im-accent-2); }
.im-footer .contact li { color: var(--im-muted); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.im-footer .contact svg { color: var(--im-accent-2); flex-shrink: 0; margin-top: 3px; }
.im-footer-bottom {
  border-top: 1px solid var(--im-border);
  padding: 20px 0;
  text-align: center;
  color: var(--im-muted);
  font-size: 13px;
}

/* ============ FLOATING WHATSAPP ============ */
.im-wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--im-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(85, 107, 47, 0.4);
  transition: transform 0.15s ease;
}
.im-wa-fab:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .im-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .im-hero h1 { font-size: 36px; }
  .im-reseller { grid-template-columns: 1fr; padding: 34px; }
  .im-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .im-section { padding: 56px 0; }
  .im-section-head h2 { font-size: 26px; }
  .im-hero { padding: 64px 0 80px; }
  .im-hero h1 { font-size: 30px; }
  .im-hero p { font-size: 16px; }
  .im-steps { grid-template-columns: 1fr; }
  .im-cta h2 { font-size: 28px; }

  /* Mobile nav */
  .im-hamburger { display: flex; }
  .im-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--im-bg-2);
    border-bottom: 1px solid var(--im-border);
    padding: 14px 20px 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .im-nav.open { transform: translateY(0); }
  .im-nav a { padding: 12px 14px; font-size: 16px; }
  .im-nav-cta { margin: 8px 0 0; }
  .im-nav-cta .im-btn { width: 100%; }
}

@media (max-width: 560px) {
  .im-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .im-cards { grid-template-columns: 1fr; }
  .im-hero-actions .im-btn { width: 100%; }
}
