/* ================= SERVICES PAGE ================= */

:root {
  --navy: #08163b;
  --navy-deep: #050f2d;
  --blue: #0647a8;
  --green: #18a96b;
  --green-dark: #0f8a55;
  --text: #111827;
  --muted: #667085;
  --border: rgba(8, 22, 59, 0.12);
  --shadow: 0 24px 70px rgba(8, 22, 59, 0.1);
}

.services-page {
  background: #ffffff;
}

.services-container {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

/* ================= HERO ================= */

.services-hero {
  min-height: 340px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 22, 59, 0.76),
      rgba(8, 22, 59, 0.42)
    ),
    url("../images/services.jpg") center/cover no-repeat;
}

.services-hero-overlay {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 78px 0;
}

.services-hero-tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.services-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.services-hero p {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

/* ================= INTRO ================= */

.services-intro-section {
  padding: 82px 0 54px;
  background:
    radial-gradient(circle at top left, rgba(24, 169, 107, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

.services-intro {
  max-width: 940px;
}

.services-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(24, 169, 107, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.services-tag i {
  color: var(--green);
}

.services-intro h2 {
  max-width: 700px;
  color: var(--navy);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.services-intro p {
  max-width: 920px;
  margin-top: 18px;
  color: #344054;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
}

/* ================= SERVICES LIST ================= */

.services-list-section {
  padding: 54px 0 95px;
  background: #f7fbfc;
}

.services-heading {
  max-width: 740px;
  margin-bottom: 42px;
}

.services-heading-line {
  width: 80px;
  height: 4px;
  display: block;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--green);
}

.services-heading h2 {
  color: var(--navy);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.services-heading p {
  max-width: 680px;
  margin-top: 14px;
  color: #475467;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(8, 22, 59, 0.08);
  box-shadow: 0 22px 60px rgba(8, 22, 59, 0.08);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 84px rgba(8, 22, 59, 0.14);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-image {
  height: 210px;
  overflow: hidden;
  background: #e5e7eb;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.45s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.07);
}

.service-card-body {
  position: relative;
  padding: 28px 24px 30px;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: -56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--blue);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 16px 34px rgba(6, 71, 168, 0.26);
  border: 4px solid #ffffff;
  transition: 0.25s ease;
}

.service-card:hover .service-icon {
  background: var(--green);
  transform: translateY(-3px);
}

.service-card h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 12px;
}

.service-card p {
  color: #667085;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 24px;
}

.service-btn {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  background: rgba(8, 22, 59, 0.06);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.service-btn:hover {
  background: var(--green);
  color: #ffffff;
}

.service-btn i {
  font-size: 12px;
  transition: 0.25s ease;
}

.service-btn:hover i {
  transform: translateX(4px);
}

/* ================= CTA ================= */

.services-cta-section {
  padding: 0 0 95px;
  background: #f7fbfc;
}

.services-cta {
  padding: 42px 46px;
  border-radius: 24px;
  background:
    radial-gradient(circle at right, rgba(24, 169, 107, 0.2), transparent 32%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 28px 75px rgba(8, 22, 59, 0.18);
}

.services-cta span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.services-cta h2 {
  max-width: 620px;
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.18;
  font-weight: 900;
}

.services-cta-btn {
  min-height: 52px;
  padding: 0 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.services-cta-btn:hover {
  background: var(--green);
  transform: translateY(-3px);
}

/* ================= PRIMARY CONSULTATION FORM ================= */

.services-booking-section {
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 10% 10%, rgba(24, 169, 107, 0.1), transparent 28%),
    #f5f8fb;
}

.services-booking-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.services-booking-heading > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.services-booking-heading h2 {
  margin-top: 9px;
  color: var(--navy);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.services-booking-heading p {
  margin-top: 10px;
  color: #566176;
  font-size: 14px;
  line-height: 1.7;
}

.services-booking-form {
  max-width: 980px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(8, 22, 59, 0.09);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(8, 22, 59, 0.09);
}

.services-booking-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.services-booking-group + .services-booking-group {
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid rgba(8, 22, 59, 0.1);
}

.services-booking-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.services-booking-group legend span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(24, 169, 107, 0.11);
  color: var(--green-dark);
  font-size: 11px;
}

.services-booking-help {
  margin: 10px 0 18px 44px;
  color: #667085;
  font-size: 13px;
}

.services-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.services-choice {
  position: relative;
  cursor: pointer;
}

.services-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.services-choice span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(8, 22, 59, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  transition: 0.2s ease;
}

.services-choice span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 10px;
  border: 1.5px solid #98a2b3;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.services-choice input:checked + span {
  border-color: var(--green);
  background: rgba(24, 169, 107, 0.08);
  color: var(--green-dark);
}

.services-choice input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
}

.services-choice input:focus-visible + span {
  outline: 3px solid rgba(6, 71, 168, 0.2);
  outline-offset: 2px;
}

.services-selection-group[aria-invalid="true"] .services-choice span {
  border-color: #d92d20;
}

.services-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.services-form-field {
  min-width: 0;
}

.services-form-field-wide {
  grid-column: 1 / -1;
}

.services-form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.services-form-field label strong {
  color: var(--green-dark);
}

.services-form-field input,
.services-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  transition: 0.2s ease;
}

.services-form-field input {
  min-height: 50px;
  padding: 0 14px;
}

.services-form-field textarea {
  min-height: 128px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.services-form-field input:focus,
.services-form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(6, 71, 168, 0.12);
}

.services-form-field [aria-invalid="true"] {
  border-color: #d92d20;
}

.services-field-error {
  min-height: 18px;
  margin-top: 6px;
  color: #b42318;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.services-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.services-booking-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.services-booking-submit:hover {
  background: var(--blue);
}

.services-booking-submit:focus-visible {
  outline: 3px solid rgba(6, 71, 168, 0.25);
  outline-offset: 3px;
}

.services-booking-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.services-booking-status {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.services-booking-status.is-visible {
  display: block;
}

.services-booking-status.is-success {
  border: 1px solid rgba(15, 138, 85, 0.2);
  background: rgba(24, 169, 107, 0.11);
  color: var(--green-dark);
}

.services-booking-status.is-error {
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: #feeceb;
  color: #b42318;
}

.services-booking-reference {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card-image {
    height: 230px;
  }
}

@media (max-width: 760px) {
  .services-container {
    width: min(100% - 32px, 520px);
  }

  .services-hero,
  .services-hero-overlay {
    min-height: 300px;
  }

 .services-hero h1 {
  font-size: 32px;
}
  .services-hero p {
    font-size: 15px;
  }

  .services-intro-section {
    padding: 64px 0 42px;
  }

  .services-list-section {
    padding: 42px 0 72px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-image {
    height: 235px;
  }

  .services-cta {
    padding: 34px 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .services-cta-btn {
    width: 100%;
  }

  .services-booking-section {
    padding: 68px 0 72px;
  }

  .services-booking-form {
    padding: 26px 20px;
    border-radius: 18px;
  }

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

  .services-form-field-wide {
    grid-column: auto;
  }

  .services-booking-help {
    margin-left: 0;
  }
}

/* ================= SERVICES FONT SIZE FIX ================= */

/* Hero heading */
.services-hero h1 {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}

/* Hero paragraph */
.services-hero p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.65;
}

/* Intro heading */
.services-intro h2 {
  max-width: 620px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.5px;
}

/* Intro paragraphs */
.services-intro p {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.75;
}

/* Section heading: What We Can Help You With */
.services-heading h2 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.5px;
}

/* Section paragraph */
.services-heading p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.65;
}

/* Service card headings */
.service-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

/* Service card text */
.service-card p {
  font-size: 13px;
  line-height: 1.65;
}

/* Learn more button */
.service-btn {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

/* Bottom CTA text */
.services-cta span {
  font-size: 11px;
  letter-spacing: 1.7px;
}

.services-cta h2 {
  max-width: 520px;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.2;
}

/* Bottom CTA button */
.services-cta-btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 760px) {
  .services-hero h1 {
    font-size: 30px;
  }

  .services-intro h2,
  .services-heading h2 {
    font-size: 26px;
  }

  .services-cta h2 {
    font-size: 24px;
  }
}
