/* AFG WebSolutions template.css
   Palette and type taken from the offline page. */

/* ---------- Tokens (light / dark) ---------- */
:root {
    --paper: #F3F8F9; --ink: #1C2A31; --muted: #56646B;
    --cyan: #00BCD4; --cyan-text: #00788A; --line: #C9D6DB; --plate: transparent;
    --surface: #FFFFFF;
    --shell: 1200px;
    --pad: clamp(24px, 5vw, 56px);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #132329; --ink: #E6EEF1; --muted: #9DB0B8;
        --cyan: #1FD0E6; --cyan-text: #5FDDEE; --line: #28414A; --plate: #F3F8F9;
        --surface: #1A2E35;
    }
}
:root[data-theme="dark"] {
    --paper: #132329; --ink: #E6EEF1; --muted: #9DB0B8;
    --cyan: #1FD0E6; --cyan-text: #5FDDEE; --line: #28414A; --plate: #F3F8F9;
    --surface: #1A2E35;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
    margin: 0; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; overflow-x: hidden;
    background: var(--paper); color: var(--ink);
    font: 400 1.0625rem/1.6 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
h1 { font-weight: 800; color: #03A7BC;}
h2 {color: #03A7BC;}
h2, h3, h4 { font-weight: 600; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip-link:focus { top: 1rem; }

.btn,
.component-area .btn-primary,
.component-area button[type="submit"] {
    display: inline-block; padding: .8rem 1.6rem; border: 0; border-radius: 6px;
    background: var(--cyan-text); color: #fff; font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.btn:hover,
.component-area .btn-primary:hover,
.component-area button[type="submit"]:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.header-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem 2rem; padding-block: clamp(18px, 3vw, 32px);
}
.logo { display: inline-block; background: var(--plate); border-radius: 10px; padding: 8px 12px; margin: -8px -12px; }
.logo img { display: block; width: clamp(170px, 20vw, 325px); height: auto; }

.site-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.site-menu a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: .25rem; }
.site-menu a:hover { color: var(--cyan-text); }
.site-menu .current > a,
.site-menu .active > a { box-shadow: inset 0 -3px 0 var(--cyan); }

/* ---------- Home hero (offline-page look) ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: min(78vh, 760px);
    display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 1; padding-block: 48px 72px; }
.hero h1 {
    font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: .98; font-weight: 800;
    letter-spacing: -.035em; margin: 0 0 .45em; max-width: 12ch;
    font-variation-settings: "opsz" 96;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); margin: 0 0 2rem; max-width: 30rem; }
.assurances { list-style: none; margin: -0.75rem 0 2rem; padding: 0; max-width: 34rem; color: var(--muted); }
.assurances li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; line-height: 1.5; }
.assurances li::before {
    content: ""; position: absolute; left: 0; top: .62em;
    width: .9rem; height: 4px; border-radius: 2px; background: var(--cyan);
}
.assurances strong { color: var(--ink); font-weight: 600; }

.globe {
    position: absolute; z-index: 0; pointer-events: none;
    right: clamp(-260px, -12vw, -60px); top: 50%; transform: translateY(-50%);
    width: min(760px, 78vw); height: auto;
}
.globe * { fill: none; stroke: var(--cyan); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.globe .rim { stroke-width: 2; }
.globe .dot { fill: var(--cyan); stroke: none; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.6,.05,.3,1) forwards; }
.draw:nth-child(2) { animation-delay: .15s; } .draw:nth-child(3) { animation-delay: .3s; }
.draw:nth-child(4) { animation-delay: .45s; } .draw:nth-child(5) { animation-delay: .6s; }
.draw:nth-child(6) { animation-delay: .75s; } .draw:nth-child(7) { animation-delay: .9s; }
.draw:nth-child(8) { animation-delay: 1.05s; } .draw:nth-child(9) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { opacity: 0; animation: pop .5s ease-out 2.2s forwards; }
@keyframes pop { to { opacity: 1; } }

@media (max-width: 720px) {
    .globe { opacity: .35; right: -45vw; width: 110vw; }
}
@media (prefers-reduced-motion: reduce) {
    .draw { animation: none; stroke-dashoffset: 0; }
    .dot { animation: none; opacity: 1; }
}

/* ---------- Inner pages ---------- */
.inner-page { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px); }
.component-area { max-width: 46rem; }
.component-area > :first-child h1,
.component-area h1:first-child { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 0; }
.component-area p, .component-area li { max-width: 68ch; }
@media (min-width: 60rem) {
    .inner-page.has-right { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; }
}
.site-right { border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (min-width: 60rem) { .site-right { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 2rem; } }

/* Forms (Joomla contact form, login) */
.component-area input[type="text"],
.component-area input[type="email"],
.component-area input[type="password"],
.component-area input[type="tel"],
.component-area textarea,
.component-area select {
    width: 100%; max-width: 32rem; padding: .7rem .8rem;
    font: inherit; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 6px;
}
.component-area label { font-weight: 600; }

/* Joomla system messages */
#system-message-container joomla-alert,
#system-message-container .alert {
    display: block; margin-bottom: 1.5rem; padding: 1rem 1.25rem;
    background: var(--surface); border-left: 4px solid var(--cyan); border-radius: 6px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- Services page (article wrapped in .svc) ---------- */
.svc h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.02;
    letter-spacing: -.03em; margin: 0 0 .5em; max-width: 16ch;
    font-variation-settings: "opsz" 96;
}
.svc-intro { padding-bottom: 1rem; }

.svc-block { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.svc-block h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.svc-block ul { padding-left: 0; list-style: none; }
.svc-block ul li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.svc-block ul li::before {
    content: ""; position: absolute; left: 0; top: .72em;
    width: .9rem; height: 4px; border-radius: 2px; background: var(--cyan);
}

/* How it works: a real sequence, so numbered */
.svc-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.svc-steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; }
.svc-steps li::before {
    content: counter(step); position: absolute; left: 0; top: -.1rem;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--cyan); color: var(--cyan-text); font-weight: 800;
}
.svc-steps strong { color: var(--ink); }

/* You control / We handle */
.svc-split { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.svc-split > div { background: var(--surface); border-radius: 10px; padding: 1.25rem 1.5rem; }
.svc-split h3 { margin-top: 0; font-size: 1.2rem; }
.svc-split ul { margin: 0; }

/* FAQ */
.svc-faq details { border-bottom: 1px solid var(--line); }
.svc-faq summary {
    cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0;
    font-weight: 600; position: relative;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after {
    content: "+"; position: absolute; right: .25rem; top: .85rem;
    font-size: 1.3rem; color: var(--cyan-text);
}
.svc-faq details[open] summary::after { content: "\2212"; }
.svc-faq details p { margin: 0 0 1.25rem; color: var(--muted); }

/* Closing call to action */
.svc-cta {
    margin-top: 1.5rem; padding: 2rem; border-radius: 10px;
    background: var(--surface); border-left: 4px solid var(--cyan);
}
.svc-cta h2 { margin-top: 0; }
.svc-cta p:last-child { margin-bottom: 0; }

/* ---------- About page (reuses Services styles; adds the facts row) ---------- */
.about-facts {
    list-style: none; margin: 0 0 1.5rem; padding: 1.5rem 0;
    display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    border-top: 1px solid var(--line);
}
.about-facts li { color: var(--muted); line-height: 1.35; }
.about-facts strong {
    display: block; color: var(--cyan-text);
    font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1;
    letter-spacing: -.03em; margin-bottom: .3rem;
}
.about .svc-block ul li strong { color: var(--ink); }

.svc-intro {font-size: 25px;}