/* ========================================
   GLOBAL POLISH
======================================== */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Better focus for keyboard navigation */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #f7cee0;
    outline-offset: 4px;
}

/* Smooth image rendering */

img {
    max-width: 100%;
}

/* Premium link transition */

a {
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Better button interaction */

button {
    -webkit-tap-highlight-color: transparent;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   GOOGLE FONTS & ROOT VARIABLES
======================================== */

:root {
    /* Brand Colours */
    --primary: #4A2735;
    --primary-dark: #2B1720;
    --primary-light: #6B4050;

    --background: #F8F5F2;
    --background-alt: #EFE7E2;

    --white: #FFFFFF;
    --text-dark: #242124;
    --text-light: #6E686B;

    --gold: #B8965A;

    /* Typography */
    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Manrope", sans-serif;

    /* Layout */
    --container-width: 1280px;
    --section-padding: 30px;

    /* Border */
    --border-light: rgba(36, 33, 36, 0.12);

    /* Transitions */
    --transition: all 0.4s ease;
}

/* ========================================
   GLOBAL BUTTON POLISH
======================================== */

.btn,
.nav-cta,
.contact-whatsapp,
.floating-whatsapp {
    position: relative;

    overflow: hidden;

    isolation: isolate;
}


/* Soft shine effect */

.btn::before,
.nav-cta::before,
.contact-whatsapp::before,
.floating-whatsapp::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.65s ease;

    z-index: -1;
}

.btn:hover::before,
.nav-cta:hover::before,
.contact-whatsapp:hover::before,
.floating-whatsapp:hover::before {
    left: 150%;
}

/* ========================================
   RESET & BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--background);
    color: var(--text-dark);

    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

/* ========================================
   GLOBAL CONTAINER
======================================== */

.container {
    width: min(100% - 48px, var(--container-width));
    margin-inline: auto;
}

/* ========================================
   GLOBAL SECTIONS
======================================== */

section {
    padding: var(--section-padding) 0;
    scroll-margin-top: 100px;
}

.section-tag {
    display: inline-block;

    margin-bottom: 16px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;

    color: var(--primary);
}

.section-title {
    max-width: 750px;

    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 500;
    line-height: 0.9;

    letter-spacing: -0.03em;
}

.section-description {
    max-width: 580px;

    margin-top: 24px;

    color: var(--text-light);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 16px 28px;

    border: 1px solid transparent;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    text-transform: uppercase;

    cursor: pointer;

    transition: var(--transition);

    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #6B4050;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);

    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

@media (hover: hover) {

    .category-card:hover {
        transform: translateY(-8px);
    }

    .featured-card:hover {
        transform: translateY(-8px);
    }

}



/* ========================================
   LOADER
======================================== */

.loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    background: rgb(173, 171, 171);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.loader-content {
    width: min(80%, 380px);
    text-align: center;
}

.loader-logo {
    margin-bottom: 60px;
}

.loader-logo img {
    width: 100%;
    max-width: 320px;
    height: auto;

    display: block;
    margin: 0 auto;

    opacity: 0;

    animation: logoReveal 1s ease forwards;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Loading information */

.loading-text {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;

    color: #4A2735;
}

.progress-container {
    width: 100%;
    height: 2px;

    background: rgba(74, 39, 53, 0.15);

    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;

    background: #4A2735;

    transition: width 0.1s linear;
}


/* Loader exit */

.loader.loaded {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}