/* ══════════════════════════════════════════════════════
   Interrupt22 — Shared Styles
   Used across all pages. Page-specific styles remain
   inline in each HTML file.
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #080f14;
    --bg-secondary: #0b1219;
    --bg-card: #0e161e;
    --bg-card-hover: #111c26;
    --accent: #f16b6d;
    --accent-hover: #f4898b;
    --accent-soft: #b34547;
    --accent-dim: rgba(241, 107, 109, 0.15);
    --accent-green: #48d597;
    --text-primary: #eeeeec;
    --text-secondary: #c0c0be;
    --text-muted: #9a9a98;
    --border: rgba(136, 153, 166, 0.15);
    --border-accent: rgba(241, 107, 109, 0.25);
    --border-accent-hover: rgba(241, 107, 109, 0.5);
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ── Container ─────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Utility classes ───────────────────────────────── */
.hl-green {
    color: var(--accent-green);
}

.hl-soft {
    color: var(--accent-soft);
}

.ascii-decoration {
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: pre;
    line-height: 1.4;
    user-select: none;
    pointer-events: none;
}

.ascii-decoration .hl {
    color: var(--accent);
}

/* ── Navigation ────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 15, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    transition: height 0.35s ease;
}

.nav.nav-scrolled .nav-inner {
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -10px;
}

.nav-brand-logo {
    height: 70px;
    width: auto;
    transition: height 0.35s ease;
}

.nav.nav-scrolled .nav-brand-logo {
    height: 41px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a,
.nav-link-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    padding: 6px 14px;
    transition: color 0.15s ease, background-color 0.15s ease, font-size 0.35s ease;
    cursor: default;
}

.nav-links > li > a { cursor: pointer; }

.nav.nav-scrolled .nav-links > li > a,
.nav.nav-scrolled .nav-link-label {
    font-size: 0.95rem;
}

.nav-links > li > a:hover,
.nav-dropdown:hover > a,
.nav-dropdown:hover > .nav-link-label {
    color: var(--bg-primary);
    background-color: var(--accent);
}

.nav-links > li > a:hover .nav-link-prefix,
.nav-dropdown:hover > a .nav-link-prefix,
.nav-dropdown:hover > .nav-link-label .nav-link-prefix {
    color: var(--bg-primary);
    opacity: 0.6;
}

.nav-link-prefix {
    color: var(--accent-green);
    font-size: 0.85rem;
    margin-right: 6px;
    font-weight: 400;
    transition: font-size 0.35s ease, color 0.15s ease;
}

.nav.nav-scrolled .nav-link-prefix {
    font-size: 0.75rem;
}

/* ── Dropdown ─────────────────────────────────────── */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-content {
    background: rgba(8, 15, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 8px 0;
    min-width: 300px;
}

.nav-dropdown-content a {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 12px 20px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-dropdown-content a:hover {
    color: var(--bg-primary);
    background-color: var(--accent);
}

.nav-dropdown-content .nav-link-prefix {
    font-size: 0.75rem;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 14px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    background: var(--accent);
    transform: none;
}

/* ── Section shared ────────────────────────────────── */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-label .hl {
    color: var(--accent);
}

.section-heading {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 680px;
}

.section-text + .section-text {
    margin-top: 16px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 32px;
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: 14px;
}

/* ── Service details (arrow bullets) ───────────────── */
.service-details {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-details li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.service-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.service-details li a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-green);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.service-details li a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Contact ───────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 64px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.form-group label .hl {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 14px 16px;
    border: 1px solid;
    display: none;
}

.form-feedback.success {
    display: block;
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(72, 213, 151, 0.08);
}

.form-feedback.error {
    display: block;
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.contact-info {
    padding-top: 8px;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-info-ascii {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    white-space: pre;
    line-height: 1.4;
}

.contact-info-ascii .hl {
    color: var(--accent);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.contact-link:first-of-type {
    border-top: 1px solid var(--border);
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link svg,
.footer-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-ascii {
    display: none;
    white-space: nowrap;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    height: 28px;
    width: auto;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-social-link:hover {
    color: var(--text-primary);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        height: 64px;
    }

    .nav-brand-logo {
        height: 44px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(8, 15, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links > li {
        text-align: left;
    }

    .nav-links > li > a,
    .nav-link-label {
        font-size: 1rem;
        display: block;
        padding: 10px 14px;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        padding-top: 0;
        padding-left: 20px;
    }

    .nav-dropdown.mobile-open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-content {
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        min-width: unset;
        padding: 4px 0;
    }

    .footer-social {
        justify-content: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 80px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-ascii {
        display: none;
    }
}
