/* ---------------------------------------------------------------------------
   Logic-IT public site.

   Hand-written rather than generated, because the site is six pages and pulling
   in a build step (Node, Tailwind, a bundler) to produce this much CSS would put
   a whole toolchain on the deploy path for no gain. The design is unchanged from
   the previous site: stone greys, one orange accent, Fraunces over Inter, square
   corners, and hairline rules doing the work borders usually do.
   --------------------------------------------------------------------------- */

:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-600: #dc2626;
    --green-700: #15803d;

    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;

    --shell: 72rem;   /* max-w-6xl */
    --gutter: 1rem;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--stone-800);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container.is-narrow {
    max-width: 56rem;   /* max-w-4xl */
}

.container.is-medium {
    max-width: 64rem;   /* max-w-5xl */
}

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

.site-header {
    border-bottom: 1px solid var(--stone-200);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 2.25rem;
    width: auto;
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--stone-900);
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-600);
}

.nav-desktop a {
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.15s ease;
}

.nav-desktop a:hover {
    color: var(--stone-950);
}

.nav-desktop a.is-active {
    color: var(--stone-950);
}

/* The one-pixel accent under the current page, in place of a heavier tab. */
.nav-desktop a.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--orange-500);
}

.nav-desktop .nav-cta,
.nav-desktop .nav-cta.is-active {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--stone-900);
    color: var(--stone-900);
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-desktop .nav-cta::after {
    display: none;
}

.nav-desktop .nav-cta:hover {
    background: var(--stone-900);
    color: #fff;
}

.nav-toggle-button {
    display: inline-flex;
    padding: 0.5rem;
    color: var(--stone-700);
    cursor: pointer;
}

.nav-toggle-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--stone-200);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-600);
}

.nav-mobile a {
    padding: 0.625rem 0.5rem;
}

.nav-mobile .nav-mobile-cta {
    border-top: 1px solid var(--stone-200);
    color: var(--stone-950);
    font-weight: 600;
}

.nav-toggle:checked ~ .nav-mobile {
    display: flex;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .nav-toggle-button,
    .nav-mobile,
    .nav-toggle:checked ~ .nav-mobile {
        display: none;
    }
}

@media (min-width: 640px) {
    :root {
        --gutter: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --gutter: 2rem;
    }
}

/* -------------------------------------------------------- shared type bits */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

.eyebrow-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--orange-500);
    flex: none;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--stone-200);
}

.section:last-of-type {
    border-bottom: 0;
}

.section.is-tinted {
    background: var(--stone-50);
}

.section-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading {
    max-width: 42rem;
}

.section-heading.is-centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.is-centered .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    margin-top: 0.75rem;
    font-size: 1.875rem;
}

.section-lead {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--stone-600);
}

.page-head {
    border-bottom: 1px solid var(--stone-200);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.page-head h1 {
    margin-top: 1rem;
    font-size: 2.25rem;
}

.page-lead {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1.125rem;
    color: var(--stone-600);
}

.empty-note,
.muted-note {
    color: var(--stone-500);
}

.muted-note {
    font-style: italic;
    color: var(--stone-400);
}

.trusted-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

@media (min-width: 640px) {
    .section-heading h2 {
        font-size: 2.25rem;
    }

    .page-head h1 {
        font-size: 3rem;
    }
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--stone-900);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.button:hover {
    background: var(--stone-700);
}

.button.is-full {
    width: 100%;
}

.link-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-900);
    text-decoration: underline;
    text-decoration-color: var(--orange-400);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.link-arrow:hover {
    color: var(--orange-600);
}

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

.hero-section {
    border-bottom: 1px solid var(--stone-200);
}

.hero {
    display: grid;
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero h1 {
    margin-top: 1.25rem;
    font-size: 2.25rem;
    line-height: 1.15;
}

.hero h1 em {
    font-style: italic;
    color: var(--orange-600);
}

.hero-lead {
    margin-top: 1.5rem;
    max-width: 32rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--stone-600);
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.hero-mark {
    display: flex;
    justify-content: center;
    border: 1px solid var(--stone-200);
    padding: 3rem;
}

.hero-mark img {
    width: 12rem;
    max-width: 100%;
    height: auto;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }

    .hero-mark {
        justify-self: end;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .hero h1 {
        font-size: 3.75rem;
    }
}

.stats-band {
    border-top: 1px solid var(--stone-200);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--stone-200);
    border-left: 1px solid var(--stone-200);
}

.stat:nth-child(2n) {
    border-right: 1px solid var(--stone-200);
}

.stat-value {
    font-family: var(--serif);
    font-size: 2.25rem;
    color: var(--stone-900);
}

.stat-plus {
    color: var(--orange-500);
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

@media (min-width: 1024px) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stat {
        border-top: 0;
    }

    .stat:last-child {
        border-right: 1px solid var(--stone-200);
    }
}

/* -------------------------------------------------------------- quote block */

.quote-section {
    border-bottom: 1px solid var(--stone-200);
    background: var(--stone-50);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.quote {
    max-width: 56rem;
    text-align: center;
}

.quote-mark {
    font-family: var(--serif);
    font-size: 3.75rem;
    line-height: 1;
    color: var(--orange-300);
}

.quote-text {
    margin-top: -1.5rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--stone-800);
}

.quote-author {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-author img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    object-fit: cover;
}

.quote-author > div {
    text-align: left;
}

.quote-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-900);
}

.quote-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

@media (min-width: 640px) {
    .quote-text {
        font-size: 1.875rem;
    }
}

/* --------------------------------------------------------------- card grids

   One pixel of gap over a stone background is what draws the hairline rules
   between cards, so the grid needs no per-card borders and no double lines
   where two cards meet.                                                       */

.card-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1px;
    background: var(--stone-200);
    border: 1px solid var(--stone-200);
    overflow: hidden;
}

.card-grid.is-spaced {
    margin-top: 2.5rem;
}

.card-grid > * {
    background: #fff;
    display: flex;
}

.card-grid > * > * {
    width: 100%;
}

.card {
    background: #fff;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.card-grid .card:hover {
    border-color: var(--stone-900);
}

.card.is-roomy {
    padding: 2rem;
}

@media (min-width: 640px) {
    .card-grid.cols-2,
    .card-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card.is-roomy {
        padding: 2.5rem;
    }
}

@media (min-width: 768px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .card-grid.cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border: 1px solid var(--stone-300);
    color: var(--stone-500);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.card:hover .card-icon {
    border-color: var(--orange-500);
    color: var(--orange-500);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.card-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

.product-card .card-icon {
    margin-bottom: 1.25rem;
}

.product-image {
    margin-bottom: 1.25rem;
    height: 9rem;
    width: 100%;
    object-fit: cover;
}

.card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.card-title.is-small {
    font-size: 1.125rem;
}

.service-card .card-title {
    margin-top: 1.25rem;
}

.card-body {
    margin-top: 0.75rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--stone-600);
}

.card-meta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--stone-100);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--stone-400);
}

.card-list {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--stone-100);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--stone-600);
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bullet {
    margin-top: 0.5rem;
    width: 0.25rem;
    height: 0.25rem;
    flex: none;
    border-radius: 9999px;
    background: var(--orange-500);
}

.plain-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--stone-600);
}

/* ------------------------------------------------------------------ clients */

.client-card {
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.client-logo {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.15s ease;
}

.client-card:hover .client-logo {
    filter: grayscale(0);
}

.client-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--stone-300);
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--stone-500);
}

.client-name {
    font-weight: 500;
    color: var(--stone-900);
}

.client-address {
    font-size: 0.75rem;
    color: var(--stone-500);
}

.logo-strip {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3.5rem;
}

.logo-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-500);
}

.logo-strip-item img {
    height: 3rem;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.15s ease;
}

.logo-strip-item img:hover {
    filter: grayscale(0);
}

/* --------------------------------------------------------------- CTA / about */

.cta-panel {
    max-width: 56rem;
    margin-inline: auto;
    border: 1px solid var(--stone-200);
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-panel h2 {
    font-size: 1.875rem;
}

.cta-panel p {
    margin-top: 0.75rem;
    color: var(--stone-600);
}

.cta-panel .button {
    margin-top: 2rem;
}

.panel {
    border: 1px solid var(--stone-200);
    padding: 2rem;
}

.proprietor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.proprietor-photo {
    width: 8rem;
    height: 8rem;
    flex: none;
    border-radius: 9999px;
    object-fit: cover;
}

.proprietor-name {
    margin-top: 0.25rem;
    font-size: 1.5rem;
}

.proprietor-speech {
    margin-top: 1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--stone-700);
}

@media (min-width: 640px) {
    .panel {
        padding: 3rem;
    }

    .proprietor {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

/* ------------------------------------------------------------------- contact */

.contact-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--stone-600);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    flex: none;
    margin-top: 0.125rem;
    color: var(--orange-500);
}

.contact-icon .icon {
    width: 1rem;
    height: 1rem;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
}

.field input,
.field textarea {
    margin-top: 0.375rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--stone-300);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--stone-900);
    background: #fff;
    border-radius: 0;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--stone-900);
}

.field textarea {
    resize: vertical;
}

.field-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--red-600);
}

.notice {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--stone-900);
    background: var(--stone-50);
    color: var(--stone-800);
}

.notice.is-bad {
    border-color: var(--red-600);
    color: var(--red-600);
}

/* Off-screen rather than display:none, so the bots that skip hidden inputs
   still see it and fill it in. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.site-footer {
    border-top: 1px solid var(--stone-200);
    background: var(--stone-50);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--stone-900);
}

.footer-slogan {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--stone-500);
}

.footer-heading {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
}

.footer-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--stone-600);
}

.footer-list a:hover {
    color: var(--stone-950);
}

.footer-legal {
    border-top: 1px solid var(--stone-200);
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--stone-400);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------- error page */

.error-page {
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.error-page h1 {
    margin-top: 1rem;
    font-size: 2.25rem;
}
