/* ============================================================
   Tekrut — stylesheet
   Palette and shapes taken from the Tekrut company deck:
   deep navy ground, one bright blue accent, light grey
   breathing space, and the curved corner-cut motif.
   ============================================================ */

:root {
    --ink:        #06243e;
    --ink-2:      #0b3a63;
    --accent:     #2e6fe8;
    --accent-lit: #7cabf7;
    --paper:      #ffffff;
    --mist:       #eff2f5;
    --body:       #4f5d6b;
    --line:       #dce3ea;

    --shell:      1160px;
    --gutter:     24px;

    --r-sm:  8px;
    --r-md:  16px;
    --r-lg:  28px;
    --r-cut: 96px;   /* the deck's curved cut */

    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
    --step-3: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
    --step-4: clamp(2.1rem, 1.5rem + 2.7vw, 3.4rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: var(--step-0);
    line-height: 1.72;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.logo {max-width: 50px;}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.hi { color: var(--accent); }

/* ---------- layout ---------- */

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

.band { padding-block: clamp(56px, 8vw, 104px); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: #c6d4e2; }
.band--ink h2,
.band--ink h3 { color: #fff; }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-2);
}

.nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

.nav a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--accent); }

.nav .btn { margin-left: 10px; }
.nav .btn:hover { background: var(--ink-2); color: #fff; }

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    cursor: pointer;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--ink-2); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-lit); color: var(--ink); }

/* ---------- hero ---------- */

.hero { background: var(--paper); overflow: hidden; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: stretch;
    gap: 0;
}

.hero__copy { padding: clamp(48px, 6vw, 96px) 0; align-self: center; }
.hero__copy p { font-size: var(--step-1); max-width: 46ch; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* the deck's signature curved cut */
.hero__panel {
    position: relative;
    background: var(--ink);
    border-radius: var(--r-cut) 0 0 var(--r-cut);
    margin-left: 48px;
    margin-right: calc(50% - 50vw);
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 40px;
}

.hero__panel svg { width: min(320px, 70%); height: auto; }

.hero__stat {
    position: absolute;
    left: -44px;
    bottom: 48px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: 0 18px 44px rgba(6, 36, 62, 0.16);
    padding: 20px 26px;
    max-width: 240px;
}
.hero__stat b {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}
.hero__stat span { font-size: 0.85rem; line-height: 1.45; display: block; margin-top: 4px; }

/* ---------- reusable pieces ---------- */

.lede {
    font-size: var(--step-1);
    max-width: 58ch;
}

.head { max-width: 62ch; margin-bottom: 44px; }
.head--center { margin-inline: auto; text-align: center; }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px;
    padding: 30px 28px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.card p { font-size: 0.95rem; }

.card--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: #bfd0e0;
}
.card--ink h3 { color: #fff; }

.card__more {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-lit);
    padding-bottom: 2px;
}

/* Service entries — a list, not a card grid, because the content is
   long-form prose and cards would truncate it. */
.services { border-top: 1px solid var(--line); }

.service {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}
.service h3 { margin-bottom: 0.35em; }
.service__lede { color: var(--accent); font-weight: 500; font-size: 0.98rem; margin: 0; }

/* Stat ribbons, echoing the layered bands in the deck */
.ribbon {
    background: var(--ink-2);
    color: #d3e1f0;
    border-radius: var(--r-md);
    padding: 24px 30px;
    margin-bottom: 14px;
}
.ribbon:nth-child(even) { background: var(--accent); color: #eaf1ff; margin-left: clamp(0px, 4vw, 56px); }
.ribbon b { color: #fff; font-weight: 600; }
.ribbon p { margin: 0; max-width: 70ch; }

.figure-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}
.figure {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
}
.figure b {
    display: block;
    font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
}
.band--ink .figure b { color: #fff; }
.figure span { font-size: 0.9rem; line-height: 1.5; display: block; margin-top: 6px; }

/* People */
.person {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.person__avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 3px solid var(--accent-lit);
}
.person h3 { margin-bottom: 0.15em; }
.person__role { color: var(--accent); font-weight: 500; font-size: 0.92rem; margin: 0 0 0.9em; }

/* Quote, used once for the Peter Schutz line */
.quote {
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 24px;
    margin: 28px 0 0;
}
.quote p {
    font-size: var(--step-2);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.4em;
}
.quote cite { font-style: normal; font-size: 0.9rem; }

/* Plain checklist */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

/* ---------- call to action ---------- */

.cta {
    background: var(--ink);
    color: #c6d4e2;
    border-radius: var(--r-cut) 0 var(--r-cut) 0;
    padding: clamp(40px, 5vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 0.3em; }
.cta p { margin: 0; }

/* ---------- forms ---------- */

.form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 3.5vw, 44px);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: #8493a2; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: #fff;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(46, 111, 232, 0.25);
    outline-offset: 0;
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: #c0392b; }

.field input[type='file'] {
    padding: 10px 12px;
    cursor: pointer;
    background: #f7f9fb;
}
.field input[type='file']::file-selector-button {
    margin-right: 14px;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
.field input[type='file']::file-selector-button:hover { border-color: var(--accent); }

.hint {
    display: block;
    color: #8493a2;
    font-size: 0.85rem;
    margin-top: 6px;
}

.err[hidden] { display: none; }

.err {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* honeypot — hidden from people, visible to bots */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-bottom: 28px;
}
.notice p { margin: 0; }
.notice--ok {
    background: #e8f4ec;
    border-left: 4px solid #2e7d4f;
    color: #1e5135;
}
.notice--ok strong { color: #14402a; }
.notice--bad {
    background: #fbeceb;
    border-left: 4px solid #c0392b;
    color: #8c2c21;
}
.notice--bad strong { color: #6e2019; }

.contact-aside { font-size: 0.97rem; }
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.contact-aside dl { margin: 0 0 26px; }
.contact-aside dt {
    font-weight: 500;
    color: var(--ink);
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.contact-aside dd { margin: 0 0 4px; }
.contact-aside a { text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.footer {
    background: var(--ink);
    color: #93a9bf;
    padding-block: 56px 28px;
    font-size: 0.93rem;
}
.footer a { color: #cfe0f1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 { color: #fff; font-size: 0.95rem; font-weight: 500; margin-bottom: 14px; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr;
    gap: 44px;
    padding-bottom: 36px;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 9px; }
.footer .brand__name { color: #fff; }
.footer p { font-size: 0.92rem; }

.footer__base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__panel {
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--r-lg);
        min-height: 280px;
        margin-bottom: 56px;
    }
    .hero__stat { left: 16px; bottom: -36px; }
    .split { grid-template-columns: 1fr; }
    .service { grid-template-columns: 1fr; gap: 12px; }
    .cta { grid-template-columns: 1fr; border-radius: var(--r-lg); }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 20px;
        box-shadow: 0 16px 30px rgba(6, 36, 62, 0.08);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 10px; }
    .nav .btn { margin-left: 0; margin-top: 8px; text-align: center; }
    .masthead__inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
