/* Base Advisory • Phase 3: Eight original English service-detail pages.
 * Standalone, scoped to body.page-service-detail. No WP/Elementor dependency.
 * Reference: https://baseadvisory.sg/services/*/
 */
body.page-service-detail { background:#f4f4f4; font-family:Montserrat,Arial,sans-serif; }
.page-service-detail .detail-page {color:#67797e;background:#f4f4f4;overflow:clip;}
.page-service-detail .desktop-nav a.active{color:#232323}
.detail-titlebar{max-width:1300px;margin:13px auto 0;min-height:131px;display:flex;align-items:flex-start;justify-content:space-between;padding:10px 5px 21px;gap:20px;}
.detail-titlebar h1{font-size:21px;font-weight:700;color:#111;margin:0;line-height:1.25;}
.detail-breadcrumb{font-weight:700;color:#67797e;font-size:16px;text-align:right;line-height:1.65;}
.detail-breadcrumb span{margin:0 4px;}
.detail-breadcrumb a{color:#67797e;text-decoration:none;}
.detail-breadcrumb a:hover{color:#1d73be;}
.detail-hero{width:100%;display:flex;justify-content:center;align-items:center;margin:0 auto;padding:0 10px;}
.detail-hero img{width:var(--detail-hero-width,100%);height:var(--detail-hero-height,auto);max-width:1300px;aspect-ratio:var(--detail-hero-ratio,1.6);display:block;object-fit:cover;object-position:center;}
.detail-accounting .detail-titlebar{margin-top:28px;min-height:115px;}
.detail-family-office .detail-titlebar{margin-top:23px;min-height:95px;}
.detail-accounting .detail-hero img{max-width:1405px;object-fit:fill;}
.detail-hr-and-pay-roll .detail-hero img{max-width:1405px;}
.detail-relocation-services .detail-hero img{width:100%;max-width:1405px;}
.detail-intro{max-width:1300px;margin:0 auto;color:#67797e;}
.detail-intro-title-row{padding:6px 0 4px;}
.detail-intro-title-row h2{margin:0;color:#494949;font-weight:700;font-size:30px;line-height:1.45;}
.detail-rule{height:1px;background:#494949;opacity:.8;margin:10px 0;}
.detail-intro-content{margin:0 0 0 18px;max-width:1282px;}
.detail-intro-content>h2{font-size:27px;font-weight:700;color:#494949;line-height:1.32;margin:14px 0 14px;}
.detail-intro-content>h3{font-size:22px;font-weight:700;color:#494949;line-height:1.3;margin:10px 0 10px;}
.detail-intro-copy{font-size:16px;line-height:1.6;color:#67797e;margin:0 0 16px;}
.detail-intro-copy p{margin:0 0 17px;}
.detail-offerings{width:100%;background:#eaeaea;padding:22px max(calc((100% - 1300px)/2),20px) 40px;}
.detail-offerings-intro{padding:8px 12px 30px;color:#67797e;}
.detail-offerings-intro h2{font-size:36px;line-height:1.22;font-weight:700;color:#000;margin:0 0 22px;}
.detail-offerings-intro p{font-size:16px;line-height:1.65;margin:0 0 18px;}
.detail-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 10px;}
.detail-feature-grid--two{grid-template-columns:repeat(2,minmax(0,1fr));}
.detail-feature{min-width:0;background:#1d73be;color:#fff;padding:22px 17px 22px;min-height:230px;}
.detail-feature h3{font-family:Montserrat,Arial,sans-serif;font-size:21px;font-weight:700;line-height:1.15;color:#fff;margin:0 0 20px;}
.detail-feature p{color:#fff;font-size:16px;font-weight:400;line-height:1.6;margin:0;}
.detail-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:26px max(calc((100% - 1300px)/2),20px) 38px;gap:26px;background:#fff;}
.detail-info-bottom{padding-top:12px;padding-bottom:18px;}
.detail-list-section{min-width:0;color:#67797e;}
.detail-list-section h2{font-family:Montserrat,Arial,sans-serif;color:#000;font-size:34px;line-height:1.25;font-weight:700;margin:0 0 18px;}
.detail-list-section ul{padding-left:20px;margin:0;list-style:disc;}
.detail-list-section li{font-size:16px;line-height:1.6;margin:0 0 12px;}
.detail-list-section li strong{font-weight:700;}
.detail-benefits-intro{font-size:16px;line-height:1.6;}
.detail-faq{border-top:1px solid #d0d7da;}
.detail-faq-entry{border:1px solid #d0d7da;border-top:0;background:#fff;}
.detail-faq-entry summary{font-size:16px;line-height:1.45;color:#303030;cursor:pointer;list-style:none;padding:12px 13px 12px 32px;min-height:47px;position:relative;}
.detail-faq-entry summary::-webkit-details-marker{display:none;}
.detail-faq-entry summary::before{content:'⌄';position:absolute;left:10px;top:9px;font-size:20px;font-weight:700;line-height:1;transform:rotate(-90deg);}
.detail-faq-entry[open] summary::before{transform:rotate(0);}
.detail-faq-entry summary:focus-visible{outline:2px solid #1d73be;outline-offset:-2px;}
.detail-faq-answer{padding:19px 19px 25px;border-top:1px solid #d0d7da;color:#67797e;}
.detail-faq-answer p{margin:0;line-height:1.6;font-size:16px;}
.detail-cta{background:#f4f4f4;color:#67797e;padding:25px max(calc((100% - 1300px)/2),20px) 62px;}
.detail-cta-inner{max-width:1300px;margin:0 auto;}
.detail-cta p{font-size:16px;line-height:1.65;margin:0 0 20px;}
.detail-contact-link a{color:#5d50f5;font-weight:700;}
.detail-more-services{display:inline-flex;background:#2c72f5;color:#fff;text-decoration:none;font-size:15px;font-weight:700;justify-content:center;align-items:center;min-height:55px;border-radius:5px;padding:15px 29px;margin-top:6px;}
.detail-more-services:hover,.detail-more-services:focus-visible{background:#1d5dc8;color:#fff;}
/* Page-specific sizing from the original reference pages */
.detail-corporate-secretarial-services .detail-hero img {max-width:1405px;}
.detail-tax-advisory .detail-hero img,
.detail-singapore-business-services .detail-hero img {max-width:1300px;}
.detail-family-office .detail-hero img {max-width:1300px;}
.detail-education-services .detail-hero img {max-width:1405px;}
.detail-education-services .detail-feature {min-height:220px;}
.detail-hr-and-pay-roll .detail-feature {min-height:250px;}
.detail-relocation-services .detail-feature{min-height:275px;}
@media(max-width:1199.98px){
 .detail-titlebar,.detail-intro{max-width:calc(100% - 45px)}
 .detail-hero img{max-width:calc(100% - 20px)}
 .detail-intro-content{margin-left:12px}
 .detail-offerings,.detail-info-grid,.detail-cta{padding-left:26px;padding-right:26px}
 .detail-feature{padding:22px 14px;}
}
@media(min-width:768px) and (max-width:991.98px){
 .detail-titlebar{margin-top:24px;min-height:110px}
 .detail-hero img{height:auto;max-height:600px;object-fit:cover;}
 .detail-intro-content>h2{font-size:24px;}
 .detail-offerings-intro h2{font-size:31px}
 .detail-feature-grid{gap:15px;}
 .detail-feature h3{font-size:18px}
 .detail-feature p,.detail-list-section li,.detail-intro-copy p{font-size:15px}
 .detail-list-section h2{font-size:28px}
}
@media(max-width:767.98px){
 .page-service-detail .site-header .header-shell{height:136px;min-height:136px;align-items:flex-start;padding:13px 14px 0;position:relative;}
 .page-service-detail .site-header{height:136px;}
 .page-service-detail .brand img{width:120px;}
 .page-service-detail .header-actions{position:static;}
 .page-service-detail .mobile-nav-toggle{position:absolute;display:block;right:55px;top:16px;width:42px;height:42px;}
 .page-service-detail .mobile-nav-toggle span{width:24px;height:3px;background:#121212;margin:5px auto;}
 .page-service-detail .language-switcher{position:absolute;top:100px;left:10px;}
 .page-service-detail .language-trigger{min-width:163px;height:25px;padding:2px 8px;border:1px solid #b9b9b9;border-radius:0;background:linear-gradient(#fff,#e8e8e8);font-size:13px;line-height:18px;display:flex;gap:6px;color:#111;}
 .page-service-detail .language-trigger span:nth-child(2){display:inline;}
 .page-service-detail .language-trigger svg{margin-left:auto;width:11px;height:11px;}
 .page-service-detail .language-menu{left:0;right:auto;min-width:180px;top:26px;}
 .page-service-detail .mobile-navigation{position:absolute;top:136px;left:0;right:0;z-index:120;}
 .detail-titlebar,.detail-accounting .detail-titlebar,.detail-family-office .detail-titlebar{max-width:100%;width:100%;margin:30px auto 0;min-height:155px;padding:10px;flex-direction:column;gap:17px;}
 .detail-titlebar h1{font-size:21px}
 .detail-breadcrumb{align-self:flex-end;max-width:100%;padding-right:0;font-size:16px;white-space:normal;}
 .detail-hero{padding:0 10px;}
 .detail-hero img,.detail-accounting .detail-hero img,.detail-family-office .detail-hero img,.detail-hr-and-pay-roll .detail-hero img,.detail-relocation-services .detail-hero img{width:calc(100% - 48px);height:600px;max-width:none;object-fit:cover;}
 .detail-intro{max-width:100%;padding:0 17px;}
 .detail-intro-title-row h2{font-size:28px;line-height:1.2}
 .detail-intro-content{margin-left:0}
 .detail-intro-content>h2{font-size:24px;line-height:1.22}
 .detail-intro-content>h3{font-size:20px;line-height:1.3}
 .detail-intro-copy{font-size:16px}
 .detail-offerings{padding:22px 10px 30px;}
 .detail-offerings-intro{padding:7px 10px 20px}
 .detail-offerings-intro h2{font-size:30px}
 .detail-feature-grid,.detail-feature-grid--two{grid-template-columns:1fr;gap:14px;margin:0 10px;}
 .detail-feature{min-height:0!important;padding:22px 15px 28px;}
 .detail-feature h3{font-size:20px;}
 .detail-info-grid{grid-template-columns:1fr;padding:25px 20px 15px;gap:25px;}
 .detail-info-bottom{padding-top:18px;padding-bottom:20px}
 .detail-list-section h2{font-size:30px;margin-bottom:14px}
 .detail-cta{padding:28px 20px 48px;}
}
@media (prefers-reduced-motion:reduce){.detail-page *, .detail-page *::before{scroll-behavior:auto;transition:none!important;}}


/* ====================================================================
   PHASE 3 VIEWPORT / PANEL CORRECTIONS • 14 NOVEMBER 2026
   Mirrors reference photo dimensions from the eight English WP pages.
   Preserves original 1200px+ desktop sizing and the page content.
   ==================================================================== */
@media (min-width:768px) and (max-width:991.98px) {
  /* WordPress keeps certain detail banners at fixed heights on tablet. */
  .page-service-detail .detail-accounting .detail-hero img {
    height:600px;max-height:none;object-fit:fill;
  }
  .page-service-detail .detail-hr-and-pay-roll .detail-hero img {
    height:700px;max-height:none;object-fit:cover;
  }
  .page-service-detail .detail-family-office .detail-hero img,
  .page-service-detail .detail-relocation-services .detail-hero img {
    height:600px;max-height:none;object-fit:cover;
  }
  /* Positioning and text density: source tablets use desktop-size body copy. */
  .page-service-detail .detail-intro-copy,
  .page-service-detail .detail-intro-copy p,
  .page-service-detail .detail-list-section li,
  .page-service-detail .detail-feature p {font-size:16px;line-height:1.6;}
  .page-service-detail .detail-intro-content>h2 {font-size:27px;}
  .page-service-detail .detail-list-section h2{font-size:32px;}
  .page-service-detail .detail-feature h3{font-size:21px;}
  .page-service-detail .detail-feature {min-height:260px;}
  .page-service-detail .detail-feature-grid{gap:18px;}
  /* Some reference pages have a longer introduction before offerings. */
  .page-service-detail .detail-accounting .detail-intro {padding-bottom:95px;}
  .page-service-detail .detail-corporate-secretarial-services .detail-intro {padding-bottom:95px;}
  .page-service-detail .detail-hr-and-pay-roll .detail-intro {padding-bottom:105px;}
  .page-service-detail .detail-family-office .detail-intro {padding-bottom:100px;}
  .page-service-detail .detail-relocation-services .detail-intro {padding-bottom:95px;}
  .page-service-detail .detail-singapore-business-services .detail-intro {padding-bottom:85px;}
  .page-service-detail .detail-tax-advisory .detail-intro {padding-bottom:30px;}
  .page-service-detail .detail-education-services .detail-intro {padding-bottom:30px;}
}

@media (max-width:767.98px) {
  /* The source uses distinctly different mobile image treatments. */
  .page-service-detail .detail-hero{padding:0 10px;}
  .page-service-detail .detail-hero img{max-width:none;aspect-ratio:auto;}
  .page-service-detail .detail-corporate-secretarial-services .detail-hero {
    padding-top:48px;
  }
  .page-service-detail .detail-corporate-secretarial-services .detail-hero img {
    width:82%;height:auto;aspect-ratio:1.6;object-fit:fill;
  }
  .page-service-detail .detail-tax-advisory .detail-hero img,
  .page-service-detail .detail-singapore-business-services .detail-hero img {
    width:100%;height:auto;aspect-ratio:1.6;object-fit:fill;
  }
  .page-service-detail .detail-hr-and-pay-roll .detail-hero img {
    width:90%;height:700px;object-fit:cover;
  }
  .page-service-detail .detail-education-services .detail-hero {
    padding-top:27px;
  }
  .page-service-detail .detail-education-services .detail-hero img {
    width:85%;height:auto;aspect-ratio:1.6;object-fit:fill;
  }
  .page-service-detail .detail-family-office .detail-hero {
    margin-top:-25px;
  }
  .page-service-detail .detail-family-office .detail-hero img {
    width:100%;height:600px;object-fit:cover;
  }
  .page-service-detail .detail-singapore-business-services .detail-hero {
    padding-top:27px;
  }
  .page-service-detail .detail-relocation-services .detail-hero {
    padding-top:36px;
  }
  .page-service-detail .detail-relocation-services .detail-hero img {
    width:100%;height:600px;object-fit:cover;
  }
  /* Accounting alone retains the original 322px-wide x 600px tall image. */
  .page-service-detail .detail-accounting .detail-hero img {
    width:calc(100% - 48px);height:600px;object-fit:fill;
  }
  .page-service-detail .detail-feature {
    min-height:0!important;
    padding:25px 17px 35px;
  }
  .page-service-detail .detail-feature h3 {font-size:21px;margin-bottom:20px;}
  .page-service-detail .detail-feature p{font-size:16px;line-height:1.6;}
  .page-service-detail .detail-list-section li {font-size:16px;line-height:1.65;}
  .page-service-detail .detail-list-section li+li {margin-top:11px;}
}


/* ============================================================================
   PHASE 6E | FINAL DESIGN POLISH (14 NOV 2026)
   Source-checked English service details only. The WordPress reference retains
   additional deliberate white space after introductions at desktop widths.
   Chinese and Indonesian keep content-driven heights, not forced English copy
   lengths. No modifications to HTML layout, imagery, animations or interactions.
   ============================================================================ */
@media (min-width: 1200px) {
  /* Source-to-staging matching of the first gray services-panel boundary.
     These are whitespace differences, NOT replacements for missing content. */
  html[lang="en-SG"] body.page-service-detail .detail-corporate-secretarial-services .detail-intro {padding-bottom:116px;}
  html[lang="en-SG"] body.page-service-detail .detail-accounting .detail-intro {padding-bottom:132px;}
  html[lang="en-SG"] body.page-service-detail .detail-tax-advisory .detail-intro {padding-bottom:100px;}
  html[lang="en-SG"] body.page-service-detail .detail-hr-and-pay-roll .detail-intro {padding-bottom:120px;}
  html[lang="en-SG"] body.page-service-detail .detail-education-services .detail-intro {padding-bottom:50px;}
  html[lang="en-SG"] body.page-service-detail .detail-singapore-business-services .detail-intro {padding-bottom:125px;}
  html[lang="en-SG"] body.page-service-detail .detail-relocation-services .detail-intro {padding-bottom:88px;}
  /* Family Office uses a shorter heading and no source-confirmed offset. */
  /* Original WP shows five panels in ONE horizontal row for Government
     Incentives and Relocation on desktop, not a 3 + 2 split. Keeping the
     existing five <article> elements, change the grid only at 1200px+. */
  body.page-service-detail .detail-education-services .detail-feature-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:20px;
  }
  body.page-service-detail .detail-education-services .detail-offerings-intro {
    padding-bottom:0;
  }
  body.page-service-detail .detail-education-services .detail-feature {
    min-height:256px;
    padding:10px 12px 17px;
  }
  body.page-service-detail .detail-relocation-services .detail-offerings {
    padding-left:20px;
    padding-right:20px;
  }
  body.page-service-detail .detail-relocation-services .detail-feature-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:20px;
    margin:0;
  }
  body.page-service-detail .detail-relocation-services .detail-feature {
    min-height:350px;
    padding:12px 12px 18px;
  }
}
/* Desktop section headings use the reference's compact 32px treatment.
   This remains content-driven for multilingual wrapping; no fixed heights. */
@media (min-width: 992px) {
  html[lang="en-SG"] body.page-service-detail .detail-list-section h2 {
    font-size:32px;line-height:1.12;
  }
  html[lang="en-SG"] body.page-service-detail .detail-offerings-intro h2 {
    line-height:1.1;
  }
}
/* Keep translated headings and long unbroken terms inside their existing
   feature, list and FAQ boxes without changing the grid or box sizes. */
body.page-service-detail .detail-feature h3,
body.page-service-detail .detail-feature p,
body.page-service-detail .detail-faq-entry summary,
body.page-service-detail .detail-list-section li,
body.page-service-detail .detail-breadcrumb,
body.page-service-detail .detail-cta p {overflow-wrap:break-word;}
/* Respect the original motion settings and reduce movement only for visitors
   explicitly asking the operating system for reduced motion. */
@media (prefers-reduced-motion:reduce) {
  body.page-service-detail .detail-more-services {transition:none;}
}
