/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: white;
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --border-color: #d2d2d7;
    --button-bg: #1d1d1f;
    --button-text: white;
    --button-hover: #666;
    --header-footer-bg: #fafafa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000;
        --text-color: #f5f5f7;
        --text-secondary: #a1a1a6;
        --border-color: #424245;
        --button-bg: #f5f5f7;
        --button-text: #1d1d1f;
        --button-hover: #a1a1a6;
        --header-footer-bg: #0a0a0a;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background-color: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo {
    height: 16px;
    width: auto;
}

.nav-logo .logo-dark {
    display: block;
}

.nav-logo .logo-light {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .nav-logo .logo-dark {
        display: none;
    }
    
    .nav-logo .logo-light {
        display: block;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 20px;
    border-radius: 25px;
    min-height: 50px;
    justify-content: center;
}

.nav-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2px;
}

.nav-name {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.2;
}

.nav-link:hover {
    color: var(--text-secondary);
}

.nav-link:hover .nav-name {
    color: var(--text-secondary);
}

.nav-link.active {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.nav-link.active .nav-type {
    color: var(--bg-color);
    opacity: 0.7;
}

.nav-link.active .nav-name {
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-tag {
    color: var(--text-secondary);
    font-weight: 400;
}

/* About Section */
.about {
    padding: 60px 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

.about p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Models Section */
.models {
    padding: 40px 0;
}

.models h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 600;
}

.model-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.model-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.model-item h3 {
    text-align: center;
}

.model-content {
    text-align: left;
}

.model-tagline {
    text-align: center;
}

.model-image-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.model-hero {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
}

.model-hero.placeholder-image {
    border: 2px dashed var(--text-secondary);
    box-sizing: border-box;
    opacity: 0.7;
}

.model-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.model-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.model-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}



.cta-button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.cta-button:hover {
    background-color: var(--button-hover);
}

/* Email signup form styling */
.email-signup-form .cta-button {
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.email-signup-form .cta-button:focus {
    box-shadow: none;
    outline: none;
}

.email-signup-form .cta-button:active {
    box-shadow: none;
    outline: none;
}

/* Craftsmanship Section */
.features {
    padding: 40px 0 60px;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 600;
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.craft-item {
    text-align: left;
}

.craft-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.craft-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    padding: 2.5rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    height: 16px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-brand .logo-dark {
    display: block;
}
.footer-brand .logo-light {
    display: none;
}
@media (prefers-color-scheme: dark) {
    .footer-brand .logo-dark {
        display: none;
    }
    
    .footer-brand .logo-light {
        display: block;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-social {
    text-align: right;
}
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--button-hover);
    color: var(--button-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-logo .logo-dark,
    .nav-logo .logo-light {
        display: none;
    }
    
    .nav-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background-color: var(--text-color);
        border-radius: 25px;
        transition: background-color 0.3s ease;
    }
    
    .nav-logo a:hover {
        background-color: var(--button-hover);
    }
    
    .nav-logo a::after {
        content: '';
        display: block;
        width: 45px;
        height: 45px;
        background-image: url('logos/logo_small_circle.png');
        background-size: contain;
        background-repeat: no-repeat;
        filter: invert(1);
    }
    
    @media (prefers-color-scheme: dark) {
        .nav-logo a::after {
            filter: invert(0);
        }
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .nav-type {
        font-size: 0.7rem;
    }
    
    .nav-name {
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .model-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Hide Home link on very small screens since logo acts as home button */
    .nav-menu li:first-child {
        display: none;
    }
    
    .nav-type {
        font-size: 0.65rem;
    }
    
    .nav-name {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 80px 15px 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .models,
    .about,
    .features {
        padding: 60px 0;
    }
}