/* Shared section styles for the Service Page and Suburb Page templates.
   Copied verbatim from the designer's page styles where a component was only
   defined on individual pages (suburb landing pages, related treatments,
   urgent strip, health-fund chips). */

/* ---- Suburb landing-page components (from the 5 suburb pages) ---- */
/* ==========================================================================
       Location page system (identical block on all five suburb pages).
       Candidate for a shared css/location.css once the batch is merged.
       ========================================================================== */
    /* ---- Hero: text left, photo with a route "ticket" right ---- */
    .lp-hero { padding-bottom: clamp(64px, 7vw, 104px); }
    .lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
    .lp-hero .h1 { max-width: 9.6em; }
    .lp-hero .lead { margin-top: 22px; max-width: 30em; color: var(--ink); }
    .lp-hero .btn-row { margin-top: 32px; }
    .lp-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 15px; color: var(--teal); }
    .lp-proof li { display: inline-flex; align-items: center; gap: 8px; }
    .lp-proof img, .lp-proof svg { width: 18px; height: 18px; flex: none; }
    .lp-proof b { color: var(--ink); font-weight: 600; }
    .lp-visual { position: relative; margin: 0; padding: 0 0 64px 0; }
    .lp-visual__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 5.1; background: var(--mint); box-shadow: 0 30px 60px -32px rgba(20,64,62,.5); }
    .lp-visual__photo img { width: 100%; height: 100%; object-fit: cover; }

    .lp-ticket { position: absolute; left: clamp(-48px, -3vw, -16px); bottom: 0; width: min(372px, 88%); background: var(--cream); border-radius: var(--r-lg); padding: 20px 22px 18px; box-shadow: 0 24px 48px -24px rgba(20,64,62,.55), 0 1px 0 rgba(20,64,62,.04); }
    .lp-ticket__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--teal); }
    .lp-ticket__ends b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
    .lp-ticket__ends span:last-child { text-align: right; }
    .lp-line { position: relative; display: flex; align-items: center; gap: 0; margin: 14px 0 12px; height: 28px; }
    .lp-line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dashed rgba(20,64,62,.3); }
    .lp-line i { position: relative; width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid var(--ink); background: var(--cream); }
    .lp-line i:last-child { margin-left: auto; background-image: var(--gold); border-color: var(--gold-line); width: 14px; height: 14px; }
    .lp-line svg { position: relative; width: 28px; height: 28px; margin-left: calc(50% - 26px); padding: 4px; border-radius: 50%; background: var(--mint); color: var(--ink); }
    .lp-ticket__time { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 500; }
    .lp-ticket__time .it { font-size: 56px; line-height: .85; }
    .lp-ticket__meta { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--teal); }
    @media (max-width: 960px) {
      .lp-hero__grid { grid-template-columns: minmax(0, 1fr); }
      .lp-visual { padding: 0; }
      .lp-visual__photo { aspect-ratio: 4 / 3; }
      .lp-ticket { position: relative; left: auto; bottom: auto; width: calc(100% - 32px); margin: -28px auto 0; }
    }

    /* ---- Getting here: journey + map ---- */
    .lp-way { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
    .lp-way .lede { margin-top: 22px; }
    .lp-journey { position: relative; display: grid; gap: 0; margin-top: 36px; }
    .lp-journey::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 44px; border-left: 2px dashed rgba(20,64,62,.28); }
    .lp-journey li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 18px; padding: 0 0 22px; }
    .lp-journey li::before { content: ""; width: 14px; height: 14px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); position: relative; z-index: 1; }
    .lp-journey .is-start::before { width: 20px; height: 20px; margin: 2px 0 0 2px; border: 2px solid var(--ink); }
    .lp-journey .is-end::before { width: 22px; height: 22px; margin: 1px 0 0 1px; background-image: var(--gold); border-color: var(--gold-line); }
    .lp-journey li:last-child { padding-bottom: 0; }
    .lp-journey b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
    .lp-journey span { display: block; margin-top: 2px; font-size: 15px; color: var(--teal); }
    .lp-trip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
    .lp-trip li { background: var(--white); border-radius: var(--r); padding: 16px 16px 14px; }
    .band--white .lp-trip li { background: var(--cream); }
    .lp-trip b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
    .lp-trip span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--teal); }
    .lp-relo { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: rgba(255,255,255,.6); border: 1px solid var(--mint-line); }
    .band--white .lp-relo { background: var(--cream); }
    .lp-relo__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #f0dbb0; display: grid; place-items: center; }
    .lp-relo__icon svg { width: 20px; height: 20px; }
    .lp-relo b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
    .lp-relo p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--teal); }
    .lp-way .btn-row { margin-top: 28px; }

    .lp-way__aside { position: sticky; top: calc(var(--hh) + 88px); }
    .lp-map { margin: 0; }
    .js .lp-map[data-reveal] { opacity: 1; transform: none; }
    .lp-map__canvas { position: relative; aspect-ratio: 1086 / 809; border-radius: var(--r-lg); overflow: hidden; background: #f2f2f2; box-shadow: 0 30px 60px -36px rgba(20,64,62,.5); }
    .lp-map__canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .lp-map__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .lp-map__casing { fill: none; stroke: #fff; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
    .lp-map__route { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
    .lp-map__arrow { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 16; }
    .lp-map__head { fill: var(--ink); }
    .lp-map__ring { fill: rgba(240,219,176,.35); stroke: var(--gold-line); stroke-width: 3; }
    .lp-map__tag { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); }
    .lp-map__tag i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
    .lp-map__tag--end { background: var(--cream); color: var(--ink); }
    .lp-map__tag--end i { border: 0; background-image: var(--gold); }
    .lp-map figcaption { margin-top: 12px; font-size: 13px; color: var(--teal); }
    @media (prefers-reduced-motion: no-preference) {
      .js .lp-map[data-reveal] .lp-map__route, .js .lp-map[data-reveal] .lp-map__casing { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
      .js .lp-map[data-reveal].is-in .lp-map__route, .js .lp-map[data-reveal].is-in .lp-map__casing { transition: stroke-dashoffset 2.2s .3s var(--ease-out); stroke-dashoffset: 0; }
      .lp-map__ring { animation: lpRing 2.6s var(--ease-out) infinite; transform-origin: 510px 360px; transform-box: view-box; }
    }
    @keyframes lpRing { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
    @media (max-width: 960px) {
      .lp-way { grid-template-columns: minmax(0, 1fr); }
      .lp-way__aside { position: static; }
    }
    @media (max-width: 520px) {
      .lp-trip b { font-size: 28px; }
      .lp-trip li { padding: 14px 12px 12px; }
      .lp-map__tag { font-size: 11px; padding: 5px 10px 5px 7px; }
    }

    /* ---- Services ---- */
    .lp-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .lp-svc article { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
    .band--cream .lp-svc article, .band--mint .lp-svc article { background: var(--white); }
    .lp-svc figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
    .lp-svc figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
    .lp-svc article:hover figure img { transform: scale(1.03); }
    .lp-svc__body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
    .lp-svc h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
    .lp-svc .p { margin-top: 12px; font-size: 16px; }
    .lp-svc a.more { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
    .lp-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
    .lp-also p { font-size: 15px; font-weight: 600; color: var(--teal); margin-right: 6px; }
    .lp-also a { font-size: 15px; padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(20,64,62,.2); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s; }
    .lp-also a:hover { background: var(--white); border-color: var(--ink); }
    @media (max-width: 900px) { .lp-svc { grid-template-columns: minmax(0, 1fr); } }

    /* ---- Feature rows (comfort, technology) ---- */
    .lp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
    .lp-feature + .lp-feature { margin-top: clamp(72px, 8vw, 120px); }
    .lp-feature--rev > :first-child { order: 2; }
    .lp-feature .photo { aspect-ratio: 4 / 4.2; }
    .lp-feature .prose { margin-top: 18px; }
    .lp-kit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
    .lp-kit li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--white); font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; }
    .band--white .lp-kit li { background: var(--cream); }
    .lp-kit i { width: 40px; height: 40px; border-radius: 10px; background: var(--mint); display: grid; place-items: center; }
    .lp-kit svg { width: 20px; height: 20px; }
    @media (max-width: 900px) { .lp-feature { grid-template-columns: minmax(0, 1fr); } .lp-feature--rev > :first-child { order: 0; } .lp-feature .photo { aspect-ratio: 4 / 3; } }
    @media (max-width: 420px) { .lp-kit { grid-template-columns: 1fr; } }

    /* ---- Values (ink) with tooth stats ---- */
    .lp-values { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
    .lp-values .pull-quote { max-width: 16ch; }
    .lp-values .prose { margin-top: 28px; }
    .lp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .lp-stats .stat { color: #fff; }
    .lp-stats .stat__tooth img { filter: brightness(0) invert(1); opacity: .55; }
    .lp-stats .stat__num { color: #fff; }
    .lp-stats .stat__label { color: var(--foot-text); max-width: 10em; line-height: 1.25; }
    .lp-values .photo { aspect-ratio: 4 / 3; margin-bottom: 36px; }
    @media (max-width: 900px) { .lp-values { grid-template-columns: minmax(0, 1fr); } }
    .lp-statrow { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .lp-statrow .stat { color: var(--ink); }
    .lp-statrow .stat__num { color: var(--ink); }
    .lp-statrow .stat__label { color: var(--teal); max-width: 10em; line-height: 1.25; }
    @media (max-width: 720px) { .lp-statrow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; } }

    /* ---- Team ---- */
    .lp-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .lp-team article { background: var(--cream); border-radius: var(--r-lg); padding: 14px 14px 22px; display: flex; flex-direction: column; }
    .lp-portrait { position: relative; height: 280px; border-radius: var(--r); overflow: hidden; background: linear-gradient(to bottom, #fff, var(--cream-2) 73%); }
    .lp-portrait img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 94%; width: auto; max-width: none; transition: transform .7s var(--ease-out); transform-origin: bottom; }
    .lp-portrait--photo img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 15%; left: 0; transform: none; }
    .lp-team article:hover .lp-portrait img { transform: translateX(-50%) scale(1.03); }
    .lp-team article:hover .lp-portrait--photo img { transform: scale(1.03); }
    .lp-team h3 { margin: 18px 6px 0; font-size: 21px; font-weight: 500; color: var(--ink); }
    .lp-team .quals { margin: 4px 6px 0; font-size: 13px; font-weight: 600; color: var(--teal); line-height: 1.4; }
    .lp-team .p { margin: 12px 6px 0; font-size: 15px; line-height: 1.6; }
    .lp-team .reg { margin: auto 6px 0; padding-top: 16px; font-size: 12px; color: var(--teal); line-height: 1.4; }
    .lp-team .more { margin: 10px 6px 0; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
    @media (max-width: 1080px) { .lp-team { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 600px) { .lp-team { grid-template-columns: minmax(0, 1fr); } .lp-portrait { height: 300px; } }

    /* ---- Needs / occasions cards (short pages) ---- */
    .lp-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: nd; }
    .lp-needs li { counter-increment: nd; position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px); min-height: 250px; }
    .band--white .lp-needs li { background: var(--cream); }
    .lp-needs .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; color: var(--ink); }
    .band--mint .lp-needs .ico { background: var(--cream); }
    .lp-needs .ico svg { width: 26px; height: 26px; }
    .lp-needs li::after { content: counter(nd); position: absolute; right: 26px; top: 18px; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: rgba(20,64,62,.14); }
    .lp-needs b { display: block; margin-top: 22px; font-size: clamp(20px, 1.7vw, 23px); font-weight: 500; line-height: 1.3; color: var(--ink); text-wrap: balance; }
    .lp-needs a { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: none; }
    .lp-needs a:hover { color: var(--ink); }
    .lp-needs-end { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.6vw, 38px); color: var(--ink); line-height: 1.1; }
    @media (max-width: 900px) { .lp-needs { grid-template-columns: minmax(0, 1fr); } .lp-needs li { min-height: 0; } }

    /* ---- Reasons (numbered list with an optional wide item) ---- */
    .lp-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: rs; }
    .lp-reasons > li { counter-increment: rs; background: var(--cream); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); }
    .band--cream .lp-reasons > li, .band--mint .lp-reasons > li { background: var(--white); }
    .lp-reasons > li::before { content: counter(rs, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1; color: var(--gold-line); }
    .lp-reasons h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
    .lp-reasons .p { margin-top: 12px; font-size: 16px; }
    .lp-reasons .p + .p { margin-top: .8em; }
    .lp-reasons .wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px clamp(32px, 5vw, 72px); align-items: center; }
    .lp-reasons .wide::before { grid-column: 1 / -1; }
    @media (max-width: 860px) { .lp-reasons { grid-template-columns: minmax(0, 1fr); } .lp-reasons .wide { grid-template-columns: minmax(0, 1fr); } }

    .lp-brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
    .lp-brands li { display: inline-flex; flex-direction: column; padding: 10px 16px 9px; border-radius: 10px; background: var(--white); border: 1px solid var(--mint-line); }
    .band--white .lp-brands li { background: var(--cream); }
    .lp-brands b { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2; }
    .lp-brands small { font-size: 12px; color: var(--teal); }

    /* ---- Week strip (opening hours) ---- */
    .lp-week { --h: 168px; display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 6px; padding: 20px 18px 16px; border-radius: var(--r-lg); background: var(--white); }
    .band--white .lp-week, .lp-reasons .lp-week { background: var(--white); border: 1px solid var(--hairline); }
    .lp-week__axis { position: relative; height: var(--h); font-size: 11px; color: var(--teal); }
    .lp-week__axis span { position: absolute; right: 2px; transform: translateY(-50%); }
    .lp-week__day { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .lp-week__col { position: relative; width: 100%; max-width: 46px; height: var(--h); border-radius: 8px; background: repeating-linear-gradient(180deg, rgba(20,64,62,.05) 0 1px, transparent 1px 28px); }
    .lp-week__bar { position: absolute; left: 0; right: 0; border-radius: 8px; background: linear-gradient(180deg, var(--mint-2), var(--mint)); border: 1px solid var(--mint-line); }
    .lp-week__late { position: absolute; left: 0; right: 0; border-radius: 0 0 8px 8px; border: 1.5px dashed var(--gold-line); border-top: 0; background: rgba(240,219,176,.25); }
    .lp-week__day b { font-size: 13px; font-weight: 600; color: var(--ink); }
    .lp-week__day.is-today .lp-week__bar { background-image: var(--gold); border-color: var(--gold-line); }
    .lp-week__day.is-today b { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
    .lp-week__off { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--teal); writing-mode: vertical-rl; transform: rotate(180deg); }
    .lp-week-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--teal); }
    .lp-week-key span { display: inline-flex; align-items: center; gap: 6px; }
    .lp-week-key i { width: 14px; height: 10px; border-radius: 3px; background: var(--mint-2); }
    .lp-week-key i.late { background: rgba(240,219,176,.4); border: 1.5px dashed var(--gold-line); }

    /* ---- Closing moment spacing before the footer ---- */
    .lp-end { height: calc(var(--section) + 20px); background: var(--cream); }
    .lp-note { padding: 28px 0 calc(60px + 36px); background: var(--cream); }
    .lp-note .final-note { margin-top: 0; max-width: 80ch; }

/* ---- Health funds (beecroft-dentist) ---- */
.bc-funds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bc-funds li { padding: 14px 22px; border-radius: var(--r); background: var(--white); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); border: 1px solid var(--mint-line); }

/* ---- Related treatments (crown-and-bridges) ---- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--white); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.related a:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(20,64,62,.5); }
.related b { font-size: 19px; font-weight: 500; }
.related span { font-size: 15px; color: var(--teal); line-height: 1.5; }
.related em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* ---- Urgent strip in the hero (broken-teeth) ---- */
/* broken-teeth: page-specific styles from the design */
/* Broken-teeth specific */
    .urgent-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 16px 20px; border-radius: var(--r); background: rgba(255,255,255,.7); border: 1px solid var(--mint-line); }
.urgent-strip .dot { width: 38px; height: 38px; border-radius: 50%; background: #fde3df; display: grid; place-items: center; flex: none; }
.urgent-strip .dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.urgent-strip p { flex: 1; min-width: 220px; font-size: 16px; color: var(--ink); line-height: 1.45; }
