@font-face {
    font-family: 'Helvetica Neue Condensed Bold';
    src: url('../../../assets/fonts/helvetica-neue-condensed-bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

* {
    padding: 0;
    margin: 0;
}

:root {
    --c2now-gold: #EEB626;
    --c2now-btn-gold: #F6B433;
    --c2now-dark: #080808;
    --montserrat-font: 'Montserrat', sans-serif;
    --inter-font: 'Inter', sans-serif;
    --white: #ffffff;
    --black: #000000;
}

body.custom-background {
    background-color: var(--white) !important;
}

.entry-header {
    padding: 0 !important;
}

.entry-header-inner {
    max-width: 100% !important;
    position: relative;
}

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: none !important;
    width: max-content;
}

.entry-content h4, .entry-content h5, .entry-content h6 {
    margin: 0 !important;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
    margin: 0;
}

.entry-content hr {
    background-color: var(--c2now-gold) !important;
    background: var(--c2now-gold) !important;
    opacity: 1;
    height: 4px;
}

.entry-content hr::before, .entry-content hr::after {
    background: transparent !important;
}

.entry-content hr {
    margin: 1rem 0 1rem 0;
}

.entry-content > * {
    padding-bottom: 1.25em;
    margin-bottom: 0;
}

section {
    width: 100% !important;
    padding: 0;
}

.footer-nav-widgets-wrapper {
    margin-top: 0 !important;
}

.post-meta-wrapper {
    margin-top: 0 !important;
    height: 0 !important;
}

.post-inner {
    padding-top: 0 !important;
}

/* Keep fixed navbar above hero at all times */
nav {
    z-index: 1000 !important;
}

body {
    background-color: #000 !important;
}

/* ===========================
   HERO SECTION — DESKTOP  (Figma node 109:20)
   =========================== */

#c2now-hero {
    /* Clearance for the fixed navbar. The image and its overlay start below this,
       so the product never sits under the nav. Reset to 0 under 992px, where the
       theme switches the navbar to position: relative and it is already in flow. */
    --nav-h: 8rem;
    position: relative;
    min-height: calc(713px + var(--nav-h));
    background-color: #000;
    overflow: hidden;
    /* Do not set z-index here — avoids lifting above the fixed navbar */
}

.c2now-hero-bg {
    position: absolute;
    inset: 0;
    top: var(--nav-h);
    bottom: auto;
    width: 100%;
    height: calc(100% - var(--nav-h));
    object-fit: cover;
    object-position: right center;
    z-index: 0;
}

/* Dark gradients traced from Figma: bottom fade + left fade for legibility */
.c2now-hero-overlay {
    position: absolute;
    inset: 0;
    top: var(--nav-h);
    bottom: auto;
    height: calc(100% - var(--nav-h));
    z-index: 1;
    background:
        linear-gradient(1deg, #000 2.6%, rgba(0, 0, 0, 0) 13.5%),
        linear-gradient(90deg, #000 26%, rgba(0, 0, 0, 0) 57%);
}

.c2now-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: calc(713px + var(--nav-h));
    width: 100%;
    padding-top: var(--nav-h);   /* keeps the copy level with the top of the image */
    padding-bottom: 3rem;
}

.hero-content-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* shown at the logo file's own width (385px) so it is never upscaled */
.c2now-logo img {
    width: 385px;
    max-width: 100%;
    height: auto;
}

.hero-headline {
    font-family: 'Helvetica Neue Condensed Bold', 'Arial Narrow', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 66px;
    line-height: 1;
    letter-spacing: -1.32px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
    color: var(--white);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    font-style: italic;
    margin: 0;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero-description {
    color: var(--white);
    font-family: var(--inter-font) !important;
    font-size: 22px;
    line-height: 33px;
    letter-spacing: -0.44px;
    margin: 0;
    max-width: 650px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero-description span {
    color: var(--c2now-gold);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-hero-quote,
.btn-hero-brief {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--inter-font) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 16px 40px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-hero-quote {
    background-color: var(--c2now-btn-gold);
    color: var(--black) !important;
    border: 2px solid var(--c2now-btn-gold);
}

.btn-hero-quote:hover {
    background-color: transparent;
    color: var(--c2now-btn-gold) !important;
}

.btn-hero-quote:hover .btn-arrow svg path {
    fill: var(--c2now-btn-gold);
}

/* Desktop spacing: one even 20px gap made the hero feel cramped. Headline and
   tagline stay paired; the paragraph, buttons and badges each get more room.
   Mobile (767px and down) keeps its own centred layout and gap. */
@media (min-width: 768px) {
    .hero-content-col {
        gap: 0;
    }

    .c2now-logo {
        margin-bottom: 36px;
    }

    .hero-headline {
        margin-bottom: 14px;
    }

    .hero-tagline {
        margin-bottom: 30px;
    }

    .hero-buttons {
        margin-top: 42px;
    }

    /* scoped so it wins over the .hero-trust rule further down */
    .hero-content-col .hero-trust {
        margin-top: 40px;
    }
}

/* Secondary action as a quiet text link with a download icon (prototype style).
   The transparent border keeps it the same height as the quote button. */
.btn-hero-brief {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid transparent;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 600;
}

.btn-hero-brief:hover,
.btn-hero-brief:focus-visible {
    color: var(--c2now-btn-gold) !important;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.btn-download svg {
    display: block;
    width: 14px;
    height: 14px;
}

.btn-hero-brief:hover .btn-download {
    transform: translateY(2px);
}

/* Shipping line and compliance badges under the buttons */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    font-family: var(--inter-font) !important;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
}

.hero-trust li {
    margin: 0;
}

.hero-trust__ships {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px !important;
}

.hero-trust__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero-trust__badge {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
}

.btn-arrow svg {
    display: block;
    width: 9px;
    height: 15px;
}

/* ===========================
   FOOTER — dark treatment (Figma node 138:48)

   Layout, links and text are the site footer's own — nothing added or removed.
   Only colours, heading weight and the logo/icon rendering change. This file
   loads only on this template, so every other page's footer is untouched.
   =========================== */

.footer-nav-widgets-wrapper,
#site-footer {
    background: #0F1113 !important;
    border: 0 !important;
}

.footer-widgets-wrapper,
.footer-nav-widgets-wrapper .footer-inner {
    border-top: 0 !important;
}

/* Body copy */
.footer-nav-widgets-wrapper,
.footer-nav-widgets-wrapper p,
.footer-nav-widgets-wrapper li,
.footer-nav-widgets-wrapper b,
.footer-nav-widgets-wrapper strong,
.footer-nav-widgets-wrapper .description,
.footer-nav-widgets-wrapper .description-links,
#site-footer,
#site-footer .footer-copyright {
    color: var(--white) !important;
}

.template-c2now-landing .footer-nav-widgets-wrapper {
    background: #0F1113 !important;
}

.template-c2now-landing .widget-content ul li a {
    color: var(--white) !important;
}

/* Links: white, gold on hover */
.footer-nav-widgets-wrapper a,
#site-footer a {
    color: var(--white) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-nav-widgets-wrapper a:hover,
#site-footer a:hover {
    color: var(--c2now-gold) !important;
}

/* Column headings ("Company", "Information") */
.footer-nav-widgets-wrapper .description-links h5 {
    color: var(--c2now-gold) !important;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.4px;
}

/* The footer logo ships as a solid black mark — invert it to white in place
   rather than editing the widget content. */
.footer-nav-widgets-wrapper .description .logo img {
    filter: brightness(0) invert(1);
}

/* Social icons are already white SVGs; pin the fill so they stay white here. */
#site-footer .social-media svg path {
    fill: var(--white);
}

/* Gold bar closing the footer. Absolutely positioned so it stays full-bleed
   regardless of the footer's own padding. */
.template-c2now-landing #site-footer {
    position: relative;
    padding-bottom: 55px !important;
    background-color: #0F1113 !important;
}

#site-footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25px;
    background: var(--c2now-gold);
}

#site-footer a svg {
    filter: brightness(0) invert(1);
}

/* ===========================
   RESPONSIVE
   =========================== */

/* At 992px the theme switches the navbar to position: relative, so it already
   occupies space in the flow — no extra clearance needed (and a gap would show). */
@media (max-width: 992px) {
    #c2now-hero {
        --nav-h: 0px;
    }
}

@media (max-width: 1200px) {
    .hero-headline {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }

    .c2now-hero-inner {
        padding-bottom: 3rem;
    }
}

@media (max-width: 991px) {
    #c2now-hero,
    .c2now-hero-inner {
        min-height: 560px;
    }

    .c2now-hero-bg {
        object-position: 72% center;
    }

    /* Stronger left/bottom cover so copy stays readable over the image */
    .c2now-hero-overlay {
        background:
            linear-gradient(0deg, #000 6%, rgba(0, 0, 0, 0.15) 45%),
            linear-gradient(90deg, #000 38%, rgba(0, 0, 0, 0.25) 100%);
    }

    .hero-headline {
        font-size: 40px;
    }

    .c2now-logo img {
        width: 360px;
    }
}

/* ---------------------------------------------------------------------------
   MOBILE HERO — structure ported from the ATMOS2 GPU landing page
   (custom-css/landing-ad-pages/product-pages/atmos-gpu-landing.css, 767/576):
   the portrait art keeps its intrinsic aspect and a spacer pushes the copy
   past the product. ATMOS2 spaces that with fixed px, which only holds at one
   width — here the spacer is a fraction of the art's own height instead, so
   the copy stays pinned just below the product from 320px to 767px.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #c2now-hero,
    .c2now-hero-inner {
        /* 2:3 crop — the rendered height of the art at full-bleed width. The
           copy below is anchored off this, so it tracks the product at every
           mobile width instead of drifting the way fixed px spacers do. */
        --hero-img-h: 150vw;
        min-height: 90vh;
    }

    /* top/bottom 0 with an auto height makes the image fall back to its
       intrinsic aspect, exactly as the ATMOS2 hero does */
    .c2now-hero-bg {
        top: 0;
        bottom: 0;
        height: auto;
        padding-top: 5rem;
        object-position: center;
    }

    /* Unlike the old crop this one runs to open ground at the bottom, so the
       hero has to supply its own scrim: a light one under the title and a
       fade to solid black where the copy starts. */
    .c2now-hero-overlay {
        top: 0;
        bottom: auto;
        height: calc(var(--hero-img-h) + 5rem);
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 15%, rgba(0, 0, 0, 0) 32%),
            linear-gradient(0deg, #000 38%, rgba(0, 0, 0, 0) 62%);
    }

    .c2now-hero-inner {
        padding-top: calc(5vh + 5rem);
        padding-bottom: 0;
    }

    .hero-content-col {
        text-align: center;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-hero-title {
        color: var(--white);
        font-family: var(--inter-font) !important;
        font-size: 30px;
        font-weight: 700;
        line-height: 34px;
        letter-spacing: -1.25px;
        margin: 0;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }

    .mobile-hero-title span {
        color: var(--c2now-gold);
    }

    /* 16px keeps this on one line — at 18px it wrapped onto the switch faceplate */
    .hero-tagline {
        font-size: 16px;
        line-height: 21px;
    }

    /* Drops the copy to ~64% of the art — just past the bottom of the product
       stack (~60%), where the fade above has gone solid black */
    .mobile-hero-headline {
        color: var(--c2now-gold);
        font-family: var(--inter-font) !important;
        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 25px;
        letter-spacing: -0.4px;
        margin: 0;
        padding-top: calc(var(--hero-img-h) * 0.62 - 11rem);
    }

    .hero-description {
        font-size: 18px;
        line-height: 35px;
        letter-spacing: -1px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 80%;
        gap: 20px;
        margin-top: 44px;
    }

    .btn-hero-quote,
    .btn-hero-brief {
        text-align: center;
        padding: 12px 20px;
        font-size: 17px;
    }

    /* shipping line and compliance badges are desktop and tablet only */
    .hero-trust {
        display: none;
    }
}

@media (max-width: 576px) {
    .c2now-hero-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ---------------------------------------------------------------------------
   PAGE NAV (desktop, 992px and up) — Apple-style hand-over. Once the page is
   scrolled, c2now-localnav.js adds .c2now-localnav-on to <html>: the site
   navbar slides up out of view and this slimmer page nav, on frosted glass,
   slides down in its place. Scrolling back to the top reverses it.
   --------------------------------------------------------------------------- */
.c2now-localnav {
    display: none;
}

@media (min-width: 992px) {
    /* in-page links land below the page nav instead of under it */
    html.c2now-page {
        scroll-padding-top: 80px;
    }

    /* keep the navbar's own transition; only the slide gets the smoother curve */
    #site-header .navbar {
        transition: all 0.5s ease-in-out, transform 0.45s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.3s ease;
    }

    .c2now-localnav-on #site-header .navbar {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    /* a keyboard user tabbing into the site navbar brings it back */
    .c2now-localnav-on #site-header .navbar:focus-within {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .c2now-localnav {
        display: block;
        position: fixed !important;
        top: var(--wp-admin--admin-bar--height, 0px);
        left: 0;
        right: 0;
        z-index: 1001;
        height: 60px;
        background: rgba(12, 12, 14, 0.72);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.45s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.3s ease, visibility 0s linear 0.45s;
    }

    /* comes in a beat after the site navbar starts leaving, so they hand over rather than collide */
    .c2now-localnav-on .c2now-localnav {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: transform 0.45s cubic-bezier(0.28, 0.11, 0.32, 1) 0.08s, opacity 0.35s ease 0.08s, visibility 0s linear 0s;
    }

    /* same edges as the site navbar's content, so the NGC2 logo and the quote
       button land where the Core Systems logo and the last menu item were */
    .c2now-localnav__inner {
        display: flex;
        align-items: center;
        gap: 32px;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 0 30px 0 15px;
    }

    .c2now-localnav__brand {
        flex: 0 0 auto;
        display: block;
    }

    .c2now-localnav__brand img {
        display: block;
        width: auto;
        height: 20px;
    }

    .c2now-localnav__links {
        display: flex;
        align-items: stretch;
        gap: 28px;
        height: 100%;
        margin: 0 0 0 auto;
        padding: 0;
        list-style: none;
    }

    .c2now-localnav__links li {
        display: flex;
        margin: 0;
    }

    .c2now-localnav__links a {
        position: relative;
        display: flex;
        align-items: center;
        font-family: var(--inter-font) !important;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none !important;
        transition: color 0.2s ease;
    }

    .c2now-localnav__links a:hover,
    .c2now-localnav__links a:focus-visible,
    .c2now-localnav__links a[aria-current] {
        color: #ffffff !important;
    }

    /* gold bar along the bottom edge under the current section's link */
    .c2now-localnav__links a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: var(--c2now-gold);
        transform: scaleX(0);
        transition: transform 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    }

    .c2now-localnav__links a[aria-current]::after {
        transform: scaleX(1);
    }

    .c2now-localnav__cta {
        flex: 0 0 auto;
        padding: 8px 18px;
        border: 1px solid var(--c2now-btn-gold);
        border-radius: 4px;
        background: var(--c2now-btn-gold);
        color: #000000 !important;
        font-family: var(--inter-font) !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none !important;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .c2now-localnav__cta:hover,
    .c2now-localnav__cta:focus-visible {
        background: transparent;
        color: var(--c2now-btn-gold) !important;
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    #site-header .navbar,
    .c2now-localnav,
    .c2now-localnav-on .c2now-localnav {
        transition: opacity 0.2s ease, visibility 0s;
    }
}

/* Stray empty paragraph blocks between sections (the editor leaves one at the
   end of the content) would otherwise add a strip of margin, e.g. between the
   closing CTA and the footer. */
#site-content > p:empty {
    display: none;
}

/* Desktop hero: sit the copy lower and give it air top and bottom. The fixed
   navbar is 98px but --nav-h reserves 80px, so the old layout tucked the logo
   right under the nav (8px at 1440px, where the headline wraps). The hero is a
   little taller and the copy is centred between equal 40px margins. */
@media (min-width: 992px) {
    #c2now-hero,
    .c2now-hero-inner {
        min-height: calc(770px + var(--nav-h));
    }

    .c2now-hero-inner {
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 40px;
    }
}
