/* ============================================================
   global-styles.css
   Shared across index.html, blog.html, and all post pages.

   Design tokens match the elikonas-product app (app/globals.css):
   dark-teal / teal / red / gold / charcoal on a white ground.
   `-ink` variants are darkened, text-safe versions of accent colors
   that don't meet 4.5:1 contrast at full saturation on light
   backgrounds (see gold/teal below).
   ============================================================ */

:root {
    --bg: #ffffff;
    --surface: #f5f7f7;
    --surface-border: rgba(8, 76, 97, 0.14);
    /* Solid, higher-contrast border for interactive elements (inputs,
       outlined buttons) — the translucent --surface-border above is for
       decorative card grouping only and doesn't clear the 3:1 non-text
       contrast minimum required for UI component boundaries. */
    --control-border: #6b8f99;
    --fg: #323031;
    --fg-muted: #5c5759;

    --dark-teal: #084c61;
    --teal: #177e89;
    --teal-ink: #0f6673;
    --red: #c72f29;
    --gold: #ffc857;
    --gold-ink: #7a5006;

    --focus-ring: #0b6f8c;

    /* Dark "band" sections (footer, CTA band) keep the brand's teal,
       used deliberately rather than as the whole-page ground. */
    --band-bg: #084c61;
    --band-fg: #ffffff;
    --band-fg-muted: rgba(255, 255, 255, 0.78);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
}

a { color: var(--teal-ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 2px 10px rgba(8, 76, 97, 0.08);
    padding: 1rem 2rem;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--dark-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
    color: var(--teal-ink);
}

nav a.active {
    color: var(--dark-teal);
    border-bottom-color: var(--gold);
}

/* Floating background shapes — decorative only, motion-gated */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(23, 126, 137, 0.08);
    border-radius: 50%;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
}

@media (prefers-reduced-motion: no-preference) {
    .shape {
        animation: float 6s ease-in-out infinite;
    }
    .shape:nth-child(2) { animation-delay: 2s; }
    .shape:nth-child(3) { animation-delay: 4s; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Shared responsive nav */
@media (max-width: 768px) {
    nav ul { gap: 1rem; }
    nav a { font-size: 0.95rem; }
}


/* ============================================================
   Site footer — appended for the Mission/Contact footer rollout.
   Brand tokens match app/page.tsx in elikonas-product.
   ============================================================ */
.site-footer {
    background: var(--band-bg);
    color: var(--band-fg);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 4rem;
}
.footer-columns {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 640px) {
    .footer-columns { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-column h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.footer-divider {
    width: 2.5rem;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1rem;
}
.footer-column p {
    line-height: 1.6;
    color: var(--band-fg-muted);
    margin: 0 0 0.75rem;
}
.footer-column a {
    color: var(--band-fg);
    text-decoration: none;
}
.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}
.footer-column a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.site-footer .social-links {
    max-width: 900px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.site-footer .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.site-footer .social-link img {
    width: 18px;
    height: 18px;
}
.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
    background: rgba(255, 200, 87, 0.2);
    border-color: var(--gold);
}
.site-footer .social-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.footer-bottom {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-disclaimer {
    max-width: 900px;
    margin: 0.5rem auto 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}
