/*
 * Mel One unified public design system
 * Loaded after site.css so this file is the canonical visual layer.
 * The Sydney Harbour homepage artwork and existing information architecture
 * are intentionally preserved; this layer aligns typography and components.
 */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #1f2528;
  --harbour: #14324a;
  --harbour-deep: #0d2538;
  --gold: #f6bd16;
  --yellow: #f6bd16;
  --gold-hover: #dfa90e;
  --gold-deep: #765700;
  --blue: #765700;
  --paper: #ffffff;
  --warm-paper: #f7f5f0;
  --mist: #efeee9;
  --muted: #5f665f;
  --line: #d8d8d1;
  --line-strong: #b9bcb4;
  --error: #a23232;
  --success: #356242;
  --thumb: #8a918c;
  --track: #efeee9;
  --hover: #5f665f;
  --active: #1f2528;
  --radius-control: 10px;
  --radius-button: 12px;
  --radius-card: 18px;
  --radius-feature: 24px;
  --shadow-card: 0 18px 46px rgba(20, 50, 74, 0.1);
  --shadow-float: 0 26px 64px rgba(13, 37, 56, 0.16);
  --content: 1200px;
  --reading: 740px;
  --font-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  scrollbar-color: var(--thumb) var(--track);
  scroll-padding-top: 112px;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #f6bd1655; color: var(--ink); }

img { max-width: 100%; }

h1,
h2,
h3,
.wordmark,
.on-page h2,
.footer-group h2,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.45rem, 4.6vw, 4.15rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.24rem; line-height: 1.32; }
p { margin: 0 0 1.15em; }

html[lang="zh-Hans"] body { line-height: 1.82; }
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
  letter-spacing: -0.018em;
  line-height: 1.24;
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover { color: var(--gold-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
}

.skip:focus { top: 14px; }

.preview-note {
  padding: 9px 24px;
  background: #fff7dc;
  color: #5b460c;
  font-size: 0.75rem;
  text-align: center;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.fine,
.source { color: var(--muted); font-size: 0.78rem; }

.text-link,
.inline-link {
  color: var(--gold-deep);
  font-weight: 750;
}

.text-link { font-size: 0.92rem; }
.inline-link:hover,
.text-link:hover { color: var(--ink); }

/* Header and complete service navigation */
.site-header {
  position: relative;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  width: min(100%, 1320px);
  min-height: 96px;
  margin: 0 auto;
  padding: 6px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo-window {
  position: relative;
  display: block;
  width: 108px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.logo-window img {
  position: absolute;
  top: -43px;
  left: -31px;
  width: 170px;
  height: 170px;
  max-width: none;
}

.brand-logo { display: block; flex: 0 0 auto; }

.header-service {
  max-width: 92px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

#main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

#main-nav a,
#main-nav .services-dropdown > summary,
.language {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

#main-nav > a,
#main-nav .services-dropdown > summary,
.language {
  position: relative;
  padding-block: 13px;
}

#main-nav > a::after,
#main-nav .services-dropdown > summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 2px;
  background: var(--gold);
  transition: right 160ms ease;
}

#main-nav > a:hover::after,
#main-nav .services-dropdown > summary:hover::after,
#main-nav .services-dropdown[open] > summary::after { right: 0; }

.language {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.header-phone {
  min-height: 48px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: var(--radius-button);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { border-color: var(--gold-hover); background: var(--gold-hover); color: var(--ink); }

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 13px;
  font-weight: 750;
}

.services-dropdown { position: relative; margin: 0; padding: 0; border: 0; }
.services-dropdown > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.services-dropdown > summary::-webkit-details-marker { display: none; }
.services-dropdown:not([open]) .services-panel { display: none; }

.services-panel {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 780px;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 130px);
  overflow: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.service-menu-intro {
  padding: 18px;
  border-radius: 13px;
  background: var(--warm-paper);
}
.service-menu-intro p { margin: 0 0 14px; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.service-menu-intro .services-all { color: var(--gold-deep); font-weight: 800; }
.service-menu-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-menu-groups section { min-width: 0; }
.service-menu-groups h2 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.services-panel a {
  display: block;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.4;
}
.services-panel a:hover,
.services-panel a:focus-visible { background: #fff7dd; color: var(--ink); }

/* Shared layout and actions */
.section {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 76px 32px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 470px; margin-bottom: 0; color: var(--muted); }

.button {
  min-width: 156px;
  min-height: 52px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-button);
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover { border-color: var(--harbour); background: var(--harbour); color: var(--paper); }
.button:active { transform: translateY(1px); }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

/* Protected Sydney Harbour homepage hero */
.trade-hero {
  position: relative;
  overflow: hidden;
  background: var(--harbour-deep);
  color: var(--paper);
}

.trade-hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 43, 0.9) 0%, rgba(7, 24, 43, 0.7) 43%, rgba(7, 24, 43, 0.05) 76%), url("/images/sydney-harbour-editorial.webp") center 55% / cover;
}

.trade-hero-inner {
  position: relative;
  width: min(100%, 1320px);
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 32px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.trade-hero-copy { max-width: 670px; }
.trade-hero .eyebrow { color: var(--gold); }
.trade-hero h1 {
  max-width: 680px;
  margin: 0 0 25px;
  color: var(--paper);
  font-size: clamp(2.65rem, 4.7vw, 4.45rem);
  line-height: 1.07;
  letter-spacing: -0.047em;
}

html[lang="zh-Hans"] .trade-hero h1 {
  max-width: 11.5em;
  font-size: clamp(2.3rem, 4vw, 3.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.trade-hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: #edf2f4;
  font-size: 1.05rem;
  line-height: 1.75;
}

.trade-hero .button.secondary { border-color: #ffffffaa; background: rgba(255, 255, 255, 0.03); color: var(--paper); }
.trade-hero .button.secondary:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.trade-hero a:focus-visible { outline-color: var(--gold); }
.hero-contact { margin-top: 18px; color: #e0e7e9 !important; font-size: 0.82rem !important; }
.hero-project-link { display: none; }

.fact-strip {
  padding: 20px max(32px, calc((100vw - 1136px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--warm-paper);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.fact-strip span::before { content: "✓"; margin-right: 9px; color: var(--gold-deep); font-weight: 800; }

/* Homepage service pathways and editorial sections */
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.core-card {
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(20, 50, 74, 0.05);
}
.core-card svg { width: 42px; height: 42px; margin-bottom: 16px; color: var(--gold-deep); }
.core-card h3 { margin: 0 0 14px; font-size: 1.38rem; }
.core-card h3 a { text-decoration: none; }
.core-card strong { font-size: 0.94rem; line-height: 1.55; }
.core-card p { margin: 12px 0 20px; color: var(--muted); font-size: 0.92rem; }
.core-card .text-link { margin-top: auto; }

.service-line { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.84rem; }
.service-line > span { width: 100%; color: var(--muted); font-weight: 750; }

.home-service-paths { padding-top: 74px; padding-bottom: 74px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.problem-grid article {
  min-width: 0;
  padding: 29px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.problem-grid article:nth-child(2),
.problem-grid article:nth-child(3) { background: var(--warm-paper); }
.problem-grid h3 { margin: 0 0 11px; font-size: 1.3rem; }
.problem-grid p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.78; }
.path-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.roofing-choice-feature,
.work-feature,
.area-band { background: var(--warm-paper); }
.roofing-choice-inner,
.work-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 58px;
}
.roofing-choice-inner figure { margin: 0; min-width: 0; }
.roofing-choice-inner img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-card);
}
.roofing-choice-inner h2 { margin-bottom: 20px; }
.roofing-choice-inner p:not(.eyebrow),
.work-copy > p:not(.eyebrow) { color: var(--muted); }

.work-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.work-mosaic a { display: block; overflow: hidden; border-radius: var(--radius-card); }
.work-mosaic a:first-child { height: 450px; }
.work-mosaic a:nth-child(2) { height: 340px; margin-bottom: 40px; }
.work-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.work-mosaic a:hover img { transform: scale(1.02); }
.work-copy h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); }

.process-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  list-style: none;
}
.process-grid li > span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}
.process-grid h3 { margin: 20px 0 10px; }
.process-grid p { color: var(--muted); font-size: 0.92rem; }

.about-band,
.home-trust-band { background: var(--ink); color: var(--paper); }
.about-band-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.about-band h2,
.home-trust-band h2,
.home-trust-band h3 { color: var(--paper); }
.about-band .eyebrow,
.about-band a,
.home-trust-band .eyebrow,
.home-trust-band a { color: var(--gold); }
.about-band p { color: #e2e7e3; }

.home-trust-band .section { padding-top: 74px; padding-bottom: 78px; }
.home-trust-band .section-heading { align-items: flex-start; }
.home-trust-band .section-heading > p,
.home-trust-band .home-trust-grid p { color: #d9dfdc; }
.home-trust-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.home-trust-grid article {
  min-width: 0;
  padding: 25px 23px;
  border: 1px solid #ffffff24;
  border-radius: var(--radius-card);
  background: #ffffff0b;
}
.home-trust-grid h3 { margin: 0 0 11px; font-size: 1.08rem; }
.home-trust-grid p { margin: 0; font-size: 0.87rem; line-height: 1.72; }

.materials-photo { margin: 0 0 38px; }
.materials-photo img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-feature);
}
.materials-photo figcaption { padding-top: 9px; color: var(--muted); font-size: 0.76rem; }
.advice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.advice-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.advice-grid h3 { margin: 4px 0 13px; }
.advice-grid p { color: var(--muted); font-size: 0.91rem; }
.region-links { margin: 28px 0 18px; display: flex; flex-wrap: wrap; gap: 9px 24px; }
.region-links a { color: var(--gold-deep); font-size: 0.9rem; font-weight: 650; }

/* Inner page hero: service, location and editorial routes share one system. */
.breadcrumbs {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 6px 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.breadcrumbs a { min-height: 0; padding: 0; border: 0; color: var(--ink); font-size: inherit; }
.breadcrumbs span { margin: 0; padding: 0; }

.hero:not(.home-hero) {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 58px;
  border: 0;
  border-radius: var(--radius-feature);
  background: var(--warm-paper);
  overflow: hidden;
}

.inner-page .hero.illustrated-service-hero,
.inner-page .hero.location-hero,
.page-service .hero,
.page-locality .hero,
.page-region .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: center;
  gap: 52px;
}

.hero:not(.home-hero) .hero-copy { min-width: 0; padding: 0; }
.hero:not(.home-hero) h1 {
  max-width: 780px;
  margin: 5px 0 18px;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  line-height: 1.1;
}
.hero:not(.home-hero) .intro { max-width: 700px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-note { color: var(--muted); font-size: 0.79rem; }

html[lang="zh-Hans"] .hero:not(.home-hero) h1 {
  max-width: 14em;
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.2;
}

.service-illustration,
.location-illustration { margin: 0; min-width: 0; }
.service-illustration img,
.location-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-card);
}
.service-illustration figcaption,
.location-illustration figcaption { margin-top: 9px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }

.location-facts {
  width: min(calc(100% - 96px), 1104px);
  margin: 22px auto 0;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--radius-card);
  background: var(--harbour);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}
.location-facts > div { min-width: 0; padding: 3px 22px; border-left: 1px solid #ffffff2e; }
.location-facts > div:first-child { padding-left: 0; border-left: 0; }
.location-facts > div:last-child { padding-right: 0; }
.location-facts span { display: block; margin-bottom: 3px; color: #cfdce4; font-size: 0.69rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.location-facts strong { display: block; overflow-wrap: anywhere; color: var(--paper); font-size: 0.91rem; line-height: 1.5; }

/* Article reading and table of contents */
.article-layout {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 68px 32px 28px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  border: 0;
}

.on-page {
  display: block;
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--warm-paper);
}
.on-page h2 { margin: 0 0 15px; font-size: 0.84rem; font-weight: 800; letter-spacing: 0; }
.on-page a { display: block; margin: 0; padding: 8px 0; color: var(--muted); font-size: 0.83rem; line-height: 1.5; text-decoration: none; }
.on-page a:hover { color: var(--gold-deep); text-decoration: underline; }
.on-page-mobile { display: none; }

.article { display: block; width: 100%; max-width: var(--reading); min-width: 0; }
.content-section { margin: 0 0 38px; padding: 0; border: 0; scroll-margin-top: 30px; }
.content-section + .content-section { padding-top: 26px; border-top: 1px solid var(--line); }
.content-section h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.3; }
.content-section p { color: #3f4642; font-size: 1.03rem; line-height: 1.86; }
.content-section .source { padding-top: 3px; font-size: 0.76rem; }

.page-locality .article-layout { grid-template-columns: minmax(0, var(--reading)); justify-content: center; padding-top: 54px; }
.page-locality .article-layout .on-page { display: none; }

/* Locality problem-to-service cards */
.locality-overview { padding-top: 66px; padding-bottom: 42px; }
.locality-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.locality-service-grid article {
  min-width: 0;
  padding: 12px 12px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(20, 50, 74, 0.06);
}
.locality-service-grid article > a {
  position: relative;
  display: block;
  min-height: 224px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}
.locality-service-grid article > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(13, 37, 56, 0.82) 0%, rgba(13, 37, 56, 0.08) 72%);
}
.locality-service-grid img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform 180ms ease; }
.locality-service-grid a:hover img { transform: scale(1.025); }
.locality-service-grid a span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--paper);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}
.locality-service-grid article > p { margin: 17px 10px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.75; }

/* Service index image cards */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { min-width: 0; }
.photo-service-card {
  padding: 12px 12px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--warm-paper);
}
.service-photo-link {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}
.service-photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(13, 37, 56, 0.76), rgba(13, 37, 56, 0.12));
  pointer-events: none;
}
.service-photo-link img { display: block; width: 100%; height: 270px; object-fit: cover; transition: transform 180ms ease; }
.service-photo-link:hover img { transform: scale(1.025); }
.service-photo-link h3 {
  position: absolute;
  left: 24px;
  right: 20px;
  bottom: 66px;
  z-index: 1;
  max-width: 80%;
  margin: 0;
  color: var(--paper);
  font-size: 1.48rem;
}
.service-photo-arrow {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  width: 62px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  background: var(--paper);
  color: var(--gold-deep);
  font-size: 1.35rem;
  font-weight: 800;
}
.service-photo-link:hover .service-photo-arrow { background: var(--gold); color: var(--ink); }
.photo-service-card > p { margin: 18px 10px 12px; color: var(--muted); line-height: 1.75; }
.photo-service-card > .text-link { display: inline-block; margin-left: 10px; }
.service-image-note { margin-top: 20px; color: var(--muted); font-size: 0.76rem; }

/* Guides, related routes, projects and office */
.related { border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.related-links { margin: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a,
.related-links span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--warm-paper);
  color: var(--gold-deep);
  font-size: 0.86rem;
  line-height: 1.45;
  text-decoration: none;
}
.related-links span { color: var(--muted); }
.related-links a:hover { border-color: #e8ca69; background: #fff7dc; color: var(--ink); }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; border-radius: var(--radius-card); }
.photo-grid img { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-card); transition: transform 180ms ease; }
.photo-grid a:hover img { transform: scale(1.02); }
.photo-grid figcaption { padding-top: 10px; color: var(--muted); font-size: 0.78rem; }
.office-map iframe { border: 0; border-radius: var(--radius-card); }

/* Service-area directory */
.directory-heading { align-items: flex-start; }
.directory-heading > p { max-width: 540px; }
.directory-search { max-width: 640px; margin: 26px 0 34px; }
.directory-search label { display: block; margin-bottom: 7px; font-size: 0.83rem; font-weight: 750; }
.directory-search input { background: var(--paper); }
.directory-search button {
  min-height: 42px;
  margin-top: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--warm-paper);
  color: var(--ink);
  font-weight: 700;
}
.directory-search button:hover { border-color: var(--ink); background: var(--paper); }
.directory-note { max-width: 760px; color: var(--muted); font-size: 0.9rem; }

.area-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.area-group {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--warm-paper);
}
.area-group h3 { margin: 0 0 15px; font-size: 1.15rem; line-height: 1.4; }
.area-group h3 a { color: var(--ink); text-decoration: none; }
.area-group ul { margin: 0; padding: 0; list-style: none; }
.area-group li { margin: 0; font-size: 0.84rem; line-height: 1.5; }
.area-group li a,
.area-group li span { display: inline-block; padding: 5px 0; }
.area-group li a { color: var(--gold-deep); }
.area-group li span { color: var(--muted); }
.area-group[hidden],
.area-group li[hidden] { display: none; }

.page-region .area-groups { grid-template-columns: 1fr; }
.page-region .area-group ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 24px; }

/* FAQ and enquiry flow */
.faq {
  width: min(100%, var(--content));
  max-width: var(--content);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 58px;
  border: 0;
  background: var(--paper);
}
.faq details {
  margin-bottom: 11px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--warm-paper);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding-right: 24px; color: var(--ink); font-size: 1rem; font-weight: 750; line-height: 1.55; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.78; }

.enquiry-section {
  margin-top: 42px;
  margin-bottom: 70px;
  padding: 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 50px;
  border-radius: var(--radius-feature);
  background: var(--warm-paper);
}
.enquiry-aside { padding-top: 24px; }
.enquiry-aside h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.enquiry-aside p { color: var(--muted); }
.contact-number { display: block; margin-top: 28px; color: var(--harbour); font-size: clamp(1.65rem, 2.8vw, 2.2rem); font-weight: 800; text-decoration: none; }
.email-link { display: block; margin-bottom: 30px; overflow-wrap: anywhere; color: var(--gold-deep); font-size: 0.88rem; }

form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(20, 50, 74, 0.06);
}
.form-heading h2 { margin-bottom: 9px; font-size: 1.62rem; }
.form-heading p { color: var(--muted); font-size: 0.88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin: 0 0 16px; }
.field label,
.upload label,
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 0.82rem; font-weight: 750; }
input,
textarea,
select {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.94rem;
}
textarea { min-height: 150px; overflow: auto; resize: vertical; }
input:hover,
textarea:hover,
select:hover { border-color: #8f958d; }
.upload {
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed #9ea39b;
  border-radius: var(--radius-control);
  background: var(--warm-paper);
}
.upload p { margin-bottom: 10px; color: var(--muted); font-size: 0.76rem; }
.upload input { min-height: 44px; padding: 8px; background: var(--paper); font-size: 0.78rem; }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 0.77rem; font-weight: 450; line-height: 1.6; }
.check input { width: 20px; min-height: 20px; margin: 3px 0 0; flex: 0 0 auto; }
.field-error { display: block; min-height: 0; color: var(--error); font-size: 0.75rem; }
.field-error:not(:empty) { margin-top: 6px; }
[aria-invalid="true"] { border: 2px solid var(--error); }
.form-status { min-height: 28px; color: var(--ink); font-size: 0.84rem; }
.form-status.error { color: var(--error); }

/* Footer directory */
footer {
  padding: 58px max(32px, calc((100vw - 1136px) / 2)) 28px;
  background: var(--ink);
  color: #edf0ed;
  font-size: 0.85rem;
}
footer a { color: #edf0ed; text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }
footer a:focus-visible { outline-color: var(--gold); }
footer p { color: #cdd3cf; }

.footer-brand {
  margin-bottom: 36px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 23px;
  border-bottom: 1px solid #ffffff24;
}
.footer-brand .footer-logo { margin: 0; border-radius: 10px; }
.footer-brand strong { display: block; color: var(--paper); font-size: 1.18rem; line-height: 1.45; }
.footer-brand p { margin: 5px 0 0; }
.footer-directory { padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1.08fr 1fr 0.9fr 1.55fr; gap: 32px; }
.footer-group { min-width: 0; }
.footer-group h2 { margin: 0 0 16px; color: var(--gold); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.02em; }
.footer-group a { display: block; margin: 0 0 9px; overflow-wrap: anywhere; line-height: 1.5; }
.footer-group:last-child > a[href^="mailto:"] { font-size: clamp(0.75rem, 1.1vw, 0.86rem); }
.footer-group p { margin: 0 0 13px; line-height: 1.68; }
.footer-legal { padding-top: 21px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff24; }
.footer-legal p { margin: 0; color: #bfc6c1; font-size: 0.73rem; }

.mobile-cta { border-color: var(--line); background: var(--paper); }
.mobile-cta a { border-radius: var(--radius-control); background: var(--gold); color: var(--ink); }

/* Existing dialogs retain their behavior and join the same component system. */
.gallery-dialog {
  width: min(1100px, 94vw);
  max-height: 94dvh;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--harbour-deep);
  color: var(--paper);
}
.gallery-dialog::backdrop { background: #07151ded; }
.gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gallery-top h2 { margin: 0; color: var(--paper); font-size: 1.12rem; }
.gallery-dialog button { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #91a3ad; border-radius: var(--radius-control); background: transparent; color: var(--paper); font-size: 1rem; }
.gallery-dialog button:hover { background: var(--paper); color: var(--ink); }
.gallery-image { display: block; width: 100%; height: min(68dvh, 700px); margin: 16px 0; object-fit: contain; }
.gallery-bottom { display: flex; align-items: center; gap: 18px; }
.gallery-bottom p { margin: 0; flex: 1; font-size: 0.84rem; }
.gallery-count { font-size: 0.78rem; }
.draft-dialog { max-width: min(480px, 92vw); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--ink); }
.draft-dialog::backdrop { background: #10232caa; }
.draft-dialog h2 { font-size: 1.5rem; }
.draft-dialog-actions { display: flex; flex-wrap: wrap; gap: 11px; }
body.modal-open { overflow: hidden; }

body .roof-visual::after { content: none; display: none; }

@media (max-width: 1120px) {
  .header-inner { gap: 16px; padding-inline: 24px; }
  #main-nav { gap: 15px; }
  .header-service { display: none; }
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inner-page .hero.illustrated-service-hero,
  .inner-page .hero.location-hero,
  .page-service .hero,
  .page-locality .hero,
  .page-region .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr); gap: 36px; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 920px) {
  .header-phone { display: none; }
  .location-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .location-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .locality-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-region .area-group ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  :root { font-size: 16px; scroll-padding-top: 20px; }

  .header-inner { min-height: 84px; padding: 1px 20px; gap: 14px; flex-wrap: wrap; }
  .logo-window { width: 96px; height: 78px; }
  .logo-window img { width: 154px; height: 154px; left: -29px; top: -39px; }
  .menu-toggle { display: block; margin-left: auto; }
  #main-nav {
    display: none;
    order: 5;
    width: 100%;
    max-height: calc(100dvh - 190px);
    margin: 0;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #main-nav.open { display: flex; }
  #main-nav > a,
  #main-nav .services-dropdown > summary,
  .language { padding: 13px 4px; border-top: 1px solid var(--line); border-left: 0; }
  #main-nav > a::after,
  #main-nav .services-dropdown > summary::after { display: none; }
  .services-dropdown { width: 100%; }
  .services-dropdown > summary { justify-content: space-between; }
  .services-panel {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 10px 8px;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .services-panel a { padding: 11px 6px; }
  .service-menu-intro { padding: 15px; }
  .service-menu-groups { grid-template-columns: 1fr; gap: 14px; }
  .service-menu-groups h2 { margin-bottom: 5px; }

  .section { padding: 52px 22px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading > p { max-width: none; margin-top: 13px; }

  .trade-hero-inner { min-height: 0; padding: 54px 22px 46px; display: block; }
  .trade-hero-image { background: linear-gradient(180deg, rgba(7, 24, 43, 0.91), rgba(7, 24, 43, 0.68)), url("/images/sydney-harbour-editorial.webp") 70% center / cover; }
  .trade-hero h1 { max-width: 620px; font-size: clamp(2.45rem, 10vw, 3.35rem); line-height: 1.1; }
  html[lang="zh-Hans"] .trade-hero h1 { max-width: 12em; font-size: clamp(2.25rem, 9vw, 3.05rem); line-height: 1.19; }
  .trade-hero-copy > p:not(.eyebrow) { font-size: 0.98rem; }
  .fact-strip { padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 15px; font-size: 0.75rem; }

  .core-grid,
  .problem-grid,
  .process-grid,
  .advice-grid,
  .roofing-choice-inner,
  .work-feature-inner,
  .about-band-inner,
  .service-grid,
  .faq,
  .enquiry-section { grid-template-columns: 1fr; }

  .core-card { padding: 25px; }
  .problem-grid { gap: 14px; }
  .problem-grid article { padding: 24px 22px; }
  .roofing-choice-inner,
  .work-feature-inner { gap: 30px; }
  .roofing-choice-inner img { height: 300px; }
  .work-mosaic a:first-child { height: 310px; }
  .work-mosaic a:nth-child(2) { height: 240px; margin-bottom: 24px; }
  .process-grid { gap: 26px; }
  .process-grid li { position: relative; min-height: 46px; padding-left: 62px; }
  .process-grid li > span { position: absolute; top: 0; left: 0; }
  .process-grid h3 { margin: 0 0 8px; }
  .about-band-inner { gap: 18px; }
  .home-trust-band .section { padding-top: 54px; padding-bottom: 58px; }
  .home-trust-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .home-trust-grid article { padding: 22px 20px; }
  .materials-photo img { height: 250px; border-radius: var(--radius-card); }

  .breadcrumbs { padding: 15px 22px; }
  .hero:not(.home-hero) {
    width: calc(100% - 28px);
    padding: 34px 24px;
    border-radius: var(--radius-card);
  }
  .inner-page .hero.illustrated-service-hero,
  .inner-page .hero.location-hero,
  .page-service .hero,
  .page-locality .hero,
  .page-region .hero { grid-template-columns: 1fr; gap: 27px; }
  .hero:not(.home-hero) h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  html[lang="zh-Hans"] .hero:not(.home-hero) h1 { font-size: clamp(1.95rem, 8.2vw, 2.55rem); }
  .hero:not(.home-hero) .intro { font-size: 0.98rem; }
  .service-illustration,
  .location-illustration { max-width: 620px; }

  .location-facts { width: calc(100% - 44px); padding: 19px 20px; }
  .location-facts > div { padding-inline: 17px; }

  .article-layout,
  .page-locality .article-layout { display: block; padding: 42px 22px 18px; }
  .article { max-width: 100%; }
  .on-page-desktop { display: none; }
  details.on-page-mobile {
    display: block;
    position: static;
    margin: 0 0 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--warm-paper);
  }
  .on-page-mobile > summary { padding: 16px 18px; font-size: 0.9rem; font-weight: 800; list-style-position: inside; }
  .on-page-mobile > nav { padding: 0 18px 14px; }
  .on-page-mobile a { padding: 7px 0; }
  .page-locality details.on-page-mobile { display: none; }
  .content-section { margin-bottom: 30px; }
  .content-section + .content-section { padding-top: 22px; }
  .content-section p { font-size: 1rem; line-height: 1.82; }

  .locality-overview { padding-top: 52px; padding-bottom: 28px; }
  .locality-service-grid { grid-template-columns: 1fr; gap: 16px; }
  .locality-service-grid article > a { min-height: 215px; }
  .locality-service-grid img { height: 230px; }

  .service-grid { gap: 18px; }
  .photo-service-card { padding: 11px 11px 21px; }
  .service-photo-link img { height: 235px; }
  .service-photo-link h3 { font-size: 1.3rem; }

  .photo-grid { grid-template-columns: 1fr; gap: 25px; }
  .photo-grid img { height: auto; max-height: 560px; }
  .area-groups { grid-template-columns: 1fr; gap: 16px; }
  .area-group { padding: 21px; }
  .page-region .area-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .faq { gap: 27px; }
  .enquiry-section { width: calc(100% - 28px); margin: 22px 14px 46px; padding: 30px 22px; gap: 28px; border-radius: var(--radius-card); }
  .enquiry-aside { padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  form { padding: 24px 19px; }

  footer { padding: 42px 22px 110px; }
  .footer-brand { align-items: flex-start; gap: 18px; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .footer-legal { display: block; }
  .footer-legal p + p { margin-top: 8px; }
}

@media (max-width: 520px) {
  .hero-actions,
  .path-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button,
  .path-actions .button { width: 100%; min-width: 0; }
  .fact-strip { grid-template-columns: 1fr; }
  .roofing-choice-inner img { height: 235px; }
  .work-mosaic { gap: 9px; }
  .work-mosaic a:first-child { height: 250px; }
  .work-mosaic a:nth-child(2) { height: 195px; margin-bottom: 16px; }
  .location-facts { grid-template-columns: 1fr; gap: 0; }
  .location-facts > div,
  .location-facts > div:nth-child(3) { padding: 12px 0; border: 0; border-top: 1px solid #ffffff2e; }
  .location-facts > div:first-child { border-top: 0; }
  .page-region .area-group ul { grid-template-columns: 1fr; }
  .related-links { display: grid; grid-template-columns: 1fr; }
  .related-links a,
  .related-links span { width: 100%; }
  .footer-brand { display: block; }
  .footer-brand .footer-logo { margin-bottom: 17px; }
  .footer-directory { grid-template-columns: 1fr; gap: 23px; }
  .footer-group { padding-bottom: 18px; border-bottom: 1px solid #ffffff18; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  .service-photo-link:hover img,
  .locality-service-grid a:hover img,
  .photo-grid a:hover img,
  .work-mosaic a:hover img { transform: none; }
}

@media (forced-colors: active) {
  * { scrollbar-color: auto; }
  .button,
  .header-phone,
  .core-card,
  .problem-grid article,
  .photo-service-card,
  .locality-service-grid article,
  .area-group,
  .services-panel,
  .faq details,
  .mobile-cta a { border: 1px solid ButtonText; }
  .trade-hero-image { opacity: 0.25; }
  .service-photo-link h3,
  .locality-service-grid a span { background: Canvas; color: CanvasText; }
}
