/* ============================================
   Egypt Maintenance - LG Service Website
   Color Theme: BLUE (Universal)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* Selection */
::selection {
  background: #1565c0;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #1565c0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0d47a1;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: #1a1a2e;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-phone {
  color: #64b5f6;
  font-weight: 700;
}

.top-bar-phone a {
  color: #64b5f6;
}

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

.top-bar-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #69f0ae;
  transition: opacity 0.3s;
}

.top-bar-whatsapp:hover {
  opacity: 0.8;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1565c0;
}

.navbar-brand svg,
.navbar-brand img {
  width: 24px !important;
  height: 24px !important;
  fill: #1565c0 !important;
  display: inline-block !important;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: color 0.3s;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #1565c0;
}

.navbar-phone {
  background: #1565c0;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.navbar-phone:hover {
  background: #0d47a1;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.navbar-toggle svg,
.navbar-toggle img {
  width: 24px !important;
  height: 24px !important;
  fill: #444 !important;
  display: inline-block !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: #fafafa;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: #777;
}

.breadcrumb a {
  color: #1565c0;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  color: #aaa;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a357a 100%);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 24px;
  opacity: 0.95;
  position: relative;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 28px;
  position: relative;
}

.hero-phone a {
  color: #ffd700;
}

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

.hero-phone svg {
  width: 32px !important;
  height: 32px !important;
  fill: #ffd700 !important;
  display: inline-block !important;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-call {
  background: #ff6f00;
  color: #fff;
}

.btn-call:hover {
  background: #e65100;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

.btn-outline {
  background: transparent;
  border: 2px solid #1565c0;
  color: #1565c0;
  box-shadow: none;
}

.btn-outline:hover {
  background: #1565c0;
  color: #fff;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 60px 20px;
}

.section-gray {
  background: #f8f9fa;
}

.section-white {
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 15px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(198,40,40,0.12);
  transform: translateY(-4px);
  border-color: #bbdefb;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: #1565c0;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

.service-card ul {
  list-style: none;
  margin-bottom: 16px;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  color: #555;
  font-size: 14px;
}

.service-card li svg {
  width: 18px;
  height: 18px;
  fill: #4caf50;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1565c0;
  font-weight: 600;
  font-size: 14px;
}

.service-link:hover {
  text-decoration: underline;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-box {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a357a 100%);
  border-radius: 24px;
  padding: 50px;
  color: #fff;
}

.why-box .section-title {
  color: #fff;
}

.why-box .section-subtitle {
  color: rgba(255,255,255,0.9);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.why-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.why-item:hover {
  background: rgba(255,255,255,0.2);
}

.why-item-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,235,59,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.why-item-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffd700;
}

.why-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: #1565c0;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.feature-card p {
  color: #666;
  font-size: 14px;
}

/* ============================================
   AREAS
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.area-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: all 0.3s;
}

.area-tag:hover {
  background: rgba(198,40,40,0.08);
  color: #1565c0;
}

.area-tag svg {
  width: 16px;
  height: 16px;
  fill: #1565c0;
  flex-shrink: 0;
}

.area-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(198,40,40,0.05);
  border-radius: 16px;
  padding: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============================================
   BOOKING FORM
   ============================================ */
.booking-section {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a357a 100%);
  padding: 60px 20px;
}

.booking-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1565c0;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: right;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: #1565c0;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 22px 18px;
  color: #666;
  font-size: 14px;
}

/* ============================================
   DEVICE PAGE SPECIFIC
   ============================================ */
.device-hero {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a357a 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.device-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.device-hero p {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 20px;
  opacity: 0.95;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-page h2 {
  color: #1565c0;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 30px 0 16px;
}

.content-page h3 {
  color: #1a1a2e;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 10px;
}

.content-page p {
  color: #555;
  margin-bottom: 14px;
  line-height: 1.8;
}

.content-page ul {
  margin: 12px 0;
  padding-right: 24px;
}

.content-page li {
  color: #555;
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-page a {
  color: #1565c0;
  font-weight: 600;
}

.content-page a:hover {
  text-decoration: underline;
}

.problems-list {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
}

.problems-list h3 {
  color: #1565c0;
  margin-bottom: 16px;
}

.problems-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.problems-list li:last-child {
  border-bottom: none;
}

.problems-list svg {
  width: 20px;
  height: 20px;
  fill: #1565c0;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   CTA BOX
   ============================================ */
.cta-box {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  color: #fff;
  margin: 32px 0;
}

.cta-box h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 50px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #64b5f6;
}

.footer-brand svg,
.footer-brand img {
  width: 22px !important;
  height: 22px !important;
  fill: #64b5f6 !important;
  display: inline-block !important;
}

.footer-desc {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ddd;
  font-size: 14px;
}

.footer-phone svg,
.footer-phone img {
  width: 18px !important;
  height: 18px !important;
  fill: #64b5f6 !important;
  display: inline-block !important;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #64b5f6;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-green 2s infinite;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* ============================================
   TABLE OF CONTENTS (Device pages)
   ============================================ */
.toc {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.toc h4 {
  color: #1565c0;
  margin-bottom: 12px;
  font-size: 16px;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: #444;
  font-size: 14px;
}

.toc a:hover {
  color: #1565c0;
}

/* ============================================
   SITEMAP PAGE
   ============================================ */
.sitemap-section h3 {
  color: #1565c0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #bbdefb;
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.sitemap-section li a {
  display: block;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #444;
  font-size: 14px;
  transition: all 0.3s;
}

.sitemap-section li a:hover {
  background: #bbdefb;
  color: #1565c0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .hero {
    padding: 50px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-phone {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 16px;
  }

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

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

  .why-box {
    padding: 28px;
  }

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

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

  .booking-box {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .area-cta {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .device-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

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