/* Razertech — Cobalt design system, laid out after the supplied templates
   Palette: Cobalt #110EC5 · Midnight #101010 · Ice White #F5F7FA · Silver #D9DCE1 · Steel #8A9099
   Type: Gutica (iFonts) */

@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-extrabold.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Gutica'; src: url('../fonts/gutica-black.otf') format('opentype'); font-weight: 900; font-display: swap; }

:root {
  --cobalt: #110ec5;
  --cobalt-700: #0b0994;
  --cobalt-900: #08066b;
  --cobalt-200: #c9c8fb;
  --cobalt-100: #e1e0fd;
  --cobalt-50: #efeffe;
  --cobalt-light: #9f9dff;
  --midnight: #101010;
  --bg: #f5f7fa;          /* Ice White — page background */
  --card: #ffffff;
  --soft: #eceef2;        /* tinted boxes (feature strip, apart cards) */
  --silver: #d9dce1;
  --steel: #8a9099;
  --text: #101010;
  --text-2: #50555f;
  --line: #e2e5ea;
  --slate: #23262e;       /* contact page cards */

  --font: 'Gutica', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgb(16 16 16 / .05), 0 4px 14px rgb(16 16 16 / .05);
  --shadow: 0 18px 40px -18px rgb(16 16 16 / .28);
  --gutter: clamp(16px, 4vw, 40px);
  --edge: clamp(8px, 1vw, 12px);   /* gap between viewport and hero card */
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; } /* nothing can widen the page on phones */
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cobalt); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
.accent { color: var(--cobalt); }
.muted { color: var(--text-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(24px, 4vw, 48px) 0; }
.section--white { background: var(--card); }
.section--dark { background: var(--midnight); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .9rem; }
.eyebrow--light { color: var(--cobalt-light); }
.eyebrow--plain { color: var(--midnight); letter-spacing: .1em; }
.eyebrow--plain .icon { width: 1.15em; height: 1.15em; }
.eyebrow--tiny { font-size: .68rem; color: var(--cobalt); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-700); }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { background: #2b2b33; }
.btn-white, .btn-light { background: #fff; color: var(--midnight); }
.btn-white:hover, .btn-light:hover { background: var(--cobalt-50); }
.btn-outline { border-color: var(--silver); background: #fff; color: var(--midnight); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn-outline-accent { border-color: var(--cobalt-light); color: #fff; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.btn-outline-accent:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-block { width: 100%; }
.btn-square { border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.btn-sm { min-height: 40px; padding: 0 18px; }
.link-caps { display: inline-flex; align-items: center; gap: .5em; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.link-caps .icon { width: 1.2em; height: 1.2em; transition: transform .2s var(--ease); }
a:hover > .link-caps .icon, .link-caps:hover .icon { transform: translateX(3px); }
.link-caps--dark { color: var(--midnight); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--cobalt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center-link { text-align: center; margin-top: 40px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.icon-btn:hover { background: rgb(255 255 255 / .28); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--light { background: var(--bg); color: var(--midnight); }
.icon-btn--light:hover { background: var(--soft); }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-open { display: none; }

/* =========================================================
   HEADER — floating bar, the same on every page
   ========================================================= */
.brand { flex: none; display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
.site-header { position: fixed; z-index: 45; top: 12px; left: 0; right: 0; padding: 0 var(--gutter); }
.header-inner { max-width: var(--maxw); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding: 0 10px 0 20px; background: rgb(255 255 255 / .94); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-radius: 18px; box-shadow: 0 10px 30px -16px rgb(16 16 16 / .25); transition: box-shadow .3s; }
.site-header.is-scrolled .header-inner { box-shadow: 0 16px 40px -14px rgb(16 16 16 / .38); }
.header-nav { display: none; margin: 0 auto; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn { display: none; }
@media (min-width: 1280px) {
  .header-nav { display: block; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { display: inline-flex; }
  .header-actions .nav-toggle { display: none; }
}
@media (max-width: 600px) { .header-inner { height: 58px; padding-left: 16px; } .brand-logo { height: 30px; } }
/* Light pages start below the bar; photo heroes run underneath it */
.header-light main { padding-top: 76px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 3px; padding: 10px clamp(8px, .8vw, 13px); font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--midnight); border-radius: 999px; transition: color .2s, background .2s; }
button.nav-link { border: 0; background: none; cursor: pointer; }
.nav-link:hover, .has-menu.is-open > .nav-link { color: var(--cobalt); }
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--cobalt); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cobalt); }
.nav-caret { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.has-menu.is-open .nav-caret { transform: rotate(180deg); }

.submenu { position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; z-index: 40; min-width: 290px; padding: 8px; background: #fff; border-radius: var(--r); box-shadow: 0 24px 60px -18px rgb(16 16 16 / .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.submenu::before { content: ''; position: absolute; inset: -18px 0 auto; height: 18px; }
.has-menu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--midnight); }
.submenu a .icon { color: var(--cobalt); background: var(--cobalt-50); padding: 7px; width: 32px; height: 32px; border-radius: 9px; }
.submenu a:hover { background: var(--bg); }
.submenu a[aria-current="page"] { background: var(--cobalt-50); color: var(--cobalt); font-weight: 600; }

/* Mobile drawer: cobalt gradient, large links with arrows and rules between them, socials at the bottom */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: linear-gradient(170deg, #2a46f5 0%, var(--cobalt) 50%, var(--cobalt-700) 100%); color: #fff; padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom)); overflow: hidden; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.nav-open .drawer { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(12px, 4vh, 44px); }
.drawer-head .brand-logo { height: 30px; }
.drawer-head .icon-btn { background: none; }
.drawer .nav-list { flex-direction: column; align-items: stretch; }
.drawer .nav-list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgb(255 255 255 / .45); }
.drawer .nav-link { flex: 1; justify-content: space-between; gap: 16px; color: #fff; font-size: clamp(1.3rem, min(8.5vw, 4.6vh), 2.6rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; text-transform: none; padding: clamp(6px, 1.3vh, 12px) 0; border-radius: 10px; }
.drawer .nav-arrow { width: 26px; height: 26px; stroke-width: 1.4; opacity: .9; transition: transform .2s var(--ease); }
.drawer .nav-link:hover .nav-arrow { transform: translate(2px, -2px); }
.drawer .nav-list > li:has(> .nav-link[aria-current="page"]), .drawer .nav-list > li:has(> .nav-link.is-current) { border-bottom: 2px solid #7cc4ff; }
.drawer .nav-link[aria-current="page"] .nav-arrow, .drawer .nav-link.is-current .nav-caret { color: #7cc4ff; opacity: 1; stroke-width: 2; }
.drawer .nav-link[aria-current="page"]::after, .drawer .nav-link.is-current::after { display: none; }
.drawer button.nav-link { width: 100%; text-align: left; }
.drawer .has-menu.is-open > .nav-link { color: #fff; }
.drawer .nav-caret { width: 26px; height: 26px; stroke-width: 1.4; opacity: .9; }
.drawer .submenu { position: static; translate: none; transform: none; opacity: 1; visibility: visible; display: none; width: 100%; min-width: 0; background: none; box-shadow: none; padding: 0 0 8px; }
.drawer .submenu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.drawer .submenu a { gap: 8px; padding: 6px; font-size: .8rem; line-height: 1.2; }
.drawer .submenu a .icon { width: 26px; height: 26px; padding: 5px; border-radius: 7px; }
.drawer .submenu::before { display: none; }
.drawer .has-menu.is-open .submenu { display: block; }
.drawer .submenu a { color: rgb(255 255 255 / .9); }
.drawer .submenu a .icon { background: rgb(255 255 255 / .12); color: #fff; }
.drawer .submenu a:hover { background: rgb(255 255 255 / .08); }
.drawer .submenu a[aria-current="page"] { background: rgb(255 255 255 / .14); color: #fff; }
.drawer-social { margin-top: auto; padding-top: 20px; }
.drawer:has(.has-menu.is-open) .drawer-social { display: none; }
.drawer-social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .7); transition: background .2s, color .2s; }
.drawer-social a:hover { background: #fff; color: var(--cobalt); }
.drawer-social .icon { width: 19px; height: 19px; }
/* very short screens (phone on its side): allow scrolling rather than cut links off */
@media (max-height: 460px) { .drawer { overflow-y: auto; } }

/* ---------- Floating share + WhatsApp buttons ---------- */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.share-fab { position: relative; }
.share-toggle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--cobalt); color: #fff; box-shadow: 0 12px 28px -8px rgb(17 14 197 / .55); transition: transform .2s var(--ease), background .2s; }
.share-toggle:hover { transform: scale(1.06); background: var(--cobalt-700); }
.share-toggle .icon { width: 24px; height: 24px; }
.share-toggle[aria-expanded="true"] { background: var(--midnight); }
.share-menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: 230px; padding: 8px; background: #fff; border-radius: var(--r); box-shadow: 0 24px 60px -18px rgb(16 16 16 / .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.share-fab.is-open .share-menu { opacity: 1; visibility: visible; transform: none; }
.share-menu-title { margin: 6px 10px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.share-menu ul { list-style: none; margin: 0; padding: 0; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font-size: .92rem; font-weight: 500; color: var(--midnight); text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); }
.share-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; flex: none; }
.share-ico .icon { width: 17px; height: 17px; }
.share-ico--whatsapp { background: #25d366; }
.share-ico--x { background: #000; }
.share-ico--linkedin { background: #0a66c2; }
.share-ico--reddit { background: #ff4500; }
.share-ico--copy, .share-ico--native { background: var(--cobalt-50); color: var(--cobalt); }
.share-copied { color: #1a7f37; font-size: .8rem; margin-left: auto; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgb(16 16 16 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: clamp(16px, 10vh, 120px) var(--gutter) 24px; }
.search-panel { width: 100%; max-width: 720px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 40px 80px -20px rgb(0 0 0 / .5); overflow: hidden; max-height: calc(100vh - 48px); display: flex; flex-direction: column; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.search-form > .icon { color: var(--cobalt); width: 22px; height: 22px; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.15rem; padding: 14px 0; background: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-suggest { overflow-y: auto; padding: 8px; }
.search-hint { padding: 14px; margin: 0; color: var(--text-2); font-size: .95rem; }
.search-hint button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; margin: 4px 2px; font-size: .9rem; }
.search-hint button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.result { display: block; padding: 14px 16px; border-radius: 14px; }
.result:hover, .result.is-active { background: var(--bg); }
.result-type { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); background: var(--cobalt-50); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.result-title { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.result-snippet { display: block; font-size: .9rem; color: var(--text-2); margin-top: 4px; }
.result mark { background: var(--cobalt-100); color: var(--cobalt-900); border-radius: 3px; padding: 0 2px; }
.search-all { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line); }
.search-empty { padding: 22px 16px; color: var(--text-2); margin: 0; }

/* =========================================================
   HOME HERO — "Home and Nav bar" template
   ========================================================= */
.home-hero, .img-hero { padding: 0; }
.home-hero-card, .img-hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 0; background: var(--cobalt-900); color: #fff; }
.home-hero-card { min-height: max(640px, min(100vh, 920px)); display: flex; flex-direction: column; padding: 130px clamp(22px, 4vw, 52px) clamp(24px, 4vw, 40px); }
.home-hero-bg, .img-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgb(8 6 60 / .7) 0%, rgb(8 6 60 / .25) 60%, transparent 100%), linear-gradient(0deg, rgb(8 6 60 / .55), transparent 45%); }
/* the headline runs to roughly the middle of the screen */
.home-hero-content { max-width: min(100%, 50vw); position: relative; z-index: 2; }
@media (max-width: 899px) { .home-hero-content { max-width: 100%; } }
.home-hero h1 { font-size: clamp(2.6rem, 8.4vw, 8.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; margin-bottom: .45em; }
.home-hero-content > p { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgb(255 255 255 / .88); margin-bottom: 28px; }
.hero-float { position: absolute; top: 120px; right: clamp(20px, 3vw, 40px); z-index: 3; display: none; gap: 14px; align-items: stretch; padding: 10px; width: 330px; border-radius: 18px; background: #fff; color: var(--midnight); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .45); transition: background .2s; }
.hero-float:hover { background: #fff; transform: translateY(-2px); }
.hero-float img { width: 116px; height: 104px; object-fit: cover; object-position: top; border-radius: 12px; flex: none; }
.hero-float-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.hero-float strong { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.hero-float small { font-size: .8rem; color: var(--text-2); line-height: 1.3; }
.hero-float em { font-style: normal; align-self: flex-start; margin-top: 8px; padding: 7px 16px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-chips { position: relative; z-index: 3; list-style: none; margin: auto 0 0; padding: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.hero-chips a { display: block; padding: 9px 18px; border-radius: 999px; font-size: .85rem; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.hero-chips a:hover { background: rgb(255 255 255 / .28); }
.hero-word { position: absolute; left: 0; right: 0; bottom: -.2em; margin: 0; z-index: 1; text-align: center; font-size: clamp(5rem, 21vw, 19rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: rgb(255 255 255 / .2); pointer-events: none; user-select: none; }
@media (min-width: 900px) {
  .hero-float { display: flex; }
  .home-hero-content { margin-top: 4vh; }
  .hero-chips { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(110px, 15vw, 220px); justify-content: flex-end; max-width: 470px; padding: 0; margin: 0; }
}

/* ---------- Page hero with photo — "solar-clean-energy-services" template ---------- */
.img-hero-card { min-height: max(560px, min(82vh, 760px)); display: flex; flex-direction: column; justify-content: flex-end; padding: 130px clamp(22px, 4vw, 52px) clamp(28px, 4vw, 48px); }
/* Phones: the heading starts just below the header bar instead of under a tall empty photo */
@media (max-width: 699px) { .img-hero-card { min-height: 0; padding-top: 108px; padding-bottom: 32px; } .img-hero-card + * , .img-hero + .section { padding-top: 40px; } }
.img-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 6 60 / .78) 0%, rgb(8 6 60 / .35) 55%, rgb(8 6 60 / .1)), linear-gradient(0deg, rgb(16 16 16 / .45), transparent 50%); }
.img-hero-content { max-width: 620px; }
.img-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
.img-hero-content > p { color: rgb(255 255 255 / .85); max-width: 34em; }
.img-hero .crumbs ol { color: rgb(255 255 255 / .7); }
.glass-cards { display: none; position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(28px, 4vw, 48px); gap: 12px; }
.glass-card { width: 172px; padding: 8px; border-radius: 14px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s; }
.glass-card:hover { background: rgb(255 255 255 / .26); }
.glass-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }
.glass-card span { display: block; padding: 8px 4px 2px; font-size: .82rem; font-weight: 600; line-height: 1.25; }
.glass-card small { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt-200); margin-bottom: 2px; }
@media (min-width: 1000px) { .glass-cards { display: flex; } }

/* Same gap from the nav to the first content on every light page (About page is the benchmark) */
:root { --page-top: clamp(36px, 6vw, 72px); }
.header-light main > section:first-child { padding-top: var(--page-top); }
.header-light main > .article:first-child .article-head { padding-top: var(--page-top); }

/* ---------- Light page head — "About us page" template ---------- */
.page-head { padding: var(--page-top) 0 clamp(24px, 4vw, 40px); }
.page-head-row { display: grid; gap: 16px 60px; align-items: start; }
.page-head-side { padding-top: 6px; }
.page-head h1 { margin: 0; font-weight: 500; }
.page-head-side p { color: var(--text-2); font-size: .95rem; max-width: 30em; margin: 0; }
.page-head-side .hero-actions { margin-top: 18px; }
.page-head-img { margin: clamp(28px, 4vw, 44px) 0 0; }
.page-head-img img { width: 100%; aspect-ratio: 21/8; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 699px) { .page-head-img img { aspect-ratio: auto; height: auto; } } /* phones: the whole picture */
@media (min-width: 900px) { .page-head-row { grid-template-columns: 1.3fr 1fr; } }
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--steel); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .6; }
.crumbs a:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.section-head.is-center .section-lede { margin: 12px auto 0; }
.section-lede { color: var(--text-2); max-width: 38em; margin: 0; font-size: .95rem; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: clamp(48px, 7vw, 80px) 0 22px; }
.row-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.section > .container > .row-head:first-child { margin-top: 0; }
.split-head { display: grid; gap: 18px 60px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.split-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.split-head p { color: var(--text-2); margin: 0; max-width: 30em; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Bento (home) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1fr 1.05fr 1fr; } }
.bento-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.bento-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.bento-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: .5em; }
.bento-card p { color: var(--text-2); font-size: .9rem; flex: 1; margin-bottom: 14px; }
.icon-circle { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cobalt); color: var(--cobalt); flex: none; }
.icon-circle .icon { width: 15px; height: 15px; }
.bento-card--accent { background: var(--cobalt); color: #fff; }
.bento-card--accent .bento-img { margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 12px; }
.bento-card--accent p { color: rgb(255 255 255 / .85); }
.bento-card--accent .icon-circle { border-color: #fff; color: #fff; }
.bento-card--accent .link-caps { color: #fff; }
.bento-stack { display: grid; gap: 16px; }
.bento-mini { padding: 20px 22px; }
.bento-mini p { flex: 0; }
.bento-mini--img { padding-bottom: 0; }
.bento-mini--img img { margin: 4px -22px 0; width: calc(100% + 44px); max-width: none; aspect-ratio: 16/6; object-fit: cover; }

/* ---------- Tall image cards — "Prossime partenze" ---------- */
.tall-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: thin; }
@media (min-width: 640px) { .tall-row { grid-auto-columns: minmax(220px, 40%); } }
@media (min-width: 1000px) { .tall-row { grid-auto-columns: calc((100% - 36px) / 4.3); } }
@media (min-width: 1100px) { .tall-row--5 { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } }
@media (min-width: 1360px) { .tall-row { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; } .tall-row--5 { grid-template-columns: repeat(5, 1fr); } }
.tall-card { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 3/4.3; border-radius: var(--r); overflow: hidden; color: #fff; background: var(--cobalt-900); isolation: isolate; }
.tall-card > img, .tall-card > .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tall-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 16 16 / .05) 25%, rgb(10 10 20 / .88) 100%); }
.tall-card:hover > img { transform: scale(1.05); }
.tall-badge { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 42px; height: 46px; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--midnight); }
.tall-badge .icon { width: 18px; height: 18px; color: var(--cobalt); }
.tall-badge small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; line-height: 1; margin-top: 3px; }
.tall-body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.tall-body strong { font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.tall-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: rgb(255 255 255 / .85); }
.tall-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.tall-meta .icon { width: 14px; height: 14px; }
.tall-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.tall-foot em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.round-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--midnight); flex: none; transition: background .2s, color .2s; }
.round-arrow .icon { width: 16px; height: 16px; }
.tall-card:hover .round-arrow { background: var(--cobalt); color: #fff; }
.media-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--cobalt-900), var(--cobalt)); color: rgb(255 255 255 / .9); aspect-ratio: 16/10; }
.media-placeholder span { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* Feature strip (bottom of Home template) */
.feature-strip { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 24px; display: grid; gap: 22px; background: var(--soft); border-radius: var(--r); }
.feature-strip li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.feature-strip .icon { width: 22px; height: 22px; color: var(--cobalt); margin-top: 1px; }
.feature-strip h3 { font-size: .9rem; margin-bottom: .3em; }
.feature-strip p { font-size: .8rem; color: var(--text-2); margin: 0; line-height: 1.5; }
@media (min-width: 640px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-strip { grid-template-columns: repeat(5, 1fr); } .feature-strip li + li { border-left: 1px solid var(--silver); padding-left: 20px; } }

/* =========================================================
   WHO WE ARE — "Who we are section" template
   ========================================================= */
.who { display: grid; gap: 26px 56px; }
.who-title { font-size: clamp(3.4rem, 9vw, 7rem); font-weight: 400; line-height: .92; letter-spacing: -.045em; margin: 0; }
.who-lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.4; margin: 0; }
.who-points { align-self: end; }
.who-points > div { border-top: 1px solid var(--cobalt); padding: 14px 0 22px; }
.who-points h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: .3em; }
.who-points p { color: var(--text-2); font-size: .92rem; margin: 0; max-width: 26em; }
.who-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.who-foot { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--cobalt); padding-top: 12px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.who-foot a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--cobalt); font-weight: 600; }
.who-foot .icon { width: 1.1em; height: 1.1em; }
@media (min-width: 900px) {
  .who { grid-template-columns: 1fr 1.2fr; grid-template-areas: 'title lead' 'points img' 'foot foot'; }
  .who-title { grid-area: title; } .who-lead { grid-area: lead; } .who-points { grid-area: points; } .who-img { grid-area: img; } .who-foot { grid-area: foot; }
}

/* ---------- Clients — "our clients page or section" template ---------- */
.clients-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.clients-head p { color: var(--text-2); }
.line-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; font-size: clamp(.95rem, 1.4vw, 1.1rem); font-weight: 500; letter-spacing: .35em; text-transform: uppercase; margin: 0 0 22px; }
.clients-head .line-title { margin: 0 0 22px; }
.line-title::before { content: ''; }
.line-title::after { content: ''; height: 1px; background: var(--midnight); }
.line-title--left { grid-template-columns: auto 1fr; margin: 0 0 28px; }
.line-title--left::before { display: none; }
/* inner dividing lines only: each cell draws its right and bottom line, and the outer edge is clipped away */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.logo-grid li { display: grid; place-items: center; height: 130px; padding: 18px 14px; border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver); margin: 0 -1px -1px 0; }
.logo-grid img { max-height: 64px; width: auto; max-width: 85%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.logo-grid li:hover img { transform: scale(1.06); }
/* white logos supplied without a background */
.logo-grid li:has(img[src*="heritage-logo"]) { background: var(--cobalt-900); }
.logo-grid img[src*="heritage-logo"] { mix-blend-mode: normal; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .logo-grid { grid-template-columns: repeat(6, 1fr); } }
.clients-page { background: var(--card); }
.sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sheet-grid img { border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }

/* ---------- Google reviews (home, after Our clients) ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.reviews-head h2 { margin: 0; }
.google-summary { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--r); background: var(--bg); transition: background .2s; }
.google-summary:hover { background: var(--soft); }
.google-summary .google-g { width: 38px; height: 38px; }
.google-summary > span { display: flex; flex-direction: column; line-height: 1.25; }
.google-summary strong { font-size: .9rem; }
.google-summary small { color: var(--steel); font-size: .78rem; }
.google-rating { display: inline-flex; align-items: center; gap: 6px; }
.google-rating b { font-size: 1.2rem; }
.stars-row { display: inline-flex; gap: 1px; color: #fbbc04; }
.stars-row .icon { width: 16px; height: 16px; }
.review-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%); gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
@media (min-width: 700px) { .review-row { grid-auto-columns: minmax(270px, 45%); } }
@media (min-width: 1100px) { .review-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } }
.review-card { scroll-snap-align: start; margin: 0; background: var(--bg); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-card header { display: flex; align-items: center; gap: 12px; }
.review-card header > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.review-card strong { font-weight: 600; }
.review-card small { color: var(--steel); font-size: .78rem; }
.review-card .google-g { width: 22px; height: 22px; }
.review-avatar { display: grid; place-items: center; width: 42px; height: 42px; object-fit: cover; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 600; flex: none; }
.review-card blockquote { margin: 0; font-size: .92rem; color: var(--text-2); line-height: 1.6; }
.reviews .center-link { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* =========================================================
   ABOUT — "About us page" template
   ========================================================= */
.panel { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); margin-bottom: 16px; }
.statement-top { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; }
.statement-top h2 { max-width: 19em; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.rating-chip { flex: none; display: inline-flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
.stars { color: #f5a623; letter-spacing: 1px; }
.statement-text { color: var(--text-2); max-width: 40em; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin: 36px 0 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { margin: 0; font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.stat dt { font-size: .82rem; color: var(--steel); margin-top: 12px; max-width: 16em; line-height: 1.45; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.apart-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .apart-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .apart-grid { grid-template-columns: repeat(4, 1fr); } }
.apart-card { background: var(--soft); border-radius: var(--r); padding: 22px; }
.apart-card h3 { font-size: 1rem; margin-top: 18px; }
.apart-card p { color: var(--text-2); font-size: .88rem; margin: 0; }
.icon-square { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cobalt-50); color: var(--cobalt); flex: none; }
.icon-square .icon { width: 20px; height: 20px; }
.icon-square--dark { background: var(--cobalt-900); color: #fff; }
.office-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .office-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .office-grid { grid-template-columns: repeat(4, 1fr); } }
.office-card { background: var(--card); border-radius: var(--r); padding: 24px; }
.office-card h3 { margin-top: 16px; font-size: 1.15rem; }
.office-card h3 span { color: var(--steel); font-weight: 400; }
.office-card p { color: var(--text-2); font-size: .92rem; }

/* =========================================================
   TEAM — "Team page" template
   ========================================================= */
.team-intro { display: grid; gap: 28px 56px; align-items: center; }
.team-intro-img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--r); }
.team-h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; }
.team-intro p { color: var(--text-2); font-size: .95rem; }
@media (min-width: 900px) { .team-intro { grid-template-columns: 1fr 1fr; } }
.stats--divided { margin: clamp(48px, 7vw, 80px) auto; max-width: 820px; text-align: center; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
@media (max-width: 699px) { .stats--divided { text-align: left; } .stats.stats--divided dt { margin-inline: 0; } .stats--divided .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stats--divided dd { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 600; }
.stats--divided dt { margin-inline: auto; font-size: .95rem; }
@media (min-width: 700px) { .stats--divided { grid-template-columns: repeat(3, 1fr); } .stats--divided .stat + .stat { border-left: 1px solid var(--silver); } }
.quote-block { display: grid; gap: 32px 56px; align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.quote-block blockquote { margin: 0; }
.quote-mark { display: block; font-size: 6rem; line-height: .7; color: var(--midnight); height: .6em; margin-bottom: 10px; }
.quote-block p { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.25; font-weight: 500; }
.quote-block p span { color: var(--steel); }
.quote-block footer { display: flex; align-items: center; gap: 22px; border-top: 1px dashed var(--silver); padding-top: 18px; }
.quote-block footer strong { display: block; font-weight: 600; }
.quote-block footer small { color: var(--steel); font-size: .82rem; }
.signature { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 2rem; border-left: 1px solid var(--silver); padding-left: 22px; line-height: 1; }
.quote-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r); }
@media (min-width: 900px) { .quote-block { grid-template-columns: 1fr 1fr; } }
.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 599px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; } .person figcaption { padding-top: 10px; } .person span { font-size: .8rem; } }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.person figcaption { padding-top: 14px; }
.person strong { display: block; font-weight: 600; }
.person span { color: var(--text-2); font-size: .85rem; }
.join-card { display: grid; gap: 28px 56px; align-items: center; }
.join-card img { border-radius: var(--r); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.join-card p:not(.eyebrow) { color: var(--text-2); }
@media (min-width: 900px) { .join-card { grid-template-columns: 1.1fr 1fr; } }

/* Internship */
.intern-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.intern-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 4/3; }
.intern-img--0 { grid-column: 1 / -1; aspect-ratio: 16/9; }
.intern-quote { grid-column: 1 / -1; margin: 0; background: var(--cobalt); color: #fff; border-radius: var(--r); padding: clamp(24px, 4vw, 40px); }
.intern-quote p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; }
.intern-quote footer { display: flex; gap: 10px; align-items: center; }
.intern-quote footer span { color: #ffc94d; letter-spacing: 2px; }
@media (min-width: 1000px) { .intern-grid { grid-template-columns: 1.4fr 1fr 1fr; } .intern-img--0 { grid-column: auto; grid-row: span 2; aspect-ratio: auto; } .intern-quote { grid-column: 2 / -1; } }
.callout { background: var(--cobalt-50); border-radius: 12px; padding: 14px 18px; font-weight: 500; font-size: 1.05rem; }

/* =========================================================
   SERVICE PAGES — "solar-clean-energy-services" template
   ========================================================= */
.overview { display: grid; gap: 32px 64px; align-items: center; }
.overview-img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--r); }
.overview-statement { font-size: clamp(1.25rem, 2.1vw, 1.65rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.stats--two { grid-template-columns: repeat(2, 1fr) !important; margin-top: 28px; }
.stats--two dd { font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 700; }
@media (min-width: 900px) { .overview { grid-template-columns: 1fr 1fr; } }
/* "What we do" band: big title, rule, statement with a round badge, then numbered columns split by lines */
.wwd-title { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 0 0 .35em; }
.wwd-meta { margin: 0; padding-top: 10px; border-top: 1px solid var(--wwd-line); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.wwd { --wwd-line: #3936f2; }
.wwd-intro { display: grid; gap: 22px 40px; align-items: start; padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--wwd-line); }
.wwd-statement { margin: 0; max-width: 21em; font-size: clamp(1.35rem, 2.6vw, 2.05rem); line-height: 1.25; letter-spacing: -.01em; }
.wwd-action { order: 1; margin: 0; }
.wwd-text { margin: 0; max-width: 30em; font-size: .9rem; line-height: 1.55; color: rgb(255 255 255 / .8); }
@media (min-width: 900px) {
  .wwd-intro { grid-template-columns: 1.15fr 1fr; grid-template-areas: 'statement badge' 'statement text'; }
  .wwd-statement { grid-area: statement; }
  .wwd-action { order: 0; grid-area: badge; justify-self: end; }
  .wwd-text { grid-area: text; align-self: end; }
}
.wwd-grid { list-style: none; margin: 0; padding: clamp(28px, 4vw, 40px) 0 0; display: grid; }
.wwd-grid li { display: flex; flex-direction: column; padding: 22px 0; border-top: 1px solid var(--wwd-line); }
.wwd-grid li:first-child { border-top: 0; padding-top: 0; }
.wwd-grid h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); font-weight: 400; letter-spacing: -.01em; margin: 0 0 .7em; }
.wwd-grid p { margin: 0 0 22px; font-size: .86rem; line-height: 1.6; color: rgb(255 255 255 / .8); }
.wwd-num { margin-top: auto; font-size: .95rem; font-weight: 600; color: var(--cobalt-light); }
@media (min-width: 700px) {
  .wwd-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .wwd-grid li, .wwd-grid li:first-child { border-top: 0; padding: 0 20px; border-left: 1px solid var(--wwd-line); }
}
@media (min-width: 700px) and (max-width: 1099px) { .wwd-grid li:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1100px) {
  .wwd-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .wwd-grid li:first-child { border-left: 0; padding-left: 0; }
}
.stack { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stack li { min-width: 0; }
.stack li { display: grid; place-items: center; background: var(--bg); border-radius: var(--r-sm); padding: 18px; aspect-ratio: 3/2; }
.stack img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 900px) { .stack { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stack--wide { grid-template-columns: minmax(0, 1fr) !important; }
.stack--wide li { aspect-ratio: auto; padding: 20px; }
.stack--wide img { max-height: none; width: 100%; max-width: 980px; }
@media (min-width: 900px) { .stack--wide:has(li:nth-child(2)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.deploy-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .deploy-grid { grid-template-columns: 1fr 1fr; } }
.deploy-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); transition: transform .4s var(--ease); }
.deploy-card { display: block; }
.deploy-card:hover img { transform: translateY(-3px); }
.deploy-body { display: block; padding-top: 12px; }
.deploy-body small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.deploy-body strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1.05rem; }
.deploy-body strong .icon { width: 16px; height: 16px; color: var(--cobalt); }

/* Service cards (overview grid) */
.service-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-body .icon-square { margin-bottom: 14px; }
.service-card-body p { color: var(--text-2); font-size: .92rem; flex: 1; }

/* =========================================================
   PRICING — "Pricing Page Design" template
   ========================================================= */
.pricing-page { background: var(--card); }
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 52px); }
.pricing-head h1 { font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.pricing-head p { color: var(--text-2); font-size: .95rem; }
.pricing-page .crumbs ol { justify-content: center; }
.pricing { display: grid; gap: 16px; max-width: 1060px; margin: 0 auto; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; background: #f6f7f8; border-radius: 14px; padding: 24px; }
.section--white .price-card { background: #f6f7f8; }
.price-card h3 { font-size: 1.05rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-promo { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price-promo .icon { width: 13px; height: 13px; }
.price-card.is-featured .price-promo { background: #fff; color: var(--cobalt); }
.price-badge { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--cobalt-50); color: var(--cobalt); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 10px; }
.price strong { font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.price span { color: var(--text-2); font-size: .95rem; }
.price s { width: 100%; color: #d23b3b; font-size: .9rem; }
.price-note { color: var(--text-2); font-size: .9rem; margin-bottom: 22px; }
.price-features-label { font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.price-card .check-list { flex: 1; margin-bottom: 26px; }
.price-card.is-featured { background: var(--midnight); color: #fff; }
.price-card.is-featured .price-note, .price-card.is-featured .price span { color: rgb(255 255 255 / .7); }
.price-card.is-featured .price-badge { background: var(--cobalt); color: #fff; }
.price-card.is-featured .check-list .icon { background: #fff; color: var(--midnight); }
.price-card.is-featured .price s { color: #ff8a8a; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; font-size: .9rem; }
.check-list .icon { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--midnight); color: #fff; stroke-width: 3.2; margin-top: 2px; }
.check-list--light .icon { background: var(--cobalt); }

.hosting-deals { display: grid; gap: 16px; }
@media (min-width: 1000px) { .hosting-deals { grid-template-columns: 1.1fr 1fr 1fr; } }
.deal-card { background: var(--cobalt); color: #fff; border-radius: var(--r); padding: 28px; position: relative; overflow: hidden; }
.deal-card::after { content: ''; position: absolute; width: 240px; height: 240px; right: -80px; top: -80px; border-radius: 50%; border: 46px solid rgb(255 255 255 / .07); }
.deal-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.deal-card h3 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 22px; color: rgb(255 255 255 / .75); }
.deal-price { color: rgb(255 255 255 / .85); }
.deal-price strong { font-size: 2.1rem; color: #fff; display: block; line-height: 1.1; font-weight: 600; }
.billing { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.billing li { display: flex; justify-content: space-between; padding: 11px 15px; border-radius: 10px; background: rgb(255 255 255 / .1); }
.notice-card, .domain-card, .guarantee-card { border-radius: var(--r); padding: 28px; }
.notice-card { background: var(--cobalt); color: #fff; }
.notice-card p { color: rgb(255 255 255 / .82); font-size: .88rem; }
.notice-card h2, .domain-card h2, .guarantee-card h2 { font-size: 1.4rem; }
/* Domain prices, transfer notice (blue), guarantee (black) */
.domain-card { background: var(--card); }
.domain-card > p { color: var(--text-2); font-size: .88rem; }
.guarantee-card { background: var(--midnight); color: #fff; }
.guarantee-card h3 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 22px; color: rgb(255 255 255 / .7); }
.domain-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.domain-table th, .domain-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.domain-table thead th { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.domain-table tbody th { font-weight: 600; }
.domain-table td { text-align: right; font-variant-numeric: tabular-nums; }
.guarantee-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.guarantee-card li { display: flex; gap: 12px; align-items: center; background: rgb(255 255 255 / .08); padding: 16px; border-radius: 12px; font-weight: 600; }
.guarantee-card li .icon { width: 26px; height: 26px; color: var(--cobalt-light); }
.guarantee-card .billing li { justify-content: space-between; padding: 11px 15px; font-weight: 500; }
/* Web hosting page: website development offers that point to the Discounts page */
.dev-offers { display: grid; gap: 28px 64px; align-items: center; }
.dev-offers h2 { max-width: 14em; }
.dev-offers .muted { max-width: 30em; margin-bottom: 22px; }
@media (min-width: 900px) { .dev-offers { grid-template-columns: 1fr 1.1fr; } }
.dev-offers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dev-offers-list a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--bg); transition: background .2s; }
.dev-offers-list a:hover { background: var(--cobalt-50); }
.dev-offers-list a > .icon { color: var(--cobalt); flex: none; transition: transform .2s var(--ease); }
.dev-offers-list a:hover > .icon { transform: translateX(3px); }
.dev-offers-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dev-offers-name em { font-style: normal; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dev-offers-name strong { font-size: 1.05rem; font-weight: 600; }
.dev-offers-name small { color: var(--text-2); font-size: .82rem; }
.dev-offers-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.dev-offers-price s { color: #d23b3b; font-size: .8rem; }
.dev-offers-price b { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.notice summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; border-top: 1px solid var(--line); }
.notice summary::-webkit-details-marker { display: none; }
.notice[open] summary .icon { transform: rotate(180deg); }
.notice p { color: var(--text-2); font-size: .85rem; }

/* =========================================================
   "some sections" template — panels, / boxes, stats, offer cards
   ========================================================= */
.panel--split { display: grid; gap: 28px 48px; }
.panel--split h2, .panel-split-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
@media (min-width: 900px) { .panel--split { grid-template-columns: 1fr 1.2fr; } }
.panel-img { width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-top: 22px; }
.panel-split-head { display: grid; gap: 12px 48px; align-items: end; }
@media (min-width: 900px) { .panel-split-head { grid-template-columns: 1.2fr 1fr; } }
.slash-grid { display: grid; gap: 10px; }
@media (min-width: 600px) { .slash-grid { grid-template-columns: 1fr 1fr; } }
.slash-box { background: #f3f5fb; border-radius: 14px; padding: 18px 20px; }
.slash-box h3 { font-size: .95rem; margin-bottom: .6em; }
.slash-box p { font-size: .85rem; color: var(--text-2); margin: 0; }
.stats--three { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin: 36px 0 28px; }
@media (max-width: 699px) { .stats--three .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) { .stats--three { grid-template-columns: repeat(3, 1fr); } .stats--three .stat + .stat { border-left: 1px solid var(--silver); padding-left: 28px; } }
.stats--three .stat { flex-direction: column; }
.stats--three dd { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 500; }
.stats--three dt { color: var(--text-2); }
.offer-grid { display: grid; gap: 28px 16px; margin-top: 28px; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.offer-pill { position: absolute; top: -14px; left: 18px; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--cobalt); color: var(--cobalt); font-size: .78rem; font-weight: 600; }
.offer-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.offer-img--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--cobalt-900), var(--cobalt)); color: #fff; }
.offer-img--icon .icon { width: 56px; height: 56px; stroke-width: 1.3; }
.offer-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.offer-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; flex: 1; }
.offer-box p { margin: 0 0 12px; font-size: .9rem; }
.offer-box .check-list li { font-size: .84rem; }
.offer-line { color: var(--cobalt); font-size: .85rem; font-weight: 600; margin: 0; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 5px 20px 5px 5px; border-radius: 999px; border: 1.5px solid var(--silver); background: #fff; color: var(--midnight); font-size: .88rem; font-weight: 600; line-height: 1; transition: border-color .2s, background .2s; }
.pill-btn .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--cobalt); color: #fff; stroke-width: 2.1; transition: background .2s; }
.pill-btn:hover { border-color: var(--cobalt); background: var(--cobalt-50); }
.pill-btn:hover .icon { background: var(--cobalt-700); }
.offer-card--ask { background: var(--cobalt-50); border-color: var(--cobalt-100); }
.poster { margin-top: 18px; }
.poster summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--cobalt); }
.poster img { margin-top: 16px; border-radius: var(--r-sm); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
@media (max-width: 699px) { .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 20px; padding: 2px var(--gutter) 6px; scrollbar-width: none; } .filter-bar button { flex: none; } }
.filter-bar button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 500; transition: all .2s; }
.filter-bar button span { color: var(--steel); margin-left: 4px; font-size: .78rem; }
.filter-bar button:hover { border-color: var(--cobalt); }
.filter-bar button[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.filter-bar button[aria-pressed="true"] span { color: rgb(255 255 255 / .6); }
.site-grid { display: grid; gap: 26px 18px; }
@media (min-width: 640px) { .site-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-grid { grid-template-columns: repeat(3, 1fr); } }
.site-card { display: block; margin: 0; color: inherit; }
.site-frame { position: relative; border-radius: 12px; overflow: hidden; background: var(--soft); padding-top: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.site-card:hover .site-frame { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-dots { position: absolute; top: 8px; left: 12px; display: flex; gap: 5px; }
.site-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--silver); }
.site-frame img { width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: top; }
.site-frame { display: block; }
.site-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; align-items: baseline; }
.site-caption strong { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.site-caption strong .icon { width: 15px; height: 15px; color: var(--cobalt); opacity: 0; transition: opacity .2s; }
.site-card:hover .site-caption strong .icon, .site-card:focus-visible .site-caption strong .icon { opacity: 1; }
.site-caption > span { font-size: .78rem; color: var(--steel); white-space: nowrap; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery img { border-radius: var(--r-sm); width: 100%; }
@media (min-width: 900px) { .gallery { columns: 3; } }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; }
.gallery-item img { transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(10 10 14 / .92); display: grid; place-items: center; padding: 60px 16px 16px; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; }
.lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 12px; transform: scaleX(-1); }
.lightbox-next { right: 12px; }
.project-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
.project-card { border-radius: var(--r); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.project-body { padding: 20px 22px 22px; }
.project-body h3 { font-size: 1.2rem; }
.project-body p { color: var(--text-2); font-size: .92rem; }
.project-body .project-cap { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--cobalt-50); color: var(--cobalt); font-weight: 600; font-size: .85rem; }
.project-cap .icon { width: 1em; height: 1em; }

/* =========================================================
   NEWS — "News Page" template
   ========================================================= */
.news-page { background: var(--card); padding-top: clamp(28px, 4vw, 48px); }
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; border-bottom: 2px solid var(--midnight); padding-bottom: 12px; margin-bottom: 22px; }
.news-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.news-head p { margin: 0; color: var(--steel); font-size: .9rem; }
.news-grid { display: grid; gap: 28px 18px; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } .news-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.news-card-media { display: block; overflow: hidden; background: var(--soft); }
.news-card-media img, .news-card-media .media-placeholder { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { padding-top: 12px; }
.news-topic { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .4em; }
.news-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.28; margin-bottom: .35em; }
.news-card h3 a:hover { color: var(--cobalt); }
.news-meta { font-size: .76rem; color: var(--steel); margin: 0 0 .6em; }
.news-excerpt { font-size: .85rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* Phones: compact rows (small picture beside the title) so a long list stays easy to scan */
@media (max-width: 699px) {
  .news-grid--4 { gap: 0; }
  .news-grid--4 .news-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .news-grid--4 .news-card-media img, .news-grid--4 .news-card-media .media-placeholder { aspect-ratio: 1; border-radius: 10px; }
  .news-grid--4 .news-card-media { border-radius: 10px; }
  .news-grid--4 .media-placeholder span { font-size: .6rem; padding: 6px; text-align: center; }
  .news-grid--4 .news-card-body { padding-top: 0; }
  .news-grid--4 .news-card h3 { font-size: .95rem; }
  .news-grid--4 .news-excerpt { -webkit-line-clamp: 2; font-size: .8rem; }
}

@media (max-width: 699px) { .news-grid--feed > .news-card:nth-child(n+3) { display: none; } }
.mag-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.mag-section-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.mag-section-head span { font-size: .8rem; color: var(--cobalt); }

/* Article */
.article { background: var(--card); }
.article-head { max-width: 900px; margin: 0 auto; padding: clamp(32px, 5vw, 60px) var(--gutter) 0; text-align: center; }
.article-head .crumbs ol { justify-content: center; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
.article-meta { color: var(--steel); font-size: .9rem; margin: 0; }
.article-cover { margin: clamp(24px, 4vw, 40px) 0 0; }
.article-cover img { width: 100%; border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; }
.prose { max-width: 740px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter); font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin: 1.8em 0 .6em; font-weight: 600; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-sm); margin: 1.6em auto; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--cobalt-50); border-radius: 12px; font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--midnight); color: #e8e8ff; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; padding: 0; }
.prose .lead { font-size: 1.18rem; color: var(--text); }
.prose--legal { padding-top: 0; }
.prose--legal > p:first-child { color: var(--steel); font-size: .9rem; }
.legal-wrap { background: var(--card); padding: clamp(32px, 5vw, 56px) 0; }
.article-foot { max-width: 740px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); }
.share { display: flex; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { font-weight: 600; margin-right: auto; }
.share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); }
.share a:hover { background: var(--cobalt); color: #fff; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; }
.prev-next a { display: block; font-weight: 600; line-height: 1.3; }
.prev-next a:hover { color: var(--cobalt); }
.prev-next small { display: block; font-weight: 500; color: var(--steel); margin-bottom: 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.prev-next .is-next { text-align: right; }
/* Article with a "More news" column on the right (below the article on phones) */
.article-layout { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.article-main { min-width: 0; }
.article-main .article-head, .article-main .prose, .article-main .article-foot { padding-inline: 0; }
.article-main .article-foot { padding-bottom: 0; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .article-side { position: sticky; top: 96px; margin-top: var(--page-top); }
}
.side-news { list-style: none; margin: 0 0 18px; padding: 0; }
.side-news a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-news img, .side-news-ph { width: 84px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--cobalt-50); }
.side-news span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.side-news small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.side-news strong { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.side-news a:hover strong { color: var(--cobalt); }
.side-news time { font-size: .74rem; color: var(--steel); }

/* =========================================================
   CONTACT — light theme, same chrome as the rest of the site
   ========================================================= */
.contact-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.contact-card { background: var(--card); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-card h2 { font-size: 1.25rem; margin: 10px 0 4px; }
.contact-big { font-size: 1.15rem; font-weight: 600; color: var(--midnight); word-break: break-word; }
.contact-big:hover { color: var(--cobalt); }
.contact-small { font-size: .82rem; color: var(--steel); margin: 4px 0 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
@media (min-width: 600px) { .office-list { grid-template-columns: 1fr 1fr; } }
.office-list li { display: flex; flex-direction: column; font-size: .88rem; color: var(--text-2); line-height: 1.45; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.office-list strong { color: var(--midnight); font-weight: 600; }
.socials--boxed { margin-top: 10px; }
.socials--boxed a { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--midnight); }
.socials.socials--boxed a:hover { background: var(--cobalt); color: #fff; }
.contact-map { height: clamp(300px, 40vw, 440px); border-radius: var(--r); overflow: hidden; background: var(--soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.two-col { display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.15fr; } }

/* ---------- Consultation booking — "Select Date and Time" template ---------- */
.booking { max-width: 980px; margin: 0 auto; scroll-margin-top: 96px; }
.booking fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking legend { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; text-align: center; width: 100%; margin-bottom: 24px; outline: none; }
.booking-steps { list-style: none; margin: 0 auto 32px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font-size: .82rem; font-weight: 600; color: var(--steel); }
.booking-steps li { display: inline-flex; align-items: center; gap: 8px; }
.booking-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--silver); font-size: .75rem; }
.booking-steps .is-current { color: var(--midnight); }
.booking-steps .is-current span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.booking-steps .is-done span { background: var(--cobalt-50); border-color: var(--cobalt-200); color: var(--cobalt); }
/* Consultation type: tabs (icon + label, line under the selected one), details in a panel below */
.type-tabs { display: flex; gap: clamp(8px, 3vw, 32px); padding: 14px clamp(14px, 3vw, 24px) 0; margin-bottom: 0; background: var(--card); border-radius: var(--r) var(--r) 0 0; border-bottom: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.type-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 2px 14px; font-size: .95rem; font-weight: 500; color: var(--steel); cursor: pointer; transition: color .2s; }
.type-tab:hover { color: var(--midnight); }
.type-tab input { position: absolute; opacity: 0; pointer-events: none; }
.type-tab .icon { width: 20px; height: 20px; }
.type-tab.is-selected { color: var(--midnight); font-weight: 600; }
.type-tab.is-selected .icon { color: var(--cobalt); }
.type-tab.is-selected::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; border-radius: 2px; background: var(--midnight); }
.type-tab:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.type-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 22px; padding: 18px clamp(14px, 3vw, 24px); background: var(--card); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-sm); }
.type-meta { font-size: .9rem; color: var(--text-2); }
.type-price { margin-top: 8px; font-size: .9rem; display: flex; flex-direction: column; }
.type-price b { font-size: 1.25rem; color: var(--cobalt); }
.type-price small { color: var(--steel); font-size: .78rem; margin-top: 2px; }
.booking .field--radios { display: block; }
.booking .field--radios legend { font-size: .82rem; font-weight: 600; text-align: left; margin: 0 0 12px; padding: 0; width: auto; }
.field--radios label { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; margin: 0 22px 8px 0; cursor: pointer; }
.field--radios input { accent-color: var(--cobalt); width: 18px; height: 18px; }
.slot-picker { display: grid; gap: 28px 40px; }
@media (min-width: 800px) { .slot-picker { grid-template-columns: 1.15fr 1fr; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-nav { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; display: inline-grid; place-items: center; color: var(--midnight); }
.cal-nav .icon { width: 18px; height: 18px; }
.cal-nav--prev .icon { transform: rotate(90deg); }
.cal-nav--next .icon { transform: rotate(-90deg); }
.cal-nav:hover:not(:disabled) { background: var(--bg); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; font-weight: 600; color: var(--midnight); padding: 6px 0; }
.cal-day { aspect-ratio: 1; max-width: 46px; width: 100%; justify-self: center; border: 0; border-radius: 50%; background: none; font-size: .9rem; font-weight: 500; color: var(--midnight); transition: background .15s, color .15s; }
.cal-day:hover:not(:disabled) { background: var(--cobalt-50); }
.cal-day:disabled { color: var(--silver); cursor: default; }
.cal-day.is-out { visibility: hidden; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--cobalt-200); }
.cal-day.is-selected { background: var(--cobalt); color: #fff; box-shadow: 0 0 0 4px var(--cobalt-100); }
.sched-card { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--cobalt); color: #fff; }
.sched-card h4 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; }
.sched-pill { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--midnight); font-size: .88rem; font-weight: 500; }
.sched-notify { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sched-bell { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--cobalt-900); flex: none; }
.sched-bell .icon { width: 18px; height: 18px; }
.sched-notify > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sched-notify small { color: rgb(255 255 255 / .75); font-size: .8rem; }
.sched-notify input { width: 22px; height: 22px; accent-color: var(--midnight); }
.time-col h3 { font-size: 1.15rem; margin: 0 0 14px; }
.time-empty { color: var(--steel); font-size: .9rem; padding: 18px; border: 1.5px dashed var(--silver); border-radius: 12px; text-align: center; }
.time-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.time-slot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; font-weight: 500; text-align: left; transition: border-color .15s, background .15s; }
.time-slot:hover:not(:disabled) { border-color: var(--cobalt-200); }
.time-slot:disabled { color: var(--silver); cursor: default; text-decoration: line-through; }
.time-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--steel); flex: none; }
.time-slot.is-selected { background: var(--cobalt-900); border-color: var(--cobalt-900); color: #fff; }
.time-slot.is-selected .time-dot { border-color: #fff; box-shadow: inset 0 0 0 4px var(--cobalt-900); background: #fff; }
.booking-summary { display: grid; margin: 0 auto; max-width: 620px; background: var(--bg); border-radius: var(--r); padding: 8px 22px; }
.booking-summary div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.booking-summary div:last-child { border-bottom: 0; font-weight: 600; }
.booking-summary dt { color: var(--steel); font-size: .88rem; }
.booking-summary dd { margin: 0; font-size: .92rem; word-break: break-word; }
.booking-note { display: flex; gap: 10px; align-items: flex-start; max-width: 620px; margin: 16px auto 0; padding: 14px 16px; border-radius: 12px; background: var(--cobalt-50); color: var(--cobalt-900); font-size: .88rem; }
.booking-note .icon { color: var(--cobalt); margin-top: 2px; }
.booking-nav { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.booking-nav [data-back] { margin-right: auto; }
.booking .form-error { text-align: center; margin-top: 16px; }
.booking-done { text-align: center; padding: 20px 0; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cobalt); color: #fff; margin-bottom: 14px; }
.done-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.booking-done h3 { font-size: 1.5rem; }
.booking-done p { color: var(--text-2); max-width: 34em; margin-inline: auto; }
.done-icon--warn { background: #b42318; }
/* Topic field: a choice, then a dialog to pick services / products or add a note; the result shows under the select */
.field > label { font-size: .82rem; font-weight: 600; }
.topic-chosen { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--cobalt-50); color: var(--cobalt-900); font-size: .88rem; font-weight: 500; }
.topic-chosen span { flex: 1; min-width: 0; }
.topic-chosen button { flex: none; border: 0; background: none; padding: 4px 2px; color: var(--cobalt); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Pop-up dialogs (topic picker, time picker); bottom sheets on phones */
.pick-dialog { width: min(560px, calc(100% - 32px)); max-height: min(84vh, 680px); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: 0 40px 90px -24px rgb(0 0 0 / .55); }
.pick-dialog[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
.pick-dialog::backdrop { background: rgb(16 16 16 / .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 20px 12px 24px; }
.pick-head h3 { margin: 0; font-size: 1.2rem; }
.pick-hint { margin: 4px 0 0; color: var(--steel); font-size: .85rem; }
.pick-body { flex: 1; overflow-y: auto; padding: 0 24px 16px; }
.pick-body > div > .pick-hint { margin: 0 0 12px; }
.pick-options { display: grid; gap: 8px; }
@media (min-width: 560px) { .pick-options { grid-template-columns: 1fr 1fr; } }
.pick-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.pick-option:hover { border-color: var(--cobalt-200); }
.pick-option input { position: absolute; opacity: 0; pointer-events: none; }
.pick-option .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--cobalt-50); color: var(--cobalt); }
.pick-option span { flex: 1; }
.pick-option::after { content: ''; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--silver); background: #fff center / 14px no-repeat; }
.pick-option:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-50); }
.pick-option:has(input:checked) .icon { background: var(--cobalt); color: #fff; }
.pick-option:has(input:checked)::after { border-color: var(--cobalt); background-color: var(--cobalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pick-option:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pick-foot { padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.pick-dialog .time-list { grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; padding-right: 0; }
.pick-dialog .time-slot { justify-content: center; gap: 0; padding: 12px 8px; font-size: .84rem; text-align: center; }
.pick-dialog .time-slot .time-dot { display: none; }
@media (max-width: 599px) {
  .pick-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 86vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .pick-dialog[open] { animation: sheet .25s var(--ease); }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* Phones: radios at their real size, compact steps, times right under the calendar in two columns */
.field.field--radios label { display: inline-flex; width: auto; }
.field.field--radios input { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; }
@media (max-width: 799px) {
  .booking-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; font-size: .7rem; text-align: center; }
  .booking-steps li { flex-direction: column; gap: 6px; line-height: 1.2; }
  .booking legend { margin-bottom: 18px; }
  .type-tab { font-size: .86rem; gap: 7px; }
  .type-tab .icon { width: 18px; height: 18px; }
  .slot-picker { gap: 0; }
  .cal-col { display: contents; }
  .cal-head { order: 1; }
  .cal { order: 2; }
  .time-col { display: none; } /* phones pick the time in a dialog (booking.js) */
  .sched-card { order: 4; }
  .time-list { grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; padding-right: 0; }
  .time-slot { justify-content: center; gap: 0; padding: 12px 8px; font-size: .82rem; text-align: center; }
  .time-slot .time-dot { display: none; }
  .booking-summary { padding: 4px 18px; }
  .booking-summary div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .booking-summary dt { font-size: .76rem; }
  .booking-nav { margin-top: 22px; }
  .booking-nav .btn { flex: 1; padding: 0 16px; }
  .booking-nav [data-back] { flex: 0 0 auto; }
}
@media (max-width: 380px) { .booking-steps li { font-size: .64rem; } .time-list { grid-template-columns: 1fr; } }
.booking-return h1 { font-size: 1.5rem; }
.booking-return .hero-actions { margin-top: 22px; }
.hero-actions--center { justify-content: center; }

/* ---------- Forms ---------- */
.form-card { background: #fff; color: var(--text); border-radius: var(--r); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.form-card h2 { font-size: 1.4rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--silver); border-radius: 10px; padding: 12px 14px; background: #fff; transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-100); }
.field .is-invalid { border-color: #d23b3b; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { font-size: .8rem; color: var(--steel) !important; margin: 0; }
.form-error { color: #d23b3b !important; font-weight: 600; margin: 0; font-size: .9rem; }
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; background: var(--cobalt-50); color: var(--cobalt); }
.form-status.is-error { background: #fdecec; color: #b42318; }
.form-status.is-success { background: #e8f6ee; color: #1a7f37; }
/* Spam trap: off-screen for people, still in the form for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.search-page-form { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--silver); border-radius: 999px; padding: 6px 6px 6px 20px; }
.search-page-form:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-100); }
.search-page-form > .icon { color: var(--cobalt); }
.search-page-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.05rem; padding: 10px 0; }
.search-count { color: var(--text-2); margin: 20px 0 8px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results .result { padding: 20px 6px; border-radius: 0; }
.search-results .result-title { font-size: 1.2rem; }
.pay-card { text-align: center; }
.pay-methods { list-style: none; padding: 0; margin: 0 0 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pay-methods li { background: #fff; border-radius: 12px; padding: 14px 18px; }
.pay-methods img { height: 42px; width: auto; }
.pay-embed { display: flex; justify-content: center; margin-bottom: 16px; }
.pay-embed iframe { border: 0; }


/* ---------- Legal pages ---------- */
.policy-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.policy-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--card); font-size: .88rem; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.policy-tabs a .icon { width: 18px; height: 18px; color: var(--cobalt); }
.policy-tabs a:hover { color: var(--cobalt); }
.policy-tabs a[aria-current="page"] { background: var(--cobalt); color: #fff; }
.policy-tabs a[aria-current="page"] .icon { color: #fff; }
.legal-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 280px 1fr; } }
.legal-toc { background: var(--card); border-radius: var(--r); padding: 20px; }
@media (min-width: 960px) { .legal-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.legal-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .88rem; line-height: 1.35; color: var(--text-2); }
.legal-toc a span { font-variant-numeric: tabular-nums; color: var(--cobalt); font-weight: 600; font-size: .8rem; padding-top: 1px; }
.legal-toc a:hover, .legal-toc a.is-active { background: var(--cobalt-50); color: var(--midnight); }
.legal-card { background: var(--card); border-radius: var(--r); padding: clamp(22px, 4vw, 48px); max-width: none; margin: 0; font-size: 1rem; }
.legal-card > .lead { font-size: 1.1rem; padding: 18px 20px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; }
.legal-section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-section:first-of-type { border-top: 0; }
.legal-card h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: clamp(1.15rem, 1.8vw, 1.35rem); scroll-margin-top: 90px; }
.legal-num { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--cobalt-50); color: var(--cobalt); font-size: .78rem; font-weight: 700; flex: none; }
.legal-card p, .legal-card li { color: var(--text-2); }
.legal-card ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.legal-card ul li { position: relative; padding-left: 26px; margin: 0; }
.legal-card ul li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.legal-help { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 20px; padding: 24px; background: var(--card); border-radius: var(--r); }
.legal-help > div { flex: 1; min-width: 240px; }
.legal-help h2 { font-size: 1.15rem; margin: 0 0 4px; }
.legal-help p { margin: 0; color: var(--text-2); font-size: .92rem; }
.legal-help a:not(.btn) { color: var(--cobalt); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--cobalt); color: #fff; padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; align-items: center; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .16), transparent 65%); }
.cta-band h2 { margin-bottom: .3em; max-width: 18em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta-band p { color: rgb(255 255 255 / .82); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* =========================================================
   FOOTER — "Website Footer" template
   ========================================================= */
.site-footer { padding: clamp(24px, 4vw, 48px) var(--edge) var(--edge); }
.is-dark .site-footer { background: var(--midnight); }
.footer-card { position: relative; overflow: hidden; isolation: isolate; max-width: calc(var(--maxw) + 120px); margin: 0 auto; background: var(--cobalt-900) url(../img/footer-bg.svg) center / cover no-repeat; color: #fff; border-radius: var(--r); padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 56px) 0; }
.footer-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgb(17 14 197 / .55) 0%, rgb(17 14 197 / .2) 45%, rgb(8 6 70 / .55) 100%); pointer-events: none; }
.footer-top { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); padding-bottom: clamp(32px, 5vw, 48px); }
.footer-intro { grid-column: 1 / -1; }
.footer-h { font-size: 1.6rem; font-weight: 300; margin-bottom: 16px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; transition: background .2s; }
.socials a:hover { background: rgb(255 255 255 / .12); }
.socials .icon { width: 18px; height: 18px; }
.footer-chip { display: inline-flex; gap: 6px; align-items: center; margin: 18px 0 0; padding: 7px 12px; border-radius: 8px; background: rgb(255 255 255 / .1); font-size: .82rem; }
.footer-chip span { opacity: .5; }
.footer-chip .icon { width: 16px; height: 16px; color: var(--cobalt-light); }
.footer-contact { margin: 16px 0 0; font-size: .85rem; line-height: 1.8; color: rgb(255 255 255 / .75); }
.footer-contact a:hover { color: #fff; }
.footer-col h3 { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt-light); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: .85rem; color: rgb(255 255 255 / .8); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid rgb(255 255 255 / .1); border-bottom: 1px solid rgb(255 255 255 / .1); margin-bottom: clamp(24px, 4vw, 36px); font-size: .78rem; color: rgb(255 255 255 / .55); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.8fr 1fr 1fr .9fr .9fr; } .footer-intro { grid-column: auto; } }
.wa-float { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgb(0 0 0 / .45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 26px; height: 26px; }
/* Phones: smaller buttons, raised about 5cm so they clear page content and browser bars */
@media (max-width: 899px) {
  .float-stack { right: 14px; bottom: calc(14px + 5cm); gap: 8px; }
  .share-toggle, .wa-float { width: 44px; height: 44px; }
  .share-toggle .icon { width: 20px; height: 20px; }
  .wa-float .icon { width: 22px; height: 22px; }
  .share-menu { bottom: 0; right: calc(100% + 10px); width: 196px; padding: 6px; transform: translateX(8px); }
  .share-menu-title { margin: 4px 8px 4px; font-size: .62rem; }
  .share-menu a, .share-menu button { gap: 10px; padding: 6px 8px; font-size: .85rem; }
  .share-ico { width: 28px; height: 28px; border-radius: 8px; }
  .share-ico .icon { width: 15px; height: 15px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Phones: looping service card rows (main.js) move on their own, so no snapping */
.tall-row.is-looping { scroll-snap-type: none; scrollbar-width: none; }
.tall-row.is-looping::-webkit-scrollbar { display: none; }
/* Count-up figures keep their width while counting */
.count { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Promotion popup (Site settings > Popup) ---------- */
.promo-pop { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); overflow: auto; background: #fff; color: var(--text); box-shadow: 0 40px 90px -24px rgb(0 0 0 / .55); }
.promo-pop[open] { animation: pop .3s var(--ease); }
.promo-pop::backdrop { background: rgb(16 16 16 / .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.promo-close { position: absolute; top: 12px; right: 12px; z-index: 1; background: rgb(255 255 255 / .92); box-shadow: var(--shadow-sm); }
.promo-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft); }
.promo-body { padding: 22px 24px 26px; }
.promo-body h2 { font-size: 1.45rem; margin: 0 0 .4em; }
.promo-body p { color: var(--text-2); font-size: .95rem; margin: 0 0 18px; }
.promo-body .btn { width: 100%; }

/* ---------- Maintenance page ---------- */
.maintenance-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(165deg, #12108a 0%, var(--cobalt-900) 45%, #0b0a33 100%); color: #fff; }
.maintenance { max-width: 620px; padding: 48px var(--gutter); text-align: center; }
.maintenance-logo { height: 34px; width: auto; margin: 0 auto 40px; }
.maintenance-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgb(255 255 255 / .12); margin-bottom: 20px; }
.maintenance-icon .icon { width: 28px; height: 28px; }
.maintenance h1 { font-size: clamp(2rem, 6vw, 3rem); }
.maintenance h1 .accent { color: var(--cobalt-light); }
.maintenance p { color: rgb(255 255 255 / .82); }
.maintenance .hero-actions { flex-direction: column; align-items: center; }
