/* ============================================================
   MAINTENANCE PAGE - SAME STYLE AS ACTIVITY PAGE
   ============================================================ */

/* ===== COLOR VARIABLES (SAME AS ACTIVITY) ===== */
:root {
  --brand: #0B5E92;
  --brand-light: #3885AF;
  --ink: #021B38;
  --ink-dark: #082150;
  --muted: #475569;
  --muted-light: #64748B;
  --bg: #f5f7fb;
  --card: #FFFFFF;
  --border: rgba(11, 94, 146, 0.1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.maintenance-hero {
  min-height: 35vh;
  padding: 70px 40px;
  background: linear-gradient(135deg, #021B38 0%, #0B5E92 50%, #3885AF 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(56, 133, 175, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #e5f3ff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

.maintenance-hero h1 {
    font-size: 2.6rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.maintenance-hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 750px;
  margin: 20px auto 0;
  color: #d1d5db;
}

.maintenance-hero strong {
  font-weight: 700;
  /* Remove yellow accent for maintenance hero */
  color: #ffffff;
}

/* ============================================================
   SERVICES SECTION (SAME LAYOUT AS ACTIVITY)
   ============================================================ */
.maintenance-services {
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 120px;
  background: var(--bg);
  max-width: 1350px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.highlight {
  flex: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  height: 360px;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0e8f2 100%);
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 94, 146, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.service-row .text {
  flex: 1;
  max-width: 540px;
}

.service-row h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-row p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SERVICES GRID SECTION
   ============================================================ */
.services-premium {
  background: var(--bg);
  padding: 120px 40px;
  position: relative;
}

.services-premium .section-title {
  margin: 0 0 18px;
  font-weight: 800;
  color: var(--brand);
  font-size: clamp(2.4rem, 2vw, 2rem);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 58px;
}

.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  width: 100%;
  max-width: 320px;
  min-height: 220px;
  background: #fff;
  border: 1px solid rgba(11, 94, 146, 0.1);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(8, 33, 80, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(8, 33, 80, 0.12);
  border-color: rgba(11, 94, 146, 0.22);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: radial-gradient(120% 120% at 20% 10%, #d8ecff 0%, #bcd8f3 60%, #9ac0e7 100%);
  color: var(--brand);
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 6px rgba(11, 94, 146, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  margin: 6px 0;
  font-weight: 700;
  color: var(--ink-dark);
  font-size: 1.05rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  color: #334;
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto 8px;
  position: relative;
  padding-left: 20px;
  text-align: left;
  transition: all 0.2s ease;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.service-card:hover li {
  color: var(--ink);
  padding-left: 24px;
}

/* ============================================================
   WHY MAINTENANCE SECTION
   ============================================================ */
.why-maintenance {
  padding: 120px 40px;
  background: white;
  max-width: 1140px;
  margin: 0 auto;
}

.why-box {
  background: linear-gradient(135deg, #021B38 0%, #0B5E92 100%);
  color: white;
  padding: 60px 48px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.why-box::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.why-box::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite reverse;
}

.why-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 32px 0;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

.why-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-box li {
  font-size: 1rem;
  line-height: 1.7;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.why-box li:hover {
  padding-left: 10px;
  transform: translateX(8px);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.why-box li:last-child {
  border-bottom: none;
}

/* ============================================================
   DEVIS SECTION
   ============================================================ */
.devis-section {
  padding: 120px 40px;
  background: var(--bg);
  position: relative;
}

.devis-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.devis-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.devis-section h2 {
  margin: 0 0 18px;
  font-weight: 800;
  color: var(--brand);
  font-size: clamp(2.4rem, 2vw, 2rem);
}

.devis-header p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.devis-form {
  background: var(--card);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(8, 33, 80, 0.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.devis-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 94, 146, 0.2), transparent);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.devis-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
  padding: 12px 14px;
  border: 1px solid rgba(207, 215, 227, 0.8);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  color: var(--ink);
  background: white;
}

.devis-form input::placeholder,
.devis-form textarea::placeholder {
  color: #999;
}

.devis-form input:hover,
.devis-form select:hover,
.devis-form textarea:hover {
  border-color: #aaa;
  background-color: #fafbfd;
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 94, 146, 0.1);
  background-color: #fafbfd;
}

.devis-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.devis-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230B5E92' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* ===== BUTTON ===== */
.btn-submit {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit svg {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 960px) {
  .maintenance-services,
  .maintenance-services .reverse {
    flex-direction: column;
  }

  .highlight {
    height: 260px;
  }

  .service-row {
    gap: 40px;
    margin-bottom: 60px;
  }

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

@media (max-width: 760px) {
  .maintenance-hero {
    padding: 80px 20px;
  }

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

  .maintenance-services {
    padding: 60px 20px;
    gap: 60px;
  }

  .service-row {
    gap: 24px;
    margin-bottom: 40px;
  }

  .highlight {
    height: 220px;
  }

  .services-premium {
    padding: 80px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .service-card {
    max-width: 100%;
  }

  .why-maintenance {
    padding: 80px 20px;
  }

  .why-box {
    padding: 40px 24px;
  }

  .why-box h2 {
    font-size: 1.5rem;
  }

  .why-box ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .devis-section {
    padding: 80px 20px;
  }

  .devis-form {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 18px;
  }

  .devis-form label {
    font-size: 0.8rem;
  }

  .btn-submit {
    font-size: 0.9rem;
  }
}
