
@font-face {
    font-family: 'CormorantInfant-Regular';
    src: url('fonts/CormorantInfant-Regular.ttf');
}

@font-face {
    font-family: 'CormorantInfant-Light';
    src: url('fonts/CormorantInfant-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'CormorantInfant-Medium';
    src: url('fonts/CormorantInfant-Medium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'CormorantInfant-SemiBold';
    src: url('fonts/CormorantInfant-SemiBold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'CormorantInfant-Bold';
    src: url('fonts/CormorantInfant-Bold.ttf');
    font-weight: 700;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: 'CormorantInfant-Regular', serif;
  font-size: 20px;
  font-weight: 600;
  background: #F0F0EB;
}

a {
    color: inherit;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* Common */

.no-scroll {
    overflow: hidden;
}

p {
    max-width: 1100px;
}

h1 {
    color: #292D3C;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    line-height: 1.25;
    letter-spacing: 2px;
}

.btn-primary,
.btn-secondary,
.ml-form-embedSubmit .primary {
    display: flex;
    padding: 14px 50px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 50px;
    border: 2px solid #292D3C;
    background: #292D3C;
    color: #FFF;
    text-align: center;
    font-size: 17.6px;
    font-style: normal;
    text-decoration: none;
    font-weight: 700;
    line-height: 29.92px; /* 170% */
}

.btn-secondary {
    color: #292D3C;
    background: transparent;
}

.btn-accent,
footer .btn,
.ml-form-embedSubmit .primary {
    background: #F3CB53;
    border-color: #f3bb12;
    color: #292D3C;
}

input[type="text"], input[type="email"] {
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background: #FFFFFF1A;
    color: #F8ECE0;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25) inset;
    border: 0.75px solid transparent;
    outline: none !important;
}

#reviewName {
    color: inherit;
}

input[type="text"]::placeholder, input[type="email"]::placeholder {
    color: #b0b099;
}

input[type="text"]:focus, input[type="email"]:focus {
    border: 0.75px solid #8D591A;
    border: 0.75px solid #686e85;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
}

/* Navigation */

#topNav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 55px;
    padding: 0 16px;
    background: rgba(250, 250, 245, 0.95);
    box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#topNav > span {
    display: none;
}

#topNav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

#topNav ul .nav-item a {
    position: relative;
    padding: 10px 0;
    color: #292D3C;
    font-size: 15.2px;
    font-style: normal;
    line-height: 25.84px; /* 170% */
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

#topNav ul .nav-item a:hover {
    color: #8D591A;
}

#topNav ul .nav-item a:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8D591A;
    transition: width 0.3s ease;
}

#topNav ul .nav-item a:hover:after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-content .lang-switcher {
    display: none;
}

.lang-switcher a {
    padding: 5px 8px;
    color: #292D3C;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
}

.lang-switcher a.active {
    background: #dddddd;
}

.lang-switcher a span {
    display: flex;
    margin-top: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #292D3C;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 900px) {
    #topNav {
        justify-content: space-between;
    }

    #topNav > span {
        display: flex;
    }

    #topNav ul,
    .lang-switcher {
        display: none;
    }

    .mobile-menu-content .lang-switcher {
        display: flex;
        position: relative;
        transform: none;
        top: unset;
        right: unset;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
    
    #mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    #mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 350px;
        height: 100vh;
        background: #FFF;
        color: #292D3C;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
    }

    #mobile-menu.show {
        transform: translateX(0);
    }

    /* ========================================= /
    / Mobile Menu - Content          /
    / ========================================= */

    .mobile-menu-logo-section {
        width: 100%;
        height: 180px;
        padding: 20px 0;
        background: var(--primary-gray) url('../images/logo-orange.svg') no-repeat center / 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-menu:hover {
        transform: scale(1.1);
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex: 1;
        overflow-y: auto;
        padding: 80px 0;
    }

    .mobile-menu-content hr {
        width: calc(100% - 3rem);
        margin: 0 auto;
        border-color: var(--text-light);
        opacity: 0.2;
    }

    .mobile-menu-content .lang-switcher {
        padding-left: 1rem;
    }

    .mobile-menu-content .lang-switcher a {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 18px;
        line-height: 1.4;
        letter-spacing: 2px;
    }

    #mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #mobile-nav-list li {
        padding: 1rem 1.5rem;
        font-size: 16px;
        color: #E6FAEC; /* Adjust color */
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1.4;
    }

    #mobile-nav-list li:hover {
        background-color: var(--primary-gray);
    }

    #mobile-nav-list li a {
        color: inherit;
        text-decoration: none;
        display: block;
        width: 100%;
        height: 100%;
        color: #292D3C;
        font-family: 'Bitter', serif;
        letter-spacing: 2.5px;
        font-size: 20px;
    }
}

/* Hero Section */

#hero {
background: url('images/header-mountain.svg') bottom center / 100% auto no-repeat, 
            linear-gradient(156deg, #FFEAAD -16.76%, #FFEAAD 53.78%, #868DA6 96.79%);
}

#hero h1 {
    margin-top: 5px;
    padding-top: 70px;
    color: #292D3C;
    text-align: center;
    font-size: 80px;
    font-style: normal;
    line-height: 136px; /* 170% */
    letter-spacing: 3px;
}

#hero header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-image img {
    max-height: 500px;
}

#hero .subheader {
    margin-top: 30px;
    color: #533B2C;
    text-align: center;
    font-size: 43px;
    font-style: normal;
    line-height: 1.2;
    opacity: 0.75;
}

.synopsis {
    margin-top: 100px;
    line-height: 28px;
}

#headerImages {
    display: flex;
    justify-content: center;
    gap: 34px;
    max-width: 1100px;
    margin-top: 100px;
}

#bookInfo {
    margin-top: 28px;
}

#bookIllustrations {
    font-weight: 600;
    font-size: 17px;
    font-style: italic;
    margin-top: 36px;
}

#hero .btn-primary {
    margin: 80px 0 100px;
}

#author {
    max-width: 1200px;
    margin: 0 auto;
}

#author h1 {
    margin-top: 50px;
    padding-top: 70px;
}

#author h2 {
    font-size: 25px;
    color: #8D591A;
}

#author img {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 470px;
}

#author p {
    max-width: 910px;
    margin-top: 19px;
}

#authorIntro {
    margin-top: 90px;
}

/* Snippets and Reviews*/

#snippets h1 {
    margin-top: 230px;
    padding-top: 70px;
}

.snippets-container,
.reviews-container {
    position: relative;
    margin-top: 80px;
}

.snippets-slider,
.reviews-slider {
    overflow: hidden;
    max-width: 840px;
}

.snippets-track,
.reviews-track {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.snippet-card,
.review-card {
    width: calc(100% - 100px);
    flex-shrink: 0;
    padding: 36px 40px;
    border-radius: 8px;
    border-left: 4px solid #8D591A;
    background: #FFF;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.08);
}

.snippet-card h3,
.review-card h3 {
    font-size: 22px;
}

.snippet-card p,
.review-card p {
    margin-top: 20px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border: none;
    background: url('images/arrow-left.png') no-repeat center / contain;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: opacity 0.15s ease;
}

.slider-arrow.next {
    transform: scaleX(-1);
}

.slider-arrow.disabled {
    opacity: 0.5;
}

#reviews {
    margin-top: 230px;
    background: linear-gradient(107deg, rgba(227, 230, 227, 0.80) 2.6%, rgba(207, 214, 210, 0.80) 16.51%, rgba(186, 198, 194, 0.80) 30.43%, rgba(166, 181, 181, 0.80) 44.34%, rgba(147, 165, 168, 0.80) 58.26%, rgba(130, 148, 156, 0.80) 72.17%, rgba(115, 131, 143, 0.80) 86.09%, rgba(102, 114, 130, 0.80) 100%);
}

.reviews-slider {
    width: 1070px;
    max-width: 100%;
}

#reviewsTitle {
    margin-top: 40px;
    padding-top: 70px;
}

.review-card {
    width: 300px;
    height: 420px;
    padding: 32px;
    overflow-y: auto;
}

#reviews .btn {
    margin: 100px 0;
}

.review-header {
    display: flex;
    gap: 16px;
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    background: url('images/review-circle.svg') no-repeat center / contain;
    color: #FFFFFF;
}

.review-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-stars {
    color: #FFBF00;
}

#snippetsSliderButtons,
#reviewsSliderButtons {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    padding: 12px 24px;
    margin: 40px auto 0;
    border-radius: 50px;
    background: #FFF;
}

#snippetsSliderButtons .pagination,
#reviewsSliderButtons .pagination {
    display: flex;;
    align-items: center;
}

#snippetsSliderButtons .dot,
#reviewsSliderButtons .dot {
    width: 22px;
    height: 22px;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
}

.dot-inner {
    display: flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8C93AB;
}

#snippetsSliderButtons .dot.active .dot-inner,
#reviewsSliderButtons .dot.active .dot-inner {
    background: #292D3C;
}

/* Add Review Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.popup-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    display: block;
    margin-top: 0.25rem;
    color: #999;
    font-size: 0.85rem;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.star-rating .star:hover {
    transform: scale(1.1);
}

.star-rating .star.selected {
    color: #ffd700;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* No scroll when popup is open */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .popup-container {
        padding: 1.5rem;
        width: 95%;
    }
    
    .popup-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .star-rating {
        font-size: 1.75rem;
    }
}

#successMessage {
    display: none;
    margin: 100px 0;
}

#successMessage.show {
    display: block;
}

/* Order Section */

#cardOrder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 690px;
    margin-top: 160px;
    padding: 64px;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.10);
}

#cardOrderContainer {
    padding-top: 70px;
}

#cardOrder h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

.order-image img {
    width: 70%;
    min-width: 240px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #ffd75d;
}


/* Footer */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 220px;
    padding: 100px 16px 20px;
    background: #292D3C;
    color: #FBFBF9;
}

footer h1 {
    color: #FBFBF9;
}

footer h4 {
    font-size: 24px;
    color: #F3CB53;
}

footer h4 {
    margin-bottom: 10px;
}

#footerSections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

#footerSections + p {
    margin: 64px 0 32px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#socialButtons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

#socialButtons a {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url('images/footer-facebook.svg') no-repeat center / contain;
}

#socialButtons #btnInstagram {
    background-image: url('images/footer-instagram.svg');
}

#socialButtons #btnX {
    background-image: url('images/footer-x.svg');
}

#socialButtons #btnPinterest {
    background-image: url('images/footer-pinterest.svg');
    background-color: #F3CB53;
}

#socialButtons #btnLinkedin {
    background-image: url('images/footer-linkedin.svg');
    background-color: #F3CB53;
}

@media screen and (max-width: 1150px) and (min-width: 451px) {
    #footerSections {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section:last-child {
        grid-row-start: 2;
        grid-column-end: 3;
        grid-column-start: 1;
        width: 100%;
    }
}

@media screen and (max-width: 1030px) {
    .snippets-container,
    .reviews-container {
        max-width: 100%;
        padding: 0;
    }

    .snippet-card {
        width: 100%;
    }

    #snippets h1 {
        margin-top: 110px;
    }

    #reviews {
        margin-top: 170px;
    }
}

@media screen and (max-width: 850px) {
    #author img {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 700px) {
    #cardOrder {
        padding: 32px;
    }

    #cardOrder p {
        font-size: 24px;
    }
}

@media screen and (max-width: 500px) {
    #hero h1 {
        margin-top: -60px;
        padding-top: 100px;
        font-size: 55px;
        font-weight: 700;
    }

    #hero .subheader {
        font-size: 34px;
    }

    .synopsis {
        margin-top: 80px;
    }

    #author img {
        max-width: 100%;
    }

    #author h2 {
        margin-top: 32px;
    }
}

@media screen and (max-width: 450px) {
    #footerSections {
        grid-template-columns: 1fr;
    }

    #contactsTitle {
        font-size: 36px;
    }
}

.ml-form-embedPermissions a,
footer a {
    color: inherit;
    text-decoration: underline;
}

.ml-form-embedPermissions p {
    margin-top: 16px;
    max-width: 350px;
}

.ml-form-formContent {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.ml-form-recaptcha {
    margin: 24px 0;
}

.ml-block-form {
    display: flex;
    flex-direction: column;
}

/* Privacy Policy */

body.privacy-policy,
body.terms {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 16px 100px;
    line-height: 1.6;
}

body.privacy-policy h3,
body.terms h3 {
    margin-top: 48px;
    font-size: 32px;
}

body.privacy-policy p,
body.terms p {
    margin-top: 16px;
}

body.privacy-policy h1 + p,
body.terms h1 + p {
    margin-top: 32px;
}

#closePrivacyPolicy {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    text-decoration: underline;
    color: #292D3C;
    cursor: pointer;
}

