/* ============================================
   THOMAS J STONE LLC — v5 Opus
   Neo-brutalism · Midnight Gold · Precision Engineering · Stealth Wealth
   ============================================ */

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

:root {
    --midnight: #0a1628;
    --navy: #0f2137;
    --navy-light: #162d4a;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #a08330;
    --steel: #8a9bb0;
    --concrete: #d0d5dc;
    --white: #f0f2f5;
    --pure-white: #ffffff;
    --text-primary: #e8ecf1;
    --text-secondary: #8a9bb0;
    --text-dark: #1a2332;
    --border: rgba(201, 168, 76, 0.15);
    --border-strong: rgba(201, 168, 76, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 25px rgba(201, 168, 76, 0.15);
    --radius: 0px; /* Neo-brutalism: sharp edges */
    --radius-sm: 0px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--midnight);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: all var(--transition);
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--midnight);
    background: var(--gold);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
    border: 2px solid var(--gold);
}

.logo-mark.small {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pure-white);
    letter-spacing: 0.05em;
}

.logo-suffix {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.15em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--midnight) !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    border: 2px solid var(--gold);
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: transparent !important;
    color: var(--gold) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--midnight);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--midnight);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--midnight);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    background: linear-gradient(160deg, var(--midnight) 0%, var(--navy) 40%, #0d1e35 100%);
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.gear-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gear {
    position: absolute;
    color: var(--gold);
}

.gear-1 {
    width: 500px;
    height: 500px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    animation: rotate-slow 60s linear infinite;
}

.gear-2 {
    width: 300px;
    height: 300px;
    right: 150px;
    top: 20%;
    animation: rotate-slow 45s linear infinite reverse;
}

@keyframes rotate-slow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--pure-white);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    /* Neo-brutalism: heavy, bold, no frills */
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.trust-bar {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

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

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--navy);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}

.card:hover .card-accent {
    transform: scaleY(1);
}

.card-icon {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link i {
    transition: transform var(--transition);
}

.card:hover .card-link i {
    transform: translateX(4px);
}

/* --- Dark Section (Why Us) --- */
.dark-section {
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-block {
    position: relative;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.12);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-block h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Stats --- */
.stats-section {
    background: var(--midnight);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-block {
    padding: 2rem;
    border: 1px solid var(--border);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-value span {
    font-size: 1.5rem;
    color: var(--gold-dark);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--midnight);
}

.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border: 2px solid var(--border-strong);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background: var(--navy);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

footer h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

footer ul a:hover {
    color: var(--gold);
}

footer .footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
}

footer .footer-col p i {
    color: var(--gold);
    width: 18px;
    margin-right: 0.5rem;
}

footer .footer-col p a {
    color: var(--text-secondary);
}

footer .footer-col p a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* --- Page Headers (inner pages) --- */
.page-header {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(160deg, var(--midnight) 0%, var(--navy) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header .hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--navy);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

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

/* --- Content Sections (Privacy, Terms) --- */
.content-section {
    padding: 5rem 0;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 2.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p,
.content-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section strong {
    color: var(--text-primary);
}

/* --- About page specific --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-visual {
    background: var(--navy);
    border: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-stat {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.about-stat .num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 100px;
}

.about-stat .desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--navy);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition);
}

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

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Services Grid (detailed) --- */
.services-detail-grid {
    display: grid;
    gap: 2rem;
}

.service-detail {
    background: var(--navy);
    border: 1px solid var(--border);
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    transition: all var(--transition);
}

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

.service-detail-icon {
    font-size: 2rem;
    color: var(--gold);
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 0.75rem;
}

.service-detail p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-detail ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.service-detail ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
}

.service-detail ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-block {
    margin-bottom: 2rem;
}

.contact-info-block h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.contact-info-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info-block a {
    color: var(--text-secondary);
}

.contact-info-block a:hover {
    color: var(--gold);
}

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

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

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        text-align: center;
        display: block;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .trust-bar {
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gear-1, .gear-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
