/**
 * EUnion - European Union Cloud
 * Shared Stylesheet for Commercial Website
 * Version: 1.0.0
 * Created: 2026-06-15
 * 
 * Color Palette:
 * - EU Blue: #003399 (primary)
 * - EU Gold: #FFCC00 (accent)
 * - Text Dark: #1a1a2e
 * - Text Medium: #444
 * - Text Light: #666
 * - Background: #f5f5f5
 * - White: #ffffff
 */

/* ================================
   CSS RESET & BASE STYLES
   ================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #003399;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #002266;
    text-decoration: underline;
}

/* ================================
   LAYOUT UTILITIES
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

/* ================================
   EU FLAG BAR
   ================================ */

.eu-flag-bar {
    background: linear-gradient(90deg, #003399 0%, #003399 100%);
    padding: 0.5rem 0;
    text-align: center;
    color: #FFCC00;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.eu-flag-bar::before {
    content: "🇪🇺 ";
}

/* ================================
   HEADER / HERO
   ================================ */

.header-hero {
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,204,0,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,204,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003399 0%, #FFCC00 50%, #003399 100%);
}

.header-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.hero-logo span {
    color: #FFCC00;
}

.hero-tagline {
    font-size: 1.75rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.gdpr-badge {
    display: inline-block;
    background: #FFCC00;
    color: #003399;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* Page Hero (smaller for inner pages) */
.page-hero {
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003399;
    text-decoration: none;
}

.nav-logo span {
    color: #FFCC00;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #003399;
    text-decoration: none;
}

.nav-links a.active {
    color: #003399;
    border-bottom: 2px solid #003399;
}

/* Language Switch */
.language-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #ddd;
}

.language-switch a {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.language-switch a.active {
    background: #003399;
    color: white;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #003399;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: #003399;
    color: white;
    box-shadow: 0 4px 15px rgba(0,51,153,0.3);
}

.btn-primary:hover {
    background: #002266;
    color: white;
    box-shadow: 0 6px 20px rgba(0,51,153,0.4);
}

.btn-secondary {
    background: transparent;
    color: #003399;
    border: 2px solid #003399;
}

.btn-secondary:hover {
    background: #003399;
    color: white;
}

.btn-accent {
    background: #FFCC00;
    color: #003399;
    box-shadow: 0 4px 15px rgba(255,204,0,0.3);
}

.btn-accent:hover {
    background: #e6b800;
    color: #003399;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ================================
   CARDS & COMPONENTS
   ================================ */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    color: #003399;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: #666;
    line-height: 1.7;
}

/* Feature Card */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #003399;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,51,153,0.1);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    color: #003399;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ================================
   GRID SYSTEM
   ================================ */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ================================
   SECTIONS
   ================================ */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: #003399;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ================================
   PRICING CARDS
   ================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,51,153,0.1);
}

.pricing-card.featured {
    border-color: #003399;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFCC00;
    color: #003399;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
    color: #003399;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 1.5rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.pricing-card li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
}

/* ================================
   COMPARISON TABLE
   ================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #003399;
    color: white;
    font-weight: 600;
}

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

.comparison-table .check {
    color: #28a745;
    font-weight: bold;
}

.comparison-table .cross {
    color: #dc3545;
}

/* ================================
   FORMS
   ================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #003399;
}

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

/* ================================
   TRUST INDICATORS
   ================================ */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,51,153,0.1);
    color: #003399;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trust-item h4 {
    color: #003399;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ================================
   GDPR BANNER
   ================================ */

.gdpr-banner {
    background: #FFCC00;
    padding: 3rem 0;
    text-align: center;
}

.gdpr-banner h2 {
    color: #003399;
    margin-bottom: 1rem;
}

.gdpr-banner p {
    color: #333;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #1a1a2e;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #FFCC00;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #888;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 992px) {
    .hero-logo { font-size: 3rem; }
    .hero-tagline { font-size: 1.5rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
}

@media (max-width: 768px) {
    .hero-logo { font-size: 2.5rem; }
    .hero-tagline { font-size: 1.25rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .language-switch {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .section { padding: 3rem 0; }
    .section-lg { padding: 5rem 0; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-logo { font-size: 2rem; }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.bg-white { background: white; }
.bg-light { background: #f5f5f5; }
.bg-dark { background: #1a1a2e; color: white; }
.bg-primary { background: #003399; color: white; }
.bg-accent { background: #FFCC00; }

.hidden { display: none; }
.visible { display: block; }

/* Print styles */
@media print {
    .navbar, .footer, .eu-flag-bar, .btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .header-hero {
        background: #003399;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
