/* ==========================================================================
   RedTrueNet LLC — Dark Professional Contractor Stylesheet
   Clean dark mode. No glow, no bubbles. Tight alignment.
   ========================================================================== */

:root {
    --bg-primary: #111318;
    --bg-secondary: #181b22;
    --bg-card: #1e2128;
    --bg-input: #252830;

    --border: #2a2d35;
    --border-hover: #3a3e48;

    --white: #f0f1f3;
    --text-primary: #e2e4e8;
    --text-secondary: #a1a7b3;
    --text-dim: #8b919e;

    --brand: #c0392b;
    --brand-hover: #d44637;
    --accent: #e74c3c;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; scrollbar-color: #3a3e48 var(--bg-primary); scrollbar-width: thin; }

/* Older WebKit only; browsers with scrollbar-color ignore this. */
@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar { width: 12px; height: 12px; }
    ::-webkit-scrollbar-track { background: var(--bg-primary); }
    ::-webkit-scrollbar-thumb {
        background: #3a3e48;
        border: 3px solid var(--bg-primary);
        border-radius: 6px;
    }
    ::-webkit-scrollbar-thumb:hover { background: #4a4f5a; }
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 4px;
    padding: 4px 12px;
}

.logo-img {
    height: 44px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav a:hover {
    color: var(--white);
}

.header-phone {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone:hover {
    color: var(--brand-hover);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    min-height: 48px;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

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

.btn-secondary {
    background: rgba(17, 19, 24, 0.6);
    color: var(--text-primary);
    border: 1px solid #4a4f5a;
}

.btn-secondary:hover {
    border-color: #6b7280;
    background: rgba(255,255,255,0.04);
}

.btn-full { width: 100%; }

/* ── HERO ── */
.hero {
    background: var(--bg-primary);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background-image: linear-gradient(rgba(17, 19, 24, 0.86), rgba(17, 19, 24, 0.92)), url('assets/hero-hdd-rig.png');
    background-size: cover;
    background-position: center;
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 1.1rem;
    color: #c4c9d2;
    max-width: 580px;
    margin: 0 auto 32px auto;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── CREDENTIALS BAR ── */
.credentials {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.credentials-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.credential {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.credential i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* ── SECTION HEADING ── */
.section-heading {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 24px;
}

/* ── SERVICES ── */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 32px 28px;
    transition: border-color var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
}

.service-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── ABOUT ── */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text strong {
    color: var(--white);
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-list i {
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.45em;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ── CONTACT ── */
.contact {
    padding: 80px 0;
}

.contact-inner {
    text-align: center;
}

.contact-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px 20px;
    min-width: 0;
    transition: border-color var(--transition), background var(--transition);
    -webkit-tap-highlight-color: transparent;
}

a.contact-card:hover,
a.contact-card:focus-visible {
    border-color: var(--accent);
    background: #232730;
}

a.contact-card:active {
    background: #2a2e38;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent);
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.contact-card-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    overflow-wrap: anywhere;
}

a.contact-card .contact-card-value {
    color: var(--accent);
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-left strong {
    font-size: 1rem;
    color: var(--white);
    display: block;
    margin-bottom: 6px;
}

.footer-left p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer-right a {
    font-size: 0.95rem;
    color: var(--text-dim);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-right a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}

/* ── MOBILE STICKY CALL ── */
.mobile-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
}

.mobile-call-bar i {
    margin-right: 6px;
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 300;
    display: flex;
    flex-direction: column;
    padding: 24px;
    visibility: hidden;
    transition: right 0.25s ease, visibility 0s linear 0.25s;
}

.mobile-nav.open {
    right: 0;
    visibility: visible;
    transition: right 0.25s ease, visibility 0s;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    align-self: flex-end;
    min-width: 44px;
    min-height: 44px;
    margin-bottom: 16px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.mobile-nav-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-nav-footer a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    overflow-wrap: anywhere;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-inner {
        grid-template-columns: 1fr;
    }
    .about-sidebar {
        order: -1;
    }
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .contact-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 18px 20px;
        gap: 16px;
    }
    .contact-card-text {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    .logo-img {
        height: 32px;
        max-width: 180px;
    }
    .nav, .header-phone {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .mobile-call-bar {
        display: block;
    }
    .hero {
        padding: 56px 0;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
    .credentials-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .services, .about, .contact {
        padding: 56px 0;
    }
    .service-card {
        padding: 24px 20px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }
    .contact-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .contact-card-icon {
        width: 40px;
        height: 40px;
    }
    .contact-card-value {
        font-size: 1.05rem;
    }
    .hero-label {
        letter-spacing: 1px;
    }
}
