/* KL Residence: site styles. Colours and fonts are the variables below. */
:root {
  --ink: #1b1b1b;
  --ink-2: #3d3d3d;
  --muted: #6e6a64;
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --bg-grey: #eeece8;
  --line: #e4e0d8;
  --bronze: #9c7a4a;
  --bronze-dark: #7d5f35;
  --bronze-light: #d9bf91;
  --charcoal: #1f1f1f;
  --dark: #151515;
  --wa: #1fa855;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .25);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.68; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--bronze-dark); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.14; margin: 0 0 .5em; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
h3, .h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.eyebrow { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin: 0 0 .7em; }
.eyebrow.light { color: var(--bronze-light); }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--bronze-dark); }

/* reveal animation (JS adds .js to <html>; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.5em; border-radius: 999px; font-weight: 600; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; font-family: var(--sans); line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: .62em 1.1em; font-size: .76rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--bronze); color: #fff; }
.btn-gold:hover { background: var(--bronze-dark); color: #fff; }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-line { border-color: var(--bronze); color: var(--bronze-dark); background: transparent; }
.btn-line:hover { background: var(--bronze); color: #fff; }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { border: 1.5px solid currentColor; padding: 1px 7px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.logo-word { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .16em; text-transform: uppercase; }
.logo-light { color: #fff; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-list > li > a { display: block; padding: 10px 12px; text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-radius: var(--radius-sm); }
.nav-list > li > a:hover, .nav-list a[aria-current] { color: var(--bronze-dark); }
.has-sub { position: relative; }
.sub-toggle { display: none; }
.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 16px; opacity: 0; visibility: hidden; transition: .2s; width: min(940px, 92vw); }
.mega-sm { width: 340px; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px; }
.mega-col ul, .mega-list { list-style: none; margin: 0; padding: 0; }
.mega-title { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); font-weight: 600; text-decoration: none; margin-bottom: 6px; }
.mega a { text-decoration: none; }
.mega-col li a, .mega-list li a { display: block; padding: 4px 0; font-size: .92rem; color: var(--ink-2); }
.mega-list { columns: 2; column-gap: 18px; }
.mega-all { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--bronze-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* language switcher: EN · 简体 · 繁體 */
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 9px; color: var(--muted); }
.lang-switch svg { margin-right: 3px; flex-shrink: 0; }
.lang-switch a { text-decoration: none; font-size: .76rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; color: var(--ink-2); letter-spacing: .02em; }
.lang-switch a:hover { color: var(--bronze-dark); background: var(--bg-soft); }
.lang-switch a.on { background: var(--charcoal); color: #fff; }
.lang-mobile { display: none; }
.nav-list > li > a, .lang-switch a { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 1121px) {
  .header-inner { gap: 14px; }
  .nav-list > li > a { padding: 10px 8px; letter-spacing: .04em; }
  .header-wa { display: none; }
}
/* Chinese typography */
:lang(zh-Hans) { --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif; --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(zh-Hant) { --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif; --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
:lang(zh-Hans) body, :lang(zh-Hant) body { line-height: 1.8; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h2, :lang(zh-Hans) h3, :lang(zh-Hant) h3 { letter-spacing: .02em; line-height: 1.3; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow { letter-spacing: .12em; }
:lang(zh-Hans) .hero-home h1, :lang(zh-Hant) .hero-home h1 { text-transform: none; }
.site-nav + .header-actions { margin-left: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* breadcrumbs */
.crumbs { font-size: .78rem; letter-spacing: .06em; margin-bottom: 18px; color: inherit; opacity: .9; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: inherit; }
.crumbs .sep { opacity: .5; margin: 0 4px; }

/* hero */
.hero { position: relative; color: #fff; display: flex; align-items: flex-end; min-height: min(80vh, 720px); overflow: hidden; background: var(--dark); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero > img { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.78) 100%); }
.hero-text { position: relative; z-index: 1; padding: 120px 0 60px; }
.hero h1 { color: #fff; max-width: 900px; }
.hero-sub { font-size: 1.15rem; opacity: .92; margin: 0; max-width: 720px; }
.hero-home { min-height: min(92vh, 860px); align-items: center; }
.hero-home .hero-text { padding: 110px 0 70px; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; margin-top: 30px; max-width: 760px; box-shadow: var(--shadow); }
.hero-search input, .hero-search select { border: 0; font: inherit; color: var(--ink); background: transparent; padding: 10px 14px; min-width: 0; }
.hero-search input { flex: 1.6; }
.hero-search select { flex: 1; border-left: 1px solid var(--line); }
.hero-search input:focus, .hero-search select:focus { outline: none; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 26px 0 0; font-size: .9rem; opacity: .95; }
.hero-facts strong { font-family: var(--serif); font-size: 1.5rem; margin-right: 4px; color: var(--bronze-light); }
.hero-area { min-height: 460px; }
.stats { display: flex; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.35); }
.stats div { padding: 14px 32px 0 0; display: flex; flex-direction: column; }
.stats strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.stats span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.page-head { background: var(--bg-soft); padding: 54px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 920px; }
.page-head .lead { max-width: 760px; margin-bottom: 0; }

/* blocks */
.block { padding: 76px 0 0; }
main > section:last-child { padding-bottom: 0; }
.sec-head { margin-bottom: 32px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { max-width: 720px; margin-inline: auto; }
.sec-head h2 + .eyebrow { margin-top: -.2em; }
.more-link { margin-top: 32px; }
.block-img { padding-top: 48px; }
.block-img img { width: 100%; border-radius: var(--radius); }

/* project directory */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 10px 30px -22px rgba(0,0,0,.3); }
.filters label { display: block; }
.filters input, .filters select { width: 100%; font: inherit; font-size: .92rem; color: var(--ink); border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; height: 44px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--bronze); outline-offset: -1px; }
.f-q { position: relative; }
.f-q svg { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.f-q input { padding-left: 38px; }
.result-count { margin: 18px 0 14px; color: var(--muted); font-size: .9rem; }
.no-results { text-align: center; padding: 40px 16px; background: var(--bg-soft); border-radius: var(--radius); margin-top: 12px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard[hidden] { display: none; }
.pc-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-grey); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.pc-type { position: absolute; left: 12px; top: 12px; background: rgba(21,21,21,.78); color: #fff; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-loc { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: .4em; }
.pc-name { font-size: 1.55rem; margin: 0 0 .25em; }
.pc-name a { text-decoration: none; }
.pc-price { font-weight: 600; font-size: 1.02rem; margin-bottom: .6em; }
.pc-price span { font-weight: 400; color: var(--muted); font-size: .85rem; }
.pc-poa { color: var(--muted); font-weight: 500; }
.pc-hl { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; color: var(--ink-2); }
.pc-hl li { padding: 3px 0 3px 20px; position: relative; }
.pc-hl li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border: 1.5px solid var(--bronze); transform: rotate(45deg); }
.pc-meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-actions .btn { flex: 1; }

/* location & article cards */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; color: #fff; background: var(--dark); }
.lcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; opacity: .9; }
.lcard:hover img { transform: scale(1.05); }
.lcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.lcard div { position: absolute; left: 18px; bottom: 14px; z-index: 1; }
.lcard h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.lcard p { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.lcard:hover { color: #fff; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.acard { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.acard:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.acard img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.acard div { padding: 18px 20px 20px; }
.acard h3 { font-size: 1.32rem; }
.acard p:not(.eyebrow) { font-size: .92rem; color: var(--ink-2); }
.more { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--bronze-dark); }

/* project page */
.overview .ov-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.ov-text p { font-size: 1.05rem; color: var(--ink-2); }
.ov-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.price { display: flex; flex-direction: column; border-left: 3px solid var(--bronze); padding: 4px 0 4px 18px; margin: 14px 0 24px; }
.price span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1.1; }
.price small { color: var(--muted); font-size: .78rem; }
.glance { background: var(--bg-soft); border-radius: var(--radius); padding: 24px 26px; }
.glance.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.glance-title { font-size: 1.35rem; margin-bottom: 10px; }
.glance dl { margin: 0 0 16px; }
.glance dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.glance dt { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.glance dd { margin: 0; font-weight: 500; }
.glance img { border-radius: var(--radius-sm); margin-top: 6px; }
.banner { position: relative; margin-top: 76px; min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--dark); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.banner-text { position: relative; z-index: 1; padding: 48px 16px; max-width: 900px; }
.banner h2 { color: #fff; margin: 0 0 .3em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.banner p { font-size: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card-why { background: var(--bg-soft); border: 0; border-top: 3px solid var(--bronze); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grid figure, .slider figure, .plan-grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 620px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.slider figure { scroll-snap-align: start; }
.slider img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); }
.zoomable { cursor: zoom-in; }
.plan { padding-top: 40px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.plan-head h3 { margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan-grid img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); object-fit: contain; max-height: 640px; }
.info .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg-soft); border-radius: var(--radius); padding: 36px 40px; margin-bottom: 28px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 500; }
.units ul { margin: 0; padding-left: 1.1em; }
.units li { padding: 4px 0; }
.info-img img { border-radius: var(--radius); margin: 0 auto 28px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-grid img { border-radius: var(--radius); width: 100%; }
.split-text .btn { margin-top: 8px; }
.rich-text { max-width: 860px; margin: 0 auto 24px; }
.split .split-grid { align-items: start; }
@media (min-width: 821px) { .rich-text ul { columns: 2; column-gap: 40px; } .rich-text li { break-inside: avoid; } }
.rich-text h3 { margin-top: 1em; }
.video { position: relative; aspect-ratio: 16/9; max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play span { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: rgba(0,0,0,.7); border-radius: 14px; transition: background .2s; }
.yt-play span::after { content: ""; position: absolute; left: 31px; top: 15px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.yt-play:hover span { background: #c00; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.author-box { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex-shrink: 0; }
.author-box p { margin: 0; }
.ab-name { font-weight: 600; font-size: .95rem; }
.ab-date { color: var(--muted); font-size: .85rem; }
.page-head .author-box { border-bottom: 0; padding-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 10px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare caption { text-align: left; padding: 14px 16px 6px; font-weight: 600; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-soft); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:hover { background: #fbfaf7; }
.table-note { font-size: .82rem; color: var(--muted); }

/* prose (guides & articles) */
.prose { font-size: 1.04rem; overflow-wrap: break-word; min-width: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--bronze-dark); text-underline-offset: 3px; }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.guide .prose > h2:first-child { margin-top: 0; }
.article-head { padding-bottom: 20px; }
.article-hero { margin: 32px auto 0; }
.article-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); }
.article .prose { padding-top: 36px; }
.sources { margin-top: 2.4em; padding: 24px 26px; background: var(--bg-soft); border-radius: var(--radius); }
.sources h2 { font-size: 1.4rem; margin-top: 0; }
.sources li { font-size: .92rem; }
.note-card { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 28px; }
.chips, .chips-row { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.center-chips, .chips-row { justify-content: center; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; background: var(--bg-soft); }
.chips a, .chip { text-decoration: none; }
.chip { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: #fff; }
.chip:hover { border-color: var(--bronze); }

/* calculators */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-align: left; }
.calc-inputs { padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-content: start; }
.calc-inputs label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.calc-inputs input[type=number] { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%; }
.calc-inputs small { font-weight: 400; color: var(--muted); font-size: .74rem; }
.calc-inputs .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.calc-out { background: var(--charcoal); color: #eee; padding: 26px; }
.calc-big span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-light); }
.calc-big strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: #fff; line-height: 1.15; margin: 4px 0 14px; }
.calc-out dl { margin: 0 0 14px; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #333; font-size: .92rem; }
.calc-out dt { color: #b8b2a8; }
.calc-out dd { margin: 0; font-weight: 600; color: #fff; }
.calc-note { font-size: .78rem; color: #9b958c; margin: 0; }
.calc-note a { color: var(--bronze-light); }
.calc-band { background: var(--dark); color: #ddd; padding: 76px 0; margin-top: 76px; }
.calc-band h2 { color: #fff; }
.calc-band .calc { border-color: #333; }

/* Kevin & about */
.kevin-photo img, .about-photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; max-height: 640px; width: 100%; }
.about-head { padding-top: 40px; }
.about-head .split-grid { align-items: center; }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .25s, transform .25s; }
.ccard:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.ccard svg { width: 28px; height: 28px; color: var(--bronze); }
.ccard h2 { font-size: 1.5rem; margin: 12px 0 4px; }
.ccard p { font-weight: 600; margin: 0 0 4px; word-break: break-word; }
.ccard span { color: var(--muted); font-size: .88rem; }

/* testimonials & faq */
.testimonials { background: var(--bg-soft); padding: 80px 0; margin-top: 76px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.t-grid blockquote { margin: 0; background: #fff; padding: 32px; border-radius: var(--radius); border-top: 3px solid var(--bronze); }
.t-grid p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-style: italic; }
.t-grid cite { font-style: normal; font-weight: 600; color: var(--bronze-dark); font-size: .9rem; letter-spacing: .05em; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; }
.faq summary h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--bronze); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details ul { margin: 0 0 1em; padding-left: 1.2em; columns: 2; }

/* enquiry band */
.enquiry { background: var(--bg-soft); padding: 80px 0; margin-top: 80px; border-top: 1px solid var(--line); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--bronze); font-weight: 700; }
.contact-form { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); display: grid; gap: 14px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.contact-form input, .contact-form textarea, .contact-form select { font: inherit; font-size: .97rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--bronze); outline-offset: -1px; }
.contact-form .invalid { border-color: #c0392b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error { color: #b03a2e; font-size: .88rem; margin: 0; }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }

/* footer */
.site-footer { background: var(--dark); color: #cfc9bf; padding: 72px 0 0; font-size: .94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--bronze-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .tagline { color: var(--bronze-light); margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2c2c2c; margin-top: 52px; padding: 22px 0 90px; font-size: .78rem; color: #8f897f; }
.footer-bottom span:last-child { max-width: 640px; }

/* floating whatsapp & lightbox */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.22); font-weight: 600; font-size: .9rem; transition: transform .2s; }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.93); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* responsive */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .header-wa { display: none; }
  .header-actions > .lang-switch { display: none; }
  .lang-mobile { display: flex; width: max-content; margin: 18px 0 0; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px 16px 40px; display: none; margin: 0; }
  .site-nav + .header-actions { margin-left: auto; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-list > li > a { flex: 1; padding: 16px 4px; font-size: .92rem; }
  .sub-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::before { content: "+"; font-size: 1.4rem; color: var(--bronze); }
  .sub-toggle[aria-expanded="true"]::before { content: "–"; }
  .mega, .mega-sm { position: static; width: 100%; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 14px; display: none; }
  .has-sub:hover .mega { transform: none; }
  .has-sub.open .mega { display: block; }
  .has-sub::after { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .f-q { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .glance.sticky { position: static; }
}
@media (max-width: 820px) {
  .overview .ov-grid, .split-grid, .enquiry-grid, .info .info-grid, .calc, .contact-cards { grid-template-columns: 1fr; gap: 28px; }
  .calc { gap: 0; }
  .info .info-grid { padding: 24px 20px; }
  .facts div, .glance dl div { grid-template-columns: 1fr; gap: 2px; }
  .block { padding-top: 56px; }
  .banner { min-height: 260px; margin-top: 56px; }
  .hero { min-height: 540px; }
  .hero-text { padding: 96px 0 40px; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search select { border-left: 0; border-top: 1px solid var(--line); }
  .stats div { padding-right: 22px; }
  .stats strong { font-size: 1.3rem; }
  .faq details ul { columns: 1; }
  .row2 { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .slider { grid-auto-columns: 86%; }
  .pgrid { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: 1fr; }
  .enquiry, .testimonials { padding: 56px 0; }
  .kevin-photo img, .about-photo img { max-height: 520px; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; }
  .logo-word { font-size: 1.1rem; letter-spacing: .12em; }
  .page-head { padding: 36px 0 30px; }
}
