:root {
  --wr-parchment: #f9f7f3;
  --wr-white: #ffffff;
  --wr-mist: #eef2f5;
  --wr-slate: #16202a;
  --wr-slate-2: #22303e;
  --wr-ink: #131b23;
  --wr-body: #33414e;
  --wr-muted: #5d6c7a;
  --wr-brick: #a8382b;
  --wr-brick-d: #892c21;
  --wr-brick-s: #fdf1ef;
  --wr-teal: #0f766e;
  --wr-teal-s: #ecfdf9;
  --wr-line: #e2ddd4;
  --wr-line-2: #c9c1b5;
  --wr-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --wr-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--wr-sans); color: var(--wr-body); background: var(--wr-white);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: var(--wr-serif); color: var(--wr-ink); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.75rem;
}
h3, h4 {
  font-family: var(--wr-sans); color: var(--wr-ink); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 0.45rem;
}
h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.04rem; }
p { margin: 0 0 1rem; }
a { color: var(--wr-brick); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wr-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wr-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wr-num { font-variant-numeric: tabular-nums; }

/* Top Hairline Info Bar + Sticky Header */
.wr-topbar {
  background: var(--wr-slate); color: #dbe4ec; font-size: 0.79rem; font-weight: 500;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wr-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 247, 243, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wr-line);
}
.wr-hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.wr-logo {
  font-family: var(--wr-serif); font-weight: 700; font-size: 1.22rem;
  color: var(--wr-slate); letter-spacing: -0.025em; white-space: nowrap; text-decoration: none;
}
.wr-logo:hover { text-decoration: none; }
.wr-logo em { font-style: normal; color: var(--wr-brick); }
.wr-nav { display: flex; align-items: center; gap: 18px; }
.wr-nav a { color: var(--wr-body); font-size: 0.89rem; font-weight: 600; }
.wr-nav a:hover, .wr-nav a[aria-current="page"] { color: var(--wr-brick); text-decoration: none; }
.wr-hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wr-mbtn {
  display: none; background: #fff; border: 1.5px solid var(--wr-line-2); border-radius: 6px;
  padding: 6px 10px; font-family: var(--wr-sans); font-size: 0.82rem; font-weight: 700;
  color: var(--wr-slate); cursor: pointer;
}
.wr-mnav { display: none; background: #fff; border-top: 1px solid var(--wr-line); padding: 12px 20px 18px; }
.wr-mnav.open { display: grid; gap: 4px; }
.wr-mnav a { padding: 9px 0; border-bottom: 1px solid var(--wr-line); color: var(--wr-ink); font-weight: 600; font-size: 0.94rem; }
.wr-mnav a:last-child { border-bottom: 0; }

/* Buttons */
.wr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font-family: var(--wr-sans); font-weight: 700; font-size: 0.9rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wr-btn:hover { text-decoration: none; }
.wr-btn-p { background: var(--wr-brick); color: #fff; }
.wr-btn-p:hover { background: var(--wr-brick-d); color: #fff; }
.wr-btn-o { background: #fff; color: var(--wr-slate); border-color: var(--wr-slate); }
.wr-btn-o:hover { background: var(--wr-mist); color: var(--wr-slate); }
.wr-btn-t { background: var(--wr-teal); color: #fff; }
.wr-btn-t:hover { background: #0c5f59; color: #fff; }
.wr-btn-sm { min-height: 36px; padding: 0 13px; font-size: 0.82rem; }

/* Parchment Editorial Split Hero */
.wr-hero {
  background: var(--wr-parchment); border-bottom: 1px solid var(--wr-line);
  padding: clamp(26px, 4.2vw, 52px) 0 clamp(30px, 4.8vw, 56px);
}
.wr-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 30px 42px; align-items: start;
}
.wr-eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wr-teal); margin-bottom: 10px;
}
.wr-lead { font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--wr-body); max-width: 56ch; margin: 0 0 18px; }
.wr-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.wr-trust { font-size: 0.9rem; font-weight: 600; color: var(--wr-muted); margin: 0 0 24px; }
.wr-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px; list-style: none; padding: 18px 0 0; margin: 0;
  border-top: 1px solid var(--wr-line);
}
.wr-stats li { padding-left: 12px; border-left: 3px solid var(--wr-brick); }
.wr-stats strong {
  display: block; font-family: var(--wr-sans); font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  font-weight: 800; color: var(--wr-slate); line-height: 1.2;
}
.wr-stats span { display: block; font-size: 0.8rem; color: var(--wr-muted); margin-top: 2px; line-height: 1.35; }

/* 4-Step Quote Card */
.wr-qcard {
  background: #fff; border: 1px solid var(--wr-line-2); border-top: 4px solid var(--wr-brick);
  border-radius: 10px; padding: clamp(18px, 2.4vw, 25px);
  box-shadow: 0 14px 34px rgba(22, 32, 42, 0.08);
}
.wr-qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.wr-qtitle { font-family: var(--wr-sans); font-size: 1.02rem; font-weight: 800; color: var(--wr-slate); margin: 0; }
.wr-qstep-tag { font-size: 0.78rem; font-weight: 700; color: var(--wr-muted); white-space: nowrap; }
.wr-qprog { height: 4px; background: var(--wr-line); border-radius: 99px; overflow: hidden; margin-bottom: 15px; }
.wr-qprog i { display: block; height: 100%; background: var(--wr-brick); transition: width .2s ease; }
.wr-qstep { display: none; }
.wr-qstep.on { display: block; }
.wr-qh { font-weight: 700; font-size: 1rem; color: var(--wr-ink); margin: 0 0 3px; }
.wr-qsub { font-size: 0.84rem; color: var(--wr-muted); margin: 0 0 12px; }
.wr-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wr-pic {
  text-align: left; padding: 0; border: 1.5px solid var(--wr-line-2); border-radius: 7px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: var(--wr-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wr-pic:hover, .wr-pic.picked { border-color: var(--wr-brick); box-shadow: inset 0 0 0 1px var(--wr-brick); }
.wr-pic-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wr-mist); border-bottom: 1px solid var(--wr-line); }
.wr-pic-img img { width: 100%; height: 100%; object-fit: cover; }
.wr-pic-txt { display: block; padding: 7px 9px; font-weight: 700; font-size: 0.81rem; color: var(--wr-ink); line-height: 1.25; }
.wr-pic-txt small { display: block; font-weight: 500; font-size: 0.73rem; color: var(--wr-muted); margin-top: 2px; }
.wr-opts { display: grid; gap: 8px; }
.wr-opt {
  width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid var(--wr-line-2);
  border-radius: 7px; background: #fff; cursor: pointer; font-family: var(--wr-sans);
  font-size: 0.88rem; font-weight: 700; color: var(--wr-ink);
}
.wr-opt:hover, .wr-opt.picked { border-color: var(--wr-brick); background: var(--wr-brick-s); }
.wr-opt small { display: block; font-weight: 400; color: var(--wr-muted); font-size: 0.79rem; margin-top: 2px; }
.wr-pricebox {
  background: var(--wr-parchment); border-left: 4px solid var(--wr-teal);
  border-top: 1px solid var(--wr-line); border-right: 1px solid var(--wr-line); border-bottom: 1px solid var(--wr-line);
  border-radius: 0 8px 8px 0; padding: 13px 15px; margin-bottom: 13px;
}
.wr-pricebox-k { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wr-teal); }
.wr-pricebox-v { font-family: var(--wr-serif); font-size: 1.65rem; font-weight: 700; color: var(--wr-slate); line-height: 1.15; margin: 2px 0; }
.wr-pricebox-m { font-size: 0.8rem; color: var(--wr-body); line-height: 1.4; }
.wr-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wr-fld { margin-bottom: 9px; }
.wr-fld label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--wr-ink); margin-bottom: 4px; }
.wr-fld input, .wr-fld select, .wr-fld textarea {
  width: 100%; min-height: 42px; padding: 8px 11px; border: 1.5px solid var(--wr-line-2);
  border-radius: 6px; font-family: var(--wr-sans); font-size: 0.96rem; color: var(--wr-ink); background: #fff;
}
.wr-fld input:focus, .wr-fld select:focus, .wr-fld textarea:focus { outline: none; border-color: var(--wr-brick); }
.wr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wr-consent {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--wr-line); border-radius: 6px; background: var(--wr-parchment);
  font-size: 0.8rem; color: var(--wr-body); margin: 4px 0 11px; line-height: 1.42;
}
.wr-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--wr-brick); flex-shrink: 0; }
.wr-qnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wr-qback { background: transparent; border: 0; color: var(--wr-muted); font-family: var(--wr-sans); font-size: 0.86rem; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.wr-qerr { color: #b91c1c; font-size: 0.84rem; font-weight: 700; min-height: 1.2em; margin: 6px 0 0; }

/* Sections */
.wr-sec { padding: clamp(42px, 5.5vw, 68px) 0; background: var(--wr-white); }
.wr-sec.alt { background: var(--wr-parchment); }
.wr-sec + .wr-sec { border-top: 1px solid var(--wr-line); }
.wr-sh { max-width: 720px; margin-bottom: 26px; }
.wr-sh p { color: var(--wr-muted); margin: 0; }

/* House Type Gallery Cards */
.wr-hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wr-hcard {
  border: 1px solid var(--wr-line); border-radius: 9px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.wr-hcard-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wr-mist); border-bottom: 1px solid var(--wr-line); }
.wr-hcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wr-hcard:hover .wr-hcard-img img { transform: scale(1.03); }
.wr-hcard-b { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.wr-hcard-p { font-weight: 800; color: var(--wr-brick); font-size: 0.92rem; margin: 0 0 6px; }
.wr-hcard-d { font-size: 0.87rem; color: var(--wr-muted); margin: 0 0 12px; line-height: 1.48; }
.wr-hcard-a { margin-top: auto; font-size: 0.84rem; font-weight: 700; color: var(--wr-teal); }

/* Interactive Dublin House + BER + dB Noise Estimator */
.wr-est {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 26px;
  border: 1.5px solid var(--wr-line-2); border-radius: 12px; padding: clamp(20px, 3vw, 30px); background: #fff;
}
.wr-est-g { margin-bottom: 18px; }
.wr-est-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.83rem; font-weight: 700; color: var(--wr-slate); margin-bottom: 8px; }
.wr-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.wr-pill {
  padding: 8px 12px; border: 1.5px solid var(--wr-line-2); border-radius: 6px;
  background: #fff; color: var(--wr-ink); font-family: var(--wr-sans); font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.wr-pill:hover, .wr-pill.on { border-color: var(--wr-brick); background: var(--wr-brick-s); color: var(--wr-slate); }
.wr-slider { width: 100%; accent-color: var(--wr-brick); cursor: pointer; height: 6px; }
.wr-est-panel {
  background: var(--wr-slate); color: #fff; border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.wr-est-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: #99f6e4; font-weight: 700; }
.wr-est-price { font-family: var(--wr-serif); font-size: clamp(1.85rem, 3vw, 2.4rem); font-weight: 700; color: #fff; margin: 6px 0 10px; line-height: 1.08; }
.wr-est-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid rgba(255,255,255,0.16); }
.wr-est-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.wr-est-list span { color: #cbd5e1; }
.wr-est-list b { color: #fff; text-align: right; }
.wr-est-ber { background: rgba(15, 118, 110, 0.28); border: 1px solid rgba(153, 246, 228, 0.35); border-radius: 7px; padding: 10px 12px; font-size: 0.81rem; color: #e2f8f5; margin-bottom: 14px; line-height: 1.45; }
.wr-est-note { font-size: 0.78rem; color: #b8c6d4; margin: 10px 0 0; line-height: 1.42; }

/* Tables, Cards, Prose, Chips, FAQ */
.wr-tbl { overflow-x: auto; border: 1px solid var(--wr-line); border-radius: 9px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--wr-line); vertical-align: top; }
th { background: var(--wr-parchment); font-weight: 700; color: var(--wr-slate); font-size: 0.82rem; }
tr:last-child td { border-bottom: 0; }
.wr-pcell { font-weight: 800; color: var(--wr-slate); white-space: nowrap; }
.wr-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wr-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wr-card { border: 1px solid var(--wr-line); border-radius: 9px; padding: 20px; background: #fff; }
.wr-card.hi { border-color: var(--wr-teal); }
.wr-card p:last-child { margin-bottom: 0; }
.wr-card ul { margin: 10px 0 0; padding-left: 18px; }
.wr-card li { margin-bottom: 6px; font-size: 0.92rem; }
.wr-callout { border-left: 4px solid var(--wr-brick); background: var(--wr-brick-s); padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--wr-ink); }
.wr-callout.teal { border-left-color: var(--wr-teal); background: var(--wr-teal-s); }
.wr-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: center; }
.wr-fig { margin: 0; }
.wr-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; border: 1px solid var(--wr-line); }
.wr-fig figcaption { font-size: 0.81rem; color: var(--wr-muted); margin-top: 7px; }
.wr-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--wr-muted); margin-bottom: 12px; }
.wr-crumbs a { color: var(--wr-muted); }
.wr-prose h2 { margin-top: 1.9rem; }
.wr-prose ul { padding-left: 20px; margin: 0 0 1.2rem; }
.wr-prose li { margin-bottom: 0.45rem; }
.wr-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.wr-chips a {
  display: inline-flex; padding: 7px 12px; border: 1px solid var(--wr-line-2); border-radius: 6px;
  color: var(--wr-slate); font-weight: 600; font-size: 0.85rem; background: #fff;
}
.wr-chips a:hover { border-color: var(--wr-brick); color: var(--wr-brick); text-decoration: none; }
.wr-lcard { display: flex; flex-direction: column; gap: 5px; padding: 17px; border: 1px solid var(--wr-line); border-radius: 9px; background: #fff; color: var(--wr-body); }
.wr-lcard:hover { border-color: var(--wr-brick); text-decoration: none; }
.wr-lcard b { color: var(--wr-slate); font-size: 0.96rem; }
.wr-lcard span { color: var(--wr-muted); font-size: 0.86rem; }
.wr-lcard i { font-style: normal; font-size: 0.83rem; font-weight: 700; color: var(--wr-brick); margin-top: auto; padding-top: 5px; }
.wr-faqs { max-width: 860px; border-top: 1px solid var(--wr-line); }
details.wr-faq { border-bottom: 1px solid var(--wr-line); padding: 15px 0; }
details.wr-faq summary {
  font-weight: 700; color: var(--wr-slate); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 0.97rem;
}
details.wr-faq summary::-webkit-details-marker { display: none; }
details.wr-faq summary::after { content: '+'; font-size: 1.3rem; color: var(--wr-brick); flex: none; }
details.wr-faq[open] summary::after { content: '−'; }
details.wr-faq p { margin: 10px 0 0; font-size: 0.93rem; color: var(--wr-body); }

/* Thanks Photo Upload */
.wr-more { max-width: 680px; border: 1.5px solid var(--wr-line-2); border-radius: 10px; padding: 24px; background: #fff; }
.wr-up {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 5px; padding: 24px 16px; border: 2px dashed var(--wr-line-2); border-radius: 9px;
  background: var(--wr-parchment); cursor: pointer; margin-bottom: 16px;
}
.wr-up:hover { border-color: var(--wr-brick); }
.wr-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wr-th { position: relative; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; border: 1px solid var(--wr-line); }
.wr-th img { width: 100%; height: 100%; object-fit: cover; }
.wr-th button { position: absolute; top: 5px; right: 5px; width: 25px; height: 25px; border-radius: 50%; border: 0; background: rgba(22,32,42,0.86); color: #fff; font-size: 16px; cursor: pointer; }
.wr-ok { padding: 14px 16px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; font-weight: 700; }

/* CTA & Footer */
.wr-cta { background: var(--wr-slate); color: #fff; border-radius: 10px; padding: clamp(24px, 4vw, 38px); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.wr-cta h2 { color: #fff; margin: 0 0 6px; }
.wr-cta p { color: #cbd5e1; margin: 0; max-width: 56ch; }
.wr-ftr { background: var(--wr-slate); color: #cbd5e1; padding: 46px 0 32px; font-size: 0.88rem; }
.wr-ftr-g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.wr-ftr .wr-logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.wr-ftr .wr-logo em { color: #f87171; }
.wr-ftr h4 { color: #fff; font-size: 0.86rem; margin: 0 0 10px; }
.wr-ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.wr-ftr a { color: #cbd5e1; }
.wr-ftr a:hover { color: #fff; }
.wr-ftr-b { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.82rem; color: #94a3b8; }

@media (max-width: 960px) {
  .wr-hero-grid, .wr-est, .wr-split { grid-template-columns: 1fr; }
  .wr-hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-ftr-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wr-nav, .wr-topbar { display: none; }
  .wr-mbtn { display: inline-flex; }
  .wr-g2, .wr-g3, .wr-fgrid { grid-template-columns: 1fr; }
  .wr-hdr-in { min-height: 58px; }
  .wr-logo { font-size: 1.02rem; }
  .wr-btn-sm { padding: 0 10px; font-size: 0.78rem; }
  .hide-mob { display: none; }
}
@media (max-width: 480px) {
  .wr-hgrid, .wr-ftr-g { grid-template-columns: 1fr; }
  .wr-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
}
