:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --light-grey: #f1f1f1;
    --black: #050505;
    --dark-grey: #2b2b2b;
    --medium-grey: #666666;
    --border-grey: #d4d4d4;
    --shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--black);
    background: var(--white);
    font-family: "Montserrat", sans-serif;
}

img {
    display: block;
    width: 100%;
}

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


/* Header */

.site-header {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
    padding: 48px 48px 0;
}

.logo-image {
    width: 185px;
    height: auto;
}


/* Hero */

.hero-section {
    min-height: 720px;
    background: var(--white);
}

.hero-container {
    width: 100%;
    max-width: 1440px;

    display: grid;
    grid-template-columns: 38% 62%;
    align-items: center;

    margin: 0 auto;
    padding: 0 48px 70px;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    margin: 0 0 34px;

    font-family: "DM Serif Display", serif;
    font-size: clamp(3.8rem, 3vw, 3rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.97;
    letter-spacing: -0.045em;
}

.hero-content p {
    margin: 0 0 38px;

    color: var(--dark-grey);

    font-size: 1.18rem;
    line-height: 1.45;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 250px;
    min-height: 55px;

    padding: 0 28px;

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

    border: 2px solid var(--black);
    border-radius: 7px;

    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.whatsapp-button:hover {
    color: var(--black);
    background: var(--white);

    transform: translateY(-2px);
}


/* Hero image puzzle layout */

.hero-image-area {
    position: relative;

    width: 100%;
    min-height: 590px;
}

.hero-image-wrapper{

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

    width:100%;

}

.hero-image{

    width:100%;
    max-width:720px;

    height:auto;

    display:block;

    object-fit:contain;

}

.hero-image-wrapper{

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

}

.hero-image{

    width:100%;
    max-width:720px;

    transform:translateX(40px);

}

.hero-image{

    width:100%;
    max-width:720px;

    transform:translate(40px,-25px);

}

@media(max-width:900px){

    .hero-image-wrapper{
    
        justify-content:center;
    
    }
    
    .hero-image{
    
        max-width:520px;
    
        transform:none;
    
    }
    
    }


/* Catalogue section */

.catalogue-section {
    padding: 28px 48px 72px;

    background: var(--light-grey);
}

.catalogue-heading {
    max-width: 1000px;

    margin: 0 auto 70px;

    text-align: center;
}

.section-label {
    margin: 0 0 19px;

    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalogue-heading h2 {
    margin: 0;

    color: #282828;

    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalogue-grid {
    width: 100%;
    max-width: 1160px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 78px;

    margin: 0 auto;
}

.catalogue-item {
    text-align: center;
}

.catalogue-cover-link {
    display: block;
}

.catalogue-cover {
    aspect-ratio: 0.72;

    object-fit: cover;

    background: var(--white);

    box-shadow: var(--shadow);

    transition: transform 0.25s ease;
}

.catalogue-cover:hover {
    transform: translateY(-6px);
}

.catalogue-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 22px 0 18px;

    color: var(--dark-grey);

    font-size: 0.78rem;
    text-transform: uppercase;
}

.pdf-icon {
    color: #d51327;

    font-size: 0.66rem;
    font-weight: 700;
}

.meta-dot {
    color: var(--black);
}

.catalogue-description {
    max-width: 430px;

    margin: 0 auto 30px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.93rem;
    line-height: 1.45;
}

.catalogue-actions {
    display: flex;
    justify-content: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 235px;
    min-height: 55px;

    padding: 0 22px;

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

    border: 2px solid var(--black);
    border-radius: 7px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.86rem;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.download-button:hover {
    color: var(--white);
    background: var(--black);

    transform: translateY(-2px);
}

.download-icon {
    display: inline-grid;
    place-items: center;

    width: 19px;
    height: 19px;

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

    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 0.8rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 24px;

    color: #ffffff;
    background: #000000;

    border: 2px solid #000000;
    border-radius: 6px;

    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.download-button:hover {
    color: #000000;
    background: transparent;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 28px;

    color: #111111;
    background: transparent;

    border: 1px solid #111111;
    border-radius: 4px;

    font-family: "Montserrat", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gallery-button:hover {
    color: #ffffff;
    background-color: #111111;
    transform: translateY(-2px);
}

.catalogue-actions {
    display: flex;
    gap: 12px;
}

.catalogue-actions .view-button,
.catalogue-actions .download-button {
    flex: 1;
    max-width: 180px;
}

@media (max-width: 600px) {
    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .catalogue-actions {
        display: flex;
        gap: 12px;
        width: 100%;
    }

    .catalogue-actions .view-button,
    .catalogue-actions .download-button {
        flex: 1;
        width: auto;
        min-width: 0; /* Prevents overflow */
    }
}

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

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.gallery-button,
.view-button,
.fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 26px;

    border: 1px solid #171717;
    border-radius: 3px;

    color: #171717;
    background: transparent;

    font-family: "Montserrat", sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;

    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gallery-button:hover,
.view-button:hover,
.fullscreen-button:hover {
    color: #ffffff;
    background-color: #171717;
    transform: translateY(-2px);
}


/* =========================================================
   CATALOGUE BUTTON RESET
========================================================= */

@media (max-width: 600px) {
    .catalogue-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .catalogue-actions .view-button,
    .catalogue-actions .download-button {
        width: auto;
        min-height: 42px;
        flex: 0 1 auto;

        padding: 0 14px;

        font-size: 0.68rem;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .catalogue-actions .view-button,
    .catalogue-actions .download-button {
        min-width: 135px;
    }
}


/* =========================================================
   MODAL
========================================================= */

body.flipbook-open {
    overflow: hidden;
}

.flipbook-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;

    padding: 18px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.flipbook-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;
}

.flipbook-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(18, 13, 11, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.flipbook-dialog {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    width: min(1380px, 100%);
    height: min(920px, calc(100vh - 36px));

    overflow: hidden;

    background: #f3efe9;
    border-radius: 8px;

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);

    transform: translateY(18px) scale(0.985);

    transition: transform 0.25s ease;
}

.flipbook-modal.is-open .flipbook-dialog {
    transform: translateY(0) scale(1);
}

.flipbook-page {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.flipbook-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    image-rendering: auto;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* =========================================================
   MODAL HEADER
========================================================= */

.flipbook-modal-header {
    position: relative;
    z-index: 20;

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

    min-height: 92px;
    padding: 18px 28px;

    background: #f3efe9;
    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.flipbook-modal-heading {
    text-align: left;
}

.flipbook-modal-heading .section-label {
    margin: 0 0 4px;
}

.flipbook-modal-heading h2 {
    margin: 0;

    font-family: "DM Serif Display", serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
}

.flipbook-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    padding: 0;

    color: #171717;
    background: transparent;

    border: 1px solid rgba(23, 23, 23, 0.4);
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.flipbook-close:hover {
    color: #ffffff;
    background-color: #171717;
    transform: rotate(90deg);
}


/* =========================================================
   FLIPBOOK VIEWER
========================================================= */

.flipbook-viewer {
    position: relative;

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

    min-height: 0;
    flex: 1;

    padding: 24px 28px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.72),
            rgba(220, 211, 201, 0.4)
        );
}

.flipbook-shell {
    position: relative;

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

    width: min(1100px, calc(100vw - 220px));
    height: 100%;
    max-height: 720px;

    overflow: visible;
}

.flipbook {
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    backface-visibility: hidden;
    transform: translateZ(0);

    transition: opacity 0.2s ease;
}

.flipbook.is-ready {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   LOADING STATE
========================================================= */

.flipbook-loading {
    position: absolute;
    inset: 0;
    z-index: 30;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    color: #655e58;

    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flipbook-loading.is-hidden {
    display: none;
}

.flipbook-spinner {
    width: 36px;
    height: 36px;

    border: 2px solid rgba(23, 23, 23, 0.18);
    border-top-color: #171717;
    border-radius: 50%;

    animation: flipbook-spin 0.8s linear infinite;
}

@keyframes flipbook-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   NAVIGATION CONTROLS
========================================================= */

.flipbook-control {
    position: relative;
    z-index: 40;

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

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    padding: 0;

    color: #ffffff;
    background: #171717;

    border: 1px solid #171717;
    border-radius: 50%;

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

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.flipbook-control:hover:not(:disabled) {
    color: #171717;
    background: #ffffff;
    transform: scale(1.06);
}

.flipbook-control:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}


/* =========================================================
   MODAL FOOTER
========================================================= */

.flipbook-modal-footer {
    position: relative;
    z-index: 20;

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

    min-height: 84px;
    padding: 14px 28px;

    background: #f3efe9;
    border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.page-information {
    font-family: "Montserrat", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.page-information strong {
    font-weight: 700;
}

.flipbook-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fullscreen-button,
.flipbook-modal-footer .download-button {
    min-height: 46px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .flipbook-modal {
        padding: 10px;
    }

    .flipbook-dialog {
        height: calc(100vh - 20px);
    }

    .flipbook-viewer {
        padding: 18px 12px;
    }

    .flipbook-shell {
        width: min(76vw, 560px);
        max-height: 680px;
    }

    .flipbook-control {
        position: absolute;
        top: 50%;

        transform: translateY(-50%);
    }

    .flipbook-control:hover:not(:disabled) {
        transform: translateY(-50%) scale(1.06);
    }

    .flipbook-previous {
        left: 14px;
    }

    .flipbook-next {
        right: 14px;
    }
}


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

@media (max-width: 600px) {
    .hero-buttons,
    .catalogue-actions {
        align-items: stretch;
    }

    .hero-buttons a,
    .catalogue-actions a,
    .catalogue-actions button {
        width: 100%;
    }

    .flipbook-modal {
        padding: 0;
    }

    .flipbook-dialog {
        width: 100%;
        height: 100%;
        max-height: none;

        border-radius: 0;
    }

    .flipbook-modal-header {
        min-height: 72px;
        padding: 12px 14px;
    }

    .flipbook-modal-heading .section-label {
        display: none;
    }

    .flipbook-modal-heading h2 {
        font-size: 1.55rem;
    }

    .flipbook-close {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .flipbook-viewer {
        padding: 10px 4px;
    }

    .flipbook-shell {
        width: min(94vw, 480px);
        max-height: none;
    }

    .flipbook-control {
        width: 40px;
        height: 40px;
        flex-basis: 40px;

        background: rgba(23, 23, 23, 0.85);
    }

    .flipbook-previous {
        left: 6px;
    }

    .flipbook-next {
        right: 6px;
    }

    .flipbook-modal-footer {
        min-height: 72px;
        padding: 10px 14px;
    }

    .flipbook-footer-actions {
        gap: 8px;
    }

    .fullscreen-button {
        display: none;
    }

    .flipbook-modal-footer .download-button {
        min-height: 42px;
        padding: 0 14px;

        font-size: 0.68rem;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    .flipbook-modal,
    .flipbook-dialog,
    .flipbook,
    .flipbook-close,
    .flipbook-control {
        transition: none;
    }

    .flipbook-spinner {
        animation: none;
    }
}

/* Footer */

.site-footer {
    padding: 47px 30px 34px;

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

    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--white);

    font-size: 0.84rem;
    letter-spacing: 0.12em;

    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-icon {
    font-size: 1rem;
}

.footer-divider {
    width: 1px;
    height: 20px;

    background: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin: 28px 0 0;

    color: #aaa;

    font-size: 0.68rem;
    letter-spacing: 0.09em;
}


/* Tablet */

@media (max-width: 1024px) {

    .hero-container {
        grid-template-columns: 40% 60%;

        padding-inline: 32px;
    }

    .site-header {
        padding-inline: 32px;
    }

    .hero-image-area {
        min-height: 520px;
    }

    .shape-bottom {
        height: 220px;
    }

    .catalogue-grid {
        gap: 40px;
    }

}


/* Mobile */

@media (max-width: 760px) {

    .site-header {
        padding: 28px 22px 0;
    }

    .logo-image {
        width: 150px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 45px;

        padding: 70px 22px 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(3.5rem, 16vw, 5.3rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image-area {
        min-height: 440px;
    }

    .shape-top {
        left: 28%;

        width: 55%;
        height: 155px;
    }

    .shape-left {
        top: 100px;
        left: 3%;

        width: 34%;
        height: 190px;
    }

    .shape-right {
        top: 103px;

        width: 34%;
        height: 205px;
    }

    .shape-bottom {
        top: 255px;
        left: 5%;

        width: 78%;
        height: 175px;
    }

    .catalogue-section {
        padding: 52px 22px 60px;
    }

    .catalogue-heading {
        margin-bottom: 45px;
    }

    .section-label {
        font-size: 0.83rem;
    }

    .catalogue-heading h2 {
        font-size: 2.3rem;
    }

    .catalogue-grid {
        grid-template-columns: 1fr;
        gap: 70px;

        max-width: 500px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-divider {
        display: none;
    }

}


/* Smaller phones */

@media (max-width: 420px) {

    .whatsapp-button {
        width: 100%;
    }

    .hero-image-area {
        min-height: 360px;
    }

    .shape-top {
        height: 125px;
    }

    .shape-left {
        top: 80px;
        height: 160px;
    }

    .shape-right {
        top: 82px;
        height: 168px;
    }

    .shape-bottom {
        top: 210px;
        height: 140px;
    }

    .download-button {
        width: 100%;
    }

}