﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #000000;
    --bg-panel: #0a0a0a;
    --bg-header: #000000;
    --text-primary: #f0ece8;
    --text-muted: #a8a098;
    --accent: #c8c0b8;
    --border: rgba(255, 255, 255, 0.85);
    --steel: linear-gradient(
        90deg,
        #141414 0%,
        #3a3a3a 12%,
        #6e6e6e 25%,
        #a8a8a8 38%,
        #d4d4d4 50%,
        #a0a0a0 62%,
        #5a5a5a 75%,
        #2e2e2e 88%,
        #141414 100%
    );
    --max-content: 1100px;
    --side-width: 72px;
    --steel-bar-width: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: #000000;
    min-height: 100vh;
    line-height: 1.6;
    cursor: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    background-position: center top;
    background-size: 420px auto;
    opacity: 0.1;
}

.site-header,
.page-frame,
footer,
.site-footer {
    position: relative;
    z-index: 1;
}

a,
button,
.btn {
    cursor: none;
}

a {
    color: inherit;
}

/* ===============================
   HEADER
================================ */

.site-header {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 2px solid rgba(255, 100, 0, 0.2);
    padding: 24px 20px 16px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: headerGlow 6s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        border-bottom-color: rgba(255, 90, 0, 0.12);
        box-shadow:
            0 2px 8px rgba(255, 80, 0, 0.05),
            0 0 12px rgba(255, 50, 0, 0.03);
    }
    50% {
        border-bottom-color: rgba(255, 150, 0, 0.75);
        box-shadow:
            0 2px 20px rgba(255, 110, 0, 0.4),
            0 0 36px rgba(255, 70, 0, 0.22),
            0 0 56px rgba(255, 40, 0, 0.08);
    }
}

.logo-link {
    display: inline-block;
    margin-bottom: 18px;
    line-height: 0;
}

.logo {
    height: 140px;
    width: auto;
    mix-blend-mode: screen;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding: 8px 0;
}

.site-header nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 16px;
    background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 3px 0 #111,
        0 5px 12px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 90, 0, 0.2),
        0 0 20px rgba(255, 60, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-header nav a:hover {
    transform: translateY(-3px);
    color: #fff;
    background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
    border-color: #555;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 #1a1a1a,
        0 9px 22px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(255, 120, 0, 0.55),
        0 0 36px rgba(255, 80, 0, 0.3),
        0 0 60px rgba(255, 50, 0, 0.12);
}

.site-header nav a:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 0 #111,
        0 3px 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 100, 0, 0.35);
}

.site-header nav a.active {
    color: #fff;
    background: linear-gradient(180deg, #242424 0%, #121212 100%);
    border-color: #4a4a4a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 0 #151515,
        0 6px 16px rgba(0, 0, 0, 0.65),
        0 0 14px rgba(255, 110, 0, 0.4),
        0 0 28px rgba(255, 70, 0, 0.18);
}

/* ===============================
   HERO
================================ */

.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: transparent;
    margin: 0 -30px;
    padding: 0 30px;
    border-bottom: 1px solid #111;
}

.hero-content {
    padding: 60px 5%;
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-subtitle {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
}

.hero-badge {
    margin-top: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.btn-row .btn {
    margin-top: 0;
}

.home-section {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 48px 0 0;
}

.home-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-section p {
    color: var(--text-muted);
    margin-bottom: 14px;
    max-width: 800px;
    line-height: 1.7;
}

.home-cta {
    padding-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.featured-item {
    background: var(--bg-panel);
    border: 1px solid #2a2a2a;
    padding: 24px;
}

.featured-item h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--accent);
}

.featured-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.why-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 24px;
}

.why-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff8800;
    font-weight: 700;
}

.feature-list.compact {
    margin: 12px 0 16px;
}

.feature-list.compact li {
    padding: 6px 0 6px 20px;
    font-size: 0.85rem;
    border-bottom: none;
}

.site-footer {
    text-align: center;
    padding: 36px 20px;
    background: rgba(0, 0, 0, 0.92);
    border-top: 1px solid #111;
}

.footer-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-lines {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 6px;
}

.footer-copy {
    margin-top: 16px;
    font-size: 0.72rem;
    color: #444;
    letter-spacing: 1px;
}

/* ===============================
   PAGE FRAME (steel side bars)
================================ */

.page-frame {
    display: grid;
    grid-template-columns: var(--side-width) 1fr var(--side-width);
    min-height: 200px;
    background: transparent;
}

.page-frame-side {
    background: transparent;
    position: relative;
}

.page-frame-side::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--steel-bar-width);
    background: var(--steel);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.08),
        inset 0 0 6px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.9);
}

.page-frame-side.left::after {
    right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.8);
}

.page-frame-side.right::after {
    left: 10px;
    background: linear-gradient(
        270deg,
        #141414 0%,
        #3a3a3a 12%,
        #6e6e6e 25%,
        #a8a8a8 38%,
        #d4d4d4 50%,
        #a0a0a0 62%,
        #5a5a5a 75%,
        #2e2e2e 88%,
        #141414 100%
    );
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.8);
}

.page-frame-side::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--steel-bar-width);
    background-image: radial-gradient(circle, rgba(180, 180, 180, 0.7) 1.5px, transparent 1.5px);
    background-size: 8px 28px;
    background-position: center;
    opacity: 0.45;
    pointer-events: none;
}

.page-frame-side.left::before {
    right: 10px;
}

.page-frame-side.right::before {
    left: 10px;
}

.page-frame-main {
    background: transparent;
    padding: 0 30px 60px;
}

.page-frame-main > .page-content {
    padding-top: 40px;
}

/* ===============================
   SERVICE GRID (homepage cards)
================================ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: var(--max-content);
    margin: 40px auto 0;
}

.service-card {
    position: relative;
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===============================
   INNER PAGE CONTENT
================================ */

.page-content {
    max-width: var(--max-content);
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 32px 0 12px;
    color: var(--accent);
}

.page-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 720px;
}

.page-content .lead {
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ===============================
   SERVICES OVERVIEW
================================ */

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-item {
    background: var(--bg-panel);
    border: 1px solid #2a2420;
    padding: 28px;
    transition: border-color 0.25s;
}

.service-item:hover {
    border-color: #4a4440;
}

.service-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.service-item a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
}

.service-item a:hover {
    border-bottom-color: var(--accent);
}

/* ===============================
   SERVICE DETAIL PAGE
================================ */

.service-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #2a2420;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    margin: 20px 0 32px;
}

.feature-list li {
    padding: 10px 0 10px 20px;
    color: var(--text-muted);
    position: relative;
    border-bottom: 1px solid #1a1816;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===============================
   PORTFOLIO GRID
================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.portfolio-grid figure {
    margin: 0;
    border: 1px solid #2a2420;
    overflow: hidden;
    background: #0a0a0a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-grid figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 90, 0, 0.15);
}

.portfolio-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.portfolio-grid figure:hover img {
    transform: scale(1.04);
}

/* ===============================
   CONTACT
================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background: var(--bg-panel);
    border: 1px solid #2a2420;
    padding: 28px;
}

.contact-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--text-primary);
}

/* ===============================
   BUTTONS
================================ */

.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 0 #111,
        0 6px 14px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 90, 0, 0.2),
        0 0 20px rgba(255, 60, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    color: #fff;
    background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
    border-color: #555;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 7px 0 #1a1a1a,
        0 10px 24px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(255, 120, 0, 0.55),
        0 0 36px rgba(255, 80, 0, 0.3),
        0 0 60px rgba(255, 50, 0, 0.12);
}

.btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 0 #111,
        0 3px 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 100, 0, 0.35);
}

/* ===============================
   FOOTER
================================ */

footer,
.site-footer {
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid #111;
    background: rgba(0, 0, 0, 0.92);
}

/* ===============================
   METAL CURSOR + EMBERS + SMOKE
================================ */

.metal-cursor {
    --cursor-lean: 0deg;
    --cursor-intensity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.15s;
}

.metal-pointer {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 6px rgba(255, 255, 255, calc(0.15 + var(--cursor-intensity) * 0.2)));
    transform: rotate(calc(var(--cursor-lean) * 0.08));
    transform-origin: 1px 1px;
    transition: transform 0.08s ease-out;
}

.metal-pointer-body {
    fill: url(#metal-cursor-grad);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 0.6;
    stroke-linejoin: round;
}

.metal-pointer-shine {
    fill: url(#metal-cursor-shine);
}

.smoke-field,
.ember-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.smoke-field {
    z-index: 99997;
}

.ember-field {
    z-index: 99998;
}

.smoke-wisp {
    position: fixed;
    width: 2px;
    height: var(--smoke-length);
    margin-left: -1px;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(160, 160, 160, 0.08) 20%,
        rgba(200, 200, 200, calc(0.18 + var(--cursor-intensity, 0) * 0.1)) 50%,
        rgba(180, 180, 180, 0.06) 80%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(2px);
    transform: rotate(var(--smoke-angle));
    transform-origin: bottom center;
    animation: smokeWispRise ease-out forwards;
    opacity: 0;
}

.floating-ember {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, #fff4a8 0%, #ffaa22 45%, #ff5500 100%);
    box-shadow: 0 0 5px #ff7700, 0 0 10px rgba(255, 100, 0, 0.5);
    animation: emberFloat ease-out forwards;
    opacity: 0;
}

@keyframes smokeWispRise {
    0% {
        transform: rotate(var(--smoke-angle)) scaleY(0.4);
        opacity: 0;
    }
    15% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        transform: rotate(var(--smoke-angle)) translate(var(--smoke-drift), -50px) scaleY(1.3);
        opacity: 0;
    }
}

@keyframes emberFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    40% {
        opacity: 0.85;
    }
    100% {
        transform: translate(var(--drift), var(--rise)) scale(0.2);
        opacity: 0;
    }
}

@media (pointer: coarse) {
    body,
    a,
    button,
    .btn {
        cursor: auto;
    }

    .metal-cursor,
    .ember-field,
    .smoke-field {
        display: none;
    }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .page-frame {
        grid-template-columns: 48px 1fr 48px;
    }

    :root {
        --steel-bar-width: 24px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .hero {
        min-height: 38vh;
        margin: 0 -30px;
    }

    .hero-content {
        padding: 40px 6%;
    }
}

@media (max-width: 600px) {
    .logo {
        height: 100px;
    }

    .site-header nav {
        gap: 6px 16px;
    }

    .site-header nav a {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
    }

    .page-frame {
        grid-template-columns: 24px 1fr 24px;
    }

    :root {
        --steel-bar-width: 14px;
        --side-width: 24px;
    }

    .page-frame-side.left::after,
    .page-frame-side.left::before {
        right: 4px;
    }

    .page-frame-side.right::after,
    .page-frame-side.right::before {
        left: 4px;
    }

    .page-frame-main {
        padding: 0 16px 50px;
    }

    .hero {
        margin: 0 -16px;
        padding: 0 16px;
    }
}
