/*
Theme Name: All IPTV Solutions Replica
Theme URI: http://localhost/iptvsolution
Author: Antigravity
Description: A custom theme replicating a light SaaS design
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: iptvsolution
*/

:root {
  --primary-color: #2563EB; /* Bright Blue */
  --primary-hover: #1D4ED8;
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC; /* Slate 50 */
  --bg-accent: #EFF6FF; /* Blue 50 */
  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #64748B; /* Slate 500 */
  --border-light: #E2E8F0; /* Slate 200 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-mark-img {
  height: 34px;
  width: 34px;
  display: block;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--primary-color);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav > ul > li > a.is-active {
  color: var(--primary-color);
  font-weight: 700;
}

.main-nav .dropdown-menu a.is-active {
  color: var(--primary-color);
  font-weight: 600;
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  width: max-content;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  padding: 0.5rem 0;
}

.main-nav .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu li {
  width: 100%;
}

.main-nav .dropdown-menu a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--text-main);
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.header-cta {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* Button Utilities */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: #cbd5e1;
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-image-placeholder {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
  font-size: 4rem;
}

/* Section Shared */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Services Grid */
.services-section {
  background-color: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--bg-accent);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  gap: 0.75rem;
}

/* Why Choose Us */
.why-section {
  background-color: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  background: var(--primary-color);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.why-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--text-main);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  font-size: 1.3rem;
}

.footer-tagline {
  color: #94a3b8;
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
