:root {
    --hero-start: #1a237e;
    --hero-mid: #283593;
    --hero-end: #3949ab;
    --accent: #1a237e;
    --chip-bg: #e8eaf6;
    --chip-text: #1a237e;
    --footer: #1a237e;
}

.theme-main { --hero-start: #1a237e; --hero-mid: #283593; --hero-end: #3949ab; --accent: #1a237e; --chip-bg: #e8eaf6; --chip-text: #1a237e; --footer: #1a237e; }
.theme-ccs { --hero-start: #1a237e; --hero-mid: #283593; --hero-end: #3949ab; --accent: #1a237e; --chip-bg: #e8eaf6; --chip-text: #1a237e; --footer: #1a237e; }
.theme-type2 { --hero-start: #1b5e20; --hero-mid: #2e7d32; --hero-end: #43a047; --accent: #1b5e20; --chip-bg: #e8f5e9; --chip-text: #1b5e20; --footer: #1b5e20; }
.theme-gbt { --hero-start: #f57f17; --hero-mid: #f9a825; --hero-end: #fbc02d; --accent: #f57f17; --chip-bg: #fff3e0; --chip-text: #e65100; --footer: #e65100; }
.theme-chademo { --hero-start: #424242; --hero-mid: #515151; --hero-end: #616161; --accent: #424242; --chip-bg: #eeeeee; --chip-text: #424242; --footer: #424242; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

header {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero, .hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 50%, var(--hero-end) 100%);
    overflow: hidden;
    padding: 3rem 1.5rem;
}

.hero-section::before,
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/background.jpg') center/cover no-repeat;
    opacity: 0.25;
    filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 0.5rem;
    text-align: center;
    display: inline-block;
    position: relative;
    background-color: #1a237e;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background-color: #283593;
    border-radius: 12px;
    z-index: -1;
}

.hero-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: brightness(1) contrast(1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-icon span {
    font-size: 4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charging-standards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Wide screen: all 5 cards in one horizontal line */
@media (min-width: 992px) {
    .charging-standards {
        flex-wrap: nowrap;
    }
}

.standard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    width: 220px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.standard-card,
.standard-card *,
.standard-card a,
.standard-card a:hover,
.standard-card a:focus,
.standard-card a:visited {
    text-decoration: none !important;
}

.standard-card:hover,
.standard-card:hover * {
    text-decoration: none !important;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    text-decoration: none !important;
}

.standard-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid #e0e0e0;
}

.standard-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.standard-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a237e;
    margin-top: 1rem;
}

.ccs-icon { color: #e53935; }
.type2-icon { color: #43a047; }
.gbt-icon { color: #fbc02d; }
.chademo-icon { color: #757575; }

main { padding: 4rem 0; }

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--accent);
    margin-bottom: 2rem;
}

.about-content {
    max-width: 100%;
    width: 100%;
    padding: 0 clamp(1rem, 4vw, 2rem);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: clamp(1.6, 4vw, 1.8);
    text-align: left;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    width: 100%;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.info-section {
    background: #f5f5f5;
    padding: 4rem 0;
}

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card p {
    flex-grow: 1;
}

.feature-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--chip-text);
    margin: 0.25rem 0.15rem;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

footer {
    background: var(--footer);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive: tablet and small desktop */
@media (max-width: 768px) {
    .hero-logo { 
        font-size: 2.5rem;
        padding: 1.5rem 2rem;
    }
    .hero-logo img {
        max-width: 250px;
    }
    .hero-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; }
    .charging-standards { gap: 1.25rem; }
    .standard-card { width: 160px; min-width: 140px; padding: 1.25rem; }
    .standard-icon { width: 80px; height: 80px; font-size: 2.25rem; }
    .standard-name { font-size: 1.25rem; }
}

/* Navbar: wrap links on small screens so all are visible */
@media (max-width: 768px) {
    header.navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    header.navbar .navbar-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    header.navbar .navbar-section .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Responsive: small phones – stack cards so icons and text are fully visible */
@media (max-width: 600px) {
    .card {
        padding: clamp(1rem, 3vw, 1.5rem) !important;
    }
    .card h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: 1rem;
    }
    .card h4 {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-top: clamp(1rem, 3vw, 1.5rem);
        margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
    }
    .card p {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    .text-center-sm {
        text-align: center !important;
    }
    .btn-block-sm {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
    }
    .columns .column.col-md-4 {
        margin-top: 1rem;
    }
    figure {
        margin: clamp(1rem, 3vw, 1.5rem) auto !important;
        padding: 0 clamp(0.5rem, 2vw, 1rem);
        max-width: 100%;
    }
    figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        padding: 1rem 1.5rem;
        margin: 0 auto;
        width: calc(100% - 2rem);
        max-width: 100%;
    }
    .hero-logo img {
        max-width: 200px;
        width: 100%;
    }
}

/* Responsive: very small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-logo {
        padding: 0.75rem 1rem;
        margin: 0 auto;
        width: calc(100% - 1rem);
    }
    .hero-logo img {
        max-width: 180px;
        width: 100%;
    }
    .charging-standards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .standard-card {
        width: 100%;
        max-width: 280px;
        min-width: 0;
        padding: 1.25rem;
    }
    .standard-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
    .standard-name { font-size: 1.2rem; }
}

/* Navbar links – same size and animation as language selector */
.navbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 1.5rem;
}

.navbar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

/* Language switcher – small pill with flag images */
.lang-switcher {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
}

.lang-pill {
    display: inline-flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 2px;
    gap: 1px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 2.5rem;
}

.lang-flag {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.lang-option:hover {
    color: #fff;
}

a.lang-option:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-option.lang-active {
    background: #fff;
    color: #1a237e;
    cursor: default;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

