﻿/* --------------------------------------------------
   DreamGiver – site.css (CLEAN v2)
   Order: Tokens → Reset/Base → Layout → Header/Nav → Hero → Components → Sections → Footer → A11y → Media
   -------------------------------------------------- */

/* 0) Design tokens & Bootstrap harmony (SAFE) */
:root {
    --bg: #FAFAFA;
    --text: #1C2A39;
    --muted: #6B7A90;
    --brand: #1FA4E5;
    --gold: #F4C95D;
    --card: #FFFFFF;
    --border: #E8EDF2;
    /* Breakpoints for custom queries */
    --bp-lg: 980px; /* large and below */
    --bp-md: 860px; /* menu collapse */
    --bp-sm: 600px; /* small phones */
    /* Bootstrap harmonization (do not override border color globally) */
    --bs-primary: var(--brand);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --header-h: 56px;
    --analysis-bar-h: 44px;
}
/* προσαρμόζεις ανάλογα το ύψος του header 
}

/* 1) Reset & Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 2) Brand micro-mark */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

    .brand .logo {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--brand), #40c6ff);
        position: relative;
    }

        .brand .logo:after {
            content: "";
            position: absolute;
            inset: 8px;
            background: var(--gold);
            border-radius: 50%;
        }

/* 3) Header / Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid #e5edf3;
}
body {
    padding-top: var(--header-h);
}
/* για να μην “μπαίνει” το περιεχόμενο κάτω από το header */.navbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: #1a4c78;
}

.logo .highlight {
    color: var(--brand);
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: .3rem .6rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
    line-height: 1;
}

    .nav-link:hover {
        background: #eaf6ff;
        color: var(--brand);
    }

    .nav-link.active {
        color: var(--brand);
        font-weight: 600;
    }

/* Burger (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .5rem;
    margin-left: .25rem;
}

    .menu-toggle .bar {
        display: block;
        width: 22px;
        height: 2px;
        background: #1a4c78;
        margin: 4px 0;
        transition: transform .25s, opacity .25s;
    }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    padding: .3rem .6rem;
    border-radius: 6px;
    color: #444;
    font-weight: 500;
}

    .dropdown-toggle:hover {
        background: #eaf6ff;
        color: var(--brand);
    }

    .dropdown-toggle:focus {
        outline: 2px solid #cfe8ff;
        outline-offset: 2px;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5edf3;
    border-radius: 8px;
    padding: .4rem 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: none;
    z-index: 2001;
}

    .dropdown-menu li {
        list-style: none;
        margin: 0;
    }

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: .5rem .9rem;
    color: #333;
    text-decoration: none;
}

    .dropdown-item:hover {
        background: #f6fbff;
        color: var(--brand);
    }

    .dropdown-item.active {
        font-weight: 600;
        color: var(--brand);
    }

/* 4) Hero (legacy helper for old home layout if needed) */
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    padding: 40px 0;
    align-items: center;
}

/* 5) Components (small helpers) */
.trust {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* 6) Sections (light legacy hooks still used on Home) */
.how {
    padding: 32px 0;
}

    .how h2, .impact h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

.impact {
    padding: 24px 0 48px;
}

/* 7) Page-specific tweaks kept in use */
/* Community Standards */
body.page-community-standards .nav-pills .nav-link.active {
    background-color: var(--brand);
}

body.page-community-standards .nav-pills .nav-link {
    color: var(--text);
}

    body.page-community-standards .nav-pills .nav-link:hover {
        background-color: rgba(31,164,229,.12);
    }

/* Revenue */
body.page-revenue nav a {
    color: var(--brand);
}

    body.page-revenue nav a:hover {
        text-decoration: underline;
    }
/* Donut + legend */
body.page-revenue .donut {
    width: 120px;
    height: 120px;
}

body.page-revenue .legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

    body.page-revenue .legend li {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin-bottom: .3rem;
    }

    body.page-revenue .legend .swatch {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        display: inline-block;
    }

        body.page-revenue .legend .swatch.blue {
            background: #1FA4E5;
        }

        body.page-revenue .legend .swatch.gold {
            background: #F4C95D;
        }

        body.page-revenue .legend .swatch.teal {
            background: #40C6FF;
        }

        body.page-revenue .legend .swatch.gray {
            background: #98c7e8;
        }

/* Contact & Policy */
body.page-contact section .container {
    max-width: 680px;
}

body.page-policy .container {
    max-width: 960px;
}

body.page-policy article h2 {
    margin-top: 1.25rem;
}

/* Logistics */
body.page-logistics .container {
    max-width: 1100px;
}

body.page-logistics .badge.border {
    border: 1px solid var(--border);
}

/* 8) A11y helpers */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}

/* 9) Global visual refinements */
.bg-light {
    background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
}

/* Motto block */
.motto-section {
    background: #e8f3ff; /* πιο έντονο γαλάζιο */
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    padding: 4rem 1rem;
}

.motto {
    font-size: 2rem; /* μεγαλύτερο μέγεθος */
    font-weight: 300; /* λεπτή γραμματοσειρά */
    color: #133b63; /* βαθύ μπλε για καλύτερη αντίθεση */
    margin: 0;
    line-height: 1.8;
    animation: fadeInUp 1.3s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 10) Responsive */
@media (max-width: var(--bp-lg)) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    /* legacy hooks still referenced in some pages */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .dream-card {
        grid-template-columns: 1fr;
    }

    .exp-slide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: var(--bp-md)) {
    .menu-toggle {
        display: inline-block;
    }

    .menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 56px;
        background: #fff;
        border-bottom: 1px solid #e5edf3;
        display: none;
        flex-direction: column;
        gap: 0;
        z-index: 1500;
    }

        .menu.open {
            display: flex;
        }

        .menu .nav-link {
            padding: .9rem 1rem;
            border-radius: 0;
            border-top: 1px solid #f2f6fb;
        }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        border-top: 1px solid #f2f6fb;
        display: none;
        padding-left: .5rem;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Burger → X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* grid utilities often used */
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: var(--bp-sm)) {
    /* 2-col → 1-col cards/grids */
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Mid step for grid-4 to 2-col */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Partial sections styling ---- */
.section-block {
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .section-block:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    }

    /* Section titles */
    .section-block h2 {
        font-size: 1.6rem;
        font-weight: 600;
        color: #123a62;
        margin-bottom: 1rem;
    }

    /* Paragraph text */
    .section-block p {
        color: #4b5563;
        line-height: 1.6;
    }

    /* Read full description button */
    .section-block .btn-outline-primary {
        border: 1px solid var(--brand);
        color: var(--brand);
        font-weight: 500;
        border-radius: 6px;
        padding: 0.45rem 1rem;
        transition: all 0.25s ease;
    }

        .section-block .btn-outline-primary:hover {
            background-color: var(--brand);
            color: #fff;
            box-shadow: 0 4px 10px rgba(31,164,229,0.3);
        }

/* Small screen adjustments */
@media (max-width: 768px) {
    .section-block {
        padding: 1.5rem;
    }

        .section-block h2 {
            font-size: 1.3rem;
        }
}
.back-to-analysis {
    position: relative;
    font-size: 0.95rem;
    background: #f8fafc;
}

    .back-to-analysis .back-link {
        text-decoration: none;
        color: #0a58ca;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .back-to-analysis .back-link:hover {
            color: #084298;
            text-decoration: underline;
        }
    .back-to-analysis.fixed {
        position: fixed;
        top: calc(var(--header-h));
        left: 0;
        right: 0;
        z-index: 999; /* κάτω από το header αν το header έχει 1000 */
        background: #f5e6ab;
        border-bottom: 1px solid #e5edf3;
        padding: .5rem 1rem;
        /* iOS safe area */
        padding-top: calc(.5rem + env(safe-area-inset-top));
    }

    .back-to-analysis .back-link {
        text-decoration: none;
        color: #0a58ca;
        font-weight: 500;
        transition: color .2s ease, text-decoration-color .2s ease;
    }

        .back-to-analysis .back-link:hover {
            color: #084298;
            text-decoration: underline;
        }

/* “σφήνα” ώστε να μη σκεπάζεται το περιεχόμενο */
.back-to-analysis-spacer {
    height: var(--analysis-bar-h);
}

/* μικρές οθόνες: ελαφρύ σμίκρυνση ύψους */
@media (max-width: 600px) {
    :root {
        --analysis-bar-h: 40px;
    }
}