/* We Create Growth — light performance marketing theme */
:root {
    --white: #ffffff;
    --bg: #f4f7f8;
    --surface: #ffffff;
    --text: #1a2b32;
    --muted: #5a6d75;
    --teal: #0d5c63;
    --teal-dark: #094248;
    --coral: #e07a5f;
    --coral-light: #f4a896;
    --border: #d8e2e6;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --wrap: 1140px;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); max-width: 100%; overflow-x: hidden; width: 100%; }
body.nav-open { overflow: hidden; }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: .75rem 1rem; background: var(--teal); color: var(--white); font-weight: 600; }
.skip-link:focus { left: 0; }

/* Top bar */
.top-bar { background: var(--teal-dark); color: rgba(255,255,255,.85); font-size: .8rem; max-width: 100%; overflow: hidden; }
.top-bar-inner { max-width: var(--wrap); margin: 0 auto; padding: .5rem 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; justify-content: flex-end; }
.top-bar-inner > * { min-width: 0; overflow-wrap: anywhere; }
.top-bar a { color: var(--white); text-decoration: none; }
.top-bar a:hover { color: var(--coral-light); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 130; }
.header-main { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; position: relative; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); min-width: 0; }
.brand-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex-shrink: 0; background: var(--teal); color: var(--white); border-radius: 50%; font-size: 1rem; font-weight: 700; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--teal); border-bottom-color: var(--coral); }
.nav-close { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; justify-content: center; gap: 5px; width: 2.5rem; height: 2.5rem; position: relative; z-index: 130; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; transform-origin: center; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(9, 66, 72, .5); z-index: 110; }

.wrap { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
section.alt { background: var(--surface); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 .75rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: min(40rem, 100%); }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: .5rem; }

/* Split hero — different from site 1 */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 75vh; align-items: stretch; overflow: hidden; }
.split-hero-text { display: flex; flex-direction: column; justify-content: center; padding: 3rem 1.25rem; background: var(--surface); min-width: 0; }
.split-hero-visual { position: relative; overflow: hidden; min-width: 0; }
.split-hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

.btn { display: inline-block; padding: .8rem 1.5rem; font-size: .9rem; font-weight: 600; text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #c9684f; color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Metrics strip */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.metric { text-align: center; padding: 1rem; }
.metric strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--teal); }
.metric span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Feature rows — horizontal alternating */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row img { border-radius: var(--radius); box-shadow: 0 8px 32px rgba(13,92,99,.12); }
.feature-row p { color: var(--muted); }

/* Pill cards */
.pill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; border-top: 4px solid var(--coral); }
.pill-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.pill-card a { font-weight: 600; font-size: .85rem; text-decoration: none; }

/* Funnel — unique to this site */
.funnel { display: flex; flex-direction: column; gap: .75rem; max-width: 640px; margin: 2rem auto; }
.funnel-step { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.funnel-step:nth-child(2) { margin-left: 1.5rem; border-left-color: var(--coral); }
.funnel-step:nth-child(3) { margin-left: 3rem; }
.funnel-step:nth-child(4) { margin-left: 4.5rem; }
.funnel-step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Industry tiles */
.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.industry-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; }
.industry-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.industry-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(13,92,99,.85)); }
.industry-tile div { position: relative; z-index: 1; padding: 1.5rem; margin-top: auto; position: absolute; bottom: 0; left: 0; right: 0; color: var(--white); }
.industry-tile h3 { color: var(--white); margin-bottom: .25rem; }
.industry-tile p { margin: 0; font-size: .9rem; opacity: .9; }

/* Page intro */
.page-intro { padding: 3rem 0 2rem; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: var(--white); }
.page-intro h1 { color: var(--white); }
.page-intro .lead { color: rgba(255,255,255,.85); }

.prose { max-width: min(48rem, 100%); }
.prose p, .prose li { color: var(--muted); }
.legal { max-width: min(52rem, 100%); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.form-group input, .form-group textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,92,99,.15); }
.form-group textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert-success { background: #e8f5f0; border: 1px solid #0d5c63; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.alert-success p { margin: .5rem 0 0; color: var(--muted); }
.alert-error { background: #fdecea; border: 1px solid #c0392b; border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; color: #922b21; }
.map-block { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); width: 100%; max-width: 100%; position: relative; isolation: isolate; }
.map-block iframe { width: 100%; max-width: 100%; min-width: 0; height: 340px; border: 0; display: block; }

.cta-block { text-align: center; padding: 3rem 2rem; background: var(--teal); color: var(--white); border-radius: var(--radius); }
.cta-block h2 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,.85); max-width: 32rem; margin: 0 auto 1.25rem; }

/* Footer */
.site-footer { background: var(--text); color: rgba(255,255,255,.75); margin-top: 3rem; padding: 3rem 0 0; font-size: .9rem; }
.footer-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 2rem; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--white); margin: 0 0 .5rem; }
.footer-col h2 { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-light); margin: 0 0 .75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-contact address { font-style: normal; }
.footer-contact p { margin: 0 0 .35rem; }
.footer-copy { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

.cookie-panel { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--border); padding: 1rem 1.25rem; box-shadow: 0 -4px 20px rgba(0,0,0,.08); max-width: 100%; }
.cookie-panel-inner { max-width: var(--wrap); margin: 0 auto; }
.cookie-panel h2 { font-size: 1rem; margin-bottom: .35rem; }
.cookie-panel p { color: var(--muted); font-size: .875rem; margin: 0 0 .75rem; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: .5rem; }

.err404 { text-align: center; padding: 5rem 1.25rem; }
.err404 h1 { font-size: 5rem; color: var(--teal); }

.split-hero > *,
.feature-row > *,
.pill-grid > *,
.industry-grid > *,
.contact-grid > *,
.footer-wrap > *,
.approach-layout > *,
.metrics > * { min-width: 0; }

.top-bar-inner, address, .footer-contact p, .brand-name {
    overflow-wrap: anywhere;
}

@media (min-width: 1101px) {
    .split-hero-text {
        padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem));
    }
}

@media (max-width: 1100px) {
    .split-hero, .feature-row, .pill-grid, .industry-grid, .contact-grid, .footer-wrap, .metrics { grid-template-columns: 1fr; }
    .split-hero-text { padding: 2rem 1.25rem; }
    .split-hero-visual img { min-height: 260px; }
    .feature-row.reverse { direction: ltr; }
    .funnel-step, .funnel-step:nth-child(2), .funnel-step:nth-child(3), .funnel-step:nth-child(4) { margin-left: 0; }
    .menu-btn { display: flex !important; flex-shrink: 0; }
    .nav-overlay.is-open { display: block; }
    .nav-close {
        display: block;
        align-self: flex-end;
        margin-bottom: 1rem;
        background: none;
        border: 0;
        font: inherit;
        font-weight: 600;
        color: var(--teal);
        cursor: pointer;
        padding: .35rem 0;
    }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 88vw);
        max-width: 100%;
        background: var(--surface);
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 1.25rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform .3s, visibility .3s;
        box-shadow: -4px 0 20px rgba(0,0,0,.1);
        z-index: 120;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
        margin-left: 0;
    }
    .site-nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .approach-layout { grid-template-columns: 1fr !important; }
    .map-block iframe { height: 240px; }
    .cta-block { padding: 2rem 1.25rem; }
    section { padding: 2.5rem 0; }
    .top-bar-inner { justify-content: flex-start; }
    .top-bar-inner span:first-child { display: none; }
    .btn { max-width: 100%; text-align: center; }
    .btn-row { width: 100%; flex-direction: column; align-items: stretch; }
    .cookie-panel p { overflow-wrap: anywhere; }
    .page-intro .lead { max-width: 100%; }
}

@media (max-width: 640px) {
    .wrap, .header-main, .top-bar-inner, .footer-wrap { padding-left: 1rem; padding-right: 1rem; }
    .metrics { gap: .75rem; }
    .metric strong { font-size: 1.6rem; }
    .err404 h1 { font-size: 3.5rem; }
    h1, h2, .lead { overflow-wrap: anywhere; }
}

@media (hover: none) {
    .split-hero:hover .split-hero-visual img { transform: none; }
    .img-pill:hover, .pill-card:hover { transform: none; }
}

/* Premium enhancements */
.page-intro {
    position: relative;
    overflow: hidden;
}
.page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(224,122,95,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-intro .wrap { position: relative; z-index: 1; }

.img-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.img-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(13, 92, 99, 0.12);
}
.img-pill img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.img-pill div { padding: 1.25rem 1.5rem; border-top: 3px solid var(--coral); }
.img-pill h3 { margin-bottom: 0.35rem; }
.img-pill p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.approach-layout img {
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(13, 92, 99, 0.15);
    width: 100%;
}

.contact-photo {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 28px rgba(13, 92, 99, 0.12);
}
.contact-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.pill-card {
    box-shadow: 0 2px 12px rgba(13, 92, 99, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.pill-card:hover { box-shadow: 0 8px 28px rgba(13, 92, 99, 0.12); transform: translateY(-2px); }

.btn-teal, .btn-coral { box-shadow: 0 4px 14px rgba(13, 92, 99, 0.2); }
.btn-teal:hover, .btn-coral:hover { box-shadow: 0 6px 20px rgba(13, 92, 99, 0.28); }

.map-block { box-shadow: 0 8px 28px rgba(13, 92, 99, 0.1); }

.split-hero-visual img { transition: transform 0.6s ease; }
.split-hero:hover .split-hero-visual img { transform: none; }
@media (hover: hover) and (pointer: fine) {
    .split-hero:hover .split-hero-visual img { transform: scale(1.03); }
}

.metrics { box-shadow: inset 0 1px 0 var(--border); }

@media (min-width: 1101px) {
    .map-block iframe { height: 380px; }
}

@media (max-width: 1100px) {
    .split-hero,
    .feature-row,
    .pill-grid,
    .industry-grid,
    .contact-grid,
    .footer-wrap,
    .metrics,
    .approach-layout {
        grid-template-columns: 1fr;
    }
    .map-block iframe { height: 240px; }
}
