/* XSOLUTION · Midnight Glass */
:root {
    --bg: #06121b;
    --bg-raised: #0b1c28;
    --white: #ffffff;
    --text: #e8f1f6;
    --muted: #b9cad5;
    --subtle: #9fb4c2;
    --accent: #29abe2;
    --link: #7fd3f5;
    --whatsapp: #25d366;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.16);
    --line: rgba(255, 255, 255, 0.08);
    --blur: blur(20px) saturate(140%);
    --display: 'Space Grotesk', sans-serif;
    --body: 'IBM Plex Sans', sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--white); }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }

/* Type */
.eyebrow { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.display { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 24px; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 700; }
.h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.section-title { max-width: 760px; margin-bottom: 40px; }
.on-accent { color: #d4e4ee; }
.block-link { display: block; padding: 4px 0; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }

/* Glass */
.glass { background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.panel { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 32px; }
.panel--accent { background: rgba(41, 171, 226, 0.12); border-color: rgba(41, 171, 226, 0.45); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 16px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .2s, background .2s, transform .1s; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { color: var(--bg); filter: brightness(1.1); }
.btn--glass { background: var(--glass); border-color: rgba(255, 255, 255, 0.18); color: var(--white); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn--whatsapp { background: var(--whatsapp); color: #062b14; }
.btn--whatsapp:hover { color: #062b14; filter: brightness(1.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 18, 27, 0.55); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: box-shadow .2s; }
.site-nav.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.site-nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-nav__logo img { height: 43px; width: auto; max-width: calc(100vw - 112px); object-fit: contain; object-position: left center; } /* 24px + 80%; shrinks on very narrow phones */
.site-nav__links { display: flex; align-items: center; gap: 4px; font-family: var(--display); }
.site-nav__links a { padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 12px; }
.site-nav__links a:hover { color: var(--white); }
.site-nav__links a[aria-current="page"] { color: var(--white); font-weight: 600; }
.site-nav__links .btn { margin-left: 8px; min-height: 44px; padding: 10px 20px; border-radius: 14px; font-size: 15px; color: var(--bg); }
.site-nav__toggle { display: none; background: none; border: 0; color: var(--white); padding: 10px; cursor: pointer; border-radius: 12px; }
.site-nav__toggle svg { width: 28px; height: 28px; }
.site-nav__mobile { display: none; padding-bottom: 16px; font-family: var(--display); }
.site-nav__mobile a { display: block; padding: 14px 0; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); font-weight: 500; }
.site-nav__mobile a[aria-current="page"] { color: var(--white); }
.site-nav__mobile.is-open { display: block; }
@media (max-width: 767px) {
    .site-nav__links { display: none; }
    .site-nav__toggle { display: inline-flex; }
}

/* Photo backdrops */
.photo-bg { position: relative; overflow: hidden; isolation: isolate; }
.photo-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 18, 27, 0.6); }

/* Home hero */
.hero { min-height: calc(100vh - 73px); display: flex; align-items: center; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px; width: 100%; }
.hero__copy { flex: 2 1 560px; min-width: 0; }
.hero .display { font-size: clamp(42px, 6.6vw, 88px); }
@media (max-width: 420px) { .hero .display { font-size: 11vw; } } /* keeps the 3-line break on small phones */
.hero__copy .lead { margin-bottom: 36px; }
.deck { list-style: none; margin: 0; padding: 0; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.deck__item { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.deck__item:nth-child(even) { margin-left: 32px; }
.deck__thumb { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; flex: none; }
.deck__thumb--icon { display: flex; align-items: center; justify-content: center; background: rgba(41, 171, 226, 0.16); color: var(--link); }
.deck__thumb--icon svg { width: 44px; height: 44px; }
.deck__name { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--white); }
@media (max-width: 767px) { .deck__item:nth-child(even) { margin-left: 0; } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.step { font-family: var(--display); font-size: 14px; color: var(--subtle); margin-bottom: 40px; }
.panel--accent .step { color: var(--accent); }

.facts { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); font-family: var(--display); }
.facts__value { font-size: 44px; font-weight: 700; color: var(--white); line-height: 1.2; }
.facts__label { font-size: 15px; color: var(--subtle); }

/* Team */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: 28px; }
.person__photo { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; flex: none; }
.person__initials { display: flex; align-items: center; justify-content: center; background: rgba(41, 171, 226, 0.2); font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--white); }
.person__body { flex: 1 1 200px; min-width: 0; }
.person__name { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--white); }
.person__body a:not(.btn) { display: block; padding: 4px 0; }
.person__body .btn { margin-top: 12px; min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* Feature cards with photo */
.feature { border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.feature img { width: 100%; height: 220px; object-fit: cover; opacity: 0.85; }
.feature__body { padding: 28px; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: rgba(41, 171, 226, 0.1); border: 1px solid rgba(41, 171, 226, 0.35); }
.cta > div:first-child { flex: 1 1 420px; min-width: 0; }

/* Page hero (About / Contact) */
.page-hero { padding-block: clamp(72px, 10vw, 128px); }
.page-hero .display { max-width: 900px; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form-wrap { flex: 999 1 520px; min-width: 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; }
.info-card { padding: 24px; border-radius: 22px; }
.info-card h2 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); font-weight: 600; margin-bottom: 8px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0; color: var(--muted); }
.hours dd { margin: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.form__full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--white); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 14px 16px; min-height: 52px; }
.form select option { color: #06121b; }
.form input::placeholder, .form textarea::placeholder { color: #7f95a4; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.25); }
.form__error { color: #ff9b8f; }
.hidden { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 14px; color: var(--subtle); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 4px 0; color: var(--subtle); text-decoration: none; }
.site-footer li a:hover { color: var(--white); }
.site-footer__logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 16px; } /* 22px + 80% */
.site-footer__bottom { padding-top: 24px; border-top: 1px solid var(--line); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 999px; background: var(--whatsapp); color: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform .2s; }
.wa-float:hover { color: #ffffff; transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
