/* padevgroup.com. One family with rtc.padevgroup.com and the articles site: the same navy,
   the same blues, system sans-serif. First visit follows the device; the button in the top bar
   overrides it and the choice is remembered. No web fonts, nothing the page waits for. */

:root {
    --navy: #0b2a4f;
    --cyan: #12cdf7;
    --paper: #ffffff;
    --tint: #eaf2fd;
    --ink: #06204a;
    --text: #22304d;
    --muted: #4a5a80;
    --link: #0a3fa8;
    --line: #c9d9f2;
    --field: #ffffff;
    --field-line: #8fb0dd;
    --good: #0b5d2e;
    --good-bg: #e6f4ea;
    --warn: #7a4a00;
    --warn-bg: #fff4d6;
    --bad: #9c1c1c;
    --bad-bg: #fdeaea;
    color-scheme: light;
}

/* Dark, when the device asks for it and the visitor has not chosen light... */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #071a33;
        --tint: #0d2647;
        --ink: #ffffff;
        --text: #d7e4f6;
        --muted: #a9bddb;
        --link: #8ccaff;
        --line: #274a7a;
        --field: #0d2647;
        --field-line: #3e659c;
        --good: #8fe0a8;
        --good-bg: #0e3320;
        --warn: #ffd98a;
        --warn-bg: #3a2c08;
        --bad: #ffb1b1;
        --bad-bg: #3d1414;
        color-scheme: dark;
    }
}
/* ...and dark when the visitor chose it. Keep the two blocks the same. */
:root[data-theme="dark"] {
    --paper: #071a33;
    --tint: #0d2647;
    --ink: #ffffff;
    --text: #d7e4f6;
    --muted: #a9bddb;
    --link: #8ccaff;
    --line: #274a7a;
    --field: #0d2647;
    --field-line: #3e659c;
    --good: #8fe0a8;
    --good-bg: #0e3320;
    --warn: #ffd98a;
    --warn-bg: #3a2c08;
    --bad: #ffb1b1;
    --bad-bg: #3d1414;
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
}

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }
/* A narrow section keeps the page's left edge and only shortens its lines. */
.narrow > * { max-width: 46rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip { position: absolute; left: -999rem; top: 0; background: var(--paper); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Top bar. Navy in both themes; the logo's file is the colour mark on this same navy. */
.top { background: var(--navy); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }
/* The logo sits left of the company name, always. Its glow needs no room of its own. */
.firm { display: flex; align-items: center; gap: 0.3rem; color: #fff; text-decoration: none; line-height: 1.15; min-width: 0; }
.mark { flex: none; display: block; width: 4rem; height: 4rem; margin: -0.6rem 0 -0.6rem -0.55rem; }
.firm-name { display: block; font-weight: 700; font-size: 1.4rem; white-space: nowrap; }
.firm-tag { display: block; color: var(--cyan); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; margin-top: 0.1rem; }

.top-tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.top-call { background: var(--cyan); color: #06204a; font-weight: 700; text-decoration: none; padding: 0.5rem 0.95rem; border-radius: 0.5rem; white-space: nowrap; }
.call-short { display: none; }
.theme, .menu {
    font: inherit; color: #fff; background: none; cursor: pointer;
    border: 2px solid #5f86bd; border-radius: 0.5rem; min-height: 2.6rem; padding: 0 0.7rem;
}
.theme { width: 2.6rem; padding: 0; font-size: 1.1rem; line-height: 1; }
.theme:hover, .menu:hover { border-color: var(--cyan); }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: inline; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.menu { display: none; font-weight: 600; }
.menu-icon { display: none; font-size: 1.25rem; line-height: 1; }

.nav { border-top: 1px solid #1d4577; border-bottom: 3px solid var(--cyan); }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.4rem; }
.nav a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: 0.7rem 0.75rem; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav li:first-child a { margin-left: -0.75rem; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { border-bottom-color: #fff; }

@media (max-width: 48rem) {
    .mark { width: 3.1rem; height: 3.1rem; }
    .firm-name { font-size: 1.1rem; }
    .firm-tag { font-size: 0.58rem; white-space: normal; max-width: 7.6rem; line-height: 1.2; }
    .call-full { display: none; }
    .call-short { display: inline; }
    .top-call { padding: 0.5rem 0.7rem; }
    /* A phone follows its own light or dark setting; the button would crowd the bar. */
    .theme { display: none; }
    /* With scripts on, the links fold behind the Menu button. Without them they simply stay open. */
    .js .menu { display: block; }
    .js .nav:not(.open) { display: none; }
    .nav ul { display: block; padding-top: 0.3rem; padding-bottom: 0.5rem; }
    .nav a { padding: 0.7rem 0; margin: 0; border-bottom: 1px solid #1d4577; }
    .nav li:first-child a { margin-left: 0; }
    .nav li:last-child a { border-bottom: 0; }
    .nav a[aria-current="page"] { border-bottom-color: #1d4577; color: var(--cyan); }
}
/* The narrowest phones: the word Menu becomes the three-bar sign before anything overlaps. */
@media (max-width: 23.5rem) {
    .menu { padding: 0 0.6rem; }
    .menu-word { display: none; }
    .menu-icon { display: inline; }
}

/* Home hero continues the navy of the bar. */
.hero { background: var(--navy); color: #fff; padding: 3.2rem 0 3.4rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; max-width: 22ch; }
.hero-lead { font-size: 1.15rem; max-width: 42rem; margin-top: 1.3rem; color: #e3effc; }
.hero .cta-row { margin-top: 2rem; }

.band { padding: 3.2rem 0; }
.band-head { padding: 3rem 0 0.4rem; }
.band-head + .band { padding-top: 1.6rem; }
.band-tint { background: var(--tint); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2 { color: #fff; }
.band-navy a:not(.btn) { color: var(--cyan); }

h1 { color: var(--ink); font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
h2 { color: var(--ink); font-size: clamp(1.4rem, 3.2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
h3 { color: var(--ink); font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
p { margin-top: 0.9rem; max-width: 44rem; }
.lead { font-size: 1.15rem; margin-top: 1.1rem; }
.narrow h2 + p, .split h2 + p { margin-top: 0.6rem; }
.narrow p + h2, .narrow table + p { margin-top: 2.2rem; }
.narrow h2 + h3 { margin-top: 0.8rem; }
.narrow p + h3 { margin-top: 1.8rem; }
.narrow h3 + p { margin-top: 0.5rem; }
.role { margin-top: 0.15rem; color: var(--muted); font-weight: 600; }
.facts { margin: 0.6rem 0 0.8rem 1.2rem; }
.facts li { margin: 0.3rem 0; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem 3rem; margin-top: 1.6rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 2.4rem 3.5rem; }
@media (min-width: 46rem) {
    .grid, .split { grid-template-columns: 1fr 1fr; }
}
.item { border-top: 3px solid var(--cyan); padding-top: 0.9rem; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.item p { margin-top: 0.5rem; }

.service { padding: 1.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.service:first-child { border-top: 0; padding-top: 0; }
.rate { font-weight: 700; color: var(--ink); }

.faq h2 { font-size: 1.25rem; margin-top: 2rem; }
.faq h2:first-child { margin-top: 0; }
.faq h2 + p { margin-top: 0.4rem; }
.after { margin-top: 1.6rem; }

.btn {
    display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    background: var(--cyan); color: #06204a; border: 2px solid var(--cyan); border-radius: 0.5rem;
    padding: 0.7rem 1.3rem; min-height: 3rem;
}
.btn:hover { background: #5fdcfa; border-color: #5fdcfa; }
.btn-line { background: none; color: #fff; border-color: #5f86bd; }
.btn-line:hover { background: none; border-color: var(--cyan); }
.btn:disabled { opacity: 0.6; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta h2 + p { margin-top: 0.5rem; }
.cta .cta-row { margin-top: 1.4rem; }
/* On a light page a call to action needs a dark button, not a white-on-white outline. */
.band-head .btn, .band:not(.band-navy) .btn-line { color: #06204a; }

/* Rates */
table { border-collapse: collapse; width: 100%; margin-top: 1.2rem; }
caption { text-align: left; color: var(--muted); font-size: 0.92rem; padding-bottom: 0.5rem; }
.rates th, .rates td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates thead th { background: var(--navy); color: #fff; border-bottom: 0; }
.rates tbody th { font-weight: 600; color: var(--ink); }
.rates td { white-space: nowrap; }
@media (max-width: 34rem) {
    .rates thead { position: absolute; left: -999rem; }
    .rates tr { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
    .rates th, .rates td { display: block; border: 0; padding: 0.1rem 0; }
    .rates td::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Forms */
form { margin-top: 1rem; }
label { display: block; font-weight: 600; margin-top: 1.1rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
    display: block; width: 100%; font: inherit; color: var(--text); background: var(--field);
    border: 2px solid var(--field-line); border-radius: 0.5rem; padding: 0.65rem 0.8rem; margin-top: 0.35rem; min-height: 3rem;
}
textarea { resize: vertical; }
.hint { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; }
form .btn { margin-top: 1.4rem; }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 0.5rem; padding: 0.8rem 1rem; margin-top: 1.2rem; font-weight: 600; }
.status-ok { color: var(--good); background: var(--good-bg); border-left: 6px solid var(--good); }
.status-bad { color: var(--bad); background: var(--bad-bg); border-left: 6px solid var(--bad); }
.reach { margin-top: 0.6rem; }
.reach a { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; text-decoration: none; line-height: 1.15; white-space: nowrap; }
.reach a:hover { text-decoration: underline; }
a[href^="tel:"] { white-space: nowrap; }
/* Google's badge is replaced by the line of text under the form, as its terms allow. */
.grecaptcha-badge { visibility: hidden; }

/* Free tools */
.with-aside { display: grid; grid-template-columns: 1fr; gap: 2.5rem 3rem; }
@media (min-width: 60rem) { .with-aside { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; } }
.tool { padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.tool:first-child { border-top: 0; padding-top: 0; }
.tool-row { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.35rem; }
.tool-row input { margin-top: 0; flex: 1; min-width: 0; }
.tool-row .btn { margin-top: 0; flex: none; }
input.short { max-width: 16rem; }
.result { margin-top: 1.4rem; }
.result:focus { outline: none; }
.verdict { border-radius: 0.5rem; padding: 0.8rem 1rem; margin-top: 0; max-width: none; }
.verdict-good { color: var(--good); background: var(--good-bg); border-left: 6px solid var(--good); }
.verdict-warn { color: var(--warn); background: var(--warn-bg); border-left: 6px solid var(--warn); }
.verdict-bad { color: var(--bad); background: var(--bad-bg); border-left: 6px solid var(--bad); }
.facts th, .facts td { text-align: left; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 13rem; font-weight: 600; color: var(--ink); }
.facts td { overflow-wrap: anywhere; }
@media (max-width: 34rem) {
    .facts th, .facts td { display: block; width: auto; border: 0; padding: 0; }
    .facts tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
    .tool-row { flex-direction: column; }
}
.promos { display: grid; gap: 1rem; }
@media (min-width: 34rem) and (max-width: 59.99rem) { .promos { grid-template-columns: 1fr 1fr; } }
.promo { display: block; background: var(--navy); color: #fff; text-decoration: none; border-radius: 0.6rem; padding: 1.2rem 1.25rem; }
.promo span { display: block; }
.promo-head { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.5rem; }
.promo-go { color: var(--cyan); font-weight: 700; margin-top: 0.9rem; text-decoration: underline; text-underline-offset: 0.15em; }
.promo:hover .promo-go { color: #fff; }

/* Footer */
.foot { background: #06204a; color: #cfe6fb; padding: 2.4rem 0 1.6rem; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem 3rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.1fr 1fr 1.4fr; } }
.foot p { margin-top: 0.4rem; max-width: none; }
.foot-name { font-weight: 700; font-size: 1.1rem; color: #fff; margin-top: 0; }
.foot-head { font-weight: 700; color: #fff; margin-top: 0; }
.foot ul { list-style: none; margin-top: 0.4rem; }
.foot li { margin: 0.3rem 0; }
.foot-legal { margin-top: 1.8rem; border-top: 1px solid #1d4577; padding-top: 1rem; }

@media print {
    .top-tools, .nav, .cta, .promos, .foot-grid { display: none; }
    .top, .hero, .band-navy { background: none; color: #000; }
    .firm, .hero h1, .hero-lead { color: #000; }
}
