/* We Make Brands — premium dark brand agency theme */
:root {
    --bg: #0c0c0f;
    --bg-elevated: #141419;
    --bg-card: #1a1a22;
    --text: #e8e6e1;
    --text-muted: #9a968d;
    --gold: #c9a962;
    --gold-light: #dfc88a;
    --border: rgba(201, 169, 98, 0.18);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
    --radius: 4px;
    --focus: #dfc88a;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
body.nav-open {
    overflow: hidden;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
iframe { max-width: 100%; }

a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: var(--bg);
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
    flex-shrink: 1;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
}

.primary-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.primary-nav a:hover:not(.header-cta),
.primary-nav a.is-active:not(.header-cta) { color: var(--gold); }

.header-cta {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.header-cta:hover,
.primary-nav a.header-cta:hover {
    background: var(--gold);
    color: #0c0c0f;
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 5;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--gold);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}
.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-overlay {
    display: none;
}

/* Main layout */
main { min-height: 60vh; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-elevated); }

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.75rem; }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 42rem; }

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,12,15,0.95) 0%, rgba(12,12,15,0.6) 50%, rgba(12,12,15,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-light); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Grid layouts */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .img-card-grid > *, .portfolio-grid > *, .contact-layout > *, .footer-grid > * {
    min-width: 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.note { margin-top: 2rem; color: var(--text-muted); }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold); }
.card-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.card p { color: var(--text-muted); margin: 0; }

/* Service cards with image */
.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s;
}
.service-card:hover img { transform: scale(1.05); }
.service-card-body {
    padding: 1.5rem;
    background: var(--bg-card);
}
.service-card-body h3 { margin-bottom: 0.5rem; }
.service-card-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem; }
.service-card-body a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }

/* Process timeline */
.process-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process-list li {
    position: relative;
    padding: 0 0 2.5rem 4rem;
    border-left: 1px solid var(--border);
    margin-left: 1.25rem;
}
.process-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-list li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: -1.25rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
}
.process-list h3 { margin-bottom: 0.35rem; }
.process-list p { color: var(--text-muted); margin: 0; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.portfolio-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.portfolio-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.portfolio-caption {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
}
.portfolio-caption h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.portfolio-caption p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Page header */
.page-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.page-header h1 { margin-bottom: 0.75rem; }

/* Content prose */
.prose { max-width: 48rem; }
.prose p { color: var(--text-muted); margin-bottom: 1.25rem; }
.prose ul, .prose ol { color: var(--text-muted); margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose h2 { margin-top: 2.5rem; }

.legal-content { max-width: 52rem; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-details address { font-style: normal; }
.contact-details p { margin-bottom: 0.75rem; color: var(--text-muted); overflow-wrap: anywhere; }

.form-success {
    padding: 2rem;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid var(--gold);
    margin-bottom: 2rem;
}
.form-success h2 { font-size: 1.35rem; color: var(--gold); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); margin: 0; }

.form-error {
    padding: 1rem 1.25rem;
    background: rgba(200, 80, 80, 0.12);
    border: 1px solid #c85050;
    color: #e8a0a0;
    margin-bottom: 1.5rem;
}

.map-wrapper {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    overflow: hidden;
}
.map-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* CTA band */
.cta-band {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--text-muted); max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
    margin-top: 4rem;
}
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.footer-nav h2, .footer-legal h2, .footer-contact h2 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
}
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-legal li { margin-bottom: 0.5rem; }
.footer-nav a, .footer-legal a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--gold); }
.footer-contact address p { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-inner { max-width: var(--max-width); margin: 0 auto; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cookie-banner p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1rem; max-width: 52rem; overflow-wrap: anywhere; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* 404 */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 6rem; color: var(--gold); margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 960px) {
    .nav-toggle { display: flex; z-index: 3; }
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(12, 12, 15, 0.28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .primary-nav {
        display: none;
        position: relative;
        z-index: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0.75rem 0 0;
        width: 100%;
        max-width: none;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        background: #121218;
        padding: 0.35rem 1rem 1.1rem;
        border: 1px solid rgba(201, 169, 98, 0.35);
        border-radius: 6px;
    }
    .primary-nav.is-open {
        display: flex;
    }
    .primary-nav a {
        display: block;
        width: 100%;
        padding: 0.95rem 0.25rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #f5f2ea;
        border-bottom: 1px solid rgba(245, 242, 234, 0.12);
        pointer-events: auto;
        position: relative;
        z-index: 4;
    }
    .primary-nav a:hover:not(.header-cta),
    .primary-nav a.is-active:not(.header-cta) {
        color: var(--gold-light);
    }
    .primary-nav .header-cta {
        display: inline-block;
        width: auto;
        margin-top: 1.1rem;
        padding: 0.75rem 1.25rem;
        text-align: center;
        background: transparent;
        color: var(--gold);
        border: 1px solid var(--gold);
        align-self: flex-start;
    }
    .primary-nav a.header-cta:hover {
        background: var(--gold);
        color: #0c0c0f;
    }
    body.nav-open .site-header {
        background: #141419;
    }
}

@media (max-width: 960px) {
    .grid-2, .portfolio-grid, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4, .img-card-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { gap: 2rem; }
}

@media (max-width: 640px) {
    .hero { min-height: 70vh; }
    .section { padding: 3rem 0; }
    .grid-3, .grid-4, .img-card-grid, .stats-bar { grid-template-columns: 1fr; }
    .container, .header-inner, .footer-grid, .footer-bottom { padding-left: 1rem; padding-right: 1rem; }
    .cta-band { padding: 2.5rem 1.25rem; }
    .logo-text { font-size: 1.15rem; }
    .page-header { padding: 3rem 0 2rem; }
    .map-wrapper iframe { height: 280px; }
    .process-list li { padding-left: 3.25rem; }
}

/* Premium enhancements */
.page-header-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-header-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.page-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(12,12,15,0.55) 60%, rgba(12,12,15,0.3) 100%);
}
.page-header-banner .container {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.img-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.img-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.img-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: top center;
}
.img-card-body { padding: 1.5rem; }
.img-card-body h3 { margin-bottom: 0.5rem; }
.img-card-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.75rem; }
.img-card-body a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }

.contact-photo {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.contact-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); }

.hero-content { animation: fadeUp 0.8s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.map-wrapper iframe { height: 400px; }

.btn-primary {
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(201, 169, 98, 0.35);
}

@media (hover: none) {
    .img-card:hover { transform: none; box-shadow: none; }
    .service-card:hover img { transform: none; }
}
