/* ============================================
   PILIER.EU - MAIN STYLESHEET
   European Trust Infrastructure
   ============================================ */

/* -------------------- RESET & BASE -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --navy: #1a365d;
    --navy-light: #2c5282;
    --navy-dark: #0f172a;
    --grey-900: #111827;
    --grey-600: #6B7280;
    --grey-400: #9CA3AF;
    --grey-100: #F3F4F6;
    --grey-50: #F9FAFB;
    --white: #ffffff;
    --green: #10b981;
    --green-dark: #059669;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 60px;
    --container-max: 1200px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--grey-900);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------- HEADER -------------------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--grey-100);
    padding: 10px 0 5px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

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

.lang-toggle {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    color: var(--grey-600);
    border: 1px solid var(--grey-100);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../img/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.50) 0%, rgba(15, 23, 42, 0.80) 70%);
    /* backdrop-filter: blur(3px); */
    z-index: 1;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 600;
    color: var(--white);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.92;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* -------------------- BUTTONS -------------------- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* -------------------- SECTIONS -------------------- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Light background sections (no photo) */
.section-light {
    background: var(--white);
}

.section-light-alt {
    background: var(--grey-50);
}

/* Sections with background images */
.section-with-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.section-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.93) 0%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.section-with-bg-light {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* color: var(--white); */
}

.section-with-bg-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(208, 208, 208, 0.9) 0%, rgba(235, 235, 235, 0.7) 100%);
    z-index: 1;
}

.section-with-bg-light .container {
    position: relative;
    z-index: 2;
}

/* Section spacing improvements */
.section+.section {
    margin-top: 0;
    /* Remove default margin */
}

/* Add visual separator between sections */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--grey-100), transparent);
}

.section-with-bg::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Last section doesn't need separator */
.section:last-of-type::after,
.footer+.section::after {
    display: none;
}

/* -------------------- SECTION HEADERS -------------------- */
.section-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.section-label {
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.section-with-bg .section-label {
    color: var(--green);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.section-with-bg h2 {
    color: var(--white);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--grey-600);
    line-height: 1.7;
}

.section-with-bg .section-intro {
    color: rgba(255, 255, 255, 0.92);
}

/* -------------------- NETWORK STATUS -------------------- */
.network-status {
    background: var(--grey-50);
    padding: 80px 0;
    border-top: 1px solid var(--grey-100);
}

.network-status h2 {
    color: var(--navy);
    margin-bottom: 10px;
}

.network-status>.container>p {
    color: var(--grey-600);
    margin-bottom: 30px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.status-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--grey-100);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.status-label {
    color: var(--grey-600);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-weight: 600;
}

.status-value {
    color: var(--navy);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.status-meta {
    color: var(--grey-600);
    font-size: 14px;
}

/* -------------------- CONTENT CARDS -------------------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.content-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--grey-100);
    transition: all 0.3s;
    border-left: 4px solid var(--green);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-with-bg .content-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.content-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.content-card p {
    color: var(--grey-600);
    line-height: 1.7;
}

.content-card ul {
    list-style: none;
    margin-top: 20px;
}

.content-card li {
    color: var(--grey-600);
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-100);
    position: relative;
    padding-left: 20px;
}

.content-card li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.content-card li:last-child {
    border-bottom: none;
}

/* -------------------- DEVELOPER ENVIRONMENTS -------------------- */
.dev-environments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.env-card {
    background: var(--white);
    border: 2px solid var(--grey-100);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s;
}

.env-card:hover {
    border-color: var(--navy-light);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.1);
}

.env-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.env-title {
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 700;
}

.env-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-planned {
    background: #dbeafe;
    color: #1e40af;
}

.env-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 45px;
    margin-bottom: 20px;
}

.env-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--grey-600);
    font-size: 14px;
}

.env-link strong {
    color: var(--navy);
    font-weight: 600;
}

.env-link a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    /* padding: 0 10px 0 5px; */
}

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

.env-description {
    color: var(--grey-600);
    line-height: 1.7;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-100);
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

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

.partners {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    height: 80px;
    opacity: 0.9;
    transition: opacity 0.2s;
    /* filter: brightness(0) invert(1);  Make logos white */
}

.partner-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

/* -------------------- LANGUAGE CONTENT TOGGLE -------------------- */
.content {
    display: none;
}

.content.active {
    display: block;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        background-attachment: scroll;
    }

    .section-with-bg {
        background-attachment: scroll;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .env-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        /* height: 32px; */
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* -------------------- UTILITY CLASSES -------------------- */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* -------------------- PRINT STYLES -------------------- */
@media print {

    .header,
    .footer,
    .hero-actions,
    .lang-toggle {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Additional styles for new sections */
.timeline-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--grey-100);
}

.timeline-table thead {
    background: var(--navy);
    color: var(--white);
}

.timeline-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-table td {
    padding: 20px;
    border-bottom: 1px solid var(--grey-100);
}

.timeline-table tr:last-child td {
    border-bottom: none;
}

.timeline-table tbody tr {
    background: var(--white);
    transition: background 0.2s;
}

.timeline-table tbody tr:hover {
    background: var(--grey-50);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-badge.live {
    background: #d1fae5;
    color: #065f46;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.application-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--grey-100);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--grey-600);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--grey-900);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-100);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.form-submit:disabled {
    background: var(--grey-400);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.white-link {
    color: #fff;
}

@media (max-width: 768px) {
    .env-links {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .env-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}