/* Brightreef Solar demo – main stylesheet
   Tokens map 1:1 to Elementor Global Colors / Fonts (see ELEMENTOR-NOTES.md).
   Breakpoints: desktop ≥1025px, tablet 768–1024px, mobile ≤767px. */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-var.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Global Colors */
  --c-primary: #12324a;
  --c-secondary: #f7f4ec;
  --c-text: #1f2937;
  --c-accent: #f2b127;
  /* Custom colors */
  --c-primary-dark: #0b2233;
  --c-primary-soft: #1c4664;
  --c-muted: #4b5563;
  --c-accent-dark: #9a5b00;
  --c-accent-hover: #e09e0f;
  --c-surface: #ffffff;
  --c-surface-alt: #eef3f6;
  --c-border: #e2e8f0;
  --c-field: #7b8794;
  --c-success: #15803d;
  --c-error: #b91c1c;
  /* Global Fonts */
  --f-heading: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  /* 8px spacing scale */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
  --section-y: 96px;
  --gutter: 24px;
  --container: 1200px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 80px;
}
@media (max-width: 1024px) { :root { --section-y: 64px; --header-h: 72px; } }
@media (max-width: 767px) { :root { --section-y: 48px; --gutter: 16px; --header-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--c-text); background: var(--c-surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (max-width: 767px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-soft); }
p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.h1, .h2, .h3, .h4 { margin: 0 0 var(--s-2); color: var(--c-primary); font-family: var(--f-heading); letter-spacing: -.01em; }
.h1 { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: 38px; line-height: 1.15; font-weight: 800; }
.h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
.h4 { font-size: 18px; line-height: 1.35; font-weight: 700; }
@media (max-width: 1024px) { .h1 { font-size: 44px; } .h2 { font-size: 34px; } .h3 { font-size: 21px; } }
@media (max-width: 767px) { .h1 { font-size: 34px; } .h2 { font-size: 28px; } .h3 { font-size: 20px; } }
.eyebrow { margin: 0 0 12px; font: 600 13px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-dark); }
.lead { font-size: 19px; line-height: 1.6; color: var(--c-muted); }
@media (max-width: 767px) { .lead { font-size: 17px; } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; background: var(--c-primary); color: #fff; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }
.container--prose { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .75); }
.section--sand { background: var(--c-secondary); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-actions { margin-top: var(--s-6); text-align: center; }
.section-note { margin: var(--s-4) 0 0; text-align: center; font-size: 14px; color: var(--c-muted); }
.grid { display: grid; gap: var(--s-4) var(--s-3); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* desktop: centre an incomplete last row (e.g. 5 or 8 cards) on a 6-column track */
@media (min-width: 1025px) {
  .grid--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3 > * { grid-column: span 2; }
  .grid--3 > :nth-last-child(2):nth-child(3n+1) { grid-column: 2 / 4; }
  .grid--3 > :last-child:nth-child(3n+2) { grid-column: 4 / 6; }
}
/* tablet: centre a single card left on the last row */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid--3 > :last-child:nth-child(odd), .grid--4 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--r-sm); font: 600 16px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: var(--c-primary); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--light:hover { background: #fff; color: var(--c-primary); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: var(--s-4); }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; white-space: normal; } }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-primary); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-surface-alt); color: var(--c-primary); transition: background-color .2s; }
.icon-btn:hover { background: var(--c-border); }
.icon-btn--light { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-btn--light:hover { background: rgba(255, 255, 255, .22); }

/* ---------- header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); border-color: var(--c-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; border-radius: var(--r-sm); }
.logo__svg { width: 183px; height: 40px; transform-origin: left center; transition: transform .25s var(--ease); }
.site-header.is-scrolled .logo__svg { transform: scale(.9); }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: 16px; color: var(--c-primary); text-decoration: none; border-radius: var(--r-sm); }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__item--dropdown .nav__link { padding-right: 4px; }
.nav__item--dropdown .nav__link::after { right: 4px; }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; margin-right: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--c-primary); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 260px; max-height: min(70vh, 420px); overflow-y: auto; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item--dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown__link { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: 15px; color: var(--c-text); text-decoration: none; }
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--c-surface-alt); color: var(--c-primary); outline-offset: -2px; }
.dropdown__link[aria-current="page"] { color: var(--c-primary); font-weight: 700; background: var(--c-secondary); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--c-surface-alt); }
.menu-toggle__bars { position: relative; display: block; width: 22px; height: 16px; margin: auto; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--c-primary); transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 7px; }
.menu-toggle__bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--c-accent); transform: scaleX(var(--progress, 0)); transform-origin: left; }
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 767px) {
  .site-header__cta { display: none; }
  .logo__svg { width: 160px; height: 35px; }
}

/* mobile menu (slide-in panel) */
.mobile-menu { position: fixed; inset: 0; z-index: 90; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(11, 34, 51, .5); opacity: 0; transition: opacity .3s var(--ease); }
.mobile-menu__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: var(--s-3); width: min(400px, 100%); padding: 16px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mnav { list-style: none; border-top: 1px solid var(--c-border); }
.mnav > li { border-bottom: 1px solid var(--c-border); opacity: 0; transform: translateX(16px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu.is-open .mnav > li { opacity: 1; transform: none; }
.mobile-menu.is-open .mnav > li:nth-child(2) { transition-delay: .04s; }
.mobile-menu.is-open .mnav > li:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open .mnav > li:nth-child(4) { transition-delay: .12s; }
.mobile-menu.is-open .mnav > li:nth-child(5) { transition-delay: .16s; }
.mnav__row { display: flex; align-items: center; justify-content: space-between; }
.mnav__link { display: block; flex: 1; padding: 14px 4px; font: 700 20px/1.3 var(--f-heading); color: var(--c-primary); text-decoration: none; }
.mnav__link[aria-current="page"] { color: var(--c-accent-dark); }
.mnav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: var(--c-surface-alt); color: var(--c-primary); }
.mnav__toggle .icon { transition: transform .2s var(--ease); }
.mnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__sub { list-style: none; padding: 0 0 12px 12px; }
.mnav__sublink { display: block; padding: 10px 4px; color: var(--c-text); font-weight: 500; text-decoration: none; }
.mnav__sublink[aria-current="page"] { color: var(--c-accent-dark); font-weight: 700; }
.mobile-menu__contact { list-style: none; display: grid; gap: 12px; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.mobile-menu__contact li { display: flex; align-items: center; gap: 12px; }
.mobile-menu__contact .icon { width: 20px; height: 20px; color: var(--c-accent-dark); }
html.is-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 var(--section-y); background: linear-gradient(180deg, var(--c-secondary) 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__content .lead { max-width: 560px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.check-list { list-style: none; display: grid; gap: 10px; margin: var(--s-3) 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary); stroke-width: 3; }
.check-list--inline { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: var(--s-4); font-weight: 600; font-size: 15px; color: var(--c-primary); }
@media (max-width: 1024px) { .hero { padding-top: 40px; } .hero__grid { grid-template-columns: 1fr; gap: 40px; } .hero__media img { aspect-ratio: 16 / 9; } }
.js .hero__content, .js .hero__media { opacity: 0; }
.js.is-ready .hero__content, .js.is-ready .hero__media, .reveal-fallback .hero__content, .reveal-fallback .hero__media { animation: fade-in .6s var(--ease) both; }
.js.is-ready .hero__media { animation-delay: .1s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* page hero */
.page-hero { padding: 48px 0 64px; background: var(--c-secondary); }
.page-hero__grid { display: grid; gap: 48px; align-items: center; }
.page-hero--media .page-hero__grid { grid-template-columns: 1.1fr .9fr; }
.page-hero__content { max-width: 760px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: var(--s-3); font-size: 14px; color: var(--c-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--c-field); }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs [aria-current] { color: var(--c-primary); font-weight: 600; }
@media (max-width: 1024px) { .page-hero--media .page-hero__grid { grid-template-columns: 1fr; gap: 32px; } .page-hero__media img { aspect-ratio: 16 / 9; } }
@media (max-width: 767px) { .page-hero { padding: 32px 0 48px; } }

/* ---------- stats ---------- */
.section--stats { padding-block: 48px; border-bottom: 1px solid var(--c-border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat { text-align: center; padding: 8px; }
.stat + .stat { border-left: 1px solid var(--c-border); }
.stat__value { margin: 0; white-space: nowrap; font: 800 44px/1.1 var(--f-heading); color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--c-accent-dark); }
.stat__label { margin: 6px 0 0; font-size: 15px; color: var(--c-muted); }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-2); } .stat:nth-child(3) { border-left: 0; } .stat__value { font-size: 32px; } }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-3) var(--s-4) var(--s-4); }
.card__body p { color: var(--c-muted); }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.card .text-link { margin-top: auto; }
.card:hover .text-link .icon { transform: translateX(4px); }

/* features (icon boxes) */
.feature { padding: var(--s-4); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature p { margin: 0; color: var(--c-muted); }
.feature__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-2); border-radius: 50%; background: var(--c-secondary); color: var(--c-primary); }
.section--sand .feature__icon { background: var(--c-surface-alt); }
.feature__icon .icon { width: 28px; height: 28px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.split__content > p:not(.eyebrow) { color: var(--c-muted); }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 40px; } .split--reverse .split__media { order: 0; } .split__media img { aspect-ratio: 16 / 9; } }
.bars { display: grid; gap: var(--s-3); margin: var(--s-4) 0; }
.bar__top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; color: var(--c-primary); }
.bar__track { height: 10px; border-radius: 99px; background: var(--c-surface-alt); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--value); border-radius: inherit; background: var(--c-accent); transform-origin: left; }
.js .bars:not(.is-visible) .bar__fill { transform: scaleX(0); }
.js .bars .bar__fill { transition: transform 1s var(--ease); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); list-style: none; counter-reset: none; }
.step { position: relative; padding: var(--s-4) var(--s-3); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-2); border-radius: 50%; background: var(--c-primary); color: var(--c-accent); font: 800 17px/1 var(--f-heading); }
.step p { margin: 0; color: var(--c-muted); }
@media (min-width: 1025px) { .step:not(:last-child)::after { content: ''; position: absolute; top: 56px; right: -18px; width: 12px; height: 2px; background: var(--c-accent); } }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* projects */
.project { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.project__media { overflow: hidden; }
.project__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.project:hover .project__media img { transform: scale(1.04); }
.project__caption { padding: var(--s-2) var(--s-3) var(--s-3); }
.project__caption .h4 { margin-bottom: 4px; }
.project__caption p { margin: 0; font-size: 14px; color: var(--c-muted); }

/* testimonials */
.testimonial { display: flex; flex-direction: column; margin: 0; padding: var(--s-4); background: var(--c-secondary); border-radius: var(--r-md); }
.section--sand .testimonial { background: #fff; }
.testimonial__stars { color: var(--c-accent-dark); letter-spacing: 2px; font-size: 18px; }
.testimonial blockquote { margin: var(--s-2) 0 var(--s-3); }
.testimonial blockquote p { margin: 0; font-size: 17px; color: var(--c-text); }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 15px; line-height: 1.4; color: var(--c-primary); }
.avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: var(--c-accent); font: 800 16px/1 var(--f-heading); }

/* team */
.team-card { text-align: center; }
.team-card__media { overflow: hidden; margin-bottom: var(--s-2); border-radius: var(--r-lg); background: var(--c-surface-alt); }
.team-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s var(--ease); }
.team-card:hover img { transform: scale(1.04); }
.team-card .h3 { margin-bottom: 2px; }
.team-card__role { margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--c-accent-dark); }
.team-card p:last-child { color: var(--c-muted); font-size: 15px; }

/* pricing */
.price-card { display: flex; flex-direction: column; padding: var(--s-4); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card__price { margin: 4px 0; font: 800 28px/1.2 var(--f-heading); color: var(--c-primary); }
.price-card .check-list { margin-bottom: var(--s-4); font-size: 15px; }
.price-card .btn { margin-top: auto; }

/* faq accordion */
.faq { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item__q { margin: 0; font: 700 18px/1.4 var(--f-heading); }
.faq-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 20px 4px; border: 0; background: none; text-align: left; color: var(--c-primary); font: inherit; }
.faq-toggle:hover { color: var(--c-primary-soft); }
.faq-toggle__icon { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--c-surface-alt); transition: transform .25s var(--ease), background-color .2s; }
.section--sand .faq-toggle__icon { background: #fff; }
.faq-item.is-open .faq-toggle__icon { transform: rotate(45deg); background: var(--c-accent); }
.faq-item__a { padding: 0 48px 20px 4px; color: var(--c-muted); }
.faq-item__a p { margin: 0; }
.js .faq-item:not(.is-open) .faq-item__a { display: none; }
.js .faq-item.is-open .faq-item__a { animation: fade-up-sm .3s var(--ease); }
@keyframes fade-up-sm { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* cta band */
.section--cta { padding-top: 0; }
.section--sand + .section--cta, .section--cta:first-child { padding-top: var(--section-y); }
.cta-band { padding: 64px 48px; text-align: center; color: #fff; border-radius: var(--r-lg); background: var(--c-primary); background-image: radial-gradient(circle at 85% 15%, rgba(242, 177, 39, .18), transparent 45%); }
.cta-band .h2 { color: #fff; }
.cta-band .lead { max-width: 640px; margin-inline: auto; color: rgba(255, 255, 255, .85); }
@media (max-width: 767px) { .cta-band { padding: 48px 20px; } }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-list { list-style: none; display: grid; gap: var(--s-2); margin: var(--s-3) 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--c-secondary); color: var(--c-primary); }
.contact-list__label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.contact-list a { font-weight: 600; word-break: break-word; }
.area-card { margin-top: var(--s-4); padding: var(--s-3); background: var(--c-secondary); border-radius: var(--r-md); }
.area-card .h4 { display: flex; align-items: center; gap: 8px; }
.area-card .icon { width: 20px; height: 20px; color: var(--c-accent-dark); }
.area-card p { margin: 0; color: var(--c-muted); }
.form-card { padding: var(--s-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (max-width: 767px) { .form-card { padding: var(--s-3); } }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-2); margin: var(--s-3) 0; }
.field--full, .field--textarea { grid-column: 1 / -1; }
@media (max-width: 767px) { .form__grid { grid-template-columns: 1fr; } }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--c-primary); }
.field input, .field textarea, .select__button { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-field); border-radius: var(--r-sm); background: #fff; color: var(--c-text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus, .select__button:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(242, 177, 39, .55); }
.field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-field); border-radius: var(--r-sm); background: #fff; }
.field.has-error input, .field.has-error textarea, .field.has-error .select__button, .field.has-error select { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
.field__error { margin: 0; font-size: 14px; font-weight: 500; color: var(--c-error); }
.form__summary { margin-top: var(--s-2); padding: 12px 16px; border-left: 4px solid var(--c-error); border-radius: var(--r-sm); background: #fef2f2; color: var(--c-error); font-weight: 600; }
.form__summary p { margin: 0; }
.form-success { text-align: center; padding: var(--s-4) 0; }
.form-success:focus { outline: none; }
.form-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-2); border-radius: 50%; background: #dcfce7; color: var(--c-success); }
.form-success__icon .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.form-success p { color: var(--c-muted); }

/* custom select (enhances a native <select>) */
.select { position: relative; }
.select__button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.select__button .icon { flex: none; width: 18px; height: 18px; color: var(--c-muted); transition: transform .2s var(--ease); }
.select.is-open .select__button .icon { transform: rotate(180deg); }
.select__value.is-placeholder { color: var(--c-muted); }
.select__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 240px; overflow-y: auto; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.select__option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.select__option .icon { width: 16px; height: 16px; opacity: 0; color: var(--c-accent-dark); }
.select__option[aria-selected="true"] { font-weight: 600; color: var(--c-primary); }
.select__option[aria-selected="true"] .icon { opacity: 1; }
.select__option.is-active, .select__option:hover { background: var(--c-surface-alt); }

.mini-steps { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.mini-step { display: flex; gap: var(--s-2); align-items: flex-start; }
.mini-step .feature__icon { flex: none; margin: 0; }
.mini-step p { margin: 0; color: var(--c-muted); }

/* prose */
.prose { font-size: 17px; }
.prose .h3 { margin-top: var(--s-5); }
.prose p, .prose li { color: var(--c-text); }
.prose ul { margin: 0 0 var(--s-2) 1.2em; }
.prose li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { padding-top: 80px; padding-bottom: 72px; background: var(--c-primary-dark); color: rgba(255, 255, 255, .8); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--s-6) var(--s-4); padding-bottom: var(--s-8); }
.footer__col--brand p { max-width: 320px; margin-top: var(--s-2); }
.footer__heading { margin: 0 0 var(--s-2); font: 700 16px/1.3 var(--f-heading); color: #fff; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.social a:hover { background: var(--c-accent); color: var(--c-primary); }
.social .icon { width: 18px; height: 18px; }
.contact-list--footer { margin: 0; gap: 14px; }
.contact-list--footer .icon { width: 36px; height: 36px; padding: 9px; background: rgba(255, 255, 255, .08); color: var(--c-accent); }
.contact-list--footer .contact-list__label { color: rgba(255, 255, 255, .6); font-size: 12px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-block: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer__bottom p { margin: 0; }
.footer__disclaimer { color: rgba(255, 255, 255, .65); }
.footer__legal { display: flex; gap: var(--s-3); list-style: none; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.back-to-top .icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .site-footer { padding-top: 56px; padding-bottom: 96px; } .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- 404 ---------- */
.notfound { background: var(--c-secondary); text-align: center; }
.notfound__code { margin: 0 0 var(--s-1); font: 800 clamp(96px, 18vw, 168px)/1 var(--f-heading); letter-spacing: -.04em; color: var(--c-primary); animation: float-in .7s var(--ease) both; }
.notfound__code::first-letter { color: var(--c-accent-dark); }
@keyframes float-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.notfound .lead { max-width: 600px; margin-inline: auto; }
.notfound__path { color: var(--c-muted); font-size: 15px; word-break: break-all; }
.notfound__path code { padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--c-primary); }
.notfound__links-title { margin-top: var(--s-6); }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; }
.notfound__links a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--c-border); font-weight: 600; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.notfound__links a:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.notfound__links .icon { width: 16px; height: 16px; }

/* ---------- reveal on scroll (fade-up 16px, 500ms, once) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible, .reveal-fallback [data-reveal] { opacity: 1; transform: none; }
.card[data-reveal].is-visible, .feature[data-reveal].is-visible, .price-card[data-reveal].is-visible { transition: opacity .5s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); transition-delay: var(--reveal-delay, 0ms), 0s, 0s; }

/* ---------- demo-only: preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: #fff; transition: opacity .45s var(--ease), visibility 0s .45s; }
.is-preloading .preloader { display: grid; }
.is-preloading body { overflow: hidden; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 20px; animation: fade-in .5s var(--ease) both; }
.preloader .logo__svg { width: 220px; height: 48px; }
.preloader__bar { display: block; width: 160px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--c-surface-alt); }
.preloader__bar span { display: block; height: 100%; background: var(--c-accent); transform-origin: left; animation: preload-bar 1s var(--ease) forwards; }
@keyframes preload-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- demo-only: notice (bottom left) ---------- */
.demo-notice { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(340px, calc(100vw - 48px)); padding: 18px 18px 16px; background: #fff; border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--r-md); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.demo-notice.is-visible { opacity: 1; transform: none; }
.demo-notice__text { display: flex; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--c-primary); }
.demo-notice__text .icon { flex: none; width: 22px; height: 22px; color: var(--c-accent-dark); }
.demo-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) { .demo-notice { left: 12px; bottom: 12px; width: auto; right: 84px; padding: 14px; } .demo-notice__actions .btn { flex: 1 1 auto; } }

/* ---------- demo-only: chatbot (bottom right) ---------- */
.chatbot__launcher { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--c-primary); color: var(--c-accent); box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), background-color .2s; }
.chatbot__launcher:hover { transform: translateY(-2px); background: var(--c-primary-soft); }
.chatbot__launcher .icon { width: 28px; height: 28px; }
.chatbot__badge { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--c-error); color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; }
.chatbot__panel { position: fixed; right: 24px; bottom: 100px; z-index: 80; display: flex; flex-direction: column; width: 370px; height: min(560px, calc(100vh - 140px)); overflow: hidden; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.chatbot.is-open .chatbot__panel { opacity: 1; transform: none; }
.chatbot__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--c-primary); color: #fff; }
.chatbot__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary); }
.chatbot__title { display: grid; flex: 1; line-height: 1.3; font-size: 15px; }
.chatbot__title span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.chatbot__label { padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.chatbot__messages { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--c-secondary); }
.chatbot__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; animation: fade-up-sm .25s var(--ease); white-space: pre-line; }
.chatbot__msg a { font-weight: 600; }
.chatbot__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-border); border-bottom-left-radius: 4px; }
.chatbot__msg--user { align-self: flex-end; background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.chatbot__typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--c-border); border-radius: 14px; }
.chatbot__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-field); animation: typing 1s infinite ease-in-out; }
.chatbot__typing span:nth-child(2) { animation-delay: .15s; }
.chatbot__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chatbot__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--c-border); }
.chatbot__chip { padding: 6px 12px; border: 1px solid var(--c-primary); border-radius: 99px; background: #fff; color: var(--c-primary); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.chatbot__chip:hover { background: var(--c-primary); color: #fff; }
.chatbot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-border); }
.chatbot__form input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--c-field); border-radius: 99px; font-size: 15px; }
.chatbot__form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(242, 177, 39, .55); }
.chatbot__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-accent); color: var(--c-primary); }
.chatbot__send .icon { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .chatbot__launcher { right: 12px; bottom: 12px; width: 56px; height: 56px; }
  .chatbot__panel { right: 8px; left: 8px; bottom: 80px; width: auto; height: min(560px, calc(100dvh - 96px)); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__content, .js .hero__media { opacity: 1 !important; transform: none !important; }
  .js .bars:not(.is-visible) .bar__fill { transform: none; }
}

/* ---------- print ---------- */
@media print { .site-header, .mobile-menu, .chatbot, .demo-notice, .preloader, .scroll-progress { display: none !important; } .js [data-reveal] { opacity: 1; transform: none; } }
