/* JS Consulting — modern liquid-glass design system */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    --js-primary: #c5a443;
    --js-secondary: #525252;
    --js-tertiary: #3a3a3a;
    --js-text: #172033;
    --js-text-muted: #657087;
    --js-bg: #eef1f7;
    --glass: rgba(255, 255, 255, .70);
    --glass-strong: rgba(255, 255, 255, .84);
    --glass-border: rgba(255, 255, 255, .72);
    --glass-shadow: 0 18px 50px rgba(25, 34, 54, .14), 0 3px 10px rgba(25, 34, 54, .06);
    --js-brand-gradient: linear-gradient(135deg, var(--js-secondary), var(--js-tertiary));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--js-text); background: var(--js-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.app-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: .7rem; color: #4d596e; font-weight: 650; }
.app-loading span { width: 2rem; height: 2rem; border: 3px solid rgba(197,164,67,.22); border-top-color: var(--js-primary); border-radius: 50%; animation: app-spin .7s linear infinite; }
.app-loading p { margin: 0; }
h1, h2, h3, p { text-wrap: balance; }
h1:focus { outline: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid rgba(197, 164, 67, .7); outline-offset: 3px; }
.page, .app-shell { display: flex; flex-direction: column; min-height: 100vh; overflow: clip; }
main { flex: 1; }

/* Photo backgrounds are softened by a cool veil and drifting light. */
.page-content--has-bg::before, .page-content--has-bg::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-content--has-bg::before { background-image: var(--page-bg-image); background-size: var(--page-bg-size, cover); background-position: var(--page-bg-position, center); background-repeat: var(--page-bg-repeat, no-repeat); }
/* Fixed, full-screen images force expensive repainting while scrolling, especially
   below glass layers. A normal scrolling image is visually equivalent here. */
@media (min-width: 768px) { .page-content--bg-fixed::before { background-attachment: scroll; } }
.page-content--has-bg::after { background: radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .62), transparent 31rem), radial-gradient(circle at 88% 70%, rgba(212, 186, 109, .24), transparent 30rem), var(--page-bg-overlay-color, #f4f6fb); opacity: var(--page-bg-overlay-opacity, .72); }
.page-content__body { position: relative; z-index: 1; }
.container-fluid { width: min(1240px, 100%); margin: 0 auto; padding: 2rem 2rem 3.5rem; }

/* Reusable glass surfaces */
.page-content--has-bg .legal-page, .page-content--has-bg .service-page__hero, .service-section-card, .not-found-page__card { background: rgba(255, 255, 255, .82); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.page-content--has-bg .legal-page { border-radius: 28px; padding: 2.25rem; }

/* Service pages */
.service-page { padding: .5rem 0 1.5rem; animation: float-in .7s both; }
.service-page__hero { position: relative; overflow: hidden; max-width: 780px; margin: 0 auto 2.25rem; padding: 2.5rem 2rem; border-radius: 30px; text-align: center; }
.service-page__hero::after { content: ""; position: absolute; width: 13rem; height: 13rem; border-radius: 50%; right: -5rem; top: -7rem; background: rgba(197, 164, 67, .18); filter: blur(2px); }
.service-page__hero-icon { display: grid; place-items: center; position: relative; z-index: 1; width: 3.75rem; height: 3.75rem; margin: 0 auto 1rem; border-radius: 1.25rem; font-size: 2rem; color: #7a5e12; background: rgba(255, 247, 218, .72); box-shadow: inset 0 1px rgba(255,255,255,.8); }
.service-page__title { position: relative; z-index: 1; margin: 0 0 .7rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1.05; }
.service-page__lead { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; color: var(--js-text-muted); font-size: 1.06rem; line-height: 1.7; }
.service-page__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-section-card { min-width: 0; padding: 1.65rem; border-radius: 24px; transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.service-section-card:hover { transform: translateY(-6px); background: var(--glass-strong); box-shadow: 0 23px 45px rgba(25,34,54,.18); }
.service-section-card__header { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.service-section-card__icon { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: .85rem; overflow: hidden; background: rgba(197,164,67,.16); color: #806417; font-size: 1.35rem; }
.service-section-card__title { margin: 0; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.02em; }
.service-section-card__list { margin: 0; padding-left: 1.2rem; color: #4d596e; line-height: 1.65; }
.service-section-card__list li { padding-left: .2rem; margin-bottom: .45rem; }
.service-section-card__list li::marker { color: var(--js-primary); }

/* Legal pages */
.legal-page { max-width: 860px; margin: 0 auto; padding: 1rem 0 3rem; animation: float-in .6s both; }
.legal-page__title { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.05em; }
.legal-page__note { margin: 0 0 2rem; color: var(--js-text-muted); }
.legal-page__section { margin-bottom: 1.75rem; }
.legal-page__section h2 { margin: 0 0 .65rem; font-size: 1.17rem; color: #806417; }
.legal-page__section h3 { margin: 1.1rem 0 .4rem; font-size: 1.02rem; }
.legal-page__section p, .legal-page__section li { color: #3f4a5d; line-height: 1.72; }
.legal-page__section ul { padding-left: 1.25rem; margin: .5rem 0 .75rem; }

/* Not found */
.not-found-page { display: grid; place-items: center; min-height: calc(100vh - 20rem); padding: 2rem 1rem 3rem; }
.not-found-page__card { width: min(540px, 100%); padding: 2.75rem 2rem; border-radius: 28px; text-align: center; }
.not-found-page__icon { display: block; margin-bottom: .5rem; color: #806417; font-size: 3rem; }
.not-found-page__code { margin: 0 0 .5rem; color: var(--js-secondary); font-size: 3.5rem; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.not-found-page__title { margin: 0 0 .75rem; font-size: 1.75rem; }
.not-found-page__lead { margin: 0 0 1.75rem; color: var(--js-text-muted); line-height: 1.6; }
.not-found-page__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.not-found-page__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .78rem 1.25rem; border-radius: 999px; font-size: .94rem; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease; }
.not-found-page__btn:hover { transform: translateY(-2px); text-decoration: none; }
.not-found-page__btn .material-icons { font-size: 1.15rem; }
.not-found-page__btn--primary { color: #302609; background: #e1c665; box-shadow: 0 8px 18px rgba(132,103,22,.2); }
.not-found-page__btn--secondary { color: var(--js-secondary); border: 1px solid rgba(43,53,71,.18); background: rgba(255,255,255,.45); }

@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes app-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .container-fluid { padding: 1.1rem 1rem 2.25rem; } .service-page { padding-top: 0; } .service-page__hero { padding: 2rem 1.2rem; border-radius: 24px; margin-bottom: 1.25rem; } .service-page__grid { grid-template-columns: 1fr; gap: 1rem; } .page-content--has-bg .legal-page { padding: 1.5rem 1.2rem; border-radius: 24px; } }
@media (max-width: 480px) { .not-found-page__actions { flex-direction: column; } .not-found-page__btn { justify-content: center; width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
