/* ============================================================
   image-slider template pack — shared styles
   (index.html + privacy.html)

   The embed.js widget ships its own base CSS at runtime (Phase 5);
   this stylesheet only adds page chrome (header, CTA, footer,
   privacy card) and the full-page `.parking-page` overrides that
   enlarge the base widget for parked pages (tech spec §7).
   ============================================================ */

/* ------------------------------------------------------------------
   CSS Custom Properties (light mode defaults)
   ------------------------------------------------------------------ */
:root {
    --color-bg:                 #f5f5f5;
    --color-fg:                 #000;
    --color-surface:            #fff;
    --color-fg-muted:           #666;
    --color-fg-secondary:       #333;
    --color-fg-body:            #444;
    --color-heading:            #222;
    --color-border:             #e0e0e0;
    --color-accent:             #0066cc;
    --color-code-bg:            #f4f4f4;
    --color-error:              #ffb4b4;
    --color-shadow:             rgba(0, 0, 0, 0.1);
    --color-slider-bg:          #1a1a1a;
    --color-dot-inactive:       #ddd;

    /* CTA highlight text (used in index.html) */
    --color-cta-highlight-fg:    #000;
    --color-cta-highlight-bg:    #000;
    --color-cta-highlight-bg-fg: #fff;
}

/* ------------------------------------------------------------------
   Dark mode overrides
   ------------------------------------------------------------------ */
[data-theme="dark"] {
    --color-bg:                 #1a1a1a;
    --color-fg:                 #e0e0e0;
    --color-surface:            #2d2d2d;
    --color-fg-muted:           #999;
    --color-fg-secondary:       #ccc;
    --color-fg-body:            #bbb;
    --color-heading:            #fff;
    --color-border:             #333;
    --color-accent:             #4da6ff;
    --color-code-bg:            #333;
    --color-error:              #ff6b6b;
    --color-shadow:             rgba(0, 0, 0, 0.4);
    --color-slider-bg:          #1a1a1a;
    --color-dot-inactive:       #555;

    /* CTA highlight text (inverted for dark mode) */
    --color-cta-highlight-fg:    #fff;
    --color-cta-highlight-bg:    #fff;
    --color-cta-highlight-bg-fg: #000;
}

/* ------------------------------------------------------------------
   Base reset
   ------------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
    background: var(--color-bg);
    overflow-x: hidden;
    color: var(--color-fg);
}

/* ------------------------------------------------------------------
   Header (tech spec §7: brand name 24px bold / -0.05em letter-spacing,
   tagline 11px / 0.15em tracking)
   ------------------------------------------------------------------ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-fg);
}

.logo-tagline {
    font-size: 11px;
    color: var(--color-fg-muted);
    margin-top: 2px;
    letter-spacing: 0.15em;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    color: var(--color-fg);
    line-height: 1;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

/* ------------------------------------------------------------------
   Full-page overrides for the embed.js widget (tech spec §7).
   The base widget styles (50vh, 20px radius, 36px social squares…)
   come from embed.js itself; every override is scoped to
   `.parking-page` so third-party pages embedding the widget are
   unaffected.
   ------------------------------------------------------------------ */
.parking-page .content-slider-wrapper {
    margin: 0;
    max-width: none;
    padding: 0 50px;
}

.parking-page .content-slider-container {
    height: 75vh;
    min-height: 500px;
    border-radius: 30px;
}

.parking-page .content-slide-content {
    left: 80px;
    bottom: 100px;
    max-width: 600px;
}

.parking-page .content-slide-business {
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.parking-page .content-slide-product {
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.parking-page .content-slide-caption {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.parking-page .content-social-nav {
    right: 40px;
    gap: 20px;
}

.parking-page .content-social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 12px;
}

.parking-page .content-social-bar-mobile {
    display: none !important;
}

.parking-page .content-slider-controls {
    padding: 40px 50px;
}

.parking-page .content-nav-btn {
    font-size: 12px;
    letter-spacing: 1px;
}

.parking-page .content-pagination {
    gap: 12px;
}

.parking-page .content-pagination-dot {
    width: 8px;
    height: 8px;
}

/* ------------------------------------------------------------------
   CTA section (tech spec §7: "Exploring Opportunities?" 42px, pitch
   18px #666, up to 2 black buttons with 12px radius, hidden when no
   visible CTA links)
   ------------------------------------------------------------------ */
.cta-section {
    display: block;
    text-align: center;
    padding: 80px 50px;
    max-width: 800px;
    margin: 0 auto;
}

/* The `hidden` attribute must win over `.cta-section { display: block }`.
   The inline script flips it off once at least one CTA link renders. */
.cta-section[hidden] {
    display: none;
}

.cta-headline {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-fg);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-message {
    font-size: 18px;
    color: var(--color-fg-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--color-fg);
    border: 2px solid var(--color-fg);
    border-radius: 12px;
    color: var(--color-surface);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--color-bg);
    border-color: var(--color-fg);
    color: var(--color-fg);
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 20px;
    line-height: 1;
}

/* ------------------------------------------------------------------
   Footer (tech spec §7: copyright year range, brand name, privacy /
   terms links)
   ------------------------------------------------------------------ */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--color-fg-muted);
    font-size: 12px;
    line-height: 1.8;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-bottom: 25px;
}

.footer-copyright {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin-top: 20px;
}

.site-footer a {
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ------------------------------------------------------------------
   Privacy page (tech spec §7: white 800px card on #f5f5f5, quick-nav
   separated by a bottom border, #privacy / #terms anchors)
   ------------------------------------------------------------------ */
.privacy-card {
    max-width: 800px;
    margin: 40px auto;
    background: var(--color-surface);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--color-shadow);
}

.quick-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.quick-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-fg-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-nav a:hover {
    color: var(--color-accent);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.last-updated {
    color: var(--color-fg-muted);
    font-size: 0.9em;
    margin-bottom: 30px;
    font-weight: 500;
}

.legal-section h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-heading);
}

.legal-section h2:first-of-type {
    margin-top: 0;
}

.legal-section p {
    margin-bottom: 15px;
    color: var(--color-fg-body);
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
    color: var(--color-fg-body);
}

.legal-section strong {
    color: var(--color-heading);
}

.legal-section code {
    background: var(--color-code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.back-link a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Responsive (tech spec §7: 768px mobile, 480px small mobile;
   privacy card at 600px)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 30px;
    }

    .parking-page .content-slider-wrapper {
        padding: 0 20px;
    }

    .parking-page .content-slide-content {
        left: 40px;
        bottom: 80px;
        max-width: calc(100% - 80px);
    }

    .parking-page .content-slide-product {
        font-size: 44px;
    }

    .parking-page .content-slide-caption {
        font-size: 14px;
    }

    /* Hide desktop social nav, show mobile bar (spec: display none/flex !important) */
    .parking-page .content-social-nav {
        display: none !important;
    }

    .parking-page .content-social-bar-mobile {
        display: flex !important;
    }

    .parking-page .content-slider-controls {
        padding: 20px 30px;
    }

    .cta-section {
        padding: 60px 30px;
    }

    .cta-headline {
        font-size: 32px;
    }

    .cta-message {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .parking-page .content-slide-product {
        font-size: 34px;
    }

    .parking-page .content-slide-business {
        font-size: 12px;
    }

    .parking-page .content-slide-content {
        bottom: 90px;
    }

    .parking-page .content-social-link {
        width: 40px;
        height: 40px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .privacy-card {
        padding: 20px;
    }

    .legal-section h1 {
        font-size: 1.75em;
    }

    .legal-section h2 {
        font-size: 1.25em;
    }

    .quick-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}
