/* =========================================================================
   Tech Tailor — site styles
   Clean, white, minimal. Inspired by End Legacy. Field Gothic for headings.
   ========================================================================= */

/* -------------------- Fonts -------------------- */
@font-face {
    font-family: "Field Gothic";
    src: url("./fonts/FieldGothic-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Field Gothic";
    src: url("./fonts/FieldGothic-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Field Gothic";
    src: url("./fonts/FieldGothic-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
/* Condensed variants — echo the logo wordmark. Used for hero display. */
@font-face {
    font-family: "Field Gothic Condensed";
    src: url("./fonts/FieldGothic-ThinCondensed.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Field Gothic Condensed";
    src: url("./fonts/FieldGothic-Condensed.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* -------------------- Design tokens -------------------- */
:root {
    --bg: #ffffff;
    --bg-muted: #fafafa;
    --bg-card: #ffffff;
    --fg: #0a0a0a;
    --fg-muted: #6b7280;
    --fg-soft: #374151;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --accent: #0a0a0a;
    --accent-ink: #ffffff;
    --ring: rgba(10, 10, 10, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);

    --font-head:
        "Field Gothic", "Inter", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display:
        "Field Gothic Condensed", "Field Gothic", "Inter", ui-sans-serif,
        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    --font-body:
        "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    --container: 1200px;
    --container-narrow: 880px;
    --container-wide: 1320px;

    --header-h: 88px;
}

/* -------------------- Reset / base -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
html.scroll-smooth {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
button {
    font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin: 0;
    color: var(--fg);
}
p {
    margin: 0;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -------------------- Layout helpers -------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.section {
    padding-block: clamp(64px, 9vw, 120px);
}
.section-muted {
    background: var(--bg-muted);
}
.section-head {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 300;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
}
.section-head p {
    color: var(--fg-muted);
    font-size: 17px;
}
.section-head p.fineprint {
    color: var(--fg-muted);
    font-size: 13px;
    margin-top: 8px;
}

.divider {
    height: 1px;
    background: var(--border);
    width: 100%;
}

/* -------------------- Header / nav -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
}
.brand-logo {
    height: 56px;
    width: auto;
}
.brand-logo-footer {
    height: 40px;
}
.nav-links {
    display: none;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    color: var(--fg-muted);
    font-weight: 500;
    letter-spacing: 0;
    transition: color 0.15s ease;
}
.nav-links a:hover {
    color: var(--fg);
}
.nav-links a.btn {
    color: var(--accent-ink);
}
.nav-links a.btn:hover {
    color: var(--accent-ink);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--fg);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.mobile-menu[hidden] {
    display: none;
}
.mobile-menu a {
    padding: 10px 4px;
    color: var(--fg-soft);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a.btn {
    border: none;
    color: var(--accent-ink);
}

@media (min-width: 820px) {
    .nav-links {
        display: flex;
    }
    .nav-toggle,
    .mobile-menu {
        display: none;
    }
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}
.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 22px;
    font-size: 15px;
}
.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: #1f1f1f;
    color: var(--accent-ink);
}

.btn-outline {
    background: var(--bg);
    color: var(--fg);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    background: var(--bg-muted);
    color: var(--fg);
}

.btn svg {
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}
.btn:hover svg {
    transform: translateX(2px);
}

.inline-link {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.inline-link:hover {
    color: var(--accent);
}

/* -------------------- Hero -------------------- */
.hero {
    padding-top: clamp(72px, 10vw, 120px);
    padding-bottom: clamp(64px, 9vw, 120px);
}
.hero-inner {
    max-width: 960px;
    margin-inline: auto;
    text-align: center;
}
.display {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 96px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.04;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.display .accent {
    display: inline;
    font-weight: 400;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 0.6) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lede {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--fg-muted);
    line-height: 1.6;
}
.cta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(48px, 7vw, 80px);
}
@media (min-width: 600px) {
    .cta-row {
        flex-direction: row;
    }
}

.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.feature-card svg {
    color: var(--fg);
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}
.feature-card p {
    color: var(--fg-muted);
    font-size: 14px;
}

/* -------------------- How it works (steps) -------------------- */
.steps {
    max-width: var(--container-wide);
    margin-inline: auto;
    display: grid;
    gap: 32px 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
}
.step-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.step h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0;
}
.step p {
    font-size: 14px;
    color: var(--fg-muted);
    max-width: 220px;
}
/* Desktop connector lines between steps */
@media (min-width: 1024px) {
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        left: 50%;
        width: 100%;
        height: 1px;
        background: var(--border);
        z-index: 0;
    }
    .step-icon {
        position: relative;
        z-index: 1;
    }
}

/* -------------------- Services cards -------------------- */
.cards {
    max-width: var(--container-wide);
    margin-inline: auto;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.card-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}
.card-head svg {
    color: var(--fg);
}
.card-head h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0;
}
.card p {
    color: var(--fg-muted);
    font-size: 14.5px;
}

/* -------------------- Pricing -------------------- */
.pricing-grid {
    max-width: 1080px;
    margin-inline: auto;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 840px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.price-head {
    padding: 28px 28px 0;
    text-align: center;
}
.price-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.005em;
}
.price-sub {
    font-size: 13.5px;
    color: var(--fg-muted);
    margin-top: 6px;
}
.price-body {
    padding: 24px 28px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.price-amount {
    text-align: center;
}
.price-amount .amount {
    font-family: var(--font-body);
    font-size: clamp(44px, 5.4vw, 56px);
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1;
    margin-bottom: 6px;
}
.price-note {
    font-size: 14px;
    color: var(--fg-muted);
}
.price-deposit {
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
}
.price-deposit p {
    margin: 0;
}
.price-deposit strong {
    font-weight: 500;
    font-size: 15.5px;
}
.price-deposit .small {
    color: var(--fg-muted);
}

.price-list h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0;
}
.price-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.price-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--fg-soft);
}
.price-list li svg {
    color: #16a34a;
    flex: 0 0 auto;
}

.price-foot {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* -------------------- Contact form -------------------- */
.contact-wrap {
    max-width: 640px;
    margin-inline: auto;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}
.contact-card-head {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 18px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 560px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-soft);
}
.form-field input,
.form-field textarea {
    font: inherit;
    font-size: 14.5px;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.form-field textarea {
    min-height: 120px;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--fg);
    box-shadow: 0 0 0 3px var(--ring);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}

/* -------------------- Footer -------------------- */
.site-footer {
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
    padding-block: 56px 24px;
}
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    }
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col a {
    color: var(--fg-soft);
    font-size: 14px;
}
.footer-col a:hover {
    color: var(--fg);
}
.footer-col .muted,
.footer-col ul.muted li {
    color: var(--fg-muted);
    font-size: 14px;
    line-height: 1.55;
}
.footer-col ul.muted a {
    color: var(--fg-muted);
}
.footer-col ul.muted a:hover {
    color: var(--fg);
}

.footer-bottom {
    padding-block: 20px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* -------------------- Utilities -------------------- */
.small {
    font-size: 13px;
}
.muted {
    color: var(--fg-muted);
}
.center {
    text-align: center;
}

/* -------------------- hCaptcha -------------------- */
.h-captcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
    margin: 4px 0;
}
.h-captcha iframe {
    max-width: 100%;
}

/* -------------------- Form status -------------------- */
.form-status {
    margin: 0;
    min-height: 1em;
}
.form-status.is-success {
    color: #15803d;
    font-weight: 500;
}
.form-status.is-error {
    color: #b91c1c;
    font-weight: 500;
}
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
