/* Yourmegastore Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-base: #ffffff;
    --color-text: #000000;
    --color-link: #345C00;
    --color-title: #5a6a7a;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-size-base: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
    --spacing-xs: 0.44rem;
    --spacing-sm: clamp(1.5rem, 5vw, 2rem);
    --spacing-md: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
    --content-width: 650px;
    --wide-width: 1200px;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-base);
    color: var(--color-text);
    font-family: var(--font-system);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

figure {
    margin: 0 0 1em;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-weight: 400;
    font-size: clamp(2.032rem, 2.032rem + ((1vw - 0.2rem) * 2.896), 3.625rem);
    line-height: 1.2;
    margin-top: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
    color: var(--color-text);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

a:focus {
    text-decoration: underline dashed;
}

a:active {
    color: var(--color-link);
    text-decoration: none;
}

/* ==========================================================================
   Site Layout
   ========================================================================== */
.site-wrapper {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header-container {
    padding-right: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    max-width: var(--wide-width);
    margin: 0 auto;
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: var(--spacing-xs);
}

.site-logo-wrapper a {
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    margin-top: var(--spacing-sm);
}

.content-container {
    padding-right: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    max-width: var(--content-width);
    margin: 0 auto;
}

.page-content {
    margin-top: 1.5rem;
}

.page-content p {
    margin: 0 0 1em;
}

.page-content a {
    color: var(--color-link);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: 1.5rem;
}

.footer-container {
    padding-right: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    max-width: var(--wide-width);
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: var(--spacing-md);
}

/* ==========================================================================
   Modern Navigation
   ========================================================================== */
.modern-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modern-nav-item,
.language-switcher-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid #c0c0c0;
}

.modern-nav-item:hover,
.language-switcher-inline:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #d8d8d8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.modern-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.language-switcher-inline .flag {
    font-size: 20px;
    line-height: 1;
}

/* ==========================================================================
   Modern Page Title
   ========================================================================== */
.modern-page-title {
    color: var(--color-title);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: var(--spacing-md);
}

.modern-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-title), transparent);
    border-radius: 2px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

/* ==========================================================================
   Team Table (Homepage)
   ========================================================================== */
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.team-table td {
    text-align: center;
    padding: 0.5rem;
    width: 33.33%;
}

/* ==========================================================================
   Team Page Bios
   ========================================================================== */
.team-bio {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.team-bio img {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.team-bio::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 782px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-nav {
        flex-direction: column;
        width: 100%;
    }

    .modern-nav-item,
    .language-switcher-inline {
        width: 100%;
        justify-content: center;
    }

    .team-table td {
        display: block;
        width: 100%;
        padding: 1rem 0;
    }

    .team-bio img {
        float: none;
        display: block;
        margin: 0 auto 1rem;
    }
}
