/*
 * Bronte Escape / propertymanagement.fr2.com.au — shared stylesheet.
 * Generated by .dev/build.js — edit SITE_CSS there, not this file.
 * System font stack only — no webfont request to a third-party CDN, so the
 * site renders fully offline and depends on nothing external.
 * Editorial two-column layout, warm neutral palette with a single
 * terracotta accent (nods to the coastal Bronte setting), generous
 * whitespace, restrained chrome — inspired by premium single-brand sites
 * rather than a busy real-estate template.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #2c2a27;
    --text-strong: #171615;
    --text-soft: #726d64;
    --bg: #fdfcfa;
    --bg-soft: #f4f1ea;
    --bg-tint: #efe8dc;
    --line: #e6e0d3;
    --accent: #b1542f;
    --accent-dark: #8f4223;
    --accent-soft: #f4e3d8;
    --shell: 1080px;
    --label-col: 300px;
    --gap: 64px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent-soft); color: var(--accent-dark); }

/* Header ─────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 28px 0 0;
}

.brand-row { display: flex; align-items: center; gap: 13px; }
.brand-mark { flex-shrink: 0; color: var(--accent); }

.version {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 3px 9px;
    white-space: nowrap;
    background: var(--bg);
}

.site-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-strong);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    line-height: 1.2;
}
.site-title .brand-mark { color: var(--accent); }
.site-title:hover { color: var(--accent); }

.site-tagline { font-size: 15px; color: var(--text-soft); margin-top: 8px; max-width: 46ch; }

.site-nav { margin-top: 24px; border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 30px; padding: 16px 0; }
.site-nav a {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); border-color: var(--accent); }

.has-children { position: relative; }
.has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { flex-shrink: 0; stroke: var(--text-soft); transition: transform .15s ease; }
.has-children:hover .caret { transform: rotate(180deg); stroke: var(--accent); }

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 270px;
    z-index: 50;
    box-shadow: 0 18px 40px rgba(23, 22, 21, 0.1);
}
.has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
.submenu a {
    display: block;
    padding: 10px 22px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    font-size: 14.5px;
    border-bottom: 0;
    color: var(--text);
}
.submenu a:hover { background: var(--bg-soft); color: var(--accent); }

/* Hero — homepage only, driven by body[data-page="home"] ──────────────── */

.hero {
    background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    padding: 84px 0 76px;
}
.hero .eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.hero-heading {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text-strong);
    margin-top: 18px;
    max-width: 16ch;
}
.hero-heading strong { font-weight: 600; color: var(--accent); }
.hero p.lede { font-size: 19px; color: var(--text-soft); max-width: 56ch; margin-top: 22px; line-height: 1.65; }

/* Content ────────────────────────────────────────────────────────────── */

main { padding: 80px 0 100px; }
body[data-page="home"] main { padding-top: 64px; }

.block { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: var(--gap); }

.block-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.5;
    position: relative;
    padding-top: 2px;
}
.block-label::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 16px;
    border-radius: 2px;
}

.block-body > * + * { margin-top: 24px; }
.block-body p { color: var(--text); }

.block-body h2 {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.35;
    color: var(--text-strong);
    letter-spacing: -0.2px;
    text-transform: none;
    margin-top: 46px;
}

.block-body h3 { font-size: 20px; font-weight: 600; color: var(--text-strong); margin-top: 34px; letter-spacing: -0.1px; }
.block-body h4 { font-size: 15.5px; font-weight: 700; color: var(--text-strong); margin-top: 26px; letter-spacing: .02em; text-transform: uppercase; }

.block-body ul, .block-body ol { padding-left: 22px; }
.block-body li { margin-bottom: 10px; }
.block-body li::marker { color: var(--accent); }

.block-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.block-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 22px;
    color: var(--text-soft);
    font-style: italic;
    font-size: 18px;
}

.block-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.block-body th, .block-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.block-body th { font-weight: 700; color: var(--text-strong); }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
a:hover { border-color: currentColor; }
strong { color: var(--text-strong); font-weight: 700; }

.editor-note {
    background: var(--bg-soft);
    border-left: 3px solid var(--text-soft);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-soft);
}

.contact-block {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
}

/* Office address table (Sydney / Brisbane / Santiago) — overrides the
   generic .block-body table rules above for a distinct, label-style look. */
.office-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 4px;
}
.office-grid th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid var(--line);
    padding: 0 20px 10px 0;
    text-align: left;
}
.office-grid td {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    border-bottom: none;
    padding: 10px 20px 0 0;
    vertical-align: top;
}
.office-grid td.office-city {
    font-weight: 700;
    color: var(--text-strong);
    padding-top: 12px;
    padding-bottom: 0;
}
@media (max-width: 640px) {
    .office-grid-wrap { overflow-x: auto; margin: 4px -4px 0; padding: 0 4px; }
    .office-grid { min-width: 480px; }
}

/* Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--text-strong); color: #cfc9bd; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a { display: block; font-size: 14.5px; color: #cfc9bd; margin-bottom: 11px; text-decoration: none; border-bottom: 0; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14.5px; color: #a49e91; line-height: 1.7; }
.footer-brand .site-title { color: #fff; font-size: 19px; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-bottom {
    padding: 26px 0 32px;
    font-size: 13px;
    color: #8a8477;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .block { grid-template-columns: 1fr; gap: 18px; }
    .site-header { padding-top: 18px; }
    .site-title { font-size: 17px; letter-spacing: .2px; gap: 8px; }
    .site-title .brand-mark { width: 22px; height: 22px; }
    .site-tagline { display: none; }
    .site-nav { margin-top: 16px; }
    .site-nav ul { gap: 18px; padding: 14px 0; }
    main { padding: 52px 0 68px; }
    .hero { padding: 52px 0 44px; }
    .hero p.lede { font-size: 17px; }
    .block-body h2 { font-size: 23px; }
    .submenu { position: static; border: 0; box-shadow: none; border-radius: 0; padding: 6px 0 6px 14px; min-width: 0; }
}

/* Sticky header, compact state ───────────────────────────────────────── */

.site-header { transition: padding .16s ease; }
.site-header .site-title,
.site-header .site-tagline { transition: font-size .16s ease, opacity .12s ease; }

.site-header.is-compact { padding-top: 14px; }
.site-header.is-compact .site-tagline { display: none; }
.site-header.is-compact .site-title { font-size: 18px; }
.site-header.is-compact .brand-mark { width: 22px; height: 22px; }
.site-header.is-compact .site-nav { margin-top: 14px; }
.site-header.is-compact .site-nav ul { padding: 12px 0; }

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header .site-title, .site-header .site-tagline { transition: none; }
}
