/* ============================================================
   SERVICE INDEX PAGE — service.css (cleaned & optimized)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:wght@400;500;700&display=swap");

/* ── Tokens ── */
:root {
  --yellow: #f8cc00;
  --gray: #555555;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-section {
  position: relative;
  height: 400px;
  background: url("/images/service-hero/main-service-hero-image.webp")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* background: rgba(0, 0, 0, 0.35); */
}

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

.hero-heading {
  color: #ffffff;
  font-family: "Open Sans Condensed", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 55px;
  line-height: 1.11;
  letter-spacing: 0;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 100%;
  margin: 10px auto 20px;
  color: #fff;
  text-shadow:
    2px 15px 15px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.6),
    2px 2px 3px rgba(0, 0, 0, 1);
}

.hero-button {
  background-color: #ffc107;
  color: #ffffff;
  border: 2px solid #ffc107;
  border-radius: 30px;
  border: none;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease;
}

/* ============================================================
   2. SERVICES CARDS SECTION — Flip Hover Style
   ============================================================ */
.services-section {
  padding: 60px 0;
}

.services-section .container-1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.services-main-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Service Card (Flip Container) */
.service-card {
  position: relative;
  perspective: 1000px;
  min-height: 320px;
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-link {
  transform: rotateY(180deg);
}

/* Front & Back shared */
.service-front,
.service-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
}

/* Front Side */
.service-front {
  background: #d4d4d4;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.service-image-wrap {
  flex: 1;
  padding: 8px;
  overflow: hidden;
}

.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
}

.service-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-top: 1px solid #ccc;
  flex-shrink: 0;
}

.gear-icon {
  width: 24px;
  height: 24px;
  color: #00a8e8;
  flex-shrink: 0;
}

.service-title-bar span {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-transform: capitalize;
}

/* Back Side (Blue Overlay) */
.service-back {
  background: #00a8e8;
  transform: rotateY(180deg);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.service-back-inner {
  text-align: left;
  width: 100%;
}

.service-back-inner h4 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
  text-transform: capitalize;
}

.keyword-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.keyword-list li {
  font-size: 14px;
  color: #fff;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.keyword-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
}

.back-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

/* View All Button */
.services-viewall-wrap {
  text-align: center;
  margin-top: 40px;
}

.services-viewall-btn {
  background: #ffc107;
  color: #000000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 18px;
  border: 2px solid #ffc107;
}

.services-viewall-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.services-viewall-btn.is-open svg {
  transform: rotate(180deg);
}

/* ============================================================
   3. CTA BANNER
   ============================================================ */
.cta-section {
  background: #fff;
  position: relative;
}

.cta-content {
  max-width: 100%;
  background: url("/images/cta-section/cta-image.webp") center / cover no-repeat;
  padding: 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-discount {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 18px;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.cta-discount::before,
.cta-discount::after {
  content: "";
  display: block;
  height: 2px;
  width: 90px;
  background: #ffffff;
  border-radius: 2px;
}

.cta-title {
  position: relative;
  z-index: 1;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  font-family: "Open Sans Condensed", sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 50px;
}

.cta-button {
  background: #ffc107;
  color: #000000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 18px;
  border: 2px solid #ffc107;
}

.cta-button:hover {
  background-color: #fff;
  color: #ffc107;
  text-decoration: none;
}

.cta-button-outline {
  background: transparent;
  color: #fff;
}

/* ============================================================
   4. STATS BAR
   ============================================================ */
.stats-bar-section {
  background: linear-gradient(180deg, #059ddd 33%, #00a5ea 100%);
  padding: 40px 0;
  margin: 40px 0;
}

.stats-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: "Open Sans Condensed", sans-serif;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

/* ============================================================
   5. ABOUT SECTION
   ============================================================ */
.about-section {
  background: #fff8d5;
  padding: 50px 0;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.about-title {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.3;
  color: #1f2937;
  margin: 0 0 30px;
}

.about-paragraph {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  margin: 16px auto 0;
  color: #1f2937;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

/* ============================================================
   6. CONTACT SECTION
   ============================================================ */
.contact-section {
  background: #ffffff;
  padding: 50px 0;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-heading {
  font-size: 28px;
  font-weight: 700;
  color: #00a5ea;
  margin: 0 0 35px;
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 18px;
}

.info-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #00a5ea;
  margin: 0 0 4px;
}

.info-card-text {
  font-size: 14px;
  color: #333333;
  margin: 0;
}

.info-card-link {
  font-size: 15px;
  font-weight: 700;
  color: #00a5ea;
  text-decoration: none;
  display: block;
}

.info-card-link:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  padding-top: 0;
}

.contact-form {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #00a5ea;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #333333;
  background: #ffffff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  transition: box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaaaaa;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(137, 183, 76, 0.15);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-send {
  background: #ffc107;
  color: #000000;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 18px;
  border: 2px solid #ffc107;
}

.btn-send:hover {
  background: #ffffff;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
  border-radius: 25px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: "Open Sans", sans-serif;
}

.btn-call:hover {
  background: #ffc107;
  color: #000000;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #e8f5e0;
  color: #2d6a1f;
  border: 1px solid #b8d9a8;
}

.alert-danger {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5b5b5;
}

.mb-0 {
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hero-section {
    height: 200px;
  }
}
@media (max-width: 768px) {
  .contact-heading {
    text-align: left;
  }
  .hero-section {
    min-height: 280px;
    padding: 60px 20px;
  }

  .hero-heading {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .services-main-title {
    font-size: 24px;
  }

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

  .cta-content {
    padding: 50px 20px;
  }

  .cta-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-paragraph {
    font-size: 15px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-card {
    flex: 1;
    min-width: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stat-number {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .services-main-title {
    font-size: 22px;
  }

  .about-title {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .hero-section {
    height: 100px;
  }
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}
