/*
Theme Name: Pulm.ee
Theme URI: https://pulm.ee
Description: Warm, romantic wedding website platform theme
Version: 2.0.0
Author: 1/2 Mind OÜ
Text Domain: pulm
*/

/* ── Design Tokens ─────────────────────────────────────── */
:root {
    --c-bg:          #FAF7F4;
    --c-bg-alt:      #F0E9E0;
    --c-bg-warm:     #EDD9C8;
    --c-text:        #3D2E22;
    --c-text-soft:   #7A6655;
    --c-text-muted:  #8C7B6B;
    --c-accent:      #C4A882;
    --c-accent-warm: #8B6A4A;
    --c-accent-eye:  #B0916F;
    --c-cta:         #5C4A3A;
    --c-dark:        #3D2E22;
    --c-footer:      #2C2019;
    --c-white:       #FFFFFF;
    --c-border:      #E5DDD4;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--c-bg);
    font-family: var(--font-body);
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 999;
    background: var(--c-cta); color: var(--c-bg); padding: 8px 16px; border-radius: 2px;
    font-size: 13px; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ── Nav ───────────────────────────────────────────────── */
.site-nav {
    background: var(--c-bg);
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    color: var(--c-cta);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-logo__img { height: 36px; width: auto; }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--c-text); }

.nav-btn {
    font-size: 12px;
    font-weight: 400;
    color: var(--c-cta);
    background: transparent;
    border: 0.5px solid var(--c-accent);
    border-radius: 2px;
    padding: 9px 20px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}
.nav-btn:hover {
    background: var(--c-bg-alt);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-bg);
    background: var(--c-cta);
    border: none;
    border-radius: 2px;
    padding: 15px 36px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.btn-secondary:hover { color: var(--c-text); }

.btn-light {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-dark);
    background: var(--c-bg-warm);
    border: none;
    border-radius: 2px;
    padding: 15px 36px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-light:hover { opacity: 0.9; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 64px;
    position: relative;
    overflow: hidden;
    background: var(--c-bg);
}

.hero-blob-1 {
    position: absolute;
    top: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--c-bg-warm) 0%, transparent 65%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-blob-2 {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, #D4C5B5 0%, transparent 65%);
    opacity: 0.45;
    pointer-events: none;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent-eye);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.18;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.hero h1 em {
    font-style: italic;
    color: var(--c-accent-warm);
}

.hero-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text-soft);
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── Section header (shared) ──────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.tag {
    display: inline-block;
    background: var(--c-bg-alt);
    color: var(--c-accent-warm);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 300;
    color: var(--c-text);
    margin-bottom: 16px;
}

.divider {
    width: 40px;
    height: 0.5px;
    background: var(--c-accent);
    margin: 0 auto;
}

/* ── Features ──────────────────────────────────────────── */
.features-section {
    background: var(--c-white);
    padding: 80px 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 860px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 0 12px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 20px;
    color: var(--c-accent-warm);
    opacity: 0.55;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: 10px;
}

.feature p {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.75;
}

/* ── How It Works ──────────────────────────────────────── */
.how-section {
    background: var(--c-bg);
    padding: 80px 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(16.6% + 20px);
    right: calc(16.6% + 20px);
    height: 0.5px;
    background: #D4C5B5;
}

.step {
    text-align: center;
    padding: 0 20px;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0.5px solid var(--c-accent);
    background: var(--c-bg);
    color: var(--c-accent-warm);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.7;
}

/* ── Bottom CTA ────────────────────────────────────────── */
.bottom-cta {
    background: var(--c-dark);
    padding: 80px 48px;
    text-align: center;
}

.bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 300;
    font-style: italic;
    color: var(--c-bg-warm);
    margin-bottom: 12px;
}

.bottom-cta p {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-accent-eye);
    margin-bottom: 36px;
    letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
    background: var(--c-footer);
}

.footer-main {
    padding: 48px 48px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 300;
    color: var(--c-text-muted);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 300;
    color: #6B5A4A;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 13px;
    font-weight: 300;
    color: #6B5A4A;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--c-text-muted);
}

.footer-bottom {
    border-top: 0.5px solid #3D2E22;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 12px;
    font-weight: 300;
    color: #6B5A4A;
}

.footer-bottom a {
    font-size: 12px;
    font-weight: 300;
    color: var(--c-text-muted);
    text-decoration: none;
}

/* ── Page: Account (builder) ───────────────────────────── */
.page-account main {
    background: var(--c-bg);
    min-height: 80vh;
    padding: 0;
}

/* ── Page: Auth ────────────────────────────────────────── */
.page-auth body,
.page-auth {
    background: var(--c-dark);
}

/* ── Forms (general) ───────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--c-accent);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-nav {
        padding: 14px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero {
        min-height: auto;
        padding: 56px 20px 48px;
    }

    .hero h1 {
        font-size: 36px;
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
        font-size: 14px;
    }

    .hero-blob-1 { width: 240px; height: 240px; top: -40px; left: -40px; }
    .hero-blob-2 { width: 200px; height: 200px; bottom: -30px; right: -30px; }

    .cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .features-section,
    .how-section {
        padding: 56px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps::before { display: none; }

    .bottom-cta {
        padding: 56px 20px;
    }

    .bottom-cta h2 {
        font-size: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 24px;
    }

    .footer-bottom {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}
