/* ===== JENNIFER KATTULA — SHARED STYLES ===== */

:root {
    --cream: #FAFAF5;
    --cream-warm: #F5F0E8;
    --raspberry: #C43A6B;
    --raspberry-deep: #A82E58;
    --raspberry-soft: rgba(196, 58, 107, 0.08);
    --lime: #E9FF70;
    --lime-deep: #D4EE55;
    --iron: #36413E;
    --iron-soft: #6B7D77;
    --iron-light: rgba(54, 65, 62, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--iron);
    line-height: 1.6;
    font-size: 0.9rem;
    overflow-x: hidden;
    position: relative;
}

/* Paper grain texture — applied via JS-generated canvas noise (see grain-overlay in HTML) */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    mix-blend-mode: multiply;
}

::selection {
    background-color: var(--lime);
    color: var(--iron);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--iron-light);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--iron);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--iron-soft);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--raspberry);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--iron);
    margin: 5px 0;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== LIME HIGHLIGHT UNDERLINE ===== */
.hl {
    background-image: linear-gradient(var(--lime), var(--lime));
    background-position: 0 85%;
    background-size: 100% 35%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

/* ===== RASPBERRY TEXT ===== */
.raspberry { color: var(--raspberry); }
.raspberry-italic { color: var(--raspberry); font-style: italic; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.2rem;
    background-color: var(--raspberry);
    color: #fff;
    border: 2px solid var(--raspberry);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background-color: var(--raspberry-deep);
    border-color: var(--raspberry-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.2rem;
    background-color: transparent;
    color: var(--iron);
    border: 2px solid var(--iron);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--iron);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    color: var(--iron);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--iron-soft);
    line-height: 1.8;
}

/* ===== PAGE WRAPPER ===== */
.page-content {
    padding-top: 100px;
}

/* ===== LIME ACCENT BAR ===== */
.lime-bar {
    width: 60px;
    height: 4px;
    background: var(--lime);
    margin: 1.5rem auto;
}

.lime-bar-left {
    width: 60px;
    height: 4px;
    background: var(--lime);
    margin: 1.5rem 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--iron-light);
    transition: all 0.3s ease;
    color: var(--iron-soft);
}

.social-icons a:hover {
    border-color: var(--raspberry);
    color: var(--raspberry);
    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 4rem 3rem;
    border-top: 1px solid var(--iron-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    font-size: 0.8rem;
    color: var(--iron-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-links a {
    font-size: 0.8rem;
    color: var(--iron-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--raspberry);
}

/* ===== SIGNATURE SYSTEM ===== */

/* ===== SIGNATURE NUMBER TREATMENT ===== */
.sig-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--iron);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--lime);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* ===== ANGLED SECTION EDGE ===== */
.angle-top {
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
    padding-top: calc(4vw + 2rem);
}

.angle-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-bottom: calc(4vw + 2rem);
}

/* ===== STAGGERED TEXT REVEAL ===== */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.24s; }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.36s; }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.48s; }

.stagger-reveal.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TOUCH DEVICE: disable grayscale (no hover available) ===== */
@media (hover: none) {
    img {
        filter: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        padding: 1.2rem 2rem;
        flex-direction: row;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.35s ease;
        box-shadow: -4px 0 30px rgba(54, 65, 62, 0.1);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(54, 65, 62, 0.3);
        z-index: 999;
    }

    .nav-overlay.open {
        display: block;
    }

    .page-content {
        padding-top: 80px;
    }

    footer {
        padding: 3rem 2rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    nav { padding: 1rem 1.5rem; }
    .nav-logo { font-size: 1rem; }
    .page-content { padding-top: 75px; }
    footer { padding: 2rem 1.5rem; }
}
