/* S&N ELECT LTD — white, navy, electric blue */

:root {
    --navy: #071426;
    --navy-deep: #050E1C;
    --ink: #0C1B33;
    --muted: #4E6078;
    --electric: #1563F0;
    --electric-deep: #0C4EC4;
    --electric-bright: #3C89FF;
    --electric-soft: #E8F1FF;
    --white: #FFFFFF;
    --paper: #F4F7FB;
    --line: #D9E2EF;
    --font-heading: "Manrope", sans-serif;
    --font-body: "Source Sans 3", sans-serif;
    --header-h: 76px;
    --max: 1120px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --shadow: 0 16px 40px rgba(7, 20, 38, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--electric);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--electric);
    color: var(--white);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    z-index: 1000;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--electric));
}

.header-bar {
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    padding: 0 0.55rem;
    border-radius: 9px;
    background: var(--navy);
    color: var(--electric-bright);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--navy);
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
}

.primary-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 0.35rem 0;
}

.primary-nav a[aria-current="page"] {
    color: var(--navy);
    box-shadow: inset 0 -2px 0 var(--electric);
}

.menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
    padding: 10px 4px;
    background: none;
    border: 0;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 38, 0.48);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 88vw);
    height: 100%;
    background: var(--white);
    z-index: 1005;
    padding: 5.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    box-shadow: 16px 0 40px rgba(7, 20, 38, 0.16);
}

.nav-drawer.is-open { transform: translateX(0); }

.drawer-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    background: none;
    border: 0;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.3;
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
}

.drawer-link.active,
.drawer-link[aria-current="page"] {
    color: var(--electric-deep);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background: var(--electric);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(21, 99, 240, 0.24);
}

.btn-primary:hover { background: var(--electric-deep); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-outline {
    background: var(--white);
    color: var(--navy);
    border-color: #C5D3E6;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--paper);
    border-color: var(--navy);
}

.header-cta {
    min-height: 42px;
    padding: 0.55rem 1rem;
    box-shadow: none;
}

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow,
.story-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--electric-deep);
    margin-bottom: 0.9rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 1.6rem;
}

.hero-media {
    background: var(--navy);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 240px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.about {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4.75rem 1.5rem 5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--navy);
    margin-bottom: 2.25rem;
}

.about .section-title,
.about-grid {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem 1rem 1.4rem;
    box-shadow: 0 10px 28px rgba(7, 20, 38, 0.04);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.1rem;
    background: var(--paper);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
    color: var(--navy);
}

.about-card p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.story {
    padding: 5rem 1.5rem;
    text-align: center;
}

.story-inner { max-width: 740px; margin: 0 auto; }

.story-copy {
    text-align: left;
    margin: 0 auto 1.5rem;
}

.story-copy p {
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.story-copy a {
    color: var(--electric-deep);
    font-weight: 700;
}

.story-question {
    color: var(--navy) !important;
    font-weight: 700;
}

.story-quote {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--electric);
    border-radius: 16px;
    padding: 1.4rem 1.4rem 1.25rem;
    margin: 0 0 1.75rem;
    text-align: left;
    box-shadow: 0 10px 28px rgba(7, 20, 38, 0.04);
}

.story-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.7rem;
}

.story-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--electric-deep);
}

.story .btn { margin-top: 0.4rem; }

.contact {
    background:
        radial-gradient(circle at top right, rgba(60, 137, 255, 0.22), transparent 32%),
        var(--navy);
    color: #F4F7FB;
    padding: 5rem 1.5rem;
}

.contact .section-title { color: var(--white); }

.contact-inner { max-width: 880px; margin: 0 auto; }

.contact-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 1.6rem;
}

.contact-company {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.company-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0;
}

.company-facts div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.fact-wide { grid-column: 1 / -1; }

.company-facts dt {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9EC2FF;
    margin-bottom: 0.3rem;
}

.company-facts dd {
    color: #F4F7FB;
    font-size: 1.05rem;
}

.company-facts a {
    color: #D6E6FF;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hours { margin-top: 1.4rem; }

.hours-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.hours-status {
    color: #9EC2FF;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.hours-list {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #E6EEF8;
}

.hours-list li:last-child { border-bottom: 0; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer {
    background: var(--navy-deep);
    color: #C5D2E4;
    padding: 3rem 1.5rem 3.25rem;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
}

.footer-logo .logo-mark {
    background: var(--electric);
    color: var(--white);
}

.footer-copy { color: #9AADC4; max-width: 36ch; }

.footer-label {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8FB4FF;
    margin-bottom: 0.65rem;
}

.footer-grid p { margin-bottom: 0.35rem; overflow-wrap: anywhere; }

.site-footer a { color: #D6E6FF; }

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 1rem;
}

.text-document {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 5rem;
}

.document-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
}

.document-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 1.7rem 0 0.65rem;
    color: var(--navy);
}

.document-content p,
.document-content li {
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.document-content ul {
    margin: 0 0 1rem 1.25rem;
    list-style: disc;
}

.document-content a {
    color: var(--electric-deep);
    font-weight: 600;
}

.sig-block {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}

.sig-name { font-weight: 800; color: var(--navy); }
.sig-role, .sig-date { color: var(--muted); }

.settings-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.settings-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.settings-lead {
    max-width: 68ch;
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.settings-lead code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--electric-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: start;
}

.settings-card,
.settings-preview {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: 0 10px 28px rgba(7, 20, 38, 0.05);
}

.settings-card h2,
.settings-preview h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.field span {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 0.75rem 0.85rem;
}

.field input:focus {
    border-color: var(--electric);
    outline: 3px solid rgba(21, 99, 240, 0.18);
    outline-offset: 0;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.settings-status {
    min-height: 1.5em;
    margin-top: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}

.settings-note {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.preview-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.settings-preview p { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.settings-preview a { color: var(--electric-deep); }

.settings-source {
    margin-top: 1rem;
    background: var(--navy);
    color: #D5E4FF;
    border-radius: 12px;
    padding: 0.9rem;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
    max-height: 240px;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .primary-nav,
    .header-cta { display: none; }

    .menu-btn { display: inline-flex; }

    .hero,
    .settings-layout,
    .footer-grid,
    .company-facts,
    .form-row {
        grid-template-columns: 1fr;
    }

    .fact-wide { grid-column: auto; }
}

@media (max-width: 640px) {
    :root { --header-h: 70px; }

    .hero { padding: 2.4rem 1.15rem 2.6rem; }
    .about, .story, .contact { padding-left: 1.15rem; padding-right: 1.15rem; }
    .logo-text { font-size: 0.82rem; }
    .nav-drawer { width: 100%; }
    .contact-actions { flex-direction: column; }
    .contact-actions .btn { width: 100%; }
    .hours-list li { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-drawer,
    .drawer-backdrop,
    .about-card,
    .btn { transition: none; }
    .about-card:hover { transform: none; }
}

@media print {
    .site-header,
    .nav-drawer,
    .drawer-backdrop,
    .skip-link,
    .contact-actions,
    .menu-btn { display: none !important; }

    body { padding-top: 0; background: white; color: black; }
    .contact, .site-footer { background: white; color: black; }
    .contact .section-title,
    .contact-company,
    .hours-title,
    .company-facts dd,
    .hours-list li,
    .footer-logo,
    .footer-label { color: black; }
    .company-facts div,
    .hours-list,
    .contact-panel { background: white; border-color: #ccc; }
    a { color: black; }
}
