/* Critical CSS - Above the fold */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
    font-family: var(--font-ui);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--parchment);
    width: 100%;
    position: relative;
    font-weight: 400;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
}
.skip-link:focus { top: 6px; }

.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;
}

/* ===== HEADER ===== */
.header {
    background: var(--ivory);
    border-bottom: 1px solid var(--border-cream);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 96px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    gap: 20px;
}

.logo-section { display: flex; align-items: center; flex-shrink: 0; }

.logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}
.logo:hover img { transform: scale(1.03); }

.main-nav { display: flex; align-items: center; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block; width: 22px; height: 2px;
    background: var(--text-dark); position: relative;
    transition: var(--transition);
}
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; width: 22px; height: 2px;
    background: var(--text-dark); left: 0; transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-menu {
    display: flex; list-style: none;
    align-items: center; gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.0;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--radius-base);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-dark);
}

.header-cta { display: flex; align-items: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-base);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.25;
    padding: 9.6px 16.8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-on-dark-bright);
    box-shadow: 0 0 0 1px var(--primary-color), 0 1px 2px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--primary-hover), var(--shadow-whisper);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-heading);
    box-shadow: 0 0 0 1px var(--border-color), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-secondary:hover {
    background: var(--ivory);
    box-shadow: 0 0 0 1px var(--ring-warm), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* ===== HERO ===== */
.hero-new {
    padding: 120px 0 var(--space-3xl);
    background: var(--parchment);
    position: relative;
    overflow: hidden;
    min-height: auto;
    width: 100%;
}

.hero-new::before { display: none; }
.hero-overlay { display: none; }
.hero-new-visual { display: none; }

.hero-new-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-new-text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-top-section { margin-bottom: var(--space-lg); }

.hero-bottom-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
}

.hero-new-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.10;
    color: var(--text-dark);
    text-shadow: none;
}

.hero-new-subtitle {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
    font-weight: 400;
    text-shadow: none;
}

.hero-new-actions {
    display: flex; gap: 16px;
    flex-wrap: wrap; justify-content: center;
}

.btn-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-arrow { font-size: 1.1rem; transition: transform 0.3s ease; }
.btn-with-arrow:hover .btn-arrow { transform: translateX(4px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-new-title { font-size: 3.25rem; }
    .nav-link { font-size: 15px; padding: 6px 10px; }
    .logo img { height: 64px; }
}

@media (max-width: 768px) {
    .logo img { height: 56px; }
    .header { height: 76px; }
    .header-content { height: 76px; }
    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed; top: 76px; left: -100%;
        width: 100%; height: calc(100vh - 76px);
        background: var(--ivory);
        flex-direction: column; justify-content: flex-start;
        padding: 32px 0; transition: var(--transition);
        border-top: 1px solid var(--border-cream);
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; text-align: center; margin: 4px 0; }
    .nav-link { font-size: 17px; padding: 12px 24px; display: block; }

    .hero-new { padding: 116px 0 60px; }
    .hero-new-title { font-size: 2.3rem; }
    .hero-new-subtitle { font-size: 1.05rem; }
    .hero-new-actions { flex-direction: column; align-items: center; }
    .hero-new-actions .btn {
        width: 100%; max-width: 280px; justify-content: center;
    }
}

@media (max-width: 479px) {
    .container { padding: 0 16px; }
    .header { height: 64px; }
    .header-content { height: 64px; }
    .logo img { height: 46px; }
    .nav-menu { top: 64px; height: calc(100vh - 64px); }
    .hero-new { padding: 100px 0 40px; }
    .hero-new-title { font-size: 1.6rem; line-height: 1.20; }
    .hero-new-subtitle { font-size: 0.94rem; }
}
