/* ========================================
   ATELIER - Luxury Minimalist Design
   Color Palette: Forest Green, Muted Gold, Sage Grey, Rose Beige
   ======================================== */

:root {
    --forest-green: #2C3729;
    --muted-gold: #C6B578;
    --sage-grey: #C3C9C0;
    --rose-beige: #E5DAD6;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--forest-green);
    background-color: var(--rose-beige);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--forest-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--muted-gold); }

.landing-page { background-color: var(--rose-beige); }

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

/* Navigation */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(44, 55, 41, 0.1);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--forest-green);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--forest-green);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--muted-gold); }

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0;
    text-align: center;
}

.hero-content { max-width: 800px; }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--forest-green);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--forest-green);
    opacity: 0.8;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.btn-primary-large {
    background-color: var(--muted-gold);
    color: var(--forest-green);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1.25rem 3rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    background-color: #B8A66D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 181, 120, 0.3);
}

.cta-subtext {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--forest-green);
    opacity: 0.6;
    margin-top: 1rem;
}

/* Features Section */
.features-section { padding: 8rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--forest-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 6rem;
}

.feature-card {
    background-color: var(--sage-grey);
    padding: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 55, 41, 0.08);
}

.feature-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--muted-gold);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--forest-green);
}

.feature-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--forest-green);
    opacity: 0.8;
}

/* Values Section */
.values-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6rem;
    padding: 8rem 0;
    margin: 8rem 0;
    border-top: 1px solid rgba(44, 55, 41, 0.1);
    border-bottom: 1px solid rgba(44, 55, 41, 0.1);
}

.value-item { text-align: center; }

.value-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--muted-gold);
    margin-bottom: 1rem;
}

.value-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--forest-green);
    opacity: 0.8;
}

/* Footer */
.landing-footer {
    background-color: var(--forest-green);
    color: var(--rose-beige);
    padding: 6rem 0;
    margin-top: 8rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--rose-beige);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rose-beige);
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--muted-gold); }

.footer-copyright {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--rose-beige);
    opacity: 0.6;
    margin-top: 1rem;
}

/* Auth Modals */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 55, 41, 0.7);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background-color: var(--rose-beige);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 4rem;
    padding-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(44, 55, 41, 0.2);
    z-index: 1001;
}

.auth-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--forest-green);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.auth-modal-close:hover { color: var(--muted-gold); }

.auth-modal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.auth-modal-header h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--forest-green);
    opacity: 0.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--forest-green);
}

.form-group input {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    padding: 1rem;
    border: 1px solid rgba(44, 55, 41, 0.2);
    background-color: var(--rose-beige);
    color: var(--forest-green);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--muted-gold);
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-green);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 0.8;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-group input::placeholder {
    color: var(--forest-green);
    opacity: 0.4;
}

.auth-error {
    color: #B85C5C;
    font-size: 0.875rem;
    font-weight: 300;
    display: none;
}

.auth-error.active { display: block; }

.auth-submit-btn {
    background-color: var(--muted-gold);
    color: var(--forest-green);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    background-color: #B8A66D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 181, 120, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--forest-green);
}

.auth-switch a {
    color: var(--muted-gold);
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.auth-switch a:hover { color: #B8A66D; }

.auth-forgot {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.auth-forgot a {
    color: var(--muted-gold);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 400;
}

.auth-forgot a:hover {
    color: #B8A66D;
    text-decoration: underline;
}

.auth-success {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(92, 139, 92, 0.1);
    border: 1px solid rgba(92, 139, 92, 0.3);
    border-radius: 4px;
    color: #5C8B5C;
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-nav { padding: 1rem 0; }
    .hero-section {
        min-height: 70vh;
        padding: 6rem 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .values-section {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .auth-modal-content {
        width: 95%;
        padding: 2rem;
        padding-top: 3rem;
        max-height: 85vh;
    }
    .auth-modal-header {
        margin-bottom: 2rem;
    }
    .auth-form {
        gap: 1.5rem;
    }
}

/* Support Footer */
.support-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border, #e0d8d0);
    background-color: var(--bg-secondary, #faf8f6);
}

.support-footer p {
    margin: 0;
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 0.875rem;
    color: var(--text-muted, #666);
}

.support-footer a {
    color: var(--accent, #c6b578);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.support-footer a:hover {
    color: var(--text-primary, #2C3729);
    text-decoration: underline;
}
