/* ============================================
   THE MARKER GROUP — Dark-First Redesign
   ============================================ */

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

:root {
    --navy: #0B1D35;
    --navy-mid: #132B4D;
    --navy-light: #1A3A5C;
    --white: #FFFFFF;
    --off-white: #F5F3EE;
    --warm-gray: #F2F0EB;
    --copper: #C19A6B;
    --copper-light: #D4B48E;
    --copper-dark: #A67C52;
    --text-dark: #1C1C1C;
    --text-body: #3D3D3D;
    --text-muted: #6B7280;
    --text-on-dark: rgba(255, 255, 255, 0.75);
    --text-on-dark-muted: rgba(255, 255, 255, 0.45);
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --max-width: 1160px;
    --header-height: 72px;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-on-dark);
    background: var(--navy);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
    color: var(--white);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

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

ul { list-style: none; }

/* --- Layout --- */
.container {
    width: min(100% - 3rem, var(--max-width));
    margin: 0 auto;
}


/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(19, 43, 77, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: var(--header-height);
    max-width: calc(var(--max-width) + 6rem);
    margin: 0 auto;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: opacity 0.2s ease;
}

@media (max-width: 900px) {
    .logo-img {
        height: 36px;
    }
}

.logo:hover .logo-img { opacity: 0.8; }

/* Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-desktop a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}

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

.nav-cta {
    color: var(--copper) !important;
    border: 1px solid var(--copper);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
    background: var(--copper);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
    background: var(--navy-mid);
    border-top: 1px solid var(--border-dark);
}

.nav-mobile a {
    padding: 0.85rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-dark);
}

.nav-mobile a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
}

.nav-mobile .nav-cta {
    text-align: center;
    display: block;
}

.nav-mobile.is-open {
    display: flex;
}


/* ============================================
   LABELS (reusable)
   ============================================ */
.label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 1rem;
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 65% 25%, rgba(193, 154, 107, 0.07), transparent),
        radial-gradient(ellipse 45% 55% at 25% 75%, rgba(193, 154, 107, 0.03), transparent);
    pointer-events: none;
}

/* Subtle noise */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
}

/* Decorative geometric elements */
.hero-layout::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(193, 154, 107, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hero-layout::after {
    content: '';
    position: absolute;
    bottom: 18%;
    right: 22%;
    width: 80px;
    height: 1px;
    background: var(--copper);
    opacity: 0.2;
    transform: rotate(-30deg);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--copper-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-on-dark);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 2.25rem;
    max-width: 540px;
}

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

/* Hero aside — staggered stat cards */
.hero-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-accent-line {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 1px;
    height: calc(100% + 60px);
    background: linear-gradient(to bottom, transparent, var(--copper), transparent);
    opacity: 0.25;
    transform: rotate(3deg);
    pointer-events: none;
}

.hero-stat-card {
    background: var(--navy-mid);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.hero-stat-card:nth-child(2) { margin-left: 1.5rem; }
.hero-stat-card:nth-child(3) { margin-left: 0.5rem; }

.hero-stat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat-card:hover {
    border-color: rgba(193, 154, 107, 0.3);
}

.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--copper);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    font-weight: 400;
    line-height: 1.4;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
    padding: 0.9rem 2.25rem;
    font-size: 0.92rem;
}

.btn-dark:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}


/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    position: relative;
    padding: 3rem 0 2.5rem;
    background: var(--off-white);
    overflow: hidden;
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.trust-logos {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trust-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    animation: scroll-logos 40s linear infinite;
    width: max-content;
}

.trust-track img {
    height: 34px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
}

.trust-track img:hover {
    opacity: 0.75;
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   COPPER RULE (motif)
   ============================================ */
.copper-rule {
    width: 40px;
    height: 2px;
    background: var(--copper);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}


/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
    padding: 5rem 0 6rem;
    background: var(--navy);
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.story-left {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.story-left h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.story-right[data-reveal] {
    transition-delay: 0.15s;
}

.story-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.story-right p {
    margin-bottom: 1.25rem;
    color: var(--text-on-dark);
    line-height: 1.8;
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 5rem 0 6rem;
    background: var(--navy-mid);
}

.services-header {
    max-width: 560px;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.services-intro {
    color: var(--text-on-dark-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 56px 1fr 36px;
    gap: 1.75rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-dark);
}

.service-item[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease, padding-left 0.3s ease, border-left 0.3s ease;
}

.service-item:nth-child(2)[data-reveal] { transition-delay: 0.08s; }
.service-item:nth-child(3)[data-reveal] { transition-delay: 0.16s; }

.service-item:last-child {
    border-bottom: 1px solid var(--border-dark);
}

.service-item:hover {
    padding-left: 1rem;
    border-left: 3px solid var(--copper);
}

.service-number {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--copper);
}

.service-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--white);
    transition: color 0.25s ease;
}

.service-item:hover .service-body h3 {
    color: var(--copper-light);
}

.service-body p {
    color: var(--text-on-dark-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 560px;
}

.service-arrow {
    font-size: 1.2rem;
    color: var(--text-on-dark-muted);
    transition: transform 0.25s ease, color 0.25s ease;
    justify-self: end;
}

.service-item:hover .service-arrow {
    transform: translateX(4px);
    color: var(--copper);
}


/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
    padding: 5rem 0 6rem;
    background: var(--navy);
}

.why-header {
    margin-bottom: 3rem;
}

.why-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
}

/* Stagger right column down */
.why-grid > :nth-child(2),
.why-grid > :nth-child(4) {
    margin-top: 3rem;
}

.why-item {
    position: relative;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--border-dark);
}

.why-item:nth-child(2)[data-reveal] { transition-delay: 0.08s; }
.why-item:nth-child(3)[data-reveal] { transition-delay: 0.16s; }
.why-item:nth-child(4)[data-reveal] { transition-delay: 0.24s; }

.why-number {
    position: absolute;
    top: 0.75rem;
    right: 0;
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--copper);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

.why-item--lead h3 {
    font-size: 1.25rem;
}

.why-item h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.why-item p {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: var(--off-white);
    text-align: center;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
    margin-top: -1px;
}

.cta-content {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.cta-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--copper);
    opacity: 0.5;
    margin: 0 auto 2rem;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-email {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 2.5rem 0;
    background: var(--navy-mid);
    border-top: 1px solid var(--copper);
}

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

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-on-dark-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.84rem;
    color: var(--text-on-dark-muted);
    transition: color 0.25s ease;
}

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


/* ============================================
   SCROLL REVEAL BASE
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }

    .hero {
        padding: calc(var(--header-height) + 2.5rem) 0 3.5rem;
        min-height: auto;
    }

    .hero-layout::before,
    .hero-layout::after {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .hero-aside {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-accent-line { display: none; }

    .hero-stat-card {
        flex: 1;
        min-width: 140px;
    }

    .hero-stat-card:nth-child(2),
    .hero-stat-card:nth-child(3) {
        margin-left: 0;
    }

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

    .story-left {
        position: static;
    }

    .service-item {
        grid-template-columns: 40px 1fr 28px;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .service-item:hover {
        padding-left: 0.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-grid > :nth-child(2),
    .why-grid > :nth-child(4) {
        margin-top: 0;
    }

    .why-section {
        padding-bottom: 4rem;
    }

    .story-section {
        padding: 4rem 0 4.5rem;
    }

    .services-section {
        padding: 4rem 0 4.5rem;
    }

    .trust-bar {
        clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 100%);
    }

    .cta-section {
        clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%);
        padding: 4rem 0 3rem;
    }

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

    .container {
        width: min(100% - 2rem, var(--max-width));
    }
}

@media (max-width: 480px) {
    .hero-aside {
        flex-direction: column;
    }

    .hero-stat-card {
        min-width: auto;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .why-number {
        font-size: 2.5rem;
    }
}
