/* ==========================================================================
   tpl_realestate – clean, professional real estate template for Joomla 6
   ========================================================================== */

/* ---------- fonts (local, GDPR friendly) ---------- */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display Variable"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --tpl-container: 1320px;
  --tpl-font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tpl-gutter: clamp(1rem, 3vw, 2rem);
  --tpl-header-h: 76px;
  --re-primary: #143a5a;
  --re-accent: #c8a15a;
  --re-ink: #0e1b2c;
  --re-bg: #f6f7f9;
  --re-line: #e6e9ee;
  --re-muted: #6b7685;
  --re-text: #1f2a37;
  --re-surface: #fff;
  --re-radius: 14px;
  --bs-body-font-family: var(--tpl-font);
  --bs-body-color: var(--re-text);
  --bs-body-bg: var(--re-bg);
  --bs-link-color: var(--re-primary);
  --bs-link-color-rgb: 20, 58, 90;
  --bs-link-hover-color: var(--re-ink);
  --bs-border-radius: 10px;
  --bs-primary: var(--re-primary);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--tpl-font); font-size: 1rem; line-height: 1.6; color: var(--re-text); background: var(--re-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; height: auto; }
a { color: var(--re-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--re-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--re-ink); line-height: 1.2; letter-spacing: -.012em; margin: 0 0 .6em; font-weight: 700; }
h1, h2 { font-family: var(--re-font-display); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: color-mix(in srgb, var(--re-accent) 40%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--re-accent) 75%, transparent); outline-offset: 2px; }
.tpl-container { width: 100%; max-width: calc(var(--tpl-container) + var(--tpl-gutter) * 2); margin: 0 auto; padding-inline: var(--tpl-gutter); }
.tpl-skip { position: absolute; left: -999px; top: 0; z-index: 10000; background: var(--re-ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.tpl-skip:focus { left: 0; }

/* shared buttons when the component is not loaded on a page */
.re-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.re-btn--primary { background: var(--re-primary); color: #fff !important; }
.re-btn--primary:hover { background: color-mix(in srgb, var(--re-primary) 82%, #000); }
.re-btn--accent { background: var(--re-accent); color: var(--re-ink) !important; }
.re-btn--accent:hover { background: color-mix(in srgb, var(--re-accent) 86%, #000); }
.re-btn--sm { min-height: 38px; padding: .45rem .95rem; font-size: .88rem; }
.re-input { width: 100%; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--re-line); border-radius: 10px; font: inherit; background: #fff; }

/* ---------- topbar ---------- */
.tpl-topbar { background: var(--re-ink); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.tpl-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.tpl-topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.tpl-topbar a, .tpl-topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.tpl-topbar a:hover { color: #fff; }
.tpl-topbar svg { width: 15px; height: 15px; color: var(--re-accent); }
.tpl-topbar__mods ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tpl-topbar__mods a { color: inherit; }

/* ---------- header ---------- */
.tpl-header { position: relative; z-index: 1000; background: var(--re-surface); border-bottom: 1px solid var(--re-line); transition: background .3s, box-shadow .3s, border-color .3s; }
.has-sticky-header .tpl-header { position: sticky; top: 0; }
.has-sticky-header.is-scrolled .tpl-header { box-shadow: 0 6px 24px rgba(14, 27, 44, .08); }
.tpl-header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--tpl-header-h); }
.tpl-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none !important; color: var(--re-ink); flex: none; }
.tpl-brand__mark { color: var(--re-ink); display: inline-flex; }
.tpl-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.tpl-brand__text strong { font-family: var(--re-font-display); font-size: 1.32rem; letter-spacing: -.01em; color: inherit; }
.tpl-brand__text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--re-muted); margin-top: .2rem; }
.tpl-brand__logo { max-height: 46px; width: auto; display: block; }
.tpl-brand__logo--light { display: none; }

/* transparent header on hero pages */
.has-transparent-header .tpl-header { position: absolute; left: 0; right: 0; top: auto; background: transparent; border-color: transparent; }
.has-transparent-header .tpl-topbar + .tpl-header { top: 38px; }
.has-transparent-header.has-sticky-header .tpl-header { position: fixed; top: 0; }
.has-transparent-header.has-sticky-header .tpl-topbar + .tpl-header { top: 38px; }
.has-transparent-header:not(.is-scrolled) .tpl-header { --nav-color: #fff; }
.has-transparent-header:not(.is-scrolled) .tpl-brand, .has-transparent-header:not(.is-scrolled) .tpl-brand__mark { color: #fff; }
.has-transparent-header:not(.is-scrolled) .tpl-brand__text small { color: rgba(255, 255, 255, .75); }
.has-transparent-header:not(.is-scrolled) .tpl-brand__logo--light { display: block; }
.has-transparent-header:not(.is-scrolled) .tpl-brand__logo--light ~ .tpl-brand__logo--dark, .has-transparent-header:not(.is-scrolled) .tpl-brand__logo--dark:has(+ .tpl-brand__logo--light) { display: none; }
.has-transparent-header.is-scrolled .tpl-header { position: fixed; top: 0 !important; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-color: var(--re-line); }
.has-dark-header .tpl-header { background: var(--re-ink); border-color: transparent; --nav-color: #fff; }
.has-dark-header .tpl-brand, .has-dark-header .tpl-brand__mark { color: #fff; }

/* navigation (mod_menu) */
.tpl-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.tpl-nav__cta { display: none; }
.tpl-nav ul { list-style: none; margin: 0; padding: 0; }
.tpl-nav > ul, .tpl-nav .mod-menu { display: flex; align-items: center; gap: .15rem; }
.tpl-nav li { position: relative; }
.tpl-nav a, .tpl-nav .mod-menu__heading, .tpl-nav .nav-header { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; color: var(--nav-color, var(--re-ink)); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.tpl-nav a:hover, .tpl-nav li.active > a, .tpl-nav li.current > a { background: color-mix(in srgb, currentColor 10%, transparent); }
.tpl-nav li.current > a, .tpl-nav li.active > a { box-shadow: inset 0 -2px 0 var(--re-accent); border-radius: 999px 999px 4px 4px; }
.tpl-subtoggle { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: -.35rem; border: 0; background: none; color: var(--nav-color, var(--re-ink)); cursor: pointer; border-radius: 50%; }
.tpl-nav li > ul { position: absolute; left: 0; top: calc(100% + .35rem); min-width: 230px; padding: .45rem; background: var(--re-surface); border: 1px solid var(--re-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(14, 27, 44, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; display: block; }
.tpl-nav li > ul li a { display: flex; color: var(--re-ink); border-radius: 9px; padding: .55rem .75rem; font-size: .92rem; box-shadow: none !important; }
.tpl-nav li > ul li a:hover { background: var(--re-bg); }
.tpl-nav li:hover > ul, .tpl-nav li:focus-within > ul, .tpl-nav li.is-open > ul { opacity: 1; visibility: visible; transform: none; }
.tpl-nav li > ul ul { left: 100%; top: -.45rem; }

.tpl-header__actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.tpl-tool { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--nav-color, var(--re-ink)); text-decoration: none; transition: background .2s; }
.tpl-tool:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: var(--nav-color, var(--re-ink)); }
.tpl-tool__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--re-accent); color: var(--re-ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.tpl-tool__count[hidden] { display: none; }
.tpl-header__cta { margin-left: .5rem; }
.tpl-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.tpl-burger span { display: block; height: 2px; border-radius: 2px; background: var(--nav-color, var(--re-ink)); transition: transform .3s, opacity .2s; }
.nav-open .tpl-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .tpl-burger span:nth-child(2) { opacity: 0; }
.nav-open .tpl-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.tpl-hero { --hero-img: linear-gradient(135deg, #1b3c59 0%, #0e1b2c 60%, #23384d 100%); position: relative; min-height: var(--hero-h, 78vh); display: flex; align-items: center; padding: calc(var(--tpl-header-h) + 3rem) 0 4rem; background: var(--re-ink) var(--hero-img) center / cover no-repeat; color: #fff; isolation: isolate; }
.tpl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 27, 44, calc(var(--hero-overlay, .45) + .15)) 0%, rgba(14, 27, 44, var(--hero-overlay, .45)) 45%, rgba(14, 27, 44, calc(var(--hero-overlay, .45) + .2)) 100%); }
.tpl-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, rgba(14, 27, 44, .25)); }
.has-solid-header .tpl-hero { padding-top: 4rem; }
.tpl-hero__inner { width: 100%; }
.tpl-hero__text { max-width: 860px; margin: 0 auto 2.2rem; text-align: center; }
.tpl-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--re-accent); margin-bottom: 1rem; }
.tpl-hero__title { color: #fff; font-size: clamp(2.2rem, 1.3rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 1rem; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.tpl-hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto; }

/* ---------- breadcrumbs ---------- */
.tpl-breadcrumbs { padding-top: 1.25rem; }
.tpl-breadcrumbs .breadcrumb, .tpl-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--re-muted); background: none; }
.tpl-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 .35rem 0 0; color: #b4bcc7; }
.tpl-breadcrumbs a { color: var(--re-muted); text-decoration: none; }
.tpl-breadcrumbs a:hover { color: var(--re-ink); }
.tpl-breadcrumbs .mod-breadcrumbs__here { display: none; }

/* ---------- main ---------- */
.tpl-main-wrap { padding-block: 2rem 4rem; }
.tpl-main-wrap--flush { padding: 0; max-width: none; }
.tpl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.tpl-main.has-left { grid-template-columns: 280px minmax(0, 1fr); }
.tpl-main.has-right { grid-template-columns: minmax(0, 1fr) 320px; }
.tpl-main.has-left.has-right { grid-template-columns: 260px minmax(0, 1fr) 300px; }
.tpl-content { min-width: 0; }
.is-home .tpl-main-wrap { padding-top: 3.5rem; }
.tpl-sidebar { position: sticky; top: calc(var(--re-header-offset, 80px) + 1rem); display: grid; gap: 1.25rem; }

/* module chromes */
.tpl-mod--block { background: var(--re-surface); border: 1px solid var(--re-line); border-radius: var(--re-radius); padding: 1.35rem; }
.tpl-mod--block .tpl-mod__title { font-family: var(--tpl-font); font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.tpl-content > .tpl-mod--block { margin-bottom: 1.5rem; }
.tpl-band { padding-block: clamp(3rem, 6vw, 5.5rem); }
.tpl-band:nth-of-type(even) { background: var(--re-surface); }
.tpl-band__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.tpl-mod--section .tpl-mod__title { text-align: center; margin: 0 auto 2.25rem; max-width: 760px; }
.tpl-mod--section .tpl-mod__title::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--re-accent); margin: .9rem auto 0; }
.tpl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.tpl-reveal.is-in { opacity: 1; transform: none; }

/* CTA band */
.tpl-cta { padding-block: 3.5rem; }
.tpl-cta .tpl-container > * { background: linear-gradient(120deg, var(--re-ink), var(--re-primary)); color: #fff; border-radius: calc(var(--re-radius) + 8px); padding: clamp(2rem, 5vw, 3.5rem); }
.tpl-cta h2, .tpl-cta h3 { color: #fff; }

/* ---------- Joomla core content ---------- */
.com-content-article, .blog, .com-content-category, .com-users, .com-contact, .com-finder, .com-tags { background: var(--re-surface); border: 1px solid var(--re-line); border-radius: var(--re-radius); padding: clamp(1.25rem, 3vw, 2.5rem); }
.blog-item, .com-content-category-blog__item { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--re-line); }
.article-info, .com-content-article__info { font-size: .85rem; color: var(--re-muted); }
.page-header h1, .page-header h2 { margin-bottom: 1rem; }
.item-image img, .com-content-article__image img { border-radius: var(--re-radius); }
.com-users .control-group, .com-contact .control-group { margin-bottom: 1rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--re-line); min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--re-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--re-primary) 14%, transparent); }
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.15rem; }
.btn-primary { background: var(--re-primary); border-color: var(--re-primary); }
.btn-primary:hover, .btn-primary:focus { background: color-mix(in srgb, var(--re-primary) 82%, #000); border-color: transparent; }
.btn-secondary { background: var(--re-surface); color: var(--re-ink); border-color: var(--re-line); }
.pagination .page-link { border-radius: 999px !important; margin: 0 .15rem; color: var(--re-ink); }
.pagination .active .page-link { background: var(--re-ink); border-color: var(--re-ink); }
joomla-alert { border-radius: 12px !important; border: 0 !important; box-shadow: 0 6px 24px rgba(14, 27, 44, .08); margin-bottom: 1.25rem; }
#system-message-container:empty { display: none; }
.mod-login .form-control { margin-bottom: .5rem; }
.mod-list, .mod-articles, .latestnews, .mostread { list-style: none; padding: 0; margin: 0; }
.mod-list li, .latestnews li, .mostread li { padding: .45rem 0; border-bottom: 1px solid var(--re-line); }

/* ---------- footer ---------- */
.tpl-footer { background: var(--re-ink); color: rgba(255, 255, 255, .72); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .93rem; }
.tpl-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.tpl-footer a:hover { color: #fff; }
.tpl-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.tpl-brand--footer, .tpl-brand--footer .tpl-brand__mark { color: #fff; }
.tpl-brand--footer .tpl-brand__mark svg rect { fill: rgba(255, 255, 255, .1); }
.tpl-footer__text { margin: 1.1rem 0; max-width: 360px; }
.tpl-footer__contact { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.tpl-footer__contact li { display: flex; align-items: center; gap: .5rem; }
.tpl-footer__contact svg { width: 16px; height: 16px; color: var(--re-accent); }
.tpl-footer .tpl-mod__title { font-family: var(--tpl-font); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.tpl-footer ul { list-style: none; padding: 0; margin: 0; }
.tpl-footer .tpl-mod__body li { padding: .3rem 0; }
.tpl-footer .tpl-mod__body li a { padding: 0; background: none; color: rgba(255, 255, 255, .72); font-weight: 400; }
.tpl-footer .tpl-mod__body li a:hover { color: #fff; }
.tpl-social { display: flex; gap: .5rem; }
.tpl-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.tpl-social a:hover { background: var(--re-accent); border-color: var(--re-accent); color: var(--re-ink); }
.tpl-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.4rem; font-size: .84rem; }
.tpl-footer__bottom ul { display: flex; gap: 1.25rem; }

/* floating buttons */
.tpl-whatsapp, .tpl-top { position: fixed; z-index: 950; right: 1.25rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 10px 28px rgba(14, 27, 44, .22); text-decoration: none; transition: transform .2s, opacity .3s; }
.tpl-whatsapp { bottom: 1.25rem; background: #1fa855; color: #fff; }
.tpl-whatsapp:hover { transform: scale(1.06); color: #fff; }
.tpl-top { bottom: 5.25rem; width: 44px; height: 44px; right: 1.6rem; background: var(--re-surface); color: var(--re-ink); opacity: 0; pointer-events: none; }
.tpl-top.is-visible { opacity: 1; pointer-events: auto; }
body:not(:has(.tpl-whatsapp)) .tpl-top { bottom: 1.25rem; }

/* map search page uses the full viewport */
.is-mapsearch .tpl-main-wrap { padding: 0; }
.is-mapsearch .re-mapsearch { margin: 0; width: 100%; }

/* error / offline */
.tpl-error { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--re-accent) 18%, transparent), transparent 40%), var(--re-ink); color: rgba(255, 255, 255, .8); padding: 2rem; }
.tpl-error__box { text-align: center; max-width: 560px; }
.tpl-error .tpl-brand { color: #fff; margin-bottom: 2rem; gap: .6rem; font-size: 1.15rem; }
.tpl-error__code { font-family: var(--re-font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0; color: var(--re-accent); }
.tpl-error h1 { color: #fff; }
.tpl-error__msg { margin-bottom: 2rem; }
.tpl-error__debug { text-align: left; margin-top: 2rem; font-size: .75rem; background: rgba(0, 0, 0, .3); padding: 1rem; border-radius: 8px; overflow: auto; }
.tpl-offline-form { display: grid; gap: .6rem; max-width: 340px; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .tpl-footer__grid { grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr)); }
  .tpl-main.has-left.has-right { grid-template-columns: 240px minmax(0, 1fr); }
  .tpl-main.has-left.has-right .tpl-sidebar--right { grid-column: 1 / -1; position: static; }
}
@media (max-width: 991px) {
  :root { --tpl-header-h: 66px; }
  .tpl-burger { display: flex; }
  .tpl-header__inner { gap: 1rem; justify-content: space-between; }
  .tpl-header__cta { display: none; }
  .tpl-nav { position: fixed; inset: 0; z-index: 999; display: block; padding: calc(var(--tpl-header-h) + 1rem) 1.25rem 2rem; background: var(--re-surface); overflow: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); --nav-color: var(--re-ink); }
  .nav-open .tpl-nav { transform: none; }
  .nav-open .tpl-header { --nav-color: var(--re-ink); }
  .nav-open .tpl-brand, .nav-open .tpl-brand__mark { color: var(--re-ink) !important; position: relative; z-index: 1001; }
  .tpl-burger, .tpl-header__actions { position: relative; z-index: 1001; }
  .tpl-nav > ul, .tpl-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .tpl-nav a, .tpl-nav .mod-menu__heading { display: flex; padding: .95rem .25rem; border-radius: 0; border-bottom: 1px solid var(--re-line); font-size: 1.08rem; box-shadow: none !important; }
  .tpl-nav li { display: flex; flex-wrap: wrap; align-items: center; }
  .tpl-nav li > a { flex: 1; }
  .tpl-subtoggle { width: 44px; height: 44px; margin: 0; }
  .tpl-nav li > ul { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; }
  .tpl-nav li.is-open > ul { display: block; }
  .tpl-nav__cta { display: flex; margin-top: 1.5rem; width: 100%; }
  .tpl-main.has-left, .tpl-main.has-right, .tpl-main.has-left.has-right { grid-template-columns: minmax(0, 1fr); }
  .tpl-sidebar { position: static; }
  .tpl-hero { min-height: auto; padding-bottom: 3rem; }
  .tpl-topbar__contact span { display: none; }
}
@media (max-width: 640px) {
  .tpl-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .tpl-topbar { display: none; }
  .has-transparent-header .tpl-topbar + .tpl-header { top: 0; }
  .tpl-tool { width: 38px; height: 38px; }
  .tpl-brand__text strong { font-size: 1.1rem; }
  .tpl-brand__text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tpl-reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .tpl-topbar, .tpl-header, .tpl-footer, .tpl-whatsapp, .tpl-top, .tpl-breadcrumbs { display: none !important; }
  body { background: #fff; }
}
