/*
 * LinkShield theme — Slate + Indigo (2025 SaaS)
 *
 * Palette:
 *   Slate dark     #0f172a  (header, footer, dark panels)
 *   Indigo         #4f46e5  (primary CTAs, links, buttons)
 *   Indigo hover   #4338ca
 *   Gold           #c8a45a  (border accent)
 *   Green          #4d9e80 / #10b981  (shield, safe accents)
 *   Body bg        #f8fafc  (slate-50)
 *   Section alt    #f1f5f9  (slate-100)
 */

/* ── Typography ────────────────────────────────────────────────────────── */
body, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    background-color: #f8fafc;
}
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* ── Links ─────────────────────────────────────────────────────────────── */
a {
    color: #4f46e5;
    border-bottom-color: transparent;
}
a:hover {
    color: #4338ca;
    border-bottom-color: #4338ca;
}

/* ── Header / Nav ───────────────────────────────────────────────────────── */
#header {
    background: #0f172a;
    border-bottom: 3px solid #c8a45a;
    height: 67px;
    line-height: 67px;
}
#header h1 {
    left: max(1.25em, calc((100% - 1100px) / 2)) !important;
    height: 67px;
    line-height: 1;
    display: flex;
    align-items: center;
}
#page-wrapper {
    padding-top: 67px;
}
body.landing #page-wrapper {
    padding-top: 0;
}
#header nav {
    right: max(0.75em, calc((100% - 1100px) / 2)) !important;
}
#header.alt {
    background: transparent;
}
#header h1 a {
    color: #ffffff;
    border-bottom: none;
}
#header nav > ul > li > a {
    color: #94a3b8;
}
#header nav > ul > li > a:hover,
#header nav > ul > li.active > a {
    color: #ffffff;
}
#header nav > ul > li > ul {
    background: #0f172a;
}
#header nav > ul > li > ul a {
    color: #94a3b8;
}
#header nav > ul > li > ul a:hover {
    color: #ffffff;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    color: #ffffff;
}
.button.alt {
    background-color: transparent;
    border-color: #4f46e5;
    color: #4f46e5;
}
.button.alt:hover {
    background-color: #4f46e5;
    color: #ffffff;
}
.button.primary,
input[type="submit"].primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}
.button.primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

/* ── Input focus ────────────────────────────────────────────────────────── */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
}

/* ── Banner / Hero ──────────────────────────────────────────────────────── */
#banner {
    background-color: #0a0f1e;
    background-image: linear-gradient(160deg, #0a0f1e 0%, #1e1b4b 60%, #312e81 100%);
}

/* ── CTA section ────────────────────────────────────────────────────────── */
#cta {
    background-color: #0f172a;
    background-image: none;
}
#cta h2,
#cta p {
    color: #ffffff;
}
#cta h2 {
    font-size: 2rem;
}
#cta .button.primary {
    background-color: #c8a45a;
    border-color: #c8a45a;
    color: #1e1b4b !important;
    font-weight: 800;
}
#cta .button.primary:hover {
    background-color: #e8c07a;
    border-color: #e8c07a;
    color: #1e1b4b !important;
}
#cta .button.alt {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}
#cta .button.alt:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* ── Wrapper section backgrounds ────────────────────────────────────────── */
.wrapper.style1 { background-color: #f1f5f9; }
.wrapper.style2 { background-color: #ffffff; }
.wrapper.style3 { background-color: #0f172a; color: #fff; }
.wrapper.style3 h2, .wrapper.style3 h3, .wrapper.style3 p { color: #fff; }

/* ── Container width ────────────────────────────────────────────────────── */
.container {
    width: calc(100% - 3rem);
    max-width: 1100px;
}

/* ── Eyebrow label ──────────────────────────────────────────────────────── */
.ls-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f46e5;
    display: block;
    margin-bottom: 0.75rem;
}

/* ── Section head block ─────────────────────────────────────────────────── */
.ls-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.ls-section-head h2 {
    font-size: 2rem;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 0;
}
.ls-section-sub {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* ── Pain point grid (Problem section) ──────────────────────────────────── */
.ls-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ls-pain-card {
    padding: 2rem 1.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}
.ls-pain-icon {
    font-size: 1.5rem !important;
    color: #4f46e5;
    display: block !important;
    margin-bottom: 1rem;
    line-height: 1 !important;
}
.ls-pain-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.ls-pain-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── Feature grid ───────────────────────────────────────────────────────── */
.ls-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ls-feature-card {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(15,23,42,0.06);
}
.ls-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.ls-icon-red    { background: rgba(220,38,38,0.15); color: #dc2626; }
.ls-icon-indigo { background: rgba(79,70,229,0.1);  color: #4f46e5; }
.ls-icon-green  { background: rgba(16,185,129,0.1); color: #10b981; }
.ls-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.ls-feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── Footer layout ──────────────────────────────────────────────────────── */
#footer {
    background: #0f172a;
    color: #64748b;
    border-top: 3px solid rgba(200, 164, 90, 0.55);
}
#footer h3, #footer h4 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
#footer h3 {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}
#footer a {
    color: #818cf8;
    border-bottom-color: transparent;
}
#footer a:hover {
    color: #ffffff;
}
#footer p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.7;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.footer-brand {
    flex: 1.4;
}
.footer-nav {
    display: flex;
    gap: 3rem;
    flex-shrink: 0;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    padding: 0.3rem 0;
}
.footer-column ul li a {
    font-size: 0.875rem;
    color: #64748b !important;
    border-bottom: none;
}
.footer-column ul li a:hover {
    color: #ffffff !important;
}
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin: 0; }

/* ── Spotlight colors ───────────────────────────────────────────────────── */
.spotlight:nth-child(2n)   { background-color: #10b981; }
.row-special:nth-child(2n) { background-color: #10b981; }
.spotlight:nth-child(3n)   { background-color: #0ea5e9; }

/* ── Mobile header ───────────────────────────────────────────────────────── */
@media screen and (max-width: 840px) {
    #header { height: 67px; line-height: 67px; }
    #header h1 { height: 67px; line-height: 1; display: flex; align-items: center; }
    #page-wrapper { padding-top: 67px !important; }
    body.landing #page-wrapper { padding-top: 0 !important; }
    #navButton { height: 61px; }
}

/* ── Mobile container padding ────────────────────────────────────────────── */
@media screen and (max-width: 840px) {
    #main .container,
    .wrapper .container {
        padding-left: 1.5em;
        padding-right: 1.5em;
        box-sizing: border-box;
    }
}

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
body.navPanel-visible #page-wrapper,
body.navPanel-visible #navButton {
    transform: none !important;
}
body.navPanel-visible::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    pointer-events: none;
}
#navButton { height: 38px; }
#navPanel { background: #0f172a; }
#navPanel a { color: #94a3b8; border-top-color: rgba(255,255,255,0.1); }
#navPanel a:hover { color: #ffffff; }

/* ── Mobile responsive grids ────────────────────────────────────────────── */
@media screen and (max-width: 840px) {
    .ls-pain-grid,
    .ls-feature-grid {
        grid-template-columns: 1fr;
    }
    .ls-section-head h2 {
        font-size: 1.6rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem 1.5rem 1.5rem;
    }
    .footer-nav {
        gap: 2rem;
    }
}
