:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --stone: #efeae0;
  --spruce: #14332b;
  --spruce-2: #1d473c;
  --ink: #16211e;
  --body: #34413d;
  --muted: #5c6b66;
  --brass: #a16207;
  --brass-hi: #c48b28;
  --brass-soft: #fef6e4;
  --line: #ded7c9;
  --line-2: #c4baa7;
  --head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --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(--sans); color: var(--body); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--head); color: var(--ink); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.14; margin: 0 0 0.72rem;
}
h1 { font-size: clamp(2.05rem, 3.8vw, 3.05rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: var(--spruce); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.num { font-variant-numeric: tabular-nums; }

/* Dublin Top Strip + Editorial Header */
.topstrip {
  background: var(--spruce); color: #d6e4df; font-size: 0.79rem; font-weight: 500;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topstrip-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topstrip strong { color: #f6d58e; font-weight: 600; }
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.logo {
  font-family: var(--head); font-weight: 800; font-size: 1.32rem;
  color: var(--spruce); letter-spacing: -0.025em; white-space: nowrap; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--brass); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--body); font-size: 0.9rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--spruce); text-decoration: none; }
.hdr-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-toggle {
  display: none; background: #fff; border: 1.5px solid var(--line-2); border-radius: 6px;
  padding: 7px 11px; font-family: var(--sans); font-size: 0.84rem; font-weight: 700;
  color: var(--spruce); cursor: pointer;
}
.mob-nav { display: none; background: #fff; border-top: 1px solid var(--line); padding: 12px 22px 18px; }
.mob-nav.open { display: grid; gap: 4px; }
.mob-nav a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.mob-nav a:last-child { border-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 7px;
  font-family: var(--sans); font-weight: 700; font-size: 0.93rem;
  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;
}
.btn:hover { text-decoration: none; }
.btn-p { background: var(--spruce); color: #fff; }
.btn-p:hover { background: var(--spruce-2); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #854d0e; color: #fff; }
.btn-o { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.btn-o:hover { background: var(--stone); color: var(--spruce); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.84rem; }

/* Editorial Limestone Hero */
.hero {
  background: linear-gradient(180deg, #f8f6f1 0%, #f1ede3 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 54px) 0 clamp(36px, 5vw, 60px);
}
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 34px 42px; align-items: start;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 10px;
}
.hero-lead { font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--body); max-width: 55ch; margin: 0 0 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.trust-line { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 0 0 22px; }
.kpi-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; list-style: none; padding: 0; margin: 0;
}
.kpi-bar li {
  background: rgba(255,255,255,0.82); border: 1px solid var(--line);
  border-left: 3px solid var(--brass-hi); border-radius: 7px; padding: 11px 14px;
}
.kpi-bar strong {
  display: block; font-family: var(--head); font-size: 1.2rem;
  font-weight: 700; color: var(--spruce); line-height: 1.15;
}
.kpi-bar span { display: block; font-size: 0.81rem; color: var(--muted); margin-top: 2px; }

/* 4-Step Dublin Quote Card */
.qcard {
  background: #fff; border: 1px solid var(--line-2); border-top: 4px solid var(--spruce);
  border-radius: 10px; padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 16px 38px rgba(20, 51, 43, 0.09);
}
.qcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.qcard-title { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--spruce); margin: 0; }
.qcard-step-lbl { font-size: 0.79rem; font-weight: 700; color: var(--brass); white-space: nowrap; }
.qprog { height: 5px; background: var(--stone); border-radius: 99px; overflow: hidden; margin-bottom: 15px; }
.qprog i { display: block; height: 100%; background: var(--brass-hi); transition: width .2s ease; }
.qstep { display: none; }
.qstep.on { display: block; }
.qstep-h { font-family: var(--head); font-size: 1.06rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.qstep-sub { font-size: 0.86rem; color: var(--muted); margin: 0 0 12px; }
.qpic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.qpic {
  text-align: left; padding: 0; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qpic:hover, .qpic.picked { border-color: var(--spruce); box-shadow: inset 0 0 0 1px var(--spruce); }
.qpic-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); border-bottom: 1px solid var(--line); }
.qpic-img img { width: 100%; height: 100%; object-fit: cover; }
.qpic-txt { display: block; padding: 7px 9px; font-weight: 700; font-size: 0.81rem; color: var(--ink); line-height: 1.25; }
.qpic-txt small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.qopts { display: grid; gap: 7px; }
.qopt {
  width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 7px; background: #fff; cursor: pointer; font-family: var(--sans);
  font-size: 0.87rem; font-weight: 700; color: var(--ink);
}
.qopt:hover, .qopt.picked { border-color: var(--spruce); background: #f2f7f5; }
.qopt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.79rem; margin-top: 2px; }
.swatch-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.swbtn {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px;
  border: 1.5px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 0.81rem; font-weight: 600; color: var(--ink); text-align: left;
}
.swbtn:hover, .swbtn.picked { border-color: var(--spruce); background: #f2f7f5; }
.swdot { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.22); flex-shrink: 0; }
.qprice-banner {
  background: var(--brass-soft); border-left: 4px solid var(--brass); border-top: 1px solid #ead8b1;
  border-right: 1px solid #ead8b1; border-bottom: 1px solid #ead8b1;
  border-radius: 0 8px 8px 0; padding: 13px 15px; margin-bottom: 14px;
}
.qprice-k { font-size: 0.75rem; font-weight: 700; color: var(--brass); text-transform: uppercase; letter-spacing: 0.05em; }
.qprice-val { font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--spruce); line-height: 1.15; margin-top: 2px; }
.qprice-meta { font-size: 0.81rem; color: var(--body); margin-top: 4px; line-height: 1.42; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fld { margin-bottom: 9px; }
.fld label { display: block; font-size: 0.81rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 43px; padding: 9px 11px; border: 1.5px solid var(--line-2);
  border-radius: 7px; font-family: var(--sans); font-size: 0.96rem; color: var(--ink); background: #fff;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--spruce); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg);
  font-size: 0.8rem; color: var(--body); margin: 4px 0 12px; line-height: 1.42;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--spruce); flex-shrink: 0; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.qback { background: transparent; border: 0; color: var(--muted); font-family: var(--sans); font-size: 0.86rem; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.qerr { color: #b91c1c; font-size: 0.84rem; font-weight: 700; min-height: 1.2em; margin: 6px 0 0; }

/* Sections */
.sec { padding: clamp(44px, 5.8vw, 72px) 0; background: var(--surface); }
.sec.stone { background: var(--bg); }
.sec.dark { background: var(--spruce); color: #e2ece8; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark p { color: #c7dad3; }
.sec + .sec { border-top: 1px solid var(--line); }
.sh { max-width: 720px; margin-bottom: 28px; }
.sh p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Bespoke Live Visual Composite Door Configurator */
.cfg-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px; align-items: stretch;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: clamp(18px, 3vw, 30px);
}
.cfg-stage {
  background: linear-gradient(180deg, #eae4d8 0%, #dcd4c4 100%);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cfg-svg-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0 14px; min-height: 290px;
}
.cfg-svg-wrap svg { max-height: 310px; width: auto; filter: drop-shadow(0 12px 22px rgba(20, 51, 43, 0.2)); }
.cfg-readout {
  background: var(--spruce); color: #fff; border-radius: 8px; padding: 18px;
}
.cfg-rk { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: #f6d58e; font-weight: 700; }
.cfg-rprice { font-family: var(--head); font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 700; color: #fff; margin: 4px 0 10px; line-height: 1.1; }
.cfg-meta-list { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid rgba(255,255,255,0.16); }
.cfg-meta-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.cfg-meta-list span { color: #bdd3cb; }
.cfg-meta-list b { color: #fff; text-align: right; }
.cfg-group { margin-bottom: 16px; }
.cfg-lbl { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--spruce); margin-bottom: 8px; }
.cfg-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cfg-pill {
  padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 7px;
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.cfg-pill:hover, .cfg-pill.on { border-color: var(--spruce); background: var(--spruce); color: #fff; }
.cfg-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-sw {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px;
  border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff;
  cursor: pointer; font-family: var(--sans); font-size: 0.81rem; font-weight: 600; color: var(--ink);
}
.cfg-sw.on { border-color: var(--spruce); box-shadow: inset 0 0 0 1px var(--spruce); background: #f2f7f5; }
.cfg-sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.22); flex-shrink: 0; }

/* Style Cards, Grids, Tables, Callouts */
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scard {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.scard-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); border-bottom: 1px solid var(--line); }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.scard:hover .scard-img img { transform: scale(1.03); }
.scard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.scard-t { font-family: var(--head); font-size: 1.08rem; font-weight: 700; color: var(--spruce); margin: 0 0 3px; }
.scard-p { font-weight: 800; font-size: 0.92rem; color: var(--brass); margin: 0 0 8px; }
.scard-d { font-size: 0.89rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.scard-a { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--spruce); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--stone); font-family: var(--sans); font-weight: 700; color: var(--spruce); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: 0; }
.price-cell { font-weight: 800; color: var(--spruce); white-space: nowrap; }

.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: #fff; }
.card.hi { border-color: var(--spruce); border-top: 3px solid var(--brass-hi); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 10px 0 0; padding-left: 19px; }
.card li { margin-bottom: 6px; font-size: 0.93rem; }
.note-box { border-left: 4px solid var(--brass); background: var(--brass-soft); padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--ink); }
.info-box { border-left: 4px solid var(--spruce); background: #edf3f0; padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--ink); }
.split-media { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 30px; align-items: center; }
.media-fig { margin: 0; }
.media-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-fig figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 7px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.83rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.prose h2 { margin-top: 1.9rem; }
.prose ul { padding-left: 20px; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.48rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips a {
  display: inline-flex; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--spruce); font-weight: 600; font-size: 0.85rem; background: #fff;
}
.chips a:hover { border-color: var(--spruce); background: var(--spruce); color: #fff; text-decoration: none; }
.lcard {
  display: flex; flex-direction: column; gap: 5px; padding: 17px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--body);
}
.lcard:hover { border-color: var(--spruce); text-decoration: none; }
.lcard b { font-family: var(--head); color: var(--spruce); font-size: 1.02rem; }
.lcard span { color: var(--muted); font-size: 0.86rem; }
.lcard i { font-style: normal; font-size: 0.83rem; font-weight: 700; color: var(--brass); margin-top: auto; padding-top: 5px; }

/* FAQs */
.faqs { max-width: 860px; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 15px 0; }
details.faq summary {
  font-family: var(--head); font-weight: 700; color: var(--spruce); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1.02rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--brass); font-family: var(--sans); font-weight: 700; flex: none; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; font-size: 0.94rem; color: var(--body); }

/* Thanks Photo Uploader */
.more-card { max-width: 680px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 24px; background: #fff; }
.more-up {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 5px; padding: 24px 16px; border: 2px dashed var(--line-2); border-radius: 10px;
  background: var(--bg); cursor: pointer; margin-bottom: 16px;
}
.more-up:hover { border-color: var(--spruce); }
.more-up b { font-family: var(--head); color: var(--spruce); }
.more-up span { font-size: 0.84rem; color: var(--muted); }
.more-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.more-th { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.more-th img { width: 100%; height: 100%; object-fit: cover; }
.more-th button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(20,51,43,0.88); color: #fff; font-size: 16px; cursor: pointer;
}
.more-st { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.more-ok { padding: 14px 16px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; font-weight: 700; }

/* CTA & Footer */
.cta-band {
  background: var(--spruce); color: #fff; border-radius: 12px;
  padding: clamp(24px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; border-bottom: 4px solid var(--brass-hi);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cce0d9; margin: 0; max-width: 56ch; }
.ftr { background: #0e241e; color: #bdd2cb; padding: 48px 0 32px; font-size: 0.89rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ftr .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.ftr .logo span { color: #f6d58e; }
.ftr h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: #f6d58e; font-size: 0.78rem; margin: 0 0 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ftr a { color: #cde0d9; }
.ftr a:hover { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.82rem; color: #8fb0a5; }

@media (max-width: 980px) {
  .hero-split, .cfg-grid, .split-media { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .g2, .g3, .fgrid { grid-template-columns: 1fr; }
  .hdr-in { min-height: 58px; }
  .logo { font-size: 1.12rem; }
  .btn-sm { padding: 0 11px; font-size: 0.8rem; }
  .hide-mob { display: none; }
}
@media (max-width: 480px) {
  .style-grid, .swatch-row, .kpi-bar { grid-template-columns: 1fr; }
  .qpic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ftr-grid { grid-template-columns: 1fr; }
}
