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

:root {
    --cream: #F5F0E8;
    --cream-dark: #EDE8DE;
    --warm-white: #FAF8F4;
    --brown: #8B4A2B;
    --brown-dark: #6B3620;
    --brown-light: #C47A5A;
    --text-dark: #1A1410;
    --text-mid: #3D2E1E;
    --text-muted: #7A6A5A;
    --card-bg: #FFFFFF;
    --border: #E0D8CC;

    --book-red: #C8354A;
    --book-navy: #1E3A5F;
    --book-teal: #2A6B6B;
    --book-crimson: #C0392B;
    --book-slate: #4A4A5A;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brown);
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-mid);
    font-weight: 400;
    transition: color .2s;
}
.nav-links a:hover { color: var(--brown); }
.nav-lang {
    display: flex;
    background: var(--border);
    border-radius: 10px;
    padding: 4px;
}
.lang-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
    color: var(--text-mid);
    transition: all 0.2s ease-in-out;
}

.lang-btn.active {
    background: var(--brown);
    color: white;
}

.lang-btn:not(.active):hover {
    color: var(--brown);
}
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: all .3s;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    text-decoration: none;
    font-size: 15px;
    color: var(--text-mid);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-lang {
    display: flex;
    background: var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-top: 10px;
    align-self: flex-start;
}

/* ── HERO ── */
.hero {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    margin-top: 60px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}
.hero-text {
    padding: 64px 56px 64px 60px;
    position: relative;
    display: flex;
    margin-left: 50px;
    flex-direction: column;
    justify-content: center;
}
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 380px;
    line-height: 1.7;
}
.btn-primary {
    display: inline-block;
    background: var(--brown);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s;
    align-self: flex-start;
}
.btn-primary:hover { background: var(--brown-dark); }

.hero-image {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── SECTIONS ── */
section { padding: 80px 0; }
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: var(--brown);
}

/* ── ABOUT ── */
#about { background: var(--cream); }
.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}
.about-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}
.about-card p:last-child { margin-bottom: 0; }

/* ── SERVICES ── */
#services { background: var(--cream-dark); }
.services-header {
    position: relative;
    padding-bottom: 16px;
}
.services-subtitle {
    position: absolute;
    top: 70px;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 6px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
    box-shadow: 0 4px 24px rgba(139,74,43,.1);
    transform: translateY(-2px);
}
.service-num {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    background: var(--cream-dark);
    font-size: 23px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brown-light);
}
.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── PORTFOLIO / CAROUSEL ── */
#portfolio { background: var(--cream); }
.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}
.portfolio-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 6px;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}
.carousel-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-mid);
    transition: all .2s;
    user-select: none;
}
.carousel-btn:hover {
    background: var(--brown);
    color: white;
    border-color: var(--brown);
}
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 10px;
}

.carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    gap: 20px;
}
.book-card {
    flex: 0 0 calc((100% - 4rem) / 4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.book-card:hover { transform: translateY(-4px); }
.book-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

}

/* ── PROCESS ── */
#process { background: var(--cream-dark); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.process-step {
    text-align: left;
    position: relative;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--brown);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    width: calc(100% + 24px);
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-step h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.process-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── FOOTER ── */
footer {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 56px 0 40px;
}
.footer-brand .nav-logo {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 240px;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.footer-col p, .footer-col a {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color .2s;
}
.footer-col a:hover { color: var(--brown); }
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .2s;
}
.social-icon:hover {
    background: var(--brown);
    color: white;
    border-color: var(--brown);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── CAROUSEL DOTS ── */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.dot.active {
    background: var(--brown);
    transform: scale(1.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .process-step::after {
        width: calc(100% + 20px);
    }

    .book-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links, .nav-lang { display: none; }
    .nav-burger { display: flex; }

    .hero {
        grid-template-columns: 1fr;
        min-height: 380px;
        position: relative;
        margin: 0;
    }
    .hero-image {
        inset: 0;
        z-index: 0;
    }
    .hero-image img {
        opacity: 0.6;
    }
    .hero-text {
        margin-top: 30px;
        margin-left: 10px;
        margin-bottom: 30px;
        z-index: 1;
        background: transparent;
    }
    .hero-text p {
        color: var(--text-mid);
    }

    .container { padding: 0 20px; }
    section { padding: 56px 0; }
    .section-title { margin-bottom: 28px; }

    .about-grid { grid-template-columns: 1fr; }

    .carousel-wrapper {
        width: 70vw;
        max-width: 300px;
        margin: 0 auto;
    }

    .book-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
    }

    .services-grid { grid-template-columns: 1fr; }
    .services-header { padding-bottom: 54px; }

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

    .process-step {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 20px;
        text-align: left;
    }

    .process-step::after {
        display: block;
        top: 48px;
        left: 24px;
        width: 2px;

        height: calc(100% - 48px + 32px);
        transform: translateX(-50%);
    }

    .process-step:last-child::after {
        display: none;
    }

    .step-num {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
    }

    .process-step h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 4px;
        margin-top: 4px;
    }

    .process-step p {
        grid-column: 2;
        grid-row: 2;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 28px;
    }

    .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
    .process-steps { grid-template-columns: 1fr; }
    .hero-text { padding: 40px 20px; }
    .hero-text h1 { font-size: 28px; }
}

/* Touch swipe hint */
.carousel-wrapper { touch-action: pan-y; }
