/* ===== MG Technology - Modern Site Styles ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #1a5fa8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0d3b6e;
}

/* --- Header --- */
.site-header {
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5fa8 60%, #2980d9 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  position: relative;
}

.site-header .logo-img {
  max-width: 340px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 10px 24px;
}

.site-header .tagline {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.92;
  margin-top: 0.25rem;
}

/* --- Nav --- */
.site-nav {
  background: #0d3b6e;
  text-align: center;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0d3b6e;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* --- Services Grid --- */
.services-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

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

/* --- Service Card --- */
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f0f4f8;
  padding: 1.25rem;
}

.service-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card .card-icon {
  font-size: 2rem;
  color: #1a5fa8;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #555;
  font-size: 0.97rem;
  line-height: 1.65;
  flex: 1;
}

.service-card .card-cta {
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: #1a5fa8;
  color: #fff;
}

.btn-primary:hover {
  background: #0d3b6e;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid #1a5fa8;
  color: #1a5fa8;
  background: transparent;
}

.btn-outline:hover {
  background: #1a5fa8;
  color: #fff;
}

/* --- VHS Feature (full-width card) --- */
.service-card.card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
}

.service-card.card-wide .card-img {
  height: 100%;
  min-height: 220px;
}

@media (max-width: 640px) {
  .service-card.card-wide {
    grid-template-columns: 1fr;
  }
}

/* --- Stats list for streaming --- */
.stats-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}

.stats-list li {
  padding: 0.3rem 0;
  font-size: 0.97rem;
  color: #444;
}

.stats-list li strong {
  color: #1a5fa8;
  font-weight: 700;
  display: inline-block;
  min-width: 60px;
  text-align: right;
  margin-right: 0.6rem;
}

/* --- Featured Nav Link --- */
.site-nav a.nav-featured {
  color: #ffd54f;
  font-weight: 700;
}

.site-nav a.nav-featured:hover {
  color: #fff;
  background: rgba(255, 213, 79, 0.18);
}

/* --- Featured Banner (Agara) --- */
.featured-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.featured-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,213,79,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.featured-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #1a1a2e;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.featured-heading {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.featured-subheading {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.featured-text {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.featured-text strong {
  color: #ffd54f;
}

.featured-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
}

.featured-benefits li {
  font-size: 0.92rem;
  opacity: 0.9;
}

.featured-benefits li i {
  color: #ffd54f;
  margin-right: 0.35rem;
  width: 18px;
  text-align: center;
}

.featured-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-featured {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #1a1a2e;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255,213,79,0.3);
}

.btn-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,213,79,0.45);
  color: #1a1a2e;
}

.btn-featured-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.btn-featured-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.featured-image {
  text-align: center;
}

.featured-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(255,213,79,0.2));
  margin: 0 auto;
}

@media (max-width: 768px) {
  .featured-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-benefits {
    justify-content: center;
  }

  .featured-cta {
    justify-content: center;
  }

  .featured-heading {
    font-size: 2rem;
  }

  .featured-image {
    order: -1;
  }

  .featured-image img {
    max-height: 260px;
  }
}

/* --- Contact / Footer --- */
.site-footer {
  background: #0d3b6e;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}

.footer-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-phone {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.footer-phone a {
  color: #fff;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.footer-counter {
  margin-top: 1rem;
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 1rem;
  }

  .site-header .logo-img {
    max-width: 260px;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .service-card.card-wide {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .site-header .logo-img {
    max-width: 200px;
  }

  .services-section {
    padding: 2rem 0.75rem 1rem;
  }

  .service-card .card-body {
    padding: 1.1rem;
  }
}
