/* Lex Corp Media - shared design system (cyan, grey and black, from the logo).
   Used by every public page. Page-specific rules live in their own file (css/home.css ...). */

:root {
    --lcm-cyan: #00A8E8;
    --lcm-cyan-hover: #0086B8;
    --lcm-cyan-tint: #E6F6FC;
    --lcm-black: #111111;
    --lcm-grey-dark: #4A4A4A;
    --lcm-grey-mid: #7A7A7A;
    --lcm-grey-light: #F4F6F8;
    --lcm-white: #FFFFFF;
    --lcm-danger: #B42318;
    --lcm-danger-tint: #FEF3F2;
    --lcm-success: #067647;
    --lcm-success-tint: #ECFDF3;

    --lcm-border: #E2E8F0;
    --lcm-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --lcm-glow-shadow: 0 8px 24px rgba(0, 168, 232, 0.2);
    --lcm-radius: 6px;
    --lcm-radius-lg: 10px;

    --font-main: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Baloo 2', 'Nunito Sans', -apple-system, "Segoe UI", sans-serif;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body.lcm {
    font-family: var(--font-main);
    color: var(--lcm-black);
    background-color: var(--lcm-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--lcm-cyan-hover); }
a:hover { color: var(--lcm-cyan); }

h1, h2, h3, h4 { font-family: var(--font-display); margin-top: 0; }
p { margin-top: 0; }

:focus-visible { outline: 3px solid rgba(0, 168, 232, 0.55); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--lcm-black); color: var(--lcm-white);
    padding: 10px 16px; z-index: 2000; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--lcm-white); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.section-padding { padding: 80px 0; }
.section-divider { border-top: 1px solid var(--lcm-grey-light); }
.bg-white { background-color: var(--lcm-white); }
.bg-soft { background-color: var(--lcm-grey-light); }

.grid { display: grid; gap: 32px; }
.grid > * { min-width: 0; }
.grid-2-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Header ---------- */
.site-header {
    background: var(--lcm-white);
    border-bottom: 2px solid var(--lcm-grey-light);
    position: sticky; top: 0; z-index: 1000;
    padding: 16px 0;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.brand-logo { display: block; flex: 0 0 auto; }
.brand-logo-img { height: 42px; width: auto; display: block; }

.nav-menu {
    display: flex; align-items: center; gap: 28px;
    list-style: none; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
    text-decoration: none; color: var(--lcm-grey-dark);
    font-weight: 700; font-size: 0.95rem;
    padding: 6px 0; border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:not(.btn):hover,
.nav-menu a.is-active { color: var(--lcm-cyan-hover); border-bottom-color: var(--lcm-cyan); }

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 10px;
    background: transparent; border: 2px solid var(--lcm-grey-light);
    border-radius: var(--lcm-radius); cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--lcm-black); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Buttons and badges ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    max-width: 100%;
    padding: 12px 26px;
    font-family: var(--font-main); font-size: 0.95rem; font-weight: 800; line-height: 1.3;
    text-align: center; text-decoration: none; white-space: normal;
    border-radius: var(--lcm-radius); border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--lcm-cyan); color: var(--lcm-white);
    border-color: var(--lcm-cyan); box-shadow: var(--lcm-glow-shadow);
}
.btn-primary:hover { background-color: var(--lcm-cyan-hover); border-color: var(--lcm-cyan-hover); color: var(--lcm-white); transform: translateY(-1px); }
.btn-outline { background-color: transparent; color: var(--lcm-black); border-color: var(--lcm-black); }
.btn-outline:hover { background-color: var(--lcm-black); color: var(--lcm-white); transform: translateY(-1px); }
.btn-full { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.badge-accent {
    display: inline-block; max-width: 100%;
    background: var(--lcm-cyan-tint); border: 1px solid var(--lcm-cyan); color: var(--lcm-cyan-hover);
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
}

/* ---------- Hero ---------- */
.hero-section { padding: 80px 0 60px; background-color: var(--lcm-white); }
.hero-title {
    font-size: 3.25rem; font-weight: 800; line-height: 1.1; color: var(--lcm-black);
    max-width: 920px; margin: 0 auto 24px; letter-spacing: -0.01em;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--lcm-grey-dark);
    max-width: 760px; margin: 0 auto 36px; line-height: 1.6;
}

.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--lcm-grey-light); }
.page-hero .hero-title { font-size: 2.6rem; }

/* ---------- Proof bar ---------- */
.proof-bar {
    margin-top: 64px; padding: 24px 0;
    border-top: 1px solid var(--lcm-grey-light); border-bottom: 1px solid var(--lcm-grey-light);
    background-color: var(--lcm-white);
}
.proof-title {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--lcm-grey-mid); margin-bottom: 16px;
}
.proof-grid { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; }
.proof-item { font-size: 0.9rem; font-weight: 800; color: var(--lcm-black); }
.proof-item span { color: var(--lcm-cyan); margin-right: 6px; }

/* ---------- Section headings ---------- */
.section-title {
    font-size: 2.25rem; font-weight: 800; line-height: 1.15; color: var(--lcm-black);
    letter-spacing: -0.01em; margin-bottom: 12px;
}
.section-description {
    font-size: 1.1rem; color: var(--lcm-grey-dark);
    max-width: 640px; margin: 0 auto 48px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--lcm-white); border: 2px solid var(--lcm-grey-light);
    border-radius: var(--lcm-radius-lg); padding: 40px;
    box-shadow: var(--lcm-card-shadow); transition: border-color 0.25s ease;
}
.card-alert { border-top: 4px solid var(--lcm-black); }
.card-success { border-top: 4px solid var(--lcm-cyan); }
.card-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; }
.card-title-accent { color: var(--lcm-cyan-hover); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
    position: relative; padding-left: 28px; margin-bottom: 16px;
    font-size: 0.95rem; color: var(--lcm-grey-dark);
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.list-danger li::before { content: "\2715"; color: var(--lcm-black); }
.list-success li::before { content: "\2713"; color: var(--lcm-cyan); }

/* ---------- Service tier cards ---------- */
.pricing-card {
    background: var(--lcm-white); border: 2px solid var(--lcm-grey-light);
    border-radius: var(--lcm-radius-lg); padding: 40px 32px; position: relative;
    box-shadow: var(--lcm-card-shadow);
    display: flex; flex-direction: column; justify-content: space-between;
}
.pricing-featured { border-color: var(--lcm-cyan); box-shadow: var(--lcm-glow-shadow); }
.featured-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--lcm-cyan); color: var(--lcm-white); white-space: nowrap;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
    padding: 4px 16px; border-radius: 100px;
}
.pricing-title { font-size: 1.35rem; font-weight: 700; color: var(--lcm-black); margin-bottom: 4px; }
.pricing-subtitle { font-size: 0.85rem; color: var(--lcm-grey-mid); margin-bottom: 24px; }
.price-amount {
    font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; line-height: 1.2;
    color: var(--lcm-black); letter-spacing: -0.01em;
}
.price-amount .currency { font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; color: var(--lcm-grey-dark); white-space: nowrap; }
.price-subtext { font-size: 0.85rem; color: var(--lcm-grey-mid); margin-bottom: 28px; }
.pricing-features {
    list-style: none; padding: 24px 0 0; margin: 0 0 32px 0;
    border-top: 1px solid var(--lcm-grey-light);
}
.pricing-features li { padding-left: 24px; position: relative; margin-bottom: 12px; font-size: 0.9rem; color: var(--lcm-grey-dark); }
.pricing-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--lcm-cyan); font-weight: 800; }

/* ---------- Forms ---------- */
.form-wrapper {
    max-width: 600px; margin: 0 auto;
    background: var(--lcm-white); padding: 48px;
    border-radius: var(--lcm-radius-lg); border: 2px solid var(--lcm-grey-light);
    box-shadow: var(--lcm-card-shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label, .form-label {
    display: block; font-size: 0.875rem; font-weight: 800; color: var(--lcm-black); margin-bottom: 8px;
}
.form-control, .form-control-file {
    display: block; width: 100%; max-width: 100%;
    padding: 12px 16px; font-family: var(--font-main); font-size: 1rem;
    border: 1px solid var(--lcm-grey-mid); border-radius: var(--lcm-radius);
    background-color: var(--lcm-white); color: var(--lcm-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-control:focus, .form-control-file:focus {
    outline: none; border-color: var(--lcm-cyan); box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}
.form-control[aria-invalid="true"] { border-color: var(--lcm-danger); }
.form-hint { font-size: 0.8rem; color: var(--lcm-grey-mid); margin: 6px 0 0; }
.field-error { font-size: 0.8rem; font-weight: 700; color: var(--lcm-danger); margin: 6px 0 0; }

/* Honeypot field: off-screen for people, visible to naive bots. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Captcha row: image (or question) + refresh + answer box. */
.captcha-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.captcha-image {
    flex: 0 0 auto; height: 56px; width: 180px; max-width: 100%;
    border: 1px solid var(--lcm-border); border-radius: var(--lcm-radius);
    background: var(--lcm-grey-light); display: block;
}
.captcha-question {
    flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
    border: 1px solid var(--lcm-border); border-radius: var(--lcm-radius);
    background: var(--lcm-grey-light); font-weight: 800; letter-spacing: 0.04em;
}
.captcha-refresh {
    flex: 0 0 auto; padding: 0 14px; min-height: 48px;
    background: var(--lcm-white); color: var(--lcm-grey-dark);
    border: 1px solid var(--lcm-grey-mid); border-radius: var(--lcm-radius);
    font-family: var(--font-main); font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.captcha-refresh:hover { border-color: var(--lcm-cyan); color: var(--lcm-cyan-hover); }
.captcha-row .form-control { flex: 1 1 140px; width: auto; min-width: 0; }

/* Form status messages. */
.form-alert {
    border: 1px solid var(--lcm-border); border-left-width: 4px; border-radius: var(--lcm-radius);
    padding: 14px 16px; margin-bottom: 20px; font-size: 0.95rem;
}
.form-alert[hidden] { display: none; }
.form-alert-error { border-color: var(--lcm-danger); background: var(--lcm-danger-tint); color: var(--lcm-danger); }
.form-alert-success { border-color: var(--lcm-success); background: var(--lcm-success-tint); color: var(--lcm-success); }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Submission confirmation ---------- */
.confirm-panel { text-align: center; }
.confirm-panel:focus { outline: none; }
.confirm-mark {
    width: 64px; height: 64px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--lcm-cyan); color: var(--lcm-white);
    border-radius: 50%; font-size: 2rem; font-weight: 800; line-height: 1;
    box-shadow: var(--lcm-glow-shadow);
}
.confirm-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.confirm-lead { color: var(--lcm-grey-dark); margin-bottom: 22px; }
.confirm-ref {
    display: flex; flex-direction: column; gap: 2px; margin: 0 0 26px; padding: 14px 16px;
    background: var(--lcm-cyan-tint); border: 1px solid var(--lcm-cyan); border-radius: var(--lcm-radius);
}
.confirm-ref span {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lcm-cyan-hover);
}
.confirm-ref strong { font-size: 1.2rem; letter-spacing: 0.04em; overflow-wrap: anywhere; user-select: all; }
.confirm-sub {
    font-family: var(--font-main); font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--lcm-grey-mid); margin-bottom: 12px; text-align: left;
}
.confirm-steps { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; text-align: left; }
.confirm-steps li {
    counter-increment: step; position: relative; padding: 0 0 14px 40px;
    font-size: 0.95rem; color: var(--lcm-grey-dark);
}
.confirm-steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: var(--lcm-black); color: var(--lcm-white); border-radius: 50%;
    font-size: 0.8rem; font-weight: 800;
}
.confirm-note {
    text-align: left; font-size: 0.9rem; color: var(--lcm-grey-dark);
    padding: 10px 14px; margin: 0 0 10px; background: var(--lcm-grey-light);
    border-left: 3px solid var(--lcm-cyan); border-radius: var(--lcm-radius);
}
.confirm-urgent {
    margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--lcm-grey-light);
    font-size: 0.9rem; font-weight: 700; color: var(--lcm-black);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--lcm-black); color: #B8BCC2;
    padding: 56px 0 0; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 38px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-title {
    font-family: var(--font-main); font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--lcm-white); margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.site-footer a { color: #B8BCC2; text-decoration: none; }
.site-footer a:hover { color: var(--lcm-cyan); }
.footer-bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--lcm-grey-dark); }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--lcm-grey-mid); }

.site-footer-minimal { padding: 40px 0; }
.site-footer-minimal p { margin: 0; color: var(--lcm-grey-mid); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .grid-4-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3-col.grid-tiers { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }
    .site-header { padding: 12px 0; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--lcm-white); border-bottom: 2px solid var(--lcm-grey-light);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .site-nav.is-open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
    .nav-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--lcm-grey-light); font-size: 1rem; }
    .nav-menu .nav-cta { margin-top: 16px; }
    .nav-menu .nav-cta .btn { width: 100%; }

    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
    .section-padding { padding: 56px 0; }
    .hero-section { padding: 48px 0 40px; }
    .hero-title { font-size: 2.25rem; }
    .page-hero { padding: 44px 0 36px; }
    .page-hero .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.8rem; }
    .section-description { font-size: 1rem; margin-bottom: 36px; }
    .proof-bar { margin-top: 40px; }
    .card { padding: 28px 24px; }
    .pricing-card { padding: 36px 24px 28px; }
    .form-wrapper { padding: 28px 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
    .container, .header-container { padding-left: 16px; padding-right: 16px; }
    .nav-menu { padding-left: 16px; padding-right: 16px; }
    .hero-title { font-size: 1.85rem; }
    .section-title { font-size: 1.55rem; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { width: 100%; }
    .badge-accent { font-size: 0.7rem; letter-spacing: 0.05em; padding: 6px 12px; }
    .grid-4-col { grid-template-columns: 1fr; }
    .proof-grid { flex-direction: column; gap: 8px; align-items: center; }
    .brand-logo-img { height: 36px; }
    .captcha-image { width: 100%; height: auto; aspect-ratio: 180 / 56; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
