/*
 * BASE ADVISORY — PHASE 2: OUR SERVICES (English)
 * Faithful re-implementation of the public 14 November 2026 design in plain CSS.
 * Scoped under .page-services / .services-page so homepage styling is untouched.
 * Reference: https://baseadvisory.sg/our-services/
 */
body.page-services { background: #f4f4f4; }
body.page-services .services-page { width:100%; padding:0; background:#f4f4f4; }
body.page-services .site-header { background:#fff; }
body.page-services .desktop-nav a.active { color: #232323; }
body.page-services .desktop-nav a.active:hover {color:#00639b;}

/* Title and breadcrumb: original desktop content width 1300px */
.services-topbar {
  width: min(100%, 1300px);
  min-height: 82px;
  margin: 37px auto 0;
  padding: 10px 10px 21px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.services-topbar h1 {
  margin: 0;
  color: #4e4d4d;
  font-family: Montserrat, Arial, sans-serif;
  font-size:25px;
  line-height:25px;
  font-weight:700;
}
.services-breadcrumb {
  font-family: Montserrat, Arial, sans-serif;
  color:#67797e;
  text-align:right;
  font-size:16px;
  font-weight:700;
  line-height:26px;
  white-space:normal;
}
.services-breadcrumb a,.services-breadcrumb span {color:#67797e;}
.services-breadcrumb a:hover {color:#0053e7;}
.services-breadcrumb-separator {padding:0 7px;}

/* Actual 1300 x 300 services-2.jpg hero: 88% of full-width widget */
.services-main-banner {width:100%;padding:10px 10px 10px;}
.services-main-banner img {
  display:block;
  width:88%;
  height:auto;
  aspect-ratio:1300/300;
  margin:0 auto;
  object-fit:fill;
}

/* Elementor original: card row 90% wide, 6.8% left margin, 58px gap. */
.services-detail-list { width:100%; }
.service-detail-row {
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  width:90%;
  min-height:540px;
  padding:10px;
  gap:0;
  margin:58px 0 0 6.8%;
  background:#f0e7e7;
  isolation:isolate;
}
.service-detail-row > * {position:relative;z-index:1;min-width:0;}
.services-photo-col {flex:0 0 40.85%;width:40.85%;padding:10px;}
.services-photo-link {display:block;width:100%;color:inherit;}
.services-photo-link img {
  display:block;
  width:100%;
  height:500px;
  max-width:100%;
  object-fit:cover;
  box-shadow:0 0 10px rgba(0,0,0,.5);
  transition:filter .22s ease;
}
.services-photo-link:hover img {filter:brightness(.95);}
.service-detail-row:first-child .services-photo-link img,
.service-detail-row:nth-child(7) .services-photo-link img {object-fit:fill;}

.services-copy-col {flex:0 0 59.15%;width:59.15%;padding:10px 10px 10px 76px;display:flex;flex-direction:column;align-items:flex-start;}
.services-entry-title {
  font-family:Montserrat,Arial,sans-serif;
  font-size:30px;
  font-weight:700;
  line-height:30px;
  color:#464040;
  margin:54px 0 20px;
  width:100%;
  letter-spacing:0;
}
.services-entry-title a {color:inherit;text-decoration:none;}
.services-entry-title a:hover {color:#0053e7;}
.services-entry-heading,.services-entry-subheading {
  color:#464040;
  font-family:Montserrat,Arial,sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1;
  margin:0 0 20px;
  width:100%;
}
.services-entry-subheading {font-size:17px;}
.service-detail-row:nth-child(4) .services-entry-subheading,
.service-detail-row:nth-child(8) .services-entry-subheading {font-size:18px;line-height:1;}
.service-detail-row:nth-child(6) .services-entry-subheading {font-size:16px;}
.services-entry-paragraphs {font-family:Montserrat,Arial,sans-serif;color:#67797e;font-weight:400;font-size:16px;line-height:1.6;width:100%;}
.services-entry-paragraphs p {margin:0 0 24px;font-size:inherit;line-height:1.6;font-weight:400;color:inherit;}
.services-entry-paragraphs p:last-child {margin-bottom:0;}
.services-entry-action {width:100%;padding-left:4px;margin-top:20px;}
.services-find-more {
  display:inline-flex;
  width:auto;min-width:159px;height:57px;
  justify-content:center;align-items:center;
  padding:21px 23px;
  color:#fff;
  background-color:#29afe9;
  font-family:Montserrat,Arial,sans-serif;
  font-size:15px;font-weight:700;line-height:15px;
  text-decoration:none;
  border:0;border-radius:3px;
  transition:background-color .15s ease,color .15s ease;
}
.services-find-more:hover,.services-find-more:focus-visible {background-color:#f15a24;color:#fff;}
.services-page-bottom-spacer {height:82px;}

/* 1200px and lower: keep the same alternating layout, avoid text/photo overlap */
@media (max-width:1199.98px) {
  .services-topbar {width:calc(100% - 42px);}
  .service-detail-row {width:94%;margin-left:3%;}
  .services-photo-col {flex-basis:42%;width:42%;}
  .services-copy-col {flex-basis:58%;width:58%;padding-left:32px;}
  .services-entry-title {font-size:27px;line-height:1.12;margin-top:30px;}
  .services-entry-heading,.services-entry-subheading {line-height:1.3;}
  .services-photo-link img {height:450px;}
  .service-detail-row {min-height:490px;}
}

/* Tablet: images and text still paired, with scaled dimensions */
@media (min-width:768px) and (max-width:991.98px) {
  .services-main-banner img {width:90%;}
  .services-photo-col {flex-basis:43%;width:43%;}
  .services-copy-col {flex-basis:57%;width:57%;padding-left:22px;}
  .services-entry-title {font-size:24px;line-height:1.18;margin-top:14px;margin-bottom:13px;}
  .services-entry-heading,.services-entry-subheading {font-size:15px;line-height:1.22;margin-bottom:14px;}
  .services-entry-paragraphs {font-size:14px;line-height:1.5;}
  .services-entry-paragraphs p {line-height:1.5;margin-bottom:13px;}
  .services-photo-link img {height:400px;}
  .service-detail-row {min-height:440px;margin-top:30px;}
  .services-entry-action {margin-top:16px;}
}

/* The actual WordPress phone layout stacks in DOM order, with no gaps between rows. */
@media (max-width:767.98px) {
  body.page-services .site-header .header-shell {position:relative;min-height:136px;height:136px;align-items:flex-start;justify-content:space-between;padding:13px 14px 0;}
  body.page-services .brand img {width:120px;}
  body.page-services .header-actions {position:static;}
  body.page-services .mobile-nav-toggle {position:absolute;display:block;top:16px;right:55px;width:42px;height:42px;}
  body.page-services .mobile-nav-toggle span {width:24px;height:3px;background:#121212;margin:5px auto;}
  body.page-services .language-switcher {position:absolute;left:10px;top:100px;}
  body.page-services .language-trigger {border:1px solid #b9b9b9;background:linear-gradient(#fff,#e8e8e8);border-radius:0;min-width:163px;height:25px;padding:2px 8px;display:flex;font-size:13px;line-height:18px;gap:6px;color:#111;}
  body.page-services .language-trigger span:nth-child(2) {display:inline;}
  body.page-services .language-trigger svg {margin-left:auto;width:11px;height:11px;}
  body.page-services .language-menu {left:0;right:auto;min-width:180px;top:26px;}
  body.page-services .mobile-navigation {position:absolute;top:136px;left:0;right:0;z-index:120;}
  body.page-services .site-header {height:136px;}

  .services-topbar {width:100%;min-height:127px;margin:37px auto 0;padding:10px 10px 21px;display:flex;flex-direction:column;gap:20px;}
  .services-topbar h1 {font-size:25px;line-height:25px;}
  .services-breadcrumb {font-size:16px;line-height:26px;align-self:flex-end;padding-right:20px;}
  .services-main-banner {padding:10px;width:100%;}
  .services-main-banner img {width:88%;height:auto;aspect-ratio:1300/300;object-fit:fill;}

  .service-detail-row {width:100%;min-height:0;margin:0;padding:10px;display:flex;flex-direction:column;gap:0;}
  .services-photo-col,.services-copy-col {flex:none;width:100%;padding:10px;min-width:0;}
  .services-photo-link {margin:0;}
  .services-photo-link img {height:203px;width:100%;object-fit:cover;}
  .service-detail-row:first-child .services-photo-link,
  .service-detail-row:nth-child(3) .services-photo-link {width:calc(100% - 25px);margin-left:13px;}
  .service-detail-row:first-child .services-photo-link img,
  .service-detail-row:nth-child(7) .services-photo-link img {object-fit:cover;}
  .service-detail-row:first-child .services-photo-link img {object-fit:fill;}
  .services-entry-title {font-size:30px;line-height:1;letter-spacing:0;margin:0 0 20px;font-weight:700;}
  .services-entry-heading,.services-entry-subheading {font-size:18px;line-height:1;margin-bottom:20px;font-weight:700;}
  .services-entry-subheading,.service-detail-row:nth-child(6) .services-entry-subheading {font-size:17px;line-height:1;}
  .service-detail-row:nth-child(4) .services-entry-subheading,
  .service-detail-row:nth-child(8) .services-entry-subheading {font-size:18px;line-height:1;}
  .services-entry-paragraphs {font-size:16px;line-height:1.6;}
  .services-entry-paragraphs p {margin:0 0 24px;line-height:1.6;}
  .services-entry-action {padding:0;margin-top:20px;}
  .services-find-more {height:57px;min-width:159px;}
  /* Mobile original shows some buttons centered and others left aligned. */
  .service-detail-row:nth-child(1) .services-entry-action,
  .service-detail-row:nth-child(5) .services-entry-action,
  .service-detail-row:nth-child(7) .services-entry-action {text-align:center;}
  .services-page-bottom-spacer {height:82px;}
}

/* ================================================================
 * PHASE 2 FINAL DESIGN POLISH — 14 NOVEMBER 2026
 * These rules tune the service-list page against actual desktop
 * (1440px) and phone (390px) reference measurements.
 * Importantly: they do not affect the shared homepage, header, or
 * footer, because everything is scoped to .service-detail-row.
 * ================================================================ */

/* Desktop: preserve the original vertical rhythm and row-eight inset.
   Target reference section starts: 586, 1196, 1794, 2392, 2990,
   3615, 4213, 4811px at the 1440px reference viewport. */
@media (min-width: 1200px) {
  .service-detail-row:first-child {
    min-height: 552px;
  }

  .service-detail-row:nth-child(4) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 12px;
  }

  .service-detail-row:nth-child(5) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 20px;
  }

  .service-detail-row:nth-child(6) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 11px;
  }

  /* The source Relocation section has no outer 10px row inset. */
  .service-detail-row:nth-child(8) {
    min-height: 520px;
    padding: 0;
  }

  .service-detail-row:nth-child(8) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 12px;
  }
}

/* Mobile: match source card order, paragraph rhythm, cyan CTA
   alignment, and the full-width Relocation heading. */
@media (max-width: 767.98px) {
  /* The original centers the first, fifth, and seventh CTA within a
     narrower internal widget, not the full 350px copy column. */
  .service-detail-row:nth-child(1) .services-entry-action,
  .service-detail-row:nth-child(5) .services-entry-action,
  .service-detail-row:nth-child(7) .services-entry-action {
    width: calc(100% - 52px);
  }

  .service-detail-row:nth-child(1) .services-entry-action {
    margin-top: 23px;
  }

  .service-detail-row:nth-child(2) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 17px;
  }

  .service-detail-row:nth-child(3) .services-entry-paragraphs p:not(:last-child),
  .service-detail-row:nth-child(4) .services-entry-paragraphs p:not(:last-child),
  .service-detail-row:nth-child(6) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 0;
  }

  .service-detail-row:nth-child(5) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 20px;
  }

  .service-detail-row:nth-child(6) .services-entry-action {
    margin-top: 2px;
  }

  .service-detail-row:nth-child(7) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 12px;
  }

  /* No extra outer row padding: source uses the full 370px column,
     allowing “RELOCATION SERVICES” to stay on a single line at 390px. */
  .service-detail-row:nth-child(8) {
    padding: 0;
    min-height: 0;
  }

  .service-detail-row:nth-child(8) .services-entry-paragraphs p:not(:last-child) {
    margin-bottom: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-photo-link img,.services-find-more {transition:none !important;}
}


/* ====================================================================
   PHASE 2 TABLET REFERENCE CORRECTION • 14 NOVEMBER 2026
   Source row width 90%, x≈55px, photo 249×232px at 768 CSS viewport.
   The previous tablet rule reduced fonts to 14px and used 400px images,
   compressing ~7154px of source content into ~5701px.
   No modifications are made to desktop or <768px mobile rows.
   ==================================================================== */
@media (min-width:768px) and (max-width:991.98px) {
  .page-services .services-topbar {
    width:calc(100% - 42px);
  }
  .page-services .services-main-banner img{width:88%;}
  .page-services .service-detail-row {
    width:90%;
    margin:0 0 0 7.3%;
    min-height:0;
    padding:10px;
    align-items:stretch;
  }
  .page-services .services-photo-col {
    flex:0 0 40.85%;
    width:40.85%;
    padding:10px;
  }
  .page-services .services-photo-link img{width:100%;height:232px;}
  .page-services .services-copy-col {
    flex:0 0 59.15%;
    width:59.15%;
    padding:10px 10px 10px 38px;
    align-items:flex-start;
  }
  .page-services .services-entry-title {
    font-size:30px;
    line-height:1;
    margin:54px 0 20px;
  }
  .page-services .services-entry-heading,
  .page-services .services-entry-subheading {
    font-size:18px;
    line-height:1.12;
    margin:0 0 20px;
  }
  .page-services .services-entry-subheading {font-size:17px;}
  .page-services .services-entry-paragraphs {
    font-size:16px;
    line-height:1.6;
  }
  .page-services .services-entry-paragraphs p {
    margin-bottom:24px;
    font-size:16px;
    line-height:1.6;
  }
  .page-services .services-entry-action {margin-top:20px;}
  .page-services .services-page-bottom-spacer {height:82px;}
}
