@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500&display=swap');

:root {
    --color-primary: #bfae96;
    --color-secondary: #c9baa6;
    --color-text: #4a4a4a;
    --color-bg: #f9f8f6;
    --color-highlight: #8b7355;
}

body {
    padding-top: 100px; /* Offset for desktop larger header */
}

@media (max-width: 767px) {
    body {
        padding-top: 70px; /* Offset for mobile header */
    }
}

#site-header {
    background-color: #ffffff !important; 
    transition: all 0.5s ease;
    height: 100px !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 767px) {
    #site-header {
        height: 70px !important;
    }
}

#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: 70px !important;
}

#header-logo {
    opacity: 1 !important; 
    height: 100% !important;
    width: auto !important;
    transition: all 0.5s ease;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    overflow: hidden !important;
    background-color: #fdfaf7 !important;
}

#header-logo img {
    height: 100% !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain;
    display: block !important;
}

#site-header.scrolled #header-logo {
    height: 100% !important;
}

#site-header.scrolled #header-logo img {
    transform: scale(1.2);
}

#site-header nav a {
    transition: color 0.3s ease;
}

#site-header.scrolled nav a {
    color: #4a4a4a;
}

#about {
    background-color: #d1c4b2 !important;
}

#about h2, #about h3, #about p, #about span {
    color: #ffffff !important;
}

.transition-delay-200 { transition-delay: 200ms; }
.transition-delay-400 { transition-delay: 400ms; }

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
}

#menu-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

#close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 210;
    color: #333 !important;
    font-size: 14px !important;
    letter-spacing: 0.2rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
}

#close-btn:hover {
    color: var(--color-primary) !important;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

/* Site-wide Font Sizes Refresh */
body {
    font-size: 18px;
    line-height: 1.85;
}

p, span, li {
    font-size: 1.15rem; /* Larger and more premium */
}

#site-header nav a {
    font-size: 13px !important;
    letter-spacing: 0.15em;
}

.floating-cta-sp a span {
    font-size: 11px !important;
}

@media (max-width: 767px) {
    .section-header-title {
        font-size: 1.75rem !important;
        letter-spacing: 0.15em !important;
    }
    .gap-16, .gap-24, .gap-32, .gap-40 {
        gap: 2.5rem !important;
    }
    h2, .text-4xl, .text-5xl {
        font-size: 1.75rem !important;
    }
    .space-y-10 > * + * {
        margin-top: 1.5rem !important;
    }
}

/* FV */
.fv {
    min-height: auto;
    width: 100%;
}

.fv img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    .fv {
        margin-top: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .custom-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Section Transitions */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Section Headers */
.section-header-title {
    color: var(--color-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
}

.section-header-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
    margin: 15px auto 0;
}

@media (max-width: 767px) {
    .section-header-title {
        font-size: 2rem;
    }
    p, span, li {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    section:not(.fv) {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Header */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    height: 60px;
}

@media (max-width: 767px) {
    header.scrolled {
        height: 54px;
    }
}

/* Custom Scroll Buttons & CTA */
.btn-top {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .floating-cta-sp {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 60;
        display: flex;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
    }
}

@media (min-width: 768px) {
    .floating-cta-sp {
        display: none !important;
    }
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background: rgba(10,10,10,0.95);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

/* Utils */
.grayscale-filter {
    filter: grayscale(1);
    transition: filter 0.8s ease;
}

.grayscale-filter:hover {
    filter: grayscale(0);
}

/* Swiper Gallery refinements */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

@media (max-width: 767px) {
    .reveal-up { transform: translateY(30px); }
    .reveal-left { transform: translateX(-20px); }
    .reveal-right { transform: translateX(20px); }
    
    header { height: 60px; }
    .fv { padding-top: 0; }
}
