/* RM Renovation – site stylesheet (custom build, no framework) */
:root {
  --navy: #1B456D; --navy-deep: #001A38; --red: #ED1F24; --red-dark: #c8151a; --text: #4F5D71; --heading: #1B456D;
  --bg: #ffffff; --bg-soft: #F8F8F8; --line: #e6e9ee; --shadow: 0 10px 30px rgba(9, 30, 66, .10);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1260px; --gutter: 20px; --radius: 12px; --gap: 20px;
  --pt: 0px; --pb: 0px; --pl: 0px; --pr: 0px;
  /* Global tokens from the original Elementor kit — the generated per-page CSS
     (assets/pages/*.css) references these by their original names. */
  --e-global-color-primary: #1B456D;
  --e-global-color-secondary: #ED1F24;
  --e-global-color-text: #4F5D71;
  --e-global-color-accent: #ED1F24;
  --e-global-typography-primary-font-family: "Nunito Sans";
  --e-global-typography-primary-font-size: 32px;
  --e-global-typography-primary-font-weight: 700;
  --e-global-typography-primary-line-height: 2em;
  --e-global-typography-secondary-font-family: "Nunito Sans";
  --e-global-typography-secondary-font-size: 24px;
  --e-global-typography-secondary-font-weight: 700;
  --e-global-typography-secondary-line-height: 1.3em;
  --e-global-typography-text-font-family: "Nunito Sans";
  --e-global-typography-text-font-size: 19px;
  --e-global-typography-text-font-weight: 400;
  --e-global-typography-text-line-height: 35px;
  --e-global-typography-accent-font-family: "Nunito Sans";
  --e-global-typography-accent-font-size: 17px;
  --e-global-typography-accent-font-weight: 400;
  --e-global-typography-accent-line-height: 25px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, .h { font-family: var(--font); color: var(--heading); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1, .h1 { font-size: clamp(30px, 4.2vw, 50px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 20px; } h5 { font-size: 18px; } h6 { font-size: 16px; }
p { margin: 0 0 17px; }
.h[style*="--fs"] { font-size: min(var(--fs), 8vw); }
.upper { text-transform: uppercase; }
.eyebrow { font-size: 15px; font-weight: 600; text-transform: uppercase; color: var(--red); margin: 0 0 8px; line-height: 1.4; }
.h span { font-weight: 500; }
.ta-c { text-align: center; } .ta-r { text-align: right; }
.c-accent { color: var(--red); } .c-white { color: #fff; } .c-primary { color: var(--navy); } .c-text { color: var(--text); }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; color: var(--navy); padding: 8px 14px; z-index: 1000; border-radius: 6px; box-shadow: var(--shadow); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }

/* ---------- rich text ---------- */
.rich > :first-child { margin-top: 0; } .rich > :last-child { margin-bottom: 0; }
.rich h2, .rich h3, .rich h4 { margin-top: 1.4em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 17px; }
.rich li { margin: 0 0 6px; }
.rich img { border-radius: var(--radius); margin: 10px 0; }
.rich figure { margin: 20px 0; } .rich figcaption { font-size: 14px; color: #6b7686; text-align: center; margin-top: 6px; }
.rich table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; color: var(--text); }
.rich th, .rich td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.rich th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.rich tr td:first-child { font-weight: 700; color: var(--red); }
.rich blockquote { border-left: 4px solid var(--red); margin: 20px 0; padding: 10px 20px; background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.rich a { font-weight: 600; }
.rich .aligncenter { margin-inline: auto; }
.rich iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__addr { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar__addr svg { width: 16px; height: 16px; color: var(--red); }
.social { display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; }
.social a:hover { background: var(--red-dark); text-decoration: none; }
.social svg { width: 16px; height: 16px; }
.social--top a { width: 26px; height: 26px; } .social--top svg { width: 13px; height: 13px; }
.navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__link--btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; white-space: nowrap; color: var(--navy); font-weight: 600; font-size: 16px; background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none; position: relative; }
.nav__list > li > a::after, .nav__link--btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav__list > li > a:hover::after, .nav__list > li > a.is-active::after, .nav__link--btn:hover::after, .nav__link--btn.is-active::after { transform: scaleX(1); }
.nav__list > li > a.is-active, .nav__link--btn.is-active { color: var(--red); }
.nav__link--btn svg, .sub-toggle svg { width: 14px; height: 14px; }
.sub-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 10px; box-shadow: 0 14px 40px rgba(9,30,66,.16); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 50; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 18px; color: var(--navy); font-size: 15px; font-weight: 600; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--bg-soft); color: var(--red); text-decoration: none; }
.nav .nav__cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 30px; height: 30px; } .nav-toggle svg:last-child { display: none; }
.nav-toggle[aria-expanded="true"] svg:first-child { display: none; } .nav-toggle[aria-expanded="true"] svg:last-child { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 6px; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: .18s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237,31,36,.25); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.is-dark .btn--outline { color: #fff; border-color: #fff; } .is-dark .btn--outline:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wrap.ta-c { justify-content: center; }

/* ---------- containers ---------- */
.con { --ovo: 0; position: relative; display: flex; flex-direction: column; gap: var(--gap, 20px); min-width: 0; min-height: var(--minh, auto); justify-content: var(--jc, flex-start); align-items: var(--ai, stretch); padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.con--row { flex-direction: row; flex-wrap: nowrap; }
.con--rev { flex-direction: row-reverse; }
.con--grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.con--row > .con, .con--row > .con__in > .con { flex: 0 1 var(--w, 100%); width: var(--w, auto); max-width: 100%; }
.con--row > :not(.con) { flex: 0 1 auto; min-width: 0; }
.con--col > :not(.con):not(.icon-badge):not(.con__in) { width: 100%; }
.con--col > .con { width: var(--w, 100%); max-width: 100%; }
.con--boxed { display: block; }
.con.con--boxed > .con__in { width: min(var(--wrap), 100%); margin-inline: auto; display: flex; flex-direction: column; gap: var(--gap, 20px); justify-content: var(--jc, flex-start); align-items: var(--ai, stretch); min-height: inherit; }
.con.con--boxed > .con__in--row { flex-direction: row; }
.con.con--boxed > .con__in--grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.con.has-bgc { background: var(--bgc); }
.con.has-bg { background: var(--bgc, var(--navy-deep)) var(--bg) center / cover no-repeat; }
.con.has-bg::before { content: ""; position: absolute; inset: 0; background: var(--ovi, var(--ovc, #06182f)); opacity: var(--ovo, 0); pointer-events: none; border-radius: inherit; }
.con.has-bg > * { position: relative; z-index: 1; }
.con.rounded { border-radius: var(--radius, 12px); overflow: hidden; }
.con--card { box-shadow: var(--shadow); }
.con--empty { flex: 0 1 var(--w, 100%); }
.sec { --pt: 0px; --pb: 0px; }
/* Default horizontal inset. The imported per-element padding (higher specificity)
   replaces it wherever the original declares its own, so the two never stack. */
.sec { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec.con--col:not(.has-bg):not(.has-bgc) + .sec.con--col:not(.has-bg):not(.has-bgc) { border-top: 0; }
.is-dark, .is-dark .h, .is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4, .is-dark .rich, .is-dark .c-text, .is-dark .c-primary, .is-dark .ibox__title a { color: #fff; }
.is-dark .eyebrow, .is-dark .c-accent { color: #ff5b5f; }
.is-dark a:not(.btn) { color: #ff8a8d; }
.is-light, .is-light .h, .is-light h2, .is-light h3 { color: var(--heading); }
.is-light .rich, .is-light .c-text { color: var(--text); }
.is-light .eyebrow, .is-light .c-accent { color: var(--red); }
.is-light a:not(.btn) { color: var(--red); }
.img { margin: 0; } .img img { width: 100%; border-radius: var(--radius); }
.img.rounded img { border-radius: var(--radius); }
.con--row > .con:has(> .img:only-child) { justify-content: center; }
.con--row > .con > .img:only-child img { width: 100%; height: auto; max-height: 600px; object-fit: cover; }
.img--fixed img { height: min(var(--ih), 70vh); object-fit: cover; }
.img[style*="--mw"] { max-width: var(--mw); }
.img.ta-c[style*="--mw"] { margin-inline: auto; }
.img.ta-c img { width: auto; margin-inline: auto; }
.connector { flex: 0 1 var(--w, 8%); display: flex; align-items: center; justify-content: center; color: var(--red); }
.connector svg { width: 40px; height: 40px; } .connector svg:last-child { display: none; }
.h-desc { margin-top: 8px; }

/* image cards: description reveals on hover (as on the original site) */
/* Image cards reveal their description on hover; on touch the first tap opens it
   (site.js adds .is-open), matching the live site. */
.con--row > .con.has-bg > .rich {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease; margin-top: -12px;
}
.con--row > .con.has-bg:hover > .rich,
.con--row > .con.has-bg:focus-within > .rich,
.con--row > .con.has-bg.is-open > .rich { max-height: 520px; opacity: 1; margin-top: 0; }
.con--row > .con.has-bg { transition: box-shadow .3s; }
@media (hover: hover) { .con--row > .con.has-bg:hover { box-shadow: 0 16px 36px rgba(0,0,0,.25); } }
@media (hover: none) { .con--row > .con.has-bg[data-tap] { cursor: pointer; } }
.con--row > .con.has-bg { border-radius: 6px; overflow: hidden; }
.con--row > .con.has-bg .rich { font-size: 16px; }

/* ---------- icon list ---------- */
.ilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ilist--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.ilist li { display: flex; align-items: flex-start; gap: 10px; }
.ilist a { color: inherit; font-weight: 600; } .ilist a:hover { color: var(--red); }
.ilist__ic { flex: none; display: inline-flex; width: 20px; height: 20px; color: var(--red); margin-top: 4px; }
.ilist__ic svg { width: 100%; height: 100%; }
.ilist.ta-c li { justify-content: center; }
.con--row > .ilist { flex: 1 1 0; }

/* ---------- icon boxes ---------- */
.ibox { display: flex; gap: 16px; align-items: flex-start; }
.ibox--card { flex-direction: column; background: #fff; border-radius: 14px; padding: 30px 28px; box-shadow: 0 6px 24px rgba(9,30,66,.08); height: 100%; border: 1px solid #eef1f5; transition: .2s; }
.ibox--card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(9,30,66,.14); }
.ibox--card.ta-c { align-items: center; text-align: center; }
.ibox__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; }
.ibox__icon svg { width: 28px; height: 28px; } .ibox__icon img { width: 60px; height: auto; }
.ibox--inline .ibox__icon { width: 30px; height: 30px; background: transparent; color: var(--navy); margin-top: 2px; }
.ibox--inline { margin-bottom: 6px; }
.ibox--inline .ibox__icon svg { width: 26px; height: 26px; }
.ibox--inline .ibox__icon img { width: 60px; }
.is-dark .ibox--inline .ibox__icon { color: #fff; }
.c-primary.ibox .ibox__icon { background: var(--navy); }
.ibox__title { font-size: 20px; margin: 0 0 8px; }
.ibox__title a { color: inherit; }
.ibox--card .ibox__title { margin-top: 4px; }
.ibox__body .rich { font-size: 16px; }
.ibox .btn { margin-top: 12px; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 30px; margin: -32px auto 0; box-shadow: 0 6px 16px rgba(9,30,66,.2); }
.icon-badge svg { width: 1em; height: 1em; }
.icon-badge img { width: 1em; height: 1em; object-fit: contain; }
/* Cards that lead with a badge: the circle deliberately overhangs the top edge,
   so the card must not clip, and the badge must keep its circular size rather
   than being stretched by the column's full-width rule. */
.con.con--badge { overflow: visible; margin-top: 34px; }
.con.con--badge > .icon-badge { width: 64px; min-width: 64px; height: 64px; align-self: center; margin-left: auto; margin-right: auto; }

/* ---------- accordion ---------- */
.acc { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.acc--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(9,30,66,.06); }
.is-dark .acc__item { color: var(--text); }
.acc__title { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 700; color: var(--navy); font-size: 17px; }
.acc__title::-webkit-details-marker { display: none; }
.acc__ic { flex: none; width: 22px; height: 22px; color: var(--red); }
.acc__ic svg { width: 22px; height: 22px; } .acc__ic svg:last-child { display: none; }
.acc__item[open] .acc__ic svg:first-child { display: none; } .acc__item[open] .acc__ic svg:last-child { display: block; }
.acc__body { padding: 0 20px 18px; font-size: 16px; color: var(--text); }
.acc__body h2, .acc__body h3 { color: var(--navy); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 15px; width: 100%; }
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(0,10,25,.92); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__btn--prev { left: 16px; } .lightbox__btn--next { right: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; transform: none; }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* ---------- forms ---------- */
.form { width: 100%; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field.w-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #d5dbe3; border-radius: 6px; background: #fff; color: #222; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form .btn { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form__msg { margin: 10px 0 0; font-size: 15px; min-height: 1em; }
.form__msg.is-error { color: var(--red); } .form__msg.is-ok { color: #1a8a4b; }
.is-dark .form__msg.is-ok { color: #8be0ad; }

/* ---------- map / video ---------- */
.map { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.video__play svg { width: 36px; height: 36px; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; width: 100%; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(-50%); }
.timeline__step { position: relative; width: 50%; padding: 0 48px 40px 0; }
.timeline__step:nth-child(even) { margin-left: 50%; padding: 0 0 40px 48px; }
.timeline__step::before { content: ""; position: absolute; top: 18px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--red); }
.timeline__step:nth-child(even)::before { right: auto; left: -9px; }
.timeline__label { display: inline-block; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.timeline__card { background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.timeline__title { font-size: 20px; margin-bottom: 8px; }
.timeline__card .rich { font-size: 16px; }
.is-dark .timeline__card, .is-dark .timeline__card .rich { color: var(--text); } .is-dark .timeline__title { color: var(--navy); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; width: 100%; position: relative; }
.reviews__summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.reviews__summary strong { color: var(--navy); font-size: 17px; }
.reviews__count { font-size: 14px; }
.stars { display: inline-flex; gap: 2px; color: #f6b400; }
.stars svg { width: 17px; height: 17px; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 4px 16px; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 300px; scroll-snap-align: start; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 18px rgba(9,30,66,.10); display: flex; flex-direction: column; gap: 8px; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__head img, .review__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.review__avatar { background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.review__head strong { display: block; font-size: 15px; color: #222; } .review__head time { font-size: 12px; color: #7a8594; }
.review__g { margin-left: auto; width: 20px; height: 20px; } .review__g svg { width: 20px; height: 20px; }
.review__text { font-size: 15px; margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .review__text { -webkit-line-clamp: unset; }
.reviews__nav { position: absolute; inset: 0 0 0 240px; pointer-events: none; display: flex; justify-content: space-between; align-items: center; }
.slider__btn { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn[data-prev] { margin-left: -10px; } .slider__btn[data-next] { margin-right: -10px; }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 30px; width: 100%; }
.pcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(9,30,66,.08); display: flex; flex-direction: column; border: 1px solid #eef1f5; transition: .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(9,30,66,.14); }
.pcard__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pcard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__meta { display: flex; gap: 12px; font-size: 13px; color: #7a8594; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.pcard__meta span { color: var(--red); font-weight: 700; }
.pcard__title { font-size: 20px; margin: 0; } .pcard__title a { color: var(--navy); } .pcard__title a:hover { color: var(--red); text-decoration: none; }
.pcard__ex { font-size: 15px; margin: 0; flex: 1; }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.pcard__more svg { width: 16px; height: 16px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; justify-content: center; }
.pagination span { background: var(--red); color: #fff; border-color: var(--red); }
.pagination svg { width: 16px; height: 16px; }

/* ---------- tabs ---------- */
.tabs { width: 100%; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.tabs__nav button { font: inherit; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.tabs__nav button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- posts (single) ---------- */
.post-hero { padding: 80px var(--gutter); min-height: 360px; display: flex; align-items: center; }
.post-hero__title { max-width: 900px; }
.post-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
.post-meta svg { width: 18px; height: 18px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 50px; padding: 60px 0; }
.post-body { font-size: 18px; min-width: 0; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 32px); }
.post-body h3 { font-size: 22px; }
.post-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; align-self: start; }
.toc { background: var(--bg-soft); border-radius: 12px; padding: 4px 20px 16px; border: 1px solid var(--line); }
.toc__head { list-style: none; cursor: pointer; font-weight: 800; color: var(--navy); padding: 12px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.toc__head::-webkit-details-marker { display: none; }
.toc__head svg { width: 18px; height: 18px; transition: transform .2s; } .toc[open] .toc__head svg { transform: rotate(180deg); }
.toc__list, .toc__list ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc__list li { margin: 4px 0; } .toc__list a { color: var(--text); font-weight: 600; } .toc__list a:hover { color: var(--red); }
.toc__list ol { margin-top: 4px; font-size: 14px; }
.side-card { background: #fff; border-radius: 14px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.side-card__title { font-size: 22px; margin-bottom: 8px; }
.side-card p { font-size: 15px; }
.side-card--cta { background: var(--navy); border-color: var(--navy); } .side-card--cta .side-card__title { color: #fff; }
.related { background: var(--bg-soft); padding: 70px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9d3df; font-size: 15px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.footer__logo img { width: 150px; background: #fff; padding: 8px 12px; border-radius: 6px; margin-bottom: 18px; }
.footer__about .rich { font-size: 14px; margin-bottom: 18px; }
.footer__h { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; padding-left: 14px; position: relative; }
.footer__h::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--red); }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__list a { color: #c9d3df; display: inline-flex; align-items: center; gap: 6px; } .footer__list a:hover { color: #fff; }
.footer__list svg { width: 12px; height: 12px; color: var(--red); }
.footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.footer__contact span { display: block; font-size: 13px; color: #9fb0c3; } .footer__contact a { color: #fff; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__list > li > a, .nav__link--btn { padding: 10px 8px; font-size: 15px; }
  .navbar__cta { display: none; }
}
@media (max-width: 1024px) {
  .con--row.con--many, .con.con--boxed > .con__in--row.con--many { flex-wrap: wrap; }
  .con--row.con--many > .con, .con__in--row.con--many > .con { flex: 1 1 calc(50% - var(--gap, 20px)); }
  .connector { display: none; }
  .con.con--badge { margin-top: 34px; }
  .acc--cols { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; } .reviews__nav { inset: 0; }
  .timeline::before { left: 12px; }
  .timeline__step, .timeline__step:nth-child(even) { width: 100%; margin: 0; padding: 0 0 30px 40px; }
  .timeline__step::before, .timeline__step:nth-child(even)::before { left: 3px; right: auto; }
}
@media (max-width: 900px) {
  .topbar__tag { display: none; }
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 90px 20px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 40px rgba(0,0,0,.2); z-index: 90; }
  .nav.is-open { transform: none; }
  .nav-toggle { position: relative; z-index: 95; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav__list > li > a, .nav__link--btn { flex: 1; padding: 14px 4px; font-size: 17px; }
  .nav__list > li > a::after, .nav__link--btn::after { display: none; }
  .sub-toggle { display: inline-flex; }
  .nav__sub { position: static; width: 100%; box-shadow: none; padding: 0 0 8px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open > .nav__sub { display: block; }
  .has-sub:hover > .nav__sub:not(.is-open) { display: none; } .has-sub.is-open:hover > .nav__sub { display: block; }
  .nav__sub a { padding: 10px 8px; }
  .nav .nav__cta { display: flex; margin-top: 20px; }
  .navbar__in { min-height: 72px; } .logo img { width: 130px; }
  .con--row, .con.con--boxed > .con__in--row { flex-direction: column; flex-wrap: nowrap; }
  .con--rev { flex-direction: column-reverse; }
  .con--row > .con, .con--row > .con__in > .con, .con__in--row > .con, .con--row.con--many > .con, .con__in--row.con--many > .con { flex: 0 0 auto; width: 100%; }
  .con--row > :not(.con) { width: 100%; }
  .con--empty { display: none; }
  .con--grid, .con.con--boxed > .con__in--grid { grid-template-columns: 1fr 1fr; }
  .connector { display: flex; flex: 0 0 auto; width: 100%; } .connector svg:first-child { display: none; } .connector svg:last-child { display: block; }
  .gallery { --cols: 2 !important; }
  .post-grid { --cols: 1 !important; }
  .sec { --pl: 0px; --pr: 0px; }
  .con { --pl: 0px; --pr: 0px; }
  .con.con--card, .con.rounded.has-bgc { --pl: 20px; --pr: 20px; padding-left: 20px; padding-right: 20px; }
  .con.has-bg:not(.sec) { padding-left: 20px; padding-right: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .reviews__summary { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .review { flex-basis: 85%; }
  .map iframe { height: 320px; }
  .post-hero { padding: 50px var(--gutter); min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 50px 0 40px; }
  .con--grid, .con.con--boxed > .con__in--grid { grid-template-columns: 1fr; }
  .topbar__in { justify-content: center; font-size: 13px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .con.has-bg.sec { --pt: 3em; --pb: 3em; }
  .ibox--card { padding: 24px 20px; }
}
/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.is-dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: #fff; }
.btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:hover, .pcard:hover, .ibox--card:hover { transform: none; }
  .gallery__item:hover img { transform: none; }
}

/* ---------- trust-badge strip ---------- */
/* The source pins each logo to a 60px height; nine of them plus 35px gaps need
   ~1528px and the row is 1260px, so they wrapped onto a second line. Scale the
   logos with the viewport and never wrap; on narrow screens the strip scrolls
   sideways instead of stacking, so it always reads as one line. */
.con.con--row.logo-row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 0 clamp(12px, 1.7vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.con.con--row.logo-row::-webkit-scrollbar { display: none; }
.con.con--row.logo-row > .img { flex: 0 0 auto; margin: 0; padding: 0; }
/* An explicit height (not max-height) is required: the RenoQuotes and Houzz logos are
   SVGs, and with height:auto they have no definite size and collapse to 0. Width stays
   auto so every badge keeps its own aspect ratio. */
.con.con--row.logo-row .img img {
  height: clamp(26px, 3.3vw, 48px);
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* Phones: the strip wraps onto several rows so all nine logos stay visible.
   An explicit height is required (the RenoQuotes and Houzz logos are SVGs and
   collapse with height:auto), and no width cap, which would letterbox the wide
   ones inside their box and make them look tiny. */
@media (max-width: 767px) {
  .con.con--row.logo-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    align-items: center;
    gap: 18px 16px;
  }
  /* The <figure> wrapper computes a narrower flex size than the image it contains
     (124px image inside a 74px box for the SVG logos), so wide logos collided with
     their neighbours. display:contents makes the image itself the flex item, so its
     real width drives the wrapping. */
  .con.con--row.logo-row > .img { display: contents; }
  .con.con--row.logo-row .img img {
    height: clamp(26px, 8.2vw, 34px);
    width: auto;
    max-width: none;
    flex: 0 0 auto;
  }
}

@media print { .site-header, .site-footer, .post-side, .reviews__nav { display: none; } }
