/* ============================================================
   CNMedia — marketing site
   Palette pulled directly from the logo:
     blue   #006CA8  (the CNM arches)
     maroon #A30000  (DIGITAL MEDIA wordmark)
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   Signature motif: the logo's repeating rounded arch, reused as a section
   divider and as the frame shape for product cards.
   ============================================================ */

:root {
    --paper: #fff;
    --ink: #fff;
    --ink-soft: #4A5560;
    --blue: #006CA8;
    --blue-deep: #00435F;
    --maroon: #ff7bac;
    --line: #DCE4E9;
    --white: #FFFFFF;
	--grey: #8299a8;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

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

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--blue);
    color: var(--white);
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--maroon);
    margin: 0 0 0.5em;
    line-height: 1.08;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 14px;
}
.eyebrow-light { color: #7FC4E8; }

p { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 248, 250, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px;
}
.brand { display: inline-flex; }
.brand-logo { height: auto; width: auto; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); margin: 0 auto; }

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 24px 20px;
}
.site-nav.open { display: flex; }
.site-nav a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.site-nav a:last-child { border-bottom: none; }
.nav-cta { color: var(--blue) !important; }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: #8a0000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-large { font-size: 17px; padding: 16px 34px; }

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: 64px; }
.hero-inner { padding-bottom: 90px; }

h1 { font-size: clamp(36px, 4.5vw, 52px); max-width: 14ch; 
}

.hero-lede {
    max-width: 52ch;
    font-size: 17px;
    margin-top: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.arch-row { color: var(--blue); line-height: 0; }
.arch-svg { width: 100%; height: 60px; display: block; }

/* ---------------------------------------------------------------
   Sections
--------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--grey); }
.section h2 { font-size: clamp(24px, 4vw, 34px); max-width: 20ch; }

.section-dark {
    background: var(--blue-deep);
    color: var(--white);
}
.section-dark h2 { color: var(--white); }
.contact-inner { text-align: left; }

/* ---------------------------------------------------------------
   Product cards — arch-framed, echoing the logo motif
--------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
}

.product-card {
    background: var(--paper);
    border: 1px solid var(--blue);
    border-radius: 18px;
    padding: 32px 28px;
}

.arch-frame {
    width: 64px;
    height: 64px;
    border-radius: 64px 64px 8px 8px;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    margin-bottom: 22px;
}

.product-card h3 { font-size: 20px; margin-bottom: 10px; }

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #E3F0F7;
    color: var(--blue-deep);
    padding: 5px 12px;
    border-radius: 999px;
    margin-top: 8px;
}
.tag-soon { background: #FBE9E4; color: var(--maroon); }

/* ---------------------------------------------------------------
   How it works — a genuine sequence, so numbering earns its place
--------------------------------------------------------------- */
.steps {
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    gap: 34px;
}
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--white);
    background: var(--maroon);
    width: 44px;
    height: 44px;
    border-radius: 44px 44px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---------------------------------------------------------------
   Who we are
--------------------------------------------------------------- */
.who-grid p { max-width: 62ch; font-size: 16px; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { height: 30px; opacity: 0.85; }
.footer-inner p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Larger screens
--------------------------------------------------------------- */
@media (min-width: 760px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
        gap: 32px;
        align-items: center;
    }
    .site-nav a { border-bottom: none; padding: 0; }
    .nav-cta {
        background: var(--maroon);
        color: var(--white) !important;
        padding: 9px 18px;
        border-radius: 999px;
    }

    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .steps li { flex-direction: column; }

    .section { padding: 110px 0; }
}

@media (min-width: 1000px) {
    h1 { font-size: clamp(44px, 5.5vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}

/* ---------------------------------------------------------------
   Announcement bar
--------------------------------------------------------------- */
.announce-bar { background: var(--blue-deep); color: #DCEEF7; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.announce-inner { display: flex; gap: 24px; padding: 8px 24px; overflow-x: auto; white-space: nowrap; }

/* ---------------------------------------------------------------
   Nav active state
--------------------------------------------------------------- */
.site-nav a.is-active { color: var(--blue); font-weight: 600; }
.nav-cta.is-active { color: var(--white) !important; }

/* ---------------------------------------------------------------
   Placeholder images — clearly marked so nothing gets mistaken
   for finished content before real photos are dropped in
--------------------------------------------------------------- */
.placeholder-image {
    position: relative;
    background: repeating-linear-gradient(135deg, #E9EEF1, #E9EEF1 10px, #DEE6EA 10px, #DEE6EA 20px);
    border: 1px dashed #B7C4CC;
    border-radius: 14px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-image::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 12px;
    color: #5C6B74;
    background: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    max-width: 80%;
}

/* ---------------------------------------------------------------
   Hero (two-column on larger screens)
--------------------------------------------------------------- */
.hero-inner { display: flex; flex-direction: column; gap: 40px; padding-bottom: 60px; }
.hero-media { min-height: 260px; }

/* ---------------------------------------------------------------
   Feature row
--------------------------------------------------------------- */
.feature-row { padding: 48px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: #E3F0F7; color: var(--blue-deep);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.feature-item h3 { font-size: 15px; margin-bottom: 3px; }
.feature-item p { font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------
   Product card image (sits above the arch-frame icon)
--------------------------------------------------------------- */
.card-image { min-height: 160px; margin-bottom: 20px; }

/* ---------------------------------------------------------------
   Promo banner
--------------------------------------------------------------- */
.promo-inner { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.promo-image { min-height: 220px; }

/* ---------------------------------------------------------------
   Who we are — stats
--------------------------------------------------------------- */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.who-image { min-height: 260px; }
.stat-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--maroon); }
.stat-label { font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Video cards / placeholders
--------------------------------------------------------------- */
.video-grid { grid-template-columns: 1fr; }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.video-card h3 { font-size: 15px; margin: 14px 0 6px; }
.video-card p { font-size: 13px; margin: 0; }
.video-placeholder {
    background: var(--blue-deep);
    color: var(--white);
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.video-play { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------
   Testimonials (placeholder state)
--------------------------------------------------------------- */
.testimonial-placeholder {
    background: var(--white);
    border: 1px dashed #B7C4CC;
    border-radius: 14px;
    padding: 26px;
    text-align: center;
    color: #C9A400;
    font-size: 18px;
    letter-spacing: 3px;
}
.testimonial-placeholder p { margin-top: 12px; font-size: 13px; letter-spacing: normal; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Page hero (Contact, CV Generator, Video Tutorials)
--------------------------------------------------------------- */
.page-hero { padding-top: 56px; padding-bottom: 20px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); max-width: 18ch; }

/* ---------------------------------------------------------------
   Contact page
--------------------------------------------------------------- */
.contact-page-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.contact-form-card button { width: 100%; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-success { text-align: center; padding: 20px 0; }
.form-error { background: #FBE9E4; color: var(--maroon); padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 13.5px; }
.contact-details p { margin-bottom: 18px; font-size: 14px; }
.contact-details h3 { font-size: 16px; margin-bottom: 18px; }

/* ---------------------------------------------------------------
   Coming soon (CV Generator)
--------------------------------------------------------------- */
.coming-soon-hero { padding-top: 64px; }
.coming-soon-inner { max-width: 640px; text-align: left; }
.coming-soon-inner h1 { font-size: clamp(30px, 5vw, 44px); }
.coming-soon-image { min-height: 240px; margin: 30px 0; }

/* ---------------------------------------------------------------
   Footer (expanded, multi-column)
--------------------------------------------------------------- */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 56px 0 32px; }
.footer-brand p { font-size: 13px; max-width: 34ch; margin-top: 14px; }
.footer-logo { height: 30px; opacity: 0.9; }
.site-footer h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 12px; }
.site-footer a { display: block; color: var(--ink); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: var(--blue); }
.footer-note { color: var(--ink-soft); font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Larger screens — additions for the new components
--------------------------------------------------------------- */
@media (min-width: 760px) {
    .hero-inner { flex-direction: row; align-items: center; }
    .hero-copy { flex: 1; }
    .hero-media { flex: 1; }

    .feature-grid { grid-template-columns: repeat(4, 1fr); }
    .promo-inner { grid-template-columns: 1fr 1fr; }
    .who-grid { grid-template-columns: 1fr 1fr; }
    .contact-page-grid { grid-template-columns: 1.5fr 1fr; }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
/* ============================================================
   ADDITIONS for the homepage redesign (per conversation).
   Append to the END of the existing style.css — written as new,
   self-contained rules with their own class names, so nothing
   already in use elsewhere on the site is touched or overridden.
   ============================================================ */

/* Hero with the Constable-style banner as a full-width background,
   headline text overlaid via a dark gradient for readability against
   any part of the image. */
.hero-banner {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-image: url('/assets/banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 0;
}
.hero-banner-overlay {
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.1) 100%);
    padding: 60px 0 48px;
}
.hero-banner .hero-copy {
    color: #fff;
}
.hero-banner .hero-lede {
    color: rgba(255,255,255,0.88);
}
.eyebrow-light {
    color: rgba(255,255,255,0.75);
}

/* Featured print cards — whole card is a link out to the real Etsy
   listing, so it needs its own link-reset rather than relying on the
   existing .product-card styling (which wasn't built as a link). */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}
.product-card-link:hover {
    transform: translateY(-4px);
}
.product-card-link .card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}
.product-price {
    font-weight: 600;
    font-size: 1.05em;
    margin: 4px 0 8px;
}

/* Responsive: keep the banner readable and not overly tall on phones. */
@media (max-width: 640px) {
    .hero-banner {
        min-height: 360px;
    }
    .hero-banner-overlay {
        padding: 36px 0 28px;
    }
}

