/* ============================================
   AG — Anna Gallucci | Luxury Strategy & Image
   Design System · Style Sheet
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
    --ag-font-serif: "Playfair Display", "Cormorant Garamond", serif;
    --ag-font-sans: "Montserrat", "Neue Haas Grotesk", system-ui, sans-serif;
}

/* --- GLOBAL STYLES --- */
body {
    background-color: #fcfbf9;
    color: #574b37;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- TYPOGRAPHY UTILITIES --- */
b, strong {
    font-weight: 600;
}
.font-bold {
    font-weight: 600 !important;
}

.type-ui-nav {
    font-family: var(--ag-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}
.type-eyebrow {
    font-family: var(--ag-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    font-weight: 600;
}
.type-h1 {
    font-family: var(--ag-font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.type-subtitle {
    font-family: var(--ag-font-serif);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}
.type-body {
    font-family: var(--ag-font-serif);
    font-weight: 400;
    line-height: 1.7;
}
.type-cta {
    font-family: var(--ag-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* --- LENIS SCROLL --- */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- PARALLAX & IMAGES --- */
.img-mask {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}
.parallax-img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}
video.parallax-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* --- PAGE ENTRY ANIMATION (replaces SPA page-view) --- */
.page-content {
    animation: pageEnter 0.6s ease-out both;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MARQUEE --- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.marquee-content {
    display: flex;
    animation: marquee 35s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- COMPONENTS --- */
.nav-link {
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.btn-luxury {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}
.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(87, 75, 55, 0.2);
}

/* --- HEADER STYLES --- */
.header-transparent {
    background-color: transparent;
    color: #574b37;
}
.header-scrolled {
    background-color: transparent !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    box-shadow: none !important;
}
.header-transparent .nav-link,
.header-transparent .logo-text,
.header-transparent button,
.header-scrolled .nav-link,
.header-scrolled .logo-text,
.header-scrolled button {
    color: #574b37 !important;
}
.logo-hidden { opacity: 0; pointer-events: none; }
.logo-visible { opacity: 1; pointer-events: auto; }
.nav-logo-hidden { opacity: 0; pointer-events: none; }
.nav-logo-visible { opacity: 1; pointer-events: auto; }

/* --- DIOR EFFECT (SERVICES HUB) --- */
.dior-card .dior-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.6s ease;
}
.dior-card img {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover) {
    .dior-card:hover .dior-overlay { background-color: rgba(0, 0, 0, 0); }
    .dior-card:hover img { transform: scale(1.05); }
}
@media (max-width: 768px) {
    .dior-card .dior-overlay { background-color: rgba(0, 0, 0, 0.15); }
    .dior-card { border: 0.5px solid rgba(197, 173, 132, 0.4); }
}

/* --- NEWSLETTER DRAWER --- */
.newsletter-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
}
.newsletter-drawer.open { max-height: 500px; opacity: 1; }
.toggle-icon {
    transition: transform 0.4s ease;
    display: inline-block;
}
.newsletter-drawer.open+.toggle-btn .toggle-icon { transform: rotate(45deg); }

/* --- WALL OF LOVE STYLES --- */
#wall-hero {
    background-color: #C5AD84;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 180px rgba(87, 75, 55, 0.45);
}
#wall-content-area {
    display: block;
    text-align: center;
    line-height: 2.2;
    padding-bottom: 3rem;
    max-width: 95%;
    margin: 0 auto;
}
.wall-item {
    display: inline;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 4px;
    white-space: normal;
}
.wall-item:hover {
    color: #fff !important;
    z-index: 20;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}
.wall-item.is-pending { opacity: 0.28 !important; }
.wall-separator {
    color: #1a1a1a;
    font-size: 1.2rem;
    opacity: 0.6;
    user-select: none;
    margin: 0 0.4rem;
    vertical-align: middle;
}
.wall-tooltip-card {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background: #fcfbf9;
    border: 1px solid #C5AD84;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: left;
    color: #1a1a1a;
    line-height: 1.5;
    display: block;
}
.wall-tooltip-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #fcfbf9 transparent transparent transparent;
}
@media (hover: hover) {
    .wall-item:hover .wall-tooltip-card {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}
.wall-item.is-tapped .wall-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
#mobile-sheet { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
#mobile-sheet.open { transform: translateY(0); }

/* Font Presets */
.font-opt-playfair { font-family: var(--ag-font-serif); }
.font-opt-playfair-it { font-family: var(--ag-font-serif); font-style: italic; }
.font-opt-cormorant { font-family: var(--ag-font-serif); font-style: italic; }
.font-opt-montserrat { font-family: var(--ag-font-sans); letter-spacing: 0.05em; }
.style-radio:checked+div {
    border-color: #574b37;
    background-color: #C5AD84;
    color: white;
}
.input-luxury {
    width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(87, 75, 55, 0.3);
    padding: 1rem 0;
    font-family: var(--ag-font-serif);
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.3s;
}
.input-luxury:focus { border-bottom-color: #574b37; }

/* --- ABOUT PAGE TIMELINE --- */
.about-page .about-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 3rem;
}
.about-page .about-timeline::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 0.5rem;
    bottom: 0;
    width: 1px;
    background-color: rgba(87, 75, 55, 0.15);
}
.about-page .about-timeline::after {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 0.5rem;
    height: 0;
    width: 2px;
    background-color: #C5AD84;
    transition: height 0.1s linear;
    z-index: 1;
}
.about-page .about-timeline-item {
    position: relative;
    margin-bottom: 6rem;
    opacity: 0.15;
    filter: blur(2px);
    transform: translateY(10px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, filter, transform;
}
.about-page .about-timeline-item.is-in-focus {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}
.about-page .about-timeline-item:last-child { margin-bottom: 0; }
.about-page .about-timeline-marker {
    position: absolute;
    left: -2.5rem;
    width: 1.5rem;
    text-align: center;
    top: -0.1rem;
    color: #C5AD84;
    background-color: #fcfbf9;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
    opacity: 0.3;
}
.about-page .about-timeline-item.is-in-focus .about-timeline-marker {
    transform: scale(1.4);
    color: #C5AD84;
    opacity: 1;
    text-shadow: 0 0 15px rgba(197, 173, 132, 0.6);
}

/* --- COOKIE POPUP --- */
#cookie-overlay {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
}
.cookie-modal-card {
    background-color: #f1ece6;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    padding: 3.5rem 3rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    border: 1.5px solid #C5AD84;
}
.cookie-frame {
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1.5px solid #C5AD84;
    opacity: 0.5;
    pointer-events: none;
}
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked+.slider { background-color: #C5AD84; }
input:checked+.slider:before { transform: translateX(20px); }
input:disabled+.slider { opacity: 0.5; cursor: not-allowed; }

/* --- NEWSLETTER & CONTACT MODAL --- */
#newsletter-modal,
#contact-modal {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.newsletter-card {
    background-color: #f1ece6;
    box-shadow: 0 30px 60px rgba(87, 75, 55, 0.08);
}

/* --- BOOKING SYSTEM --- */
.booking-card { transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.booking-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #C5AD84 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 0;
}
.booking-card:hover::before { opacity: 0.05; }
.booking-card.selected {
    border-color: #C5AD84;
    background-color: #f1ece6;
    transform: translateY(-5px);
}
.booking-card>div { position: relative; z-index: 1; }
.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: rgba(197, 173, 132, 0.1);
    border: 1px solid rgba(197, 173, 132, 0.2);
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfbf9;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.4s ease;
}
.calendar-day:hover:not(.disabled) { background-color: #f1ece6; color: #C5AD84; }
@media (max-width: 768px) {
    .calendar-day { font-size: 0.9rem; padding: 10px; }
    .slot-btn { font-size: 0.85rem; padding: 14px 10px; }
}
.calendar-day.selected { background-color: #C5AD84; color: #1a1a1a; }
.calendar-day.disabled { opacity: 0.2; cursor: not-allowed; }
.calendar-day.today { font-weight: 700; text-decoration: underline; }
.slot-btn {
    border: 1px solid rgba(87, 75, 55, 0.2);
    padding: 10px;
    font-size: 0.7rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.slot-btn:hover:not(.booked) {
    border-color: #574b37;
    background-color: #574b37;
    color: #fcfbf9;
}
.slot-btn.selected { background-color: #C5AD84; border-color: #C5AD84; color: #1a1a1a; }
.slot-btn.booked { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }

/* --- FAQ PAGE --- */
.faq-category-link {
    transition: all 0.4s ease;
    position: relative;
    padding-left: 0;
}
.faq-category-link.active {
    color: #C5AD84;
    padding-left: 1.5rem;
    font-weight: 500;
}
.faq-category-link.active::before {
    content: '✦';
    position: absolute;
    left: 0;
    font-size: 10px;
}
.faq-accordion-item { border-bottom: 1px solid rgba(87, 75, 55, 0.12); }
.faq-section { padding-bottom: 1rem; }
.faq-section-title {
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}
.faq-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background-color: #C5AD84;
    transition: width 0.5s ease;
}
.faq-section:hover .faq-section-title { font-style: italic; }
.faq-section:hover .faq-section-title::after { width: 100%; }
.faq-question-btn {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
@media (max-width: 768px) { .faq-question-btn { padding: 2rem 0; } }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}
.faq-accordion-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 2rem;
}
.faq-icon { transition: transform 0.4s ease; font-weight: 200; }
.faq-accordion-item.active .faq-icon { transform: rotate(45deg); }
@media (max-width: 768px) {
    .faq-sidebar { position: relative !important; top: 0 !important; margin-bottom: 3rem; }
}

/* --- TEASER COMING SOON --- */
.teaser-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(252, 251, 249, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.teaser-modal {
    background-color: #f1ece6;
    width: 100%;
    max-width: 820px;
    padding: 4.5rem 4rem;
    position: relative;
    text-align: center;
    border: 1px solid rgba(197, 173, 132, 0.4);
    box-shadow: 0 30px 60px rgba(87, 75, 55, 0.08);
}
.teaser-modal::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid #C5AD84;
    pointer-events: none;
    opacity: 0.6;
}
.teaser-form-hero {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(87, 75, 55, 0.2);
    margin-top: 3.5rem;
    padding-bottom: 0.8rem;
    transition: border-color 0.4s;
}
.teaser-form-hero:focus-within {
    border-bottom-color: #574b37;
}
.teaser-email-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: #1a1a1a;
    outline: none;
    font-size: 1.2rem;
    padding-right: 1.5rem;
}
.teaser-email-input::placeholder {
    color: rgba(87, 75, 55, 0.35);
}
.teaser-btn-link {
    font-family: var(--ag-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.82rem;
    color: #655532;
    white-space: nowrap;
    transition: opacity 0.3s;
}
.teaser-btn-link:hover {
    opacity: 0.7;
}
.teaser-privacy-disclaimer {
    font-family: var(--ag-font-serif);
    font-size: 10px;
    line-height: 1.5;
    color: #574b37;
    opacity: 0.55;
    margin-top: 1.2rem;
    text-align: left;
}
.teaser-fade-in {
    animation: teaserFadeIn 3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes teaserFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
