/* ====================================================
                    GOOGLE FONTS
==================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");


/* ====================================================
                    ROOT
==================================================== */

:root {
    --primary: #8e6d63;
    --primary-dark: #73564e;
    --primary-soft: #aa8b81;

    --secondary: #d7c3b5;
    --secondary-soft: #eee3dc;

    --accent: #b98b6b;
    --accent-dark: #9f7254;

    --dark: #2c2928;
    --dark-soft: #3b3735;

    --text: #5f5956;
    --text-light: #7f7773;
    --text-muted: #9c918b;

    --light: #faf8f6;
    --light-alt: #f5f0ec;
    --white: #ffffff;

    --border: #e7ddd6;
    --border-dark: #d8cac1;

    --shadow-sm: 0 8px 24px rgba(44, 41, 40, 0.06);
    --shadow-md: 0 18px 45px rgba(44, 41, 40, 0.10);
    --shadow-lg: 0 30px 70px rgba(44, 41, 40, 0.14);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --transition-fast: 0.2s ease;
    --transition: 0.35s ease;
    --transition-slow: 0.55s ease;
}


/* ====================================================
                    RESET
==================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--text);
    background: var(--light);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select {
    font-family: "Inter", sans-serif;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

section {
    position: relative;
    padding: 110px 0;
}

.container {
    width: min(100% - 40px, 1240px);
    max-width: 1240px;
    margin-inline: auto;
}

::selection {
    color: var(--white);
    background: var(--primary);
}

:focus-visible {
    outline: 3px solid rgba(185, 139, 107, 0.35);
    outline-offset: 4px;
}


/* ====================================================
                    TYPOGRAPHY
==================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 1.08;

    color: var(--dark);
}

h1 {
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h4 {
    font-size: 1.6rem;
}

p {
    margin: 0;

    font-size: clamp(1rem, 1.5vw, 1.075rem);
    line-height: 1.85;

    color: var(--text);
}

strong {
    color: var(--dark);
    font-weight: 600;
}


/* ====================================================
                    SECTION TITLES
==================================================== */

.section-title {
    max-width: 760px;
    margin-bottom: 70px;
}

.section-title.text-center {
    margin-inline: auto;
}

.section-title > span,
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    color: var(--accent-dark);

    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.30em;
    text-transform: uppercase;
}

.section-title > span::before,
.section-subtitle::before {
    content: "";

    width: 34px;
    height: 1px;

    background: var(--accent);
}

.section-title.text-center > span::after {
    content: "";

    width: 34px;
    height: 1px;

    background: var(--accent);
}

.section-title h2 {
    margin-bottom: 22px;
}

.section-title p {
    max-width: 680px;
    color: var(--text-light);
}

.section-title.text-center p {
    margin-inline: auto;
}


/* ====================================================
                    BUTTONS
==================================================== */

.btn {
    min-height: 54px;
    padding: 14px 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;

    position: relative;
    overflow: hidden;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18),
        transparent 80%
    );

    transform: translateX(-120%);
    transition: transform 0.65s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary-custom {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);

    box-shadow: 0 12px 28px rgba(142, 109, 99, 0.22);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    color: var(--white);
    background: var(--dark);
    border-color: var(--dark);

    box-shadow: 0 16px 34px rgba(44, 41, 40, 0.22);
}

.btn-outline-custom {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--primary);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);

    box-shadow: 0 14px 30px rgba(142, 109, 99, 0.20);
}


/* ====================================================
                    NAVBAR
==================================================== */

.navbar-custom {
    width: 100%;
    padding: 22px 0;

    background: rgba(250, 248, 246, 0.82);
    border-bottom: 1px solid rgba(231, 221, 214, 0.55);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        padding var(--transition),
        background-color var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.navbar-scrolled {
    padding: 13px 0;

    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(231, 221, 214, 0.9);

    box-shadow: 0 10px 35px rgba(44, 41, 40, 0.07);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;

    color: var(--dark);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar-nav {
    align-items: center;
    gap: 6px;
}

.nav-link {
    margin-left: 12px;
    padding: 9px 5px !important;

    color: var(--dark-soft);

    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.025em;

    position: relative;
}

.nav-link::after {
    content: "";

    position: absolute;
    right: 5px;
    bottom: 4px;
    left: 5px;

    height: 2px;

    background: var(--accent);
    border-radius: var(--radius-pill);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.language-switch {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow: var(--shadow-sm);
}

.language-switch img {
    width: 27px;
    height: 27px;

    object-fit: cover;
    border-radius: 50%;

    transition: transform var(--transition);
}

.language-switch:hover {
    background: var(--white);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.language-switch:hover img {
    transform: scale(1.08);
}


/* ====================================================
                    NAVBAR TOGGLER
==================================================== */

.navbar-toggler {
    width: 46px;
    height: 46px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow: var(--shadow-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(142, 109, 99, 0.12);
}

.navbar-toggler-icon {
    width: 22px;
    height: 16px;

    background-image: linear-gradient(
        to bottom,
        var(--dark) 0,
        var(--dark) 2px,
        transparent 2px,
        transparent 7px,
        var(--dark) 7px,
        var(--dark) 9px,
        transparent 9px,
        transparent 14px,
        var(--dark) 14px,
        var(--dark) 16px
    );
}


/* ====================================================
                    HERO
==================================================== */

#hero {
    min-height: 100vh;
    min-height: 100svh;

    padding: 110px 0 80px;

    display: flex;
    align-items: center;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        url("assets/images/banner.jpg")
        center center / cover
        no-repeat;
}

#hero::before {
    content: "";

    position: absolute;
    top: -160px;
    left: -140px;
    z-index: -1;

    width: 450px;
    height: 450px;

    background: rgba(215, 195, 181, 0.28);
    border-radius: 50%;

    filter: blur(10px);
}

#hero::after {
    content: "";

    position: absolute;
    right: -220px;
    bottom: -250px;
    z-index: -1;

    width: 600px;
    height: 600px;

    background: rgba(185, 139, 107, 0.16);
    border-radius: 50%;

    filter: blur(20px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(250, 248, 246, 0.98) 0%,
            rgba(250, 248, 246, 0.94) 35%,
            rgba(250, 248, 246, 0.68) 62%,
            rgba(250, 248, 246, 0.16) 100%
        );
}

.hero-content {
    width: 100%;
    max-width: 980px;

    margin: 0 auto;

    position: relative;
    z-index: 2;

    text-align: center;

    animation: heroContent 0.9s ease both;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 28px;

    color: var(--accent-dark);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.hero-subtitle::before {
    content: "";

    width: 42px;
    height: 1px;

    background: var(--accent);
}

.hero-content h1 {
    max-width: 1000px;
    margin: 0 auto 32px;

    color: var(--dark);

    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.95;
}

.hero-content h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero-content p {
    max-width: 800px;
    margin: 0 auto 42px;

    color: var(--text);

    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
    z-index: 2;

    animation: heroImage 1.1s ease both;
}

.hero-image::before {
    content: "";

    position: absolute;
    inset: 8% 4% 2%;
    z-index: -1;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.45),
        rgba(215, 195, 181, 0.22)
    );

    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 48% 48% 18px 18px;

    backdrop-filter: blur(5px);
}

.hero-image img {
    width: 100%;
    max-width: 610px;
    max-height: 780px;
    margin-inline: auto;

    object-fit: contain;

    filter: drop-shadow(0 35px 45px rgba(44, 41, 40, 0.18));
}


/* ====================================================
                    SCROLL INDICATOR
==================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 3;

    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;

    width: 29px;
    height: 48px;

    border: 1.5px solid rgba(44, 41, 40, 0.55);
    border-radius: var(--radius-pill);

    position: relative;
}

.scroll-indicator span::before {
    content: "";

    width: 5px;
    height: 5px;

    position: absolute;
    top: 10px;
    left: 50%;

    background: var(--dark);
    border-radius: 50%;

    transform: translateX(-50%);

    animation: scrollIndicator 2s infinite;
}


/* ====================================================
                    ABOUT
==================================================== */

#about {
    padding: 110px 0;

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(215, 195, 181, 0.18),
            transparent 30%
        ),
        var(--white);

    overflow: hidden;
}

#about .row {
    min-height: 540px;
}

#about .col-lg-5 {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1.05;

    position: relative;
    overflow: hidden;

    background: var(--secondary-soft);

    border-radius: 28px;
    box-shadow: 0 30px 65px rgba(44, 41, 40, 0.14);
}

.about-image::before {
    content: "";

    position: absolute;
    inset: 17px;
    z-index: 2;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;

    pointer-events: none;
}

.about-image::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        180deg,
        transparent 65%,
        rgba(44, 41, 40, 0.08)
    );

    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: inherit !important;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.045);
    filter: saturate(1.04);
}

#about .col-lg-7 {
    padding-left: clamp(20px, 5vw, 70px);
}

#about h2 {
    max-width: 760px;
    margin-bottom: 24px;

    font-size: clamp(2.8rem, 4.6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

#about p {
    max-width: 720px;
    margin-bottom: 12px;

    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.9;
}

#about .btn {
    margin-top: 18px;
}


/* ====================================================
                    BOOKS
==================================================== */

#books {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            var(--light) 0%,
            var(--white) 100%
        );

    border-top: 1px solid rgba(231, 221, 214, 0.75);
}

#books .section-title {
    margin-bottom: 65px;
}

#books .section-title p {
    max-width: 700px;
}

#books .row {
    align-items: stretch;
}

#books [class*="col-"] {
    display: flex;
}

.book-card {
    width: 100%;
    max-width: 370px;
    margin-inline: auto;
    padding: 18px 18px 26px;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: 0 14px 38px rgba(44, 41, 40, 0.06);

    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.book-card:hover {
    transform: translateY(-9px);

    border-color: var(--secondary);

    box-shadow: 0 25px 55px rgba(44, 41, 40, 0.13);
}

.book-image {
    width: 100%;
    height: 370px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(238, 227, 220, 0.72),
            rgba(250, 248, 246, 0.94)
        );

    border-radius: 15px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    max-width: 270px;

    padding: 0 !important;

    object-fit: contain;
    object-position: center;

    transition: transform 0.55s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.035);
}

.book-content {
    flex: 1;
    padding: 23px 5px 0;

    display: flex;
    flex-direction: column;
}

.book-content h3 {
    min-height: 2.1em;
    margin-bottom: 10px;

    font-size: clamp(1.8rem, 2.5vw, 2.15rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.book-content p {
    min-height: 58px;
    margin-bottom: 18px;

    color: var(--text-light);

    font-size: 0.95rem;
    line-height: 1.65;
}

.book-link {
    width: fit-content;
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--primary);

    font-size: 0.92rem;
    font-weight: 600;
}

.book-link i {
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}

.book-link:hover {
    color: var(--dark);
}

.book-link:hover i {
    transform: translateX(5px);
}


/* ====================================================
                    FEATURED BOOK
==================================================== */

#featured-book {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(215, 195, 181, 0.24),
            transparent 30%
        ),
        var(--white);
}

#featured-book .col-lg-5 {
    display: flex;
    justify-content: center;
}

.featured-book-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 18px;

    transform: scale(1.035);

    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow);
}

.featured-book-image:hover {
    transform: translateY(-8px) rotate(-1deg);

    box-shadow:
        0 40px 85px rgba(44, 41, 40, 0.18),
        0 12px 28px rgba(44, 41, 40, 0.10);
}

#featured-book .col-lg-7 {
    padding-left: clamp(20px, 5vw, 70px);
}

#featured-book h2 {
    margin-bottom: 24px;
}

#featured-book p {
    max-width: 720px;
    margin-bottom: 14px;

    color: var(--text);
}

/* ==========================================
            BOOK EXCERPT MODAL
========================================== */

.excerpt-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(0, 0, 0, 0.85);

    backdrop-filter:
        blur(8px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.excerpt-modal.active {

    opacity: 1;

    visibility: visible;

}


.excerpt-modal-content {

    position: relative;

    width: 100%;

    max-width: 750px;

    max-height: 80vh;

    overflow-y: auto;

    padding: 55px 50px;

    background: #ffffff;

    border-radius: 20px;

    transform:
        translateY(20px)
        scale(.98);

    transition:
        transform .3s ease;

}


.excerpt-modal.active
.excerpt-modal-content {

    transform:
        translateY(0)
        scale(1);

}


.excerpt-modal-close {

    position: absolute;

    top: 18px;

    right: 22px;

    border: 0;

    background: transparent;

    font-size: 34px;

    line-height: 1;

    cursor: pointer;

}


.excerpt-modal-content h2 {

    margin-bottom: 30px;

}


.excerpt-modal-text {

    white-space: pre-line;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 21px;

    line-height: 1.8;

}


/* ====================================================
                    EVENTS
==================================================== */

#events {
    background: var(--light-alt);
}

#events .section-title {
    margin-bottom: 60px;
}

.timeline {
    max-width: 920px;
    margin-inline: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 105px;

    width: 1px;

    background: var(--border-dark);
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;

    padding: 0 0 42px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;

    color: var(--white);
    background: var(--primary);

    border: 8px solid var(--light-alt);
    border-radius: 50%;

    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;

    box-shadow: 0 10px 24px rgba(142, 109, 99, 0.20);
}

.timeline-content {
    padding: 27px 30px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);

    border-color: var(--secondary);

    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    margin-bottom: 6px;
}

.timeline-content > span {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--accent-dark);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.timeline-content p {
    font-size: 0.98rem;
    line-height: 1.75;
}


/* ====================================================
                    GALLERY
==================================================== */

#gallery {
    padding: 110px 0;

    background: var(--white);
}


.gallery-item {
    display: block;

    position: relative;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.gallery-item::after {
    content: "\F52A";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--dark);
    background: rgba(255, 255, 255, 0.88);

    border-radius: 50%;

    font-family: "bootstrap-icons";
    font-size: 1.25rem;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.72);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* ====================================================
                    TESTIMONIALS
==================================================== */

#testimonials {
    background:
        linear-gradient(
            180deg,
            var(--light) 0%,
            var(--light-alt) 100%
        );
}

#testimonials [class*="col-"] {
    display: flex;
}

.testimonial-card {
    width: 100%;
    padding: 32px;

    display: flex;
    flex-direction: column;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-7px);

    border-color: var(--secondary);

    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    margin-bottom: 20px;

    display: flex;
    gap: 5px;

    color: var(--accent);
}

.testimonial-card > p {
    flex: 1;
    margin-bottom: 28px;

    color: var(--text);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 52px;
    height: 52px;

    object-fit: cover;

    border: 2px solid var(--secondary-soft);
    border-radius: 50%;
}

.testimonial-author h5 {
    margin-bottom: 3px;
    font-size: 1.25rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.82rem;
}


/* ====================================================
                    NEWSLETTER
==================================================== */

#newsletter {
    padding: 100px 0;

    background: var(--light-alt);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.newsletter-box {
    padding: clamp(38px, 6vw, 72px);

    position: relative;
    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--dark) 0%,
            var(--dark-soft) 55%,
            var(--primary-dark) 100%
        );

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


.newsletter-box::before {
    content: "";

    position: absolute;
    top: -120px;
    right: -90px;

    width: 330px;
    height: 330px;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}


.newsletter-box::after {
    content: "";

    position: absolute;
    bottom: -150px;
    left: 35%;

    width: 300px;
    height: 300px;

    background: rgba(185, 139, 107, 0.14);

    border-radius: 50%;
}


.newsletter-box .row {
    position: relative;

    z-index: 1;
}


.newsletter-box h2 {
    margin-bottom: 18px;

    color: var(--white);
}


.newsletter-box p {
    max-width: 540px;

    color: rgba(255, 255, 255, 0.74);
}


.newsletter-box .section-subtitle {
    color: var(--secondary);
}


.newsletter-box .section-subtitle::before {
    background: var(--secondary);
}


/* ==========================================
                FORM
========================================== */

.newsletter-form {
    display: flex;

    align-items: center;

    gap: 12px;
}


.newsletter-form .form-control {
    flex: 1;

    min-width: 0;
    min-height: 56px;

    padding: 0 20px;

    color: var(--dark);

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    box-shadow: none;
}


.newsletter-form .form-control:focus {
    background: var(--white);

    border-color: var(--secondary);

    box-shadow:
        0 0 0 4px
        rgba(215, 195, 181, 0.16);
}


.newsletter-form .btn {
    flex-shrink: 0;

    color: var(--dark);

    background: var(--secondary);

    border-color: var(--secondary);
}


.newsletter-form .btn:hover {
    color: var(--dark);

    background: var(--white);

    border-color: var(--white);
}


.newsletter-form .btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* ==========================================
            BREVO HONEYPOT
========================================== */

.newsletter-honeypot {
    position: absolute !important;

    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* ==========================================
            STATUS MESSAGE
========================================== */

.newsletter-status {
    margin: 12px 0 0;

    min-height: 20px;

    font-size: 14px;
    font-weight: 500;
}


.newsletter-status.success {
    color: #bce5c8;
}


.newsletter-status.error {
    color: #ffb5b5;
}


/* ==========================================
                MOBILE
========================================== */

@media (max-width: 576px) {

    .newsletter-form {
        flex-direction: column;

        align-items: stretch;
    }


    .newsletter-form .btn {
        width: 100%;
    }

}

/* ====================================================
                    CONTACT
==================================================== */

#contact {
    padding: 120px 0;

    background:
        linear-gradient(
            180deg,
            var(--light) 0%,
            var(--white) 100%
        );

    border-top: 1px solid var(--border);
}


.contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    align-items: start;
    gap: clamp(60px, 9vw, 130px);
}


/* LEFT SIDE */

.contact-heading {
    max-width: 480px;
}


.contact-heading h2 {
    margin-bottom: 24px;

    font-size: clamp(
        3rem,
        5vw,
        4.6rem
    );

    line-height: 0.98;
}


.contact-heading p {
    max-width: 440px;

    color: var(--text-light);

    font-size: 1.02rem;
    line-height: 1.85;
}


/* RIGHT SIDE */

.contact-details {
    border-top: 1px solid var(--border-dark);
}


.contact-detail {
    width: 100%;
    min-height: 92px;
    padding: 20px 4px;

    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr)
        24px;

    align-items: center;
    gap: 18px;

    color: var(--dark);

    border-bottom: 1px solid var(--border);

    transition:
        color var(--transition-fast),
        padding-left var(--transition-fast),
        border-color var(--transition-fast);
}


a.contact-detail:hover {
    padding-left: 10px;

    color: var(--primary);
    border-bottom-color: var(--primary);
}


.contact-detail-icon {
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    border: 1px solid var(--border-dark);
    border-radius: 50%;

    font-size: 1rem;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}


a.contact-detail:hover .contact-detail-icon {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}


.contact-detail-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}


.contact-detail-content small {
    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}


.contact-detail-content strong {
    overflow-wrap: anywhere;

    color: inherit;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 600;
}


.contact-detail-arrow {
    color: var(--text-muted);

    font-size: 1rem;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}


a.contact-detail:hover .contact-detail-arrow {
    color: var(--primary);

    transform:
        translate(3px, -3px);
}


/* SOCIAL NETWORKS */

.contact-networks {
    padding-top: 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.contact-networks > span {
    color: var(--text-muted);

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.contact-network-links {
    display: flex;
    align-items: center;
    gap: 10px;
}


.contact-network-links a {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: transparent;

    border: 1px solid var(--border-dark);
    border-radius: 50%;
}


.contact-network-links a:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);

    transform: translateY(-3px);
}


/* RESPONSIVE */

@media (max-width: 991.98px) {

    #contact {
        padding: 90px 0;
    }


    .contact-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }


    .contact-heading {
        max-width: 680px;
    }

}


@media (max-width: 575.98px) {

    #contact {
        padding: 72px 0;
    }


    .contact-layout {
        gap: 42px;
    }


    .contact-detail {
        min-height: 82px;

        grid-template-columns:
            42px
            minmax(0, 1fr)
            18px;

        gap: 14px;
    }


    .contact-detail-icon {
        width: 42px;
        height: 42px;
    }


    .contact-networks {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* ====================================================
                    FOOTER
==================================================== */
.footer-minimal {
    padding: 26px 0;

    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.footer-minimal .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.footer-minimal p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}


.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}


.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}


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


@media (max-width: 575.98px) {

    .footer-minimal .container {
        flex-direction: column;
        text-align: center;
    }

}

/* ====================================================
                    BACK TO TOP
==================================================== */

#backToTop {
    width: 48px;
    height: 48px;

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--primary);

    border: 0;
    border-radius: 50%;

    box-shadow: 0 12px 28px rgba(44, 41, 40, 0.20);

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background-color var(--transition);
}

#backToTop.show,
#backToTop.visible,
#backToTop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--dark);
    transform: translateY(-4px);
}


/* ====================================================
                    LIGHTBOX
==================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;

    padding: 30px;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(20, 18, 18, 0.92);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active,
.lightbox.show {
    display: flex;
}

.lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 88vh;

    object-fit: contain;

    border-radius: 14px;

    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    width: 46px;
    height: 46px;

    position: absolute;
    top: 22px;
    right: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: rgba(255, 255, 255, 0.10);

    border-radius: 50%;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}


/* ====================================================
                    ANIMATIONS
==================================================== */

@keyframes heroContent {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImage {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollIndicator {
    0% {
        top: 9px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        top: 29px;
        opacity: 0;
    }
}


/* ====================================================
                    RESPONSIVE
==================================================== */

@media (max-width: 1199.98px) {
    section {
        padding: 100px 0;
    }

    #hero {
        padding-top: 135px;
    }

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

    .book-image {
        height: 350px;
    }
}


@media (max-width: 991.98px) {
    section,
    #about,
    #books {
        padding: 90px 0;
    }

    .navbar-custom {
        padding: 15px 0;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 18px;

        background: rgba(255, 255, 255, 0.97);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);

        box-shadow: var(--shadow-md);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 2px;
    }

    .nav-link {
        margin-left: 0;
        padding: 11px 8px !important;
    }

    .nav-link::after {
        right: auto;
        bottom: 7px;
        left: 8px;

        width: 30px;
    }

    .language-switch {
        margin-top: 10px;
        margin-left: 0;
    }

    #hero {
        min-height: auto;
        padding: 145px 0 90px;

        background-position: 65% center;
    }

    .hero-overlay {
        background: rgba(250, 248, 246, 0.91);
    }

    .hero-content {
        max-width: 720px;
        margin-inline: auto;

        text-align: center;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero-content h1,
    .hero-content p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 620px;
        margin: 60px auto 0;
    }

    .scroll-indicator {
        display: none;
    }

    #about .row {
        min-height: auto;
    }

    #about .col-lg-7,
    #featured-book .col-lg-7 {
        padding-top: 42px;
        padding-left: 12px;
        padding-right: 12px;

        text-align: center;
    }

    #about .section-subtitle,
    #featured-book .section-subtitle {
        justify-content: center;
    }

    #about h2,
    #about p,
    #featured-book h2,
    #featured-book p {
        margin-inline: auto;
    }

    .about-image {
        max-width: 500px;
    }

    #featured-book .d-flex {
        justify-content: center;
    }

    #featured-book .col-lg-5 {

        display: flex;
        justify-content: center;
        align-items: center;

    }


    #featured-book .featured-book-image {

        display: block;

        width: auto;
        height: auto;

        max-width: 360px;
        max-height: 520px;

        margin: 0 auto;

        object-fit: contain;

        border-radius: 12px;

        box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.18);

    }

    .newsletter-box {
        text-align: center;
    }

    .newsletter-box p {
        margin-inline: auto;
    }

    .newsletter-form {
        margin-top: 32px;
    }
}


@media (max-width: 767.98px) {
    section,
    #about,
    #books {
        padding: 75px 0;
    }

    .container {
        width: min(100% - 32px, 1240px);
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title > span,
    .section-subtitle {
        letter-spacing: 0.22em;
    }

    #hero {
        padding: 125px 0 75px;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.24em;
    }

    .hero-content p {
        margin-bottom: 34px;
    }

    .hero-image {
        margin-top: 45px;
    }

    #books .section-title {
        margin-bottom: 45px;
    }

    .book-card {
        max-width: 410px;
    }

    .book-image {
        height: 360px;
    }

    .book-content h3,
    .book-content p {
        min-height: auto;
    }

    #featured-book .featured-book-image {
        max-width: 280px;
        max-height: 420px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        grid-template-columns: 84px 1fr;
        gap: 18px;
    }

    .timeline-date {
        width: 76px;
        height: 76px;

        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 23px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}


@media (max-width: 575.98px) {
    section {
        padding: 68px 0;
    }

    .container {
        width: min(100% - 24px, 1240px);
    }

    .navbar-brand {
        font-size: 1.75rem;
    }

    .navbar-toggler {
        width: 42px;
        height: 42px;
    }

    #hero {
        padding-top: 115px;
    }

    .hero-subtitle {
        gap: 9px;
    }

    .hero-subtitle::before {
        width: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn {
        min-height: 52px;
        padding: 14px 27px;
    }

    #about h2 {
        font-size: clamp(2.45rem, 12vw, 3.25rem);
    }

    .about-image {
        aspect-ratio: 1 / 1.08;
        border-radius: 22px;
    }

    .about-image::before {
        inset: 12px;
        border-radius: 15px;
    }

    .book-card {
        padding: 14px 14px 22px;
        border-radius: 18px;
    }

    .book-image {
        height: 330px;
        padding: 14px;
    }

    .book-content {
        padding-top: 20px;
    }

    .section-title > span::before,
    .section-title.text-center > span::after,
    .section-subtitle::before {
        width: 24px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        display: block;
        padding-bottom: 24px;
    }

    .timeline-date {
        width: auto;
        height: auto;
        margin-bottom: 12px;
        padding: 8px 16px;

        display: inline-flex;

        border: 0;
        border-radius: var(--radius-pill);
    }

    .timeline-content {
        padding: 22px;
    }

    .newsletter-box {
        border-radius: 20px;
    }

    .contact-form,
    .contact-card {
        padding: 24px;
        border-radius: 18px;
    }

    #backToTop {
        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }
}


/* ====================================================
                    REDUCED MOTION
==================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
