/* CannonWorks shared site styles — header, footer, design tokens, cw-* components */

@font-face {
    font-family: 'fatfrank';
    font-style: normal;
    font-weight: 10;
    src: url('/assets/styles/fonts/fatfrank/FatFrank-Regular.ttf');
}

:root {
    --cw-blue: #0093df;
    --cw-blue-dark: #0078af;
    --cw-blue-light: #0093d9;
    --cw-navy: #082854;
    --cw-footer-blue: #0099e5;
    --cw-bg-white: #ffffff;
    --cw-bg-soft: #eef6ff;
    --cw-bg-light: #f7fbff;
    --cw-bg-grey: #efefef;
    --cw-green: #03E16D;
    --cw-green-dark: #02c85c;
    --cw-text: #333333;
    --cw-text-muted: #444444;
    --cw-border: #e6eef7;
    --cw-shadow: 0 4px 24px rgba(104, 152, 171, 0.15);
    --cw-shadow-card: 0 8px 24px rgba(104, 152, 171, 0.12);
    --cw-radius-sm: 12px;
    --cw-radius-md: 20px;
    --cw-radius-lg: 24px;
    --cw-radius-pill: 999px;
    --cw-section-py: clamp(48px, 8vw, 100px);
    --cw-font-body: "Lato", sans-serif;
    --cw-font-display: "fatfrank", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    font-family: var(--cw-font-body);
    margin: 0;
    padding-top: 65px !important;
    color: var(--cw-text);
    font-weight: 400;
    line-height: 1.6;
}

section[id],
.section-anchor {
    scroll-margin-top: 80px;
}

a {
    text-decoration: none;
    color: var(--cw-blue);
}

a:hover {
    color: var(--cw-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* ---- Header ---- */

body > header {
    z-index: 1000;
    position: fixed;
    top: 0;
    height: 65px;
    background-color: #fff;
    box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.15);
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
}

/* Section content headers — not the fixed site nav */
.cw-section-header {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    display: block;
    background: transparent;
    text-align: center;
    margin-bottom: 40px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.title {
    margin-left: 20px;
    height: 100%;
    display: block;
}

.title_mobile {
    display: none;
}

.navitems {
    display: flex;
    align-items: center;
    width: 100%;
}

.navitem {
    color: #000;
    line-height: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 23px;
}

.navitem:hover {
    color: var(--cw-blue-light);
}

.login-btn {
    padding: 14px 20px !important;
    background-color: var(--cw-blue);
    color: #fff;
    border-radius: var(--cw-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    margin-right: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.login-btn:hover {
    background-color: var(--cw-blue-dark);
    color: #fff;
}

.hamburger-menu {
    color: var(--cw-blue-light);
    font-size: 32px;
    display: none;
    margin-left: 10px;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 10px;
    border-radius: 5px;
    min-width: 400px;
    top: 100%;
    left: 0;
}

.custom-dropdown:hover .custom-dropdown-menu {
    display: block;
}

.menu {
    position: absolute;
    height: 100%;
    background-color: #141A2B;
    color: #fff;
    transition: width 0.5s ease, opacity 0.3s ease;
    flex-direction: column;
    opacity: 0;
    z-index: 10000;
}

.menuopen {
    width: 20%;
    opacity: 1;
}

.closed {
    width: 0%;
    opacity: 0;
    overflow: hidden;
}

.menuitem {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    height: 50px;
    border-bottom: 1px solid #2d344e;
    text-decoration: none;
    color: #fff;
}

/* ---- Footer ---- */

footer {
    background-color: var(--cw-footer-blue);
    padding: 40px;
    color: white;
}

.footercontainer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    margin: 0 auto;
    max-width: 1140px;
}

footer h3,
footer h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: white;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 8px;
}

/* ---- Container ---- */

.page-content .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 100%;
}

@media (min-width: 576px) {
    .page-content .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .page-content .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .page-content .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .page-content .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .page-content .container {
        max-width: 1320px;
    }
}

/* ---- CW sections ---- */

.cw-section {
    width: 100%;
    padding: var(--cw-section-py) 20px;
    display: block;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.cw-section--white {
    background: var(--cw-bg-white);
}

.cw-section--soft {
    background: var(--cw-bg-soft);
}

.cw-section--light {
    background: var(--cw-bg-light);
}

.cw-section--grey {
    background: var(--cw-bg-grey);
}

/* ---- Typography ---- */

.cw-eyebrow {
    font-family: var(--cw-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cw-blue);
    margin: 0 0 12px;
}

.cw-heading {
    font-family: var(--cw-font-display);
    font-size: clamp(28px, 4vw, 45px);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cw-navy);
    line-height: 1.15;
    margin: 0 0 16px;
}

.cw-heading--hero {
    font-size: clamp(32px, 5vw, 50px);
    text-align: center;
}

.cw-heading--left {
    text-align: left;
}

.cw-lead {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--cw-text-muted);
    margin: 0 auto 30px;
    max-width: 860px;
}

.cw-section-header .cw-lead {
    text-align: center;
}

.cw-split__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cw-navy);
    margin: 24px 0 8px;
}

.cw-split__content h3:first-child {
    margin-top: 0;
}

.cw-split__content p {
    color: var(--cw-text-muted);
    margin: 0 0 16px;
}

.cw-prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
}

.cw-prose h2, .cw-prose h3 {
    color: var(--cw-navy);
}

/* ---- Buttons ---- */

.cw-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--cw-font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--cw-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
}

.cw-btn--primary {
    background: var(--cw-blue);
    color: #fff;
    border-color: var(--cw-blue);
}

.cw-btn--primary:hover {
    background: var(--cw-blue-dark);
    border-color: var(--cw-blue-dark);
    color: #fff;
}

.cw-btn--secondary {
    background: var(--cw-blue);
    color: #fff;
}

.cw-btn--green {
    background: var(--cw-green);
    color: #fff;
    border-color: var(--cw-green);
}

.cw-btn--green:hover {
    background: var(--cw-green-dark);
    color: #fff;
}

.cw-btn--ghost {
    background: transparent;
    color: var(--cw-blue);
    border-color: var(--cw-blue);
}

.cw-btn--ghost:hover {
    background: var(--cw-bg-soft);
    color: var(--cw-blue-dark);
}

/* ---- Split layout ---- */

.cw-split {
    display: flex;
    align-items: center;
    gap: var(--cw-gap);
}

.cw-split--reverse {
    flex-direction: row-reverse;
}

.cw-split__content,
.cw-split__media {
    flex: 1 1 0;
    min-width: 0;
}

.cw-figure {
    display: block;
    margin: 0;
}

.cw-img {
    display: block;
    width: 100%;
    height: auto;
}

.cw-phone-mockup {
    display: block;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Cards ---- */

.cw-cards {
    display: grid;
    gap: 24px;
}

.cw-cards--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cw-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cw-card {
    background: var(--cw-bg-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 32px 28px;
    box-shadow: var(--cw-shadow);
    position: relative;
}

.cw-card--step {
    text-align: center;
}

.cw-card__number {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(0, 147, 223, 0.15);
    line-height: 1;
}

.cw-card__icon-chip {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cw-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--cw-blue);
}

.cw-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cw-navy);
    margin: 0 0 12px;
}

.cw-card__title a {
    color: var(--cw-blue);
}

.cw-card__text {
    color: var(--cw-text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Checklist ---- */

.cw-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.cw-checklist li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--cw-text-muted);
}

.cw-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.1rem;
    height: 1.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230093df'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5l-4-4 1.41-1.41L10 13.67l6.59-6.59L18 8.5l-8 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ---- Module grid ---- */

.cw-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cw-module {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cw-bg-white);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    padding: 16px 20px;
}

.cw-module__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cw-bg-soft);
    flex-shrink: 0;
}

.cw-module__label {
    font-weight: 700;
    color: var(--cw-navy);
    font-size: 14px;
}

/* ---- Hero triptych ---- */

.cw-hero-triptych {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.cw-hero-triptych__side {
    flex: 0 0 25%;
    text-align: center;
}

.cw-hero-triptych__center {
    flex: 0 0 50%;
    max-width: 520px;
}

.cw-search-card {
    background: var(--cw-bg-soft);
    border-radius: 28px;
    box-shadow: 0 14px 25px rgba(104, 152, 171, 0.35);
    padding: 40px 32px;
    text-align: center;
}

/* ---- Search bar ---- */

.cw-search-bar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
}

.cw-search-bar__inner {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--cw-radius-pill);
    padding: 6px 6px 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    gap: 8px;
}

.cw-search-bar__input {
    border: none;
    outline: none;
    font-size: 16px;
    flex: 1;
    background: transparent;
    min-width: 0;
}

.cw-search-bar__btn {
    background: var(--cw-blue);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cw-search-bar__btn:hover {
    background: var(--cw-blue-dark);
}

/* ---- Store badges ---- */

.cw-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cw-store-badges img {
    max-width: 180px;
    height: auto;
}

/* ---- Accordion ---- */

.cw-accordion details {
    background: white;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-sm);
    margin-bottom: 12px;
}

.cw-accordion summary {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.cw-accordion summary::-webkit-details-marker {
    display: none;
}

.cw-accordion .cw-accordion__body {
    padding: 0 20px 20px;
}

/* ---- Responsive ---- */

@media (max-width: 1199.98px) {
    .cw-hero-triptych__side {
        display: none;
    }

    .cw-hero-triptych__center {
        flex: 0 0 100%;
        max-width: 520px;
    }
}

@media (max-width: 991.98px) {
    .cw-cards--3 {
        grid-template-columns: 1fr;
    }

    .cw-cards--2 {
        grid-template-columns: 1fr;
    }

    .cw-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cw-split,
    .cw-split--reverse {
        flex-direction: column;
        gap: 24px;
    }

    .cw-heading--left {
        text-align: center;
    }

    .cw-btn {
        display: block;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .cw-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1297px) {
    .navitems {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .title {
        display: none;
    }

    .login-btn {
        display: none;
    }

    body > header {
        justify-content: left;
    }

    .title_mobile {
        display: flex;
        align-items: center;
        height: 100%;
        margin-left: 10px;
    }
}

@media (max-width: 769px) {
    .menuopen {
        width: 80%;
    }
}
