/* Shared public pages: the approved homepage palette, type and spacing. */
html:has(.home-page) { scroll-behavior: auto; }
.home-page .navbar .dropdown:focus-within > ul { opacity: 1; visibility: visible; top: 100%; }
.home-page .navbar .dropdown ul { max-height: calc(100vh - 130px); overflow-y: auto; }
.home-page .navbar-mobile .mobile-nav-toggle { color: #fff; }
.home-page .navbar-mobile .dropdown:focus-within > ul:not(.dropdown-active) { display: none; }
.home-page .navbar-mobile .active::after { display: none; }
.home-page #contact .info p { line-break: auto; word-break: normal; overflow-wrap: anywhere; }
.brochure-main { padding-top: 96px; }
.brochure-page { font-size: 16px; line-height: 1.7; }
.brochure-page h4 { font-family: inherit; }
.brochure-page #main > .page-intro { background: var(--home-stone); padding: 48px 0 40px; }
.page-intro > .container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-intro-copy { max-width: 960px; min-width: 0; }
.page-intro h1 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0; color: var(--home-ink); }
.page-intro p { color: var(--home-muted); max-width: 65ch; margin: 20px 0 0; }
.page-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; max-width: 100%; }
.page-breadcrumb a { color: #785323; padding-block: 10px; text-decoration: underline; text-underline-offset: 4px; }
.page-breadcrumb i { font-size: 10px; flex-shrink: 0; }
.page-breadcrumb span { color: var(--home-muted); min-width: 0; overflow-wrap: anywhere; }
.service-category + .service-category { border-top: 1px solid var(--home-line); margin-top: 56px; padding-top: 40px; }
.service-category { scroll-margin-top: 120px; }
.service-category .home-featured-services { row-gap: 48px; }
.brochure-page #main .home-service-card h2 { font-size: 22px; line-height: 1.3; margin: 18px 0 8px; }
.brochure-page .home-service-card h2 a { color: var(--home-ink); }
.brochure-page .home-service-summary { max-width: 42ch; }
.brochure-page #main > .page-enquiry { background: #f6f3ee; color: #35332f; padding: 40px 0; }
.page-enquiry > .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brochure-page #main .page-enquiry h2 { font-size: 30px; color: #35332f; margin: 0 0 8px; }
.page-enquiry p { color: #625d54; margin: 0; }
.page-enquiry .home-button { flex-shrink: 0; }
.service-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.service-gallery { min-width: 0; }
.service-gallery .swiper-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--home-stone); }
.service-gallery .swiper-pagination { position: relative; bottom: auto; margin-top: 12px; }
.service-gallery .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--home-ink); margin: 8px !important; }
.gallery-hint { font-size: 13px; color: var(--home-muted); margin: 8px 0 0; }
.rich-copy { color: var(--home-muted); line-height: 1.8; overflow-wrap: anywhere; }
.rich-copy p, .rich-copy ul, .rich-copy ol { margin-bottom: 20px; max-width: 70ch; }
.rich-copy img, .rich-copy iframe { max-width: 100%; height: auto; }
.rich-copy table { max-width: 100%; display: block; overflow-x: auto; }
.rich-copy a { color: #785323; text-decoration: underline; text-underline-offset: 4px; }
.rich-copy h2, .rich-copy h3 { color: var(--home-ink); margin-top: 32px; }
.service-detail-copy > .home-text-link { margin-bottom: 16px; }
.service-detail-copy > .home-button { margin-top: 12px; }
.about-story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.about-story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rich-copy .about-lead { color: var(--home-ink); font-size: 24px; line-height: 1.45; font-weight: 600; }
.company-principles { background: var(--home-stone); }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.brochure-page #main .principles-grid h2 { font-size: 26px; }
.principles-grid p, .principles-grid ul { color: var(--home-muted); margin: 0; }
.principles-grid ul { padding-left: 20px; }
.principles-grid li + li { margin-top: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.project-entry { min-width: 0; }
.project-cover { display: block; position: relative; overflow: hidden; background: var(--home-stone); }
.project-cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease-out; }
.project-cover:hover img { transform: scale(1.025); }
.project-cover span { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px; align-items: center; background: #fff; color: var(--home-ink); padding: 8px 12px; font-size: 13px; }
.brochure-page #main .project-entry h2 { font-size: 22px; line-height: 1.3; margin: 18px 0 6px; }
.project-entry p { color: var(--home-muted); margin: 0; font-size: 14px; }
.project-empty { min-height: 240px; padding: 28px; background: var(--home-stone); display: grid; place-items: center; color: var(--home-muted); }
.page-empty { grid-column: 1 / -1; padding-block: 20px; }
.brochure-page .article-body { max-width: 820px; }
.article-photo { display: block; width: 100%; max-height: 540px; object-fit: contain; background: var(--home-stone); margin-bottom: 40px; }
.contact-location iframe { display: block; width: 100%; border: 1px solid var(--home-line); }
.home-footer-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 14px; }
.home-footer-navigation a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.home-footer-navigation a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .service-detail-grid, .about-story-grid { gap: 36px; }
  .principles-grid { gap: 28px; }
  .brochure-page .home-featured-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .brochure-main { padding-top: 80px; }
  .brochure-page #main > .page-intro { padding: 32px 0 24px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro p { margin-top: 16px; font-size: 15px; }
  .page-breadcrumb { font-size: 12px; gap: 8px; }
  .brochure-page .home-featured-services, .project-grid, .principles-grid, .about-story-grid, .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-category .home-featured-services { row-gap: 32px; }
  .service-category + .service-category { margin-top: 40px; padding-top: 32px; }
  .about-story-photo img { aspect-ratio: 4 / 3; }
  .rich-copy .about-lead { font-size: 21px; }
  .page-enquiry > .container { align-items: flex-start; flex-direction: column; gap: 24px; }
  .brochure-page #main .page-enquiry h2 { font-size: 28px; }
  .page-enquiry .home-button { width: 100%; justify-content: space-between; }
  .project-cover span { right: 12px; bottom: 12px; }
  .article-photo { margin-bottom: 28px; }
  .contact-location iframe { height: 300px; }
}

/* Small, interruptible motion; no hidden content or layout-shifting entrances. */
.home-page a, .home-page button, .home-footer a, .home-footer summary {
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}
.home-page .navbar-mobile > ul { animation: brochure-menu-in 220ms cubic-bezier(.16, 1, .3, 1); overscroll-behavior: contain; }
@keyframes brochure-menu-in { from { opacity: .75; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body:has(.navbar-mobile) { overflow: hidden; }
body:has(.navbar-mobile) .whatsapp, body:has(.navbar-mobile) .back-to-top { visibility: hidden; }
.home-page .navbar-mobile .dropdown ul { margin: 8px 12px; box-shadow: none; border-left: 1px solid var(--home-line); }
.home-page .navbar-mobile .dropdown ul li { min-width: 0; }
.home-page .navbar-mobile .dropdown ul a { white-space: normal; line-height: 1.45; padding: 12px 16px; }
.home-footer-bottom summary { min-height: 44px; padding-block: 12px; }
.home-page .home-button:active, .home-page #contact button[type=submit]:active { filter: brightness(.95); }
.home-page .swiper-pagination-bullet { width: 32px; height: 32px; margin: 0 2px !important; background: transparent; opacity: 1; display: inline-grid; place-items: center; }
.home-page .swiper-pagination-bullet::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--home-ink); opacity: .25; transition: opacity 180ms ease-out; }
.home-page .swiper-pagination-bullet-active::after { opacity: 1; }
@media (hover: none) {
  .home-service-photo:hover img, .project-cover:hover img { transform: none; }
}
@media (max-width: 380px) {
  :root { --home-gutter: 16px; }
  .home-page #header .logo { gap: 6px; }
  .home-page #header .logo img { width: 56px; height: 56px; }
  .home-page .home-brand-name { font-size: 16px; }
  .page-intro h1 { font-size: 30px; }
  .home-page .home-assurances span { padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after, .home-footer * { animation: none !important; transition-duration: 0s !important; }
}

/* A compact upward disclosure keeps group links from stretching the footer. */
.home-group { position: relative; flex-shrink: 0; }
.home-footer-bottom .home-group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 10px 14px; border: 1px solid #cec7bb; border-radius: 8px; font-size: 13px; font-weight: 600; list-style: none; }
.home-group summary::-webkit-details-marker { display: none; }
.home-group summary:hover { background: #e4ded4; }
.home-group summary i { transition: transform 180ms ease-out; }
.home-group[open] summary i { transform: rotate(180deg); }
.home-group .home-group-links { position: absolute; z-index: 20; bottom: calc(100% + 10px); right: 0; width: min(560px, calc(100vw - var(--home-gutter) * 2)); max-height: min(320px, 55vh); overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 16px 20px; background: #faf8f4; border-radius: 12px; box-shadow: 0 8px 28px rgb(53 51 47 / 15%); }
.home-group-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; font-size: 13px; line-height: 1.5; text-decoration: underline; text-decoration-color: #c9bdab; text-underline-offset: 4px; }
.home-group-links a:hover { color: #785323; }
.home-group[open] .home-group-links { animation: brochure-menu-in 180ms ease-out; }
@media (max-width: 767px) { .home-group { width: 100%; } .home-group .home-group-links { right: auto; left: 0; width: 100%; } }
@media (max-width: 480px) { .home-group .home-group-links { grid-template-columns: 1fr; max-height: min(260px, 50vh); } }
@media (prefers-reduced-motion: reduce) { .home-group[open] .home-group-links { animation: none; } .home-group summary i { transition: none; } }
body:has(.home-group[open]) .whatsapp, body:has(.home-group[open]) .back-to-top { visibility: hidden; }
.home-footer { overflow: visible; }

body.footer-in-view .whatsapp, body.footer-in-view .back-to-top { visibility: hidden; }

/* User-requested expertise badge beneath the original brand name. */
.home-page .home-brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.home-page .home-brand-tagline { display: inline-block; padding: 5px 9px; border-radius: 5px; background: #f0dfbf; color: #5b421e; font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: nowrap; }
@media (max-width: 767px) {
  .home-page .home-brand-lockup { gap: 5px; }
  .home-page .home-brand-tagline { padding: 4px 6px; font-size: 10px; }
}

/* Keep submenu typography and selected states separate from top-level navigation. */
.home-page .navbar .dropdown ul a::after { display: none; }
.home-page .navbar .dropdown ul a,
.home-page .navbar .dropdown ul a:focus { font-size: 14px; font-weight: 500; line-height: 1.45; white-space: normal; color: var(--home-ink); }
.home-page .navbar .dropdown ul a:hover,
.home-page .navbar .dropdown ul a:focus-visible,
.home-page .navbar .dropdown ul a.active { color: #785323; background: #f6f3ee; }
@media (min-width: 992px) {
  .home-page .navbar .dropdown > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 4px 8px; width: 560px; max-width: calc(100vw - 48px); left: auto; right: 0; padding: 12px; border-radius: 12px; box-shadow: 0 12px 32px rgb(23 19 79 / 12%); overscroll-behavior: contain; }
  .home-page .navbar .dropdown > ul > li { min-width: 0; }
  .home-page .navbar .dropdown > ul > li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--home-line); margin-bottom: 4px; padding-bottom: 8px; }
  .home-page .navbar .dropdown > ul > li:first-child a { font-weight: 600; }
  .home-page .navbar .dropdown ul a { min-height: 44px; height: 100%; padding: 10px 12px; border-radius: 6px; }
}

.home-page .home-google-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 16px; color: #fff; font-size: 13px; line-height: 1.5; text-underline-offset: 4px; }
.home-google-rating > i { color: var(--home-gold); }
.home-google-rating strong { font-weight: 600; }
.home-google-rating span { color: #e3e1ee; }
.home-google-rating:hover { text-decoration: underline; }
.home-reviews-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: 28px; }
.home-page #main .home-reviews-heading h2 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.home-reviews-heading p { font-size: 13px; color: #d9d7e9; margin: 0; }
.home-reviews-heading a { color: var(--home-gold); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
@media (max-width: 767px) { .home-page #main .home-reviews-heading h2 { font-size: 24px; } }

/* Prominent review proof and consistent contact controls across public pages. */
.home-page .home-google-rating { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 16px; margin-top: 22px; border-radius: 10px; background: #fff; color: var(--home-ink); box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.home-google-rating > i { grid-row: 1 / 3; font-size: 28px; align-self: center; color: #936a2e; }
.home-google-rating strong { font-size: 20px; line-height: 1.3; }
.home-google-rating span { font-size: 14px; color: #565c67; }
.whatsapp { width: 72px; height: 72px; right: 24px; bottom: 24px; z-index: 995; }
.whatsapp a, .whatsapp img { display: block; width: 100%; height: 100%; }
.whatsapp a { border-radius: 50%; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 16%)); }
.site-chat-launcher { position: fixed; right: 24px; bottom: 112px; z-index: 995; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 15px; border: 0; border-radius: 24px; background: #17134f; color: #fff; box-shadow: 0 4px 14px rgb(23 19 79 / 16%); font: 600 13px/1.4 "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.site-chat-launcher[hidden] { display: none; }
.site-chat-launcher i { font-size: 20px; }
.site-chat-launcher:hover { background: #302a70; }
.site-chat-launcher:focus-visible, .whatsapp a:focus-visible { outline: 3px solid #a37635; outline-offset: 4px; }
.back-to-top { right: 112px; bottom: 32px; }
body.site-chat-open .whatsapp, body.site-chat-open .site-chat-launcher, body:has(.navbar-mobile) .site-chat-launcher, body:has(.home-group[open]) .site-chat-launcher { visibility: hidden; }
@media (max-width: 767px) {
  .whatsapp { width: 64px; height: 64px; right: 16px; bottom: 18px; }
  .site-chat-launcher { right: 16px; bottom: 96px; }
  .back-to-top { right: 96px; bottom: 26px; }
   .home-google-rating strong { font-size: 18px; }
 .home-image-controls { left: 20px; right: auto; }
}

/* Business figures confirmed by TOP Construction on 21 September 2026. */
.home-trust-proof { display: grid; grid-template-columns: auto 1fr 1fr; align-items: stretch; gap: 12px; margin-top: 22px; }
.home-page .home-trust-proof .home-google-rating { margin-top: 0; padding: 12px; gap: 2px 8px; }
.home-trust-proof .home-google-rating strong { font-size: 17px; }
.home-trust-stat { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.home-trust-stat strong { color: #936a2e; font-size: 28px; line-height: 1.1; font-weight: 700; }
.home-trust-stat span { color: #565c67; font-size: 12px; line-height: 1.4; }
@media (max-width: 767px) {
 .home-trust-proof { grid-template-columns: 100px 100px; gap: 16px; }
 .home-page .home-trust-proof .home-google-rating { grid-column: 1 / -1; padding: 12px 16px; }
  .home-trust-proof .home-google-rating strong { font-size: 18px; }
 .home-trust-stat strong { font-size: 26px; }
}

/* Stronger service highlights and a distinct, understated design credit. */
.home-assurances { background: #f2e8d6; border-bottom: 1px solid #ddc9a5; }
.home-assurances > .container { padding-block: 28px; }
.home-assurances span { font-size: 17px; font-weight: 700; color: #17134f; border-color: #d4bd94; }
.home-assurances i { color: #805b25; font-size: 32px; }
.site-design-credit { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 16px; color: #625d54; }
.site-design-credit a { color: #35332f; font-weight: 700; text-decoration: underline; text-decoration-color: #a37635; text-underline-offset: 4px; }
@media (max-width: 767px) {
 .home-assurances > .container { padding-block: 22px; }
 .home-assurances span { font-size: 13px; line-height: 1.4; }
 .home-assurances i { font-size: 28px; }
  .site-design-credit { display: flex; margin: 7px 0 0; }
}
