/* ============================================
   Civic.ly Marketing Site — style.css (concatenated)
   GENERATED FILE — do not edit directly.
   Source: website/templates/static/css/*.css
   Order: CSS_COMPONENTS in build.py
   ============================================ */

/* ============================================
   Design tokens — :root custom properties
   Extracted Phase 1 from website/index.html.
   ============================================ */

:root {
    --primary: #008096;
    --primary-dark: #006675;
    --light-accent: #80BFCB;
    --blue: #0066FF;
    --inspection: #00D6B7;
    --defect: #FF5130;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-light: #4a5568;
    --white: #ffffff;
    --off-white: #f8fafb;
    --border: #e2e8f0;
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-btn: 8px;
}

/* ============================================
   Reset
   ============================================ */

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

/* ============================================
   Body baseline + img + a
   ============================================ */

body {
    font-family: var(--font-family);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

/* ============================================
   Focus indicators (WCAG 2.1 AA)
   ============================================ */

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-nav:focus-visible {
    outline-color: var(--primary-dark);
    outline-offset: 3px;
}

/* High contrast focus on dark backgrounds */
.on-dark *:focus-visible {
    outline-color: var(--white);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Typography — headings, sections labels, paragraphs
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.2;
}

p { margin: 0 0 16px; }

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ============================================
   Skip-to-main-content link (WCAG)
   Added to website during Phase 1 (P-4 #3).
   ============================================ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    z-index: 10001;
    border-radius: 0 0 var(--border-radius-btn) var(--border-radius-btn);
    font-weight: 600;
}

.skip-link:focus {
    left: 8px;
    color: var(--white);
}

/* ============================================
   Top navigation
   Extracted Phase 1 from website inline CSS.
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo img { height: 48px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ============================================
   Buttons — .btn family (primary, outline, white, login, large, nav)
   Extracted Phase 1 from website inline CSS.
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,128,150,0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 10px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-login {
    background: rgba(0, 128, 150, 0.08);
    color: var(--primary);
    border: 1.5px solid rgba(0, 128, 150, 0.2);
}
.btn-login:hover {
    background: rgba(0, 128, 150, 0.15);
    color: var(--primary-dark);
}

/* ============================================
   Site footer
   Extracted Phase 1 from website inline CSS.
   Adds .footer-strapline, .footer-attribution, .cookie-settings-link
   classes (previously inline-styled in source).
   ============================================ */

.footer {
    background: #0a0a1a;
    color: rgba(255,255,255,0.85);
    padding: 64px 24px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-strapline {
    font-weight: 500;
    color: var(--inspection);
    font-size: 0.95rem;
    margin-top: 16px !important;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.footer h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }

.footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover { color: var(--inspection); }

/* Starboard Systems attribution paragraph (between footer-inner and footer-bottom) */
.footer-attribution {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.65;
}
.footer-attribution-emphasis {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.cookie-settings-link {
    color: rgba(255,255,255,0.5) !important;
    font-size: 12px;
    text-decoration: underline !important;
    margin-top: 4px;
    display: inline-block;
}
.cookie-settings-link:hover { color: rgba(255,255,255,0.8) !important; }

/* ============================================
   Scroll reveal + reduced-motion override
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   GDPR cookie consent banner
   ============================================ */

#cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    font-family: var(--font-family);
}

.cc-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cc-text {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cc-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cc-btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cc-btn-accept {
    background: var(--primary);
    color: var(--white);
}
.cc-btn-accept:hover { background: var(--primary-dark); }

.cc-btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.cc-btn-reject:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}

/* ============================================
   FAQ accordion (used on demo + assessment + some blog posts)
   ============================================ */

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    padding: 4px 0;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }

.faq-arrow {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    padding-top: 12px;
    margin-bottom: 0;
}

.faq-item.open .faq-answer { max-height: 800px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ============================================
   Hero patterns shared across marketing pages
   Populated during Phase 1 page migrations as shared rules are identified.
   Page-unique hero variants live in per-page {% block extra_styles %}.
   ============================================ */

/* ============================================
   Card patterns: problem-card, role-card, feature-card-dark, asset-tile,
   testimonial-card, etc. Shared across marketing pages.
   Populated during Phase 1 page migrations as shared rules are identified.
   ============================================ */

/* ============================================
   Homepage logo carousel — "Trusted by councils across the UK"
   Used only on index.html but lives in shared CSS so the marquee
   keyframes don't get duplicated across page-specific extra_styles.
   Populated during Phase 1 homepage migration (1.11).
   ============================================ */

/* ============================================
   Blog listing page (learning/index.html)
   Featured + standard post card layouts.
   Populated during Phase 1 blog listing migration (1.15).
   ============================================ */

/* ============================================
   Individual blog post layout (learning/{slug}.html)
   Hero image, byline, body container, callout boxes (mid-banners,
   strategy boxes), related posts.
   Populated during Phase 1 blog post migrations (1.16).
   ============================================ */

/* ============================================
   Cross-cutting responsive media queries
   Mobile breakpoint: 968px. Smaller breakpoint: 640px.
   Site-wide nav + footer responsive rules.
   Page-specific responsive rules live in per-page {% block extra_styles %}.
   ============================================ */

@media (max-width: 968px) {
    /* Mobile nav: hamburger toggle */
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 600px; padding: 16px 24px; }

    /* Footer collapses to fewer columns */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Cookie banner stacks on small screens */
    .cc-inner {
        flex-direction: column;
        gap: 16px;
    }
    .cc-buttons {
        width: 100%;
        justify-content: center;
    }
    .cc-btn { flex: 1; max-width: 200px; }
}
