/* ====================================
   SERVICES PAGE STYLES
   Pixel-perfect match to Figma design
   ==================================== */

/* Header for Services Page - Solid Background */
.services-page .header {
  position: relative;
  background-color: var(--primary-color);
}

.services-page .header .navbar {
  background-color: var(--primary-color);
}

/* ====================================
   SERVICES HERO SECTION
   Gold/amber background, maroon title text
   ==================================== */
.services-hero {
  background-color: var(--accent-color);
  padding: 30px 0;
  text-align: center;
}

.services-hero > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

/* Trajan Pro: lowercase = small caps. "Services" → big S + small ERVICES */
.services-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 3px;
  margin: 0;
  /* NO text-transform — Trajan Pro small caps */
}

/* ====================================
   SERVICE CATEGORIES NAVIGATION
   White bg, full-width bottom border,
   Trajan Pro small-caps links
   ==================================== */
.service-categories {
  background-color: var(--bg-page);
  padding: 0;
  margin-bottom: 40px;
  position: relative;
}

.service-categories::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 23px;
  right: 23px;
  height: 3px;
  background-color: var(--accent-color);
  z-index: 0;
  pointer-events: none;
}

.service-categories > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.categories-list {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 23px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}

.categories-list::-webkit-scrollbar {
  display: none;
}

.categories-list li {
  display: flex;
  position: relative;
  z-index: 1;
}

/* Trajan Pro small-caps category links */
.category-link {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.category-link:hover,
.category-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* ====================================
   SERVICE SECTIONS — SHARED
   ==================================== */
.service-section {
  padding: 0;
}

.service-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.service-section-white {
  background-color: var(--bg-page);
}

/* ====================================
   SERVICE TITLE
   Trajan Pro small-caps — maroon
   ==================================== */
.service-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 18px;
  line-height: 1.4;
  /* NO text-transform */
}

/* Divider line under service titles */
.service-title-line {
  width: 120px;
  height: 1.5px;
  background-color: #380606;
  margin-bottom: 25px;
}

/* Service Image */
.service-image {
  overflow: hidden;
  height: 100%;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* Service Content (text side in sections 1 & 3) */
.service-content {
  padding: 60px 0 60px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Service description paragraph — Tajawal */
.service-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 22px;
  text-align: left;
  margin-bottom: 0;
}

/* ====================================
   SECTION 2: INTERIOR/EXTERIOR DESIGN
   Full-bleed: maroon content left, image right
   ==================================== */
.service-section-alt {
  background-color: var(--bg-page);
}

.service-content-box {
  background-color: var(--primary-color);
  padding: 75px 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content-box .service-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 25px;
  line-height: 1.4;
  /* NO text-transform — Trajan Pro small caps */
}

.service-content-box p {
  font-family: var(--font-body);
  font-size: 16px;
  color: #CCCCCC;
  line-height: 22px;
  text-align: left;
  margin-bottom: 0;
}

.service-image-full {
  height: 100%;
  min-height: 480px;
}

.service-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* --- XL (< 1200px) --- */
@media (max-width: 1199.98px) {
  .services-title {
    font-size: 36px;
  }

  .service-title {
    font-size: 23px;
  }

  .category-link {
    font-size: 15px;
  }

  .service-content {
    padding-left: 40px;
  }

  .service-content-box {
    padding: 60px 45px;
  }

  .service-content-box .service-title {
    font-size: 21px;
  }
}

/* --- LG / Tablet (< 992px) --- */
@media (max-width: 991.98px) {
  .services-hero {
    padding: 25px 0;
  }

  .services-title {
    font-size: 30px;
  }

  .service-section {
    padding: 0;
  }

  .service-content {
    padding: 30px 15px;
  }

  .service-image img {
    min-height: 320px;
  }

  .service-title {
    font-size: 21px;
  }

  .category-link {
    font-size: 14px;
    padding: 18px 16px;
  }

  .service-content-box {
    padding: 50px 40px;
  }

  .service-content-box .service-title {
    font-size: 20px;
  }

  .service-image-full {
    min-height: 380px;
  }
}

/* --- SM / Mobile (< 768px) --- */
@media (max-width: 767.98px) {
  .services-hero {
    padding: 20px 0;
  }

  .services-title {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .service-categories {
    padding: 0;
  }

  .category-link {
    font-size: 13px;
    padding: 16px 12px;
  }

  .service-section {
    padding: 0;
  }

  .service-title {
    font-size: 19px;
  }

  .service-content p,
  .service-content-box p {
    font-size: 14px;
  }

  .service-image img {
    min-height: 280px;
  }

  /* Reset order for mobile */
  .service-section .order-lg-1,
  .service-section .order-lg-2 {
    order: unset;
  }

  .service-content-box {
    padding: 40px 30px;
  }

  .service-content-box .service-title {
    font-size: 18px;
  }

  .service-image-full {
    min-height: 300px;
  }

  .service-title-line {
    width: 90px;
  }
}

/* --- XS (< 576px) --- */
@media (max-width: 575.98px) {
  .services-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .service-title {
    font-size: 17px;
  }

  .service-content-box .service-title {
    font-size: 16px;
  }

  .service-content p,
  .service-content-box p {
    font-size: 13px;
  }
}
