/* ============================================================
   SERVICE INDEX PAGE — service.css
   Matches the design screenshot exactly
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:wght@400;500;700&display=swap");

/* ── Tokens ── */
:root {
  --cyan: #009ab5;
  --yellow: #f8cc00;
  --text: #111111;
  --gray: #555555;
  --white: #ffffff;
  --light: #f8f9fa;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--gray);
  line-height: 1.6;
}

.text-cyan {
  color: var(--cyan) !important;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 400px;
  background: url("/images/services-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;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.hero-text {
  color: #fff;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: "Open Sans Condensed", sans-serif;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  /* opacity: 0.9; */
  margin-bottom: 30px;
  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 {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;  border-radius: 5px;
  transition: background 0.25s ease;
}
.hero-button:hover {
  background: #fdc600;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   2. SERVICES CARDS SECTION
   ============================================================ */
.services-cards-section {
  background: var(--light);
  padding: 50px 0 36px;
}

.services-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.services-title-section {
  text-align: left;
}

.services-main-title {
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  color: rgb(0, 0, 0) !important;
  font-family: "Open Sans Condensed", sans-serif !important;
  font-size: 36px !important;
}

.services-main-title .text-cyan {
  color: var(--cyan);
}

.section-subtitle {
  font-size: 18px;
  color: #000;
  margin: 0;
}

/* Navigation arrows */
.services-nav {
  display: flex;
  gap: 10px;
}

.services-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.services-nav-btn:hover {
  background: var(--cyan);
  color: #fff;
}
.services-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* Grid — 4 columns */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
}

/* Card */
.service-list-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.service-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Card background image - fills entire card */
.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay at bottom for text readability */
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

/* Card content at bottom */
.service-card-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 20px;
  color: #fff;
}

.service-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.service-card-link:hover {
  opacity: 0.8;
  color: #d9aa00;
  text-decoration: none;
}
.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   3. CTA BANNER
   ============================================================ */
.cta-section {
  background: #fff;
  position: relative;
}

.cta-overlay {
  display: none;
}

.cta-container {
  max-width: 100%;
  padding: 0;
}
.cta-content {
  max-width: 100%;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/img/CTA.webp") center / cover no-repeat;
  padding: 70px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-content::before,
.cta-content::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 8px solid var(--yellow);
  z-index: 0;
}
.cta-content::before {
  top: -80px;
  left: -80px;
}
.cta-content::after {
  bottom: -80px;
  right: -80px;
}

.cta-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.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);
}

.cta-text {
  position: relative;
  z-index: 1;
  font-size: 18px !important;
  color: #ffffff;
  line-height: 1.65;
  margin: 0 auto 28px !important;
  max-width: 580px;
  width: auto !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background: #0098b3;
  color: #fff;
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.cta-button:hover {
    background: #fdc600;
  color: #ffffff;
}
/* ============================================================
   4. CONTACT SECTION
   ============================================================ */
.contact-cta {
  background: #fff;
  padding: 60px 0 80px;
}

.contact-cta__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-template-rows: auto 1fr;
  column-gap: 60px;
  row-gap: 28px;
  align-items: start;
  box-sizing: border-box;
}

.contact-cta__heading {
  grid-column: 1 / -1;
  font-size: 32px;
  font-weight: 800;
  color: var(--yellow);
  margin: 0;
  font-family: "Open Sans Condensed", sans-serif;
  text-align: center;
}

.contact-cta__media {
  grid-column: 1;
}

.contact-cta__media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  border-radius: 150px 150px 0 0;
  border: 4px solid var(--yellow);
  object-fit: cover;
}

.contact-cta__right {
  grid-column: 2;
  padding-top: 60px;
}

/* Form */
.contact-cta__form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  border: 1.5px solid var(--cyan);
  padding: 12px 14px;
  font-size: 15px;
  color: #000;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
}
.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 154, 181, 0.12);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 6px;
}

.btn-form-cyan {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}
.btn-form-cyan:hover {
  background: #fdc600;
  border: 1.5px solid #fdc600;
  color: #fff;
  text-decoration: none;
}

.btn-form-cyan--full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-section {
    min-height: 380px;
    padding: 60px 20px;
  }
  .hero-heading {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 16px;
  }

  /* Services */
  .services-cards-section {
    padding: 36px 0 24px;
  }
  .services-main-title {
    font-size: 24px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* CTA */
  .cta-content {
    max-width: 100%;
    border-radius: 24px;
    padding: 50px 20px;
  }
  .cta-title {
    font-size: 28px;
  }
  .cta-text {
    font-size: 15px !important;
  }

  /* Contact */
  .contact-cta__container {
    grid-template-columns: 1fr;
  }
  .contact-cta__heading {
    text-align: center;
  }
  .contact-cta__media {
    grid-column: 1;
    display: flex;
    justify-content: center;
  }
  .contact-cta__right {
    grid-column: 1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cta-content::before,
  .cta-content::after {
    width: 120px;
    height: 120px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 24px;
  }
}
