/* ============================================================
   SAMAY — Hair & Spa
   Palette sampled directly from the "nero oro" logo artwork:
     ground  #181717
     gold    #8F6D4B (deep) -> #C39C6C (mid) -> #EAC793 (champagne)
   Typography mirrors the logo lockup: a high-contrast Didone serif
   for the wordmark voice, a geometric sans for the tracked-out
   "HAIR & SPA" voice.
   ============================================================ */

/* Self-hosted variable fonts — CSP is `font-src 'self' data:`,
   so a Google Fonts CDN link would be blocked. */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('/assets/fonts/jost-latin.woff2') format('woff2');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- Dark ground (logo's native habitat) --- */
    --ink: #100F0E;
    --ink-1: #171514;
    --ink-2: #201D1B;
    --ink-line: #2E2925;

    /* --- Light ground: warm ivory, never clinical white --- */
    --ivory: #F7F4EF;
    --ivory-1: #FCFAF7;
    --ivory-2: #EFEAE1;
    --ivory-line: #DFD8CB;

    /* --- Gold --- */
    --gold: #C9A46A;          /* on dark */
    --gold-deep: #8F6D4B;
    --gold-light: #EAC793;
    --gold-ink: #7E5C31;      /* on light — 5.3:1 on ivory, text-safe */
    --gold-sheen: linear-gradient(100deg, #8F6D4B 0%, #EAC793 46%, #C39C6C 100%);

    /* --- Text --- */
    --on-dark: #F4F1EC;
    --on-dark-muted: #A8A099;
    --on-light: #1A1817;
    --on-light-muted: #6C645B;

    /* --- Legacy token names remapped onto the new palette, so every
           existing rule inherits the rebrand without being rewritten. --- */
    --bg: var(--ivory);
    --fg: var(--on-light);
    --muted: var(--on-light-muted);
    --accent: var(--gold-ink);
    --accent-light: #F1E8D9;
    --accent-dark: #5E4526;

    --primary-color: #1A1817;
    --primary-dark: #100F0E;
    --primary-light: #3A3532;
    --secondary-color: var(--gold-ink);
    --text-primary: var(--fg);
    --text-secondary: var(--muted);
    --text-light: #FCFAF7;
    --background-primary: var(--bg);
    --background-secondary: var(--ivory-2);
    --background-accent: var(--ivory-1);
    --border-color: var(--ivory-line);
    --shadow-light: rgba(26, 20, 12, 0.08);
    --shadow-medium: rgba(26, 20, 12, 0.14);

    /* Typography */
    --font-family-primary: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --tracking-label: 0.22em;   /* the logo's "HAIR & SPA" treatment */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.6rem;
    --font-size-3xl: clamp(2rem, 4vw, 2.9rem);
    --font-size-4xl: clamp(2.6rem, 7vw, 4.4rem);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius — squared off; rounded corners read cheap here */
    --radius-sm: 1px;
    --radius-md: 2px;
    --radius-lg: 2px;
    --radius-xl: 3px;

    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar,
main,
footer {
    position: relative;
    z-index: 1;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    border: 2px solid transparent;
    pointer-events: none;
}

.skip-link:focus {
    top: 6px;
    border: 2px solid var(--text-light);
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
.btn:focus,
.nav-menu a:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(126, 92, 49, 0.30);
}

/* Ensure focus is visible on white backgrounds */
.btn-secondary:focus {
    outline: 2px solid var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(126, 92, 49, 0.30);
}

/* Enhanced accessibility for calendar elements */
.time-slot:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(126, 92, 49, 0.40);
    z-index: 10;
    position: relative;
}

.time-slot.selected:focus {
    outline: 3px solid var(--primary-dark);
    box-shadow: 0 0 0 6px rgba(230, 81, 0, 0.4);
}

.calendar-nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(126, 92, 49, 0.35);
    background-color: rgba(126, 92, 49, 0.10);
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Improved color contrast for unavailable slots */
.time-slot.unavailable {
    background: #F4F1EA;
    color: #6C645B; /* Better contrast than secondary text */
    border: 1px solid #E3DCD0;
}

.time-slot.dst-unavailable {
    background: #fff3cd;
    color: #856404;
    border: 1px dashed #ffc107;
}

/* Form error states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-error {
    color: #dc3545;
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

/* Enhanced keyboard navigation indicators */
.booking-form:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

.appointment-actions button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(126, 92, 49, 0.30);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-slot.available {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }

    .time-slot.selected {
        border: 3px solid #000;
        background: #ff0;
        color: #000;
    }

    .time-slot.unavailable {
        border: 2px solid #666;
        background: #ccc;
        color: #000;
    }

    .form-group input.error,
    .form-group select.error {
        border: 3px solid #f00;
        background: #ffe6e6;
    }
}

/* Typography — Didone serif for voice, geometric sans for utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.12;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

h1 { font-size: var(--font-size-4xl); font-weight: 300; }
h2 { font-size: var(--font-size-3xl); font-weight: 400; }
h3 { font-size: var(--font-size-2xl); font-weight: 500; }
h4 { font-size: var(--font-size-xl); font-weight: 500; }
h5 { font-size: var(--font-size-lg); font-weight: 600; }
h6 { font-size: var(--font-size-base); font-weight: 600; }

/* Small tracked-out caps label, straight off the logo's tagline */
.eyebrow {
    display: block;
    font-family: var(--font-family-primary);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--gold-ink);
    margin-bottom: var(--spacing-md);
}

.on-ink .eyebrow { color: var(--gold); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.75;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons — squared, tracked-out, gold. No rounded pills. */
.btn {
    display: inline-block;
    padding: 17px 38px;
    border: none;
    border-radius: 1px;
    font-family: var(--font-family-primary);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.4s ease, color 0.4s ease,
                border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1.4;
    box-shadow: none;
}

.btn-primary {
    background: var(--gold-sheen);
    background-size: 180% 100%;
    background-position: 0% 0;
    color: #17130D;
    position: relative;
    overflow: hidden;
    transition: background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary::before { content: none; }

.btn-primary:hover, .btn-primary:focus {
    background-position: 100% 0;
    color: #17130D;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Hairline outline button */
.btn-secondary {
    background-color: transparent;
    color: var(--gold-ink);
    border: 1px solid rgba(126, 92, 49, 0.45);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: transparent;
    color: var(--on-light);
    border-color: var(--gold-ink);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Outline button sitting on a dark ground */
.on-ink .btn-secondary,
.hero .btn-secondary {
    color: var(--gold);
    border-color: rgba(201, 164, 106, 0.4);
}

.on-ink .btn-secondary:hover,
.on-ink .btn-secondary:focus,
.hero .btn-secondary:hover,
.hero .btn-secondary:focus {
    color: var(--on-dark);
    border-color: var(--gold);
    background-color: rgba(201, 164, 106, 0.07);
}

/* Navigation — dark bar; the wordmark is white, so it needs an ink ground */
.navbar {
    background-color: rgba(16, 15, 14, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: none;
    border-bottom: 1px solid rgba(201, 164, 106, 0.14);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(16, 15, 14, 0.94);
    border-bottom-color: rgba(201, 164, 106, 0.26);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 58px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand a:hover { text-decoration: none; }

.nav-logo-img {
    height: 34px;
    width: auto;
    vertical-align: middle;
    transition: height 0.4s ease, opacity 0.4s ease;
}

.nav-brand a:hover .nav-logo-img { opacity: 0.78; }

.navbar.scrolled .nav-logo-img {
    height: 28px;
}

.nav-logo {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: var(--spacing-lg);
}

.nav-menu a {
    color: rgba(244, 241, 236, 0.72);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0;
    transition: color 0.35s ease;
    position: relative;
    outline: none;
}

/* No underline bar and no dot on hover — the colour shift alone carries it. */
.nav-menu a::after { content: none; }

.nav-menu a:hover {
    color: var(--gold-light);
    text-decoration: none;
}

/* Focus-visible: only show for keyboard navigation, not clicks */
.nav-menu a:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
    border-radius: 0;
}

.nav-menu a:focus:not(:focus-visible) {
    outline: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    width: 24px;
    height: 1px;
    background-color: var(--gold);
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section — full ink, the logo's own habitat */
.hero {
    padding: calc(70px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: var(--ink);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
}

/* A single slow warm bloom, low and off-centre. Replaces the green glow. */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 106, 0.10) 0%, rgba(201, 164, 106, 0.03) 45%, transparent 72%);
    pointer-events: none;
    animation: floatGlow 16s ease-in-out infinite;
}

/* Fine grain, so the large flat black reads as a surface rather than a void */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 40px) scale(1.12); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 560px;
    position: relative;
    z-index: 1;
}

/* The logo lockup itself — no crop, no circle mask */
.hero-logo {
    width: min(430px, 100%);
    height: auto;
    margin: 0 0 var(--spacing-xl);
    border-radius: 0;
    object-fit: contain;
    display: block;
}

/* The lockup already says SAMAY, so the <h1> stays for SEO/screen
   readers without repeating it on screen. */
.hero-content h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 300;
    line-height: 1.25;
    color: var(--on-dark);
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: var(--font-size-base);
    font-weight: 300;
    color: var(--on-dark-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.85;
    max-width: 46ch;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image picture {
    width: 100%;
    max-width: 520px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    position: relative;
}

/* Warm the photo toward the brand and hold it with a gold hairline */
.hero-image picture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(201, 164, 106, 0.28);
    background: linear-gradient(190deg, rgba(16, 15, 14, 0) 45%, rgba(16, 15, 14, 0.45) 100%);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.92) contrast(1.02) brightness(0.97);
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) 0;
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.services h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 1px;
    background: var(--gold-sheen);
    border-radius: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    background-color: var(--ivory-1);
    padding: 0;
    border-radius: 2px;
    box-shadow: none;
    text-align: center;
    transition: box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.6s ease;
    overflow: hidden;
    border: 1px solid var(--ivory-line);
    position: relative;
}

.service-card:hover {
    box-shadow: 0 26px 60px rgba(26, 20, 12, 0.10);
    border-color: rgba(126, 92, 49, 0.32);
}

/* 3D tilt gloss highlight */
.service-card .card-gloss {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.service-card:hover .card-gloss {
    opacity: 1;
}

.service-image {
    width: 100%;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    overflow: hidden;
    position: relative;
}

.service-image picture {
    width: 100%;
    display: block;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    margin-bottom: 0;
}

/* I Nostri Prodotti Section */
.prodotti {
    padding: var(--spacing-3xl) 0;
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.prodotti .eyebrow {
    text-align: center;
}

.prodotti h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.prodotti h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 1px;
    background: var(--gold-sheen);
    border-radius: 0;
}

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* Each brand is an editorial panel: tracked category label, the name in the
   display serif, description, then a link pinned to the bottom. */
.prodotto-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--ivory-1);
    border: 1px solid var(--ivory-line);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

/* --- The plate ---
   Ink panel carrying the category and the brand name. It occupies exactly the
   space a product photo would, so when official brand assets (or the salon's
   own photos) arrive, an <img class="prodotto-img"> drops straight in behind
   this type without touching the layout. Deliberately typographic for now:
   brand product photography is copyright of the brands, and stock shots of
   branded products are usually licensed editorial-only. */
.prodotto-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 190px;
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-lg);
    background: var(--ink);
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 164, 106, 0.22);
}

/* Warm bloom, the same gesture as the hero, drifting slightly on hover */
.prodotto-plate::after {
    content: '';
    position: absolute;
    top: -55%;
    right: -30%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 106, 0.17) 0%, rgba(201, 164, 106, 0.04) 45%, transparent 70%);
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.prodotto-card:hover .prodotto-plate::after {
    transform: translate(-24px, 22px) scale(1.12);
}

/* Ready for a real photo: fills the plate, darkened so the type stays legible */
.prodotto-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) brightness(0.6);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.prodotto-card:hover .prodotto-img {
    transform: scale(1.04);
}

.prodotto-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--spacing-xl);
}

/* Gold hairline sweeps across the top on hover — same gesture as the
   service cards, so the whole page shares one hover language. */
.prodotto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-sheen);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.prodotto-card:hover {
    border-color: rgba(126, 92, 49, 0.3);
    box-shadow: 0 22px 50px rgba(26, 20, 12, 0.09);
}

.prodotto-card:hover::before {
    transform: scaleX(1);
}

/* sits on the ink plate, so it takes the light gold */
.prodotto-cat {
    position: relative;
    display: block;
    font-family: var(--font-family-primary);
    font-size: 0.66rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.prodotto-name {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--on-dark);
    margin-bottom: 0;
    /* Cormorant defaults to old-style figures, which made "K18" sit at two
       different heights and dropped iam4u's "4" below the baseline. Brand
       names need lining figures. */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1, "onum" 0;
}

/* short hairline under the brand name */
.prodotto-name::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin-top: var(--spacing-md);
    background: rgba(201, 164, 106, 0.55);
}

.prodotto-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 var(--spacing-xl);
    /* absorbs the height difference so all three links sit on one line */
    flex: 1 0 auto;
}

.prodotto-link {
    align-self: flex-start;
    font-family: var(--font-family-primary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-ink);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(126, 92, 49, 0.32);
    transition: color 0.35s ease, border-color 0.35s ease;
}

.prodotto-link:hover,
.prodotto-link:focus {
    color: var(--on-light);
    border-bottom-color: var(--gold-ink);
    text-decoration: none;
}

/* Contacts Section */
.contacts {
    padding: var(--spacing-3xl) 0;
    background-color: var(--ivory);
}

.contacts h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.contacts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 1px;
    background: var(--gold-sheen);
    border-radius: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-2xl);
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--accent);
}

.contact-details h4 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
    color: var(--accent-dark);
}

.contact-details address {
    font-style: normal;
    line-height: 1.5;
}

/* Form Styles */
.contact-form {
    background-color: var(--background-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ivory-line);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    font-weight: 300;
    color: var(--on-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--ivory-1);
}

#booking-barber,
#booking-barber option {
    text-align: left;
}

#booking-barber {
    text-align-last: left;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.form-help {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.form-error {
    font-size: var(--font-size-sm);
    color: #d32f2f;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-error.show {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
    background-color: #ffeaea;
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2);
}

.form-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid #4caf50;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* Footer — the closing ink bookend to the hero */
.footer {
    background-color: var(--ink);
    color: var(--on-dark-muted);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid rgba(201, 164, 106, 0.22);
    font-weight: 300;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
}

.footer h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: var(--on-dark);
    margin-bottom: var(--spacing-sm);
}

.footer h4 {
    font-family: var(--font-family-primary);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: var(--on-dark-muted);
    transition: color 0.35s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--gold-light);
    text-decoration: none;
}

/* Hairline rule above the closing legal line */
.footer-bottom,
.footer-info > p:last-of-type {
    color: rgba(168, 160, 153, 0.75);
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Temporarily force JPG images on mobile for debugging */
    .service-image picture source[type="image/webp"] {
        display: none;
    }

    /* Disable 3D tilt on mobile */
    .service-card {
        transform-style: flat;
        will-change: auto;
    }

    /* Drop-down panel is ink, not ivory — the links are near-white, so a
       light panel rendered them invisible. */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(16, 15, 14, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(201, 164, 106, 0.18);
        border-bottom: 1px solid rgba(201, 164, 106, 0.18);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    /* follow the navbar when it shrinks on scroll, so there's no gap */
    .navbar.scrolled .nav-menu {
        top: 58px;
    }

    .nav-menu li {
        margin: 0;
    }

    /* full-width rows with a comfortable tap target */
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px var(--spacing-md);
        color: rgba(244, 241, 236, 0.86);
        font-size: 0.78rem;
        letter-spacing: 0.2em;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: var(--gold-light);
        background-color: rgba(201, 164, 106, 0.07);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-content,
    .hero-image {
        width: 100%;
        min-width: 0;
    }

    .hero-logo {
        width: 100%;
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle,
    .hero-description {
        overflow-wrap: anywhere;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .prodotti-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .prodotti-grid {
        grid-template-columns: 1fr;
    }
}

/* Prenota (Booking) Section Styles */
.prenota {
    padding: var(--spacing-3xl) 0;
    background: var(--ivory-1);
    text-align: center;
}

.prenota h2 {
    position: relative;
    padding-bottom: var(--spacing-md);
}

.prenota h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 1px;
    background: var(--gold-sheen);
    border-radius: 0;
}

.prenota .section-subtitle {
    margin-bottom: var(--spacing-xl);
}

/* Legend removed — colors are self-explanatory with simplified 3-state system */

/* Booking disclaimer */
.booking-disclaimer {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
}

.booking-disclaimer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.booking-disclaimer a:hover {
    text-decoration: underline;
}

.booking-paused {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.booking-paused h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.booking-paused p {
    margin: 0;
    color: var(--text-secondary);
}

.booking-paused a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Booking Calendar Container */
.booking-calendar {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px var(--shadow-light);
    overflow: hidden;
}

/* Calendar Header with Navigation */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--primary-color);
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.calendar-week-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: var(--font-size-xl);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.calendar-nav-btn:focus-visible {
    border-color: var(--text-light);
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.calendar-nav-btn:active {
    transform: translateY(0);
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-nav-btn:disabled:hover {
    transform: none;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, minmax(80px, 1fr));
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    min-width: fit-content;
}

/* Calendar grid container for horizontal scroll on mobile */
.booking-calendar {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.calendar-row {
    display: contents;
}

.calendar-header-row {
    background: var(--background-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

/* Time Header and Day Headers */
.time-header,
.day-header {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.time-header {
    border-right: 1px solid var(--border-color);
    background: var(--background-primary);
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    border-right: 1px solid var(--border-color);
}

.day-name {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Calendar Slots Container */
.calendar-slots {
    display: contents;
}

/* Time Slot Rows */
.time-slot-row {
    display: contents;
}

.time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--background-primary);
    min-height: 60px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--background-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.time-slot:hover:not(.unavailable):not(.dst-unavailable):not(.booked) {
    background: var(--background-accent);
    transform: scale(1.02);
}

.time-slot:focus-visible,
.time-slot:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
    z-index: 10;
}

/* ===== SLOT STATES — 3-state system: bookable / occupied / disabled ===== */

.time-slot.available {
    background: #FBF6EC;
    border: 1px solid #D6C09A;
    color: #7E5C31;
}

.time-slot.available:hover {
    background: #F4E9D5;
    border-color: #C9A46A;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(126, 92, 49, 0.16);
    z-index: 5;
}

.time-slot.availability-loading,
.time-slot.availability-error {
    background: #F4F1EA;
    color: #8E877E;
    border: 1px solid #E3DCD0;
    cursor: wait;
    opacity: 0.7;
}

.time-slot.availability-error {
    cursor: not-allowed;
    opacity: 0.55;
}

.time-slot.availability-loading:hover,
.time-slot.availability-error:hover {
    background: #F4F1EA;
    transform: none;
    box-shadow: none;
}

.time-slot.selected {
    background: #1A1817 !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 0 0 1px rgba(201, 164, 106, 0.5), 0 8px 22px rgba(26, 20, 12, 0.28) !important;
    transform: scale(1.04) !important;
    z-index: 10 !important;
}

/* Unavailable — past slots, outside booking window */
.time-slot.unavailable {
    background: #F4F1EA;
    color: #9A938A;
    cursor: not-allowed;
    opacity: 0.5;
    border-color: #E3DCD0;
}

.time-slot.unavailable:hover {
    transform: none;
    background: #F4F1EA;
}

/* Occupied — both Carmen & Maira booked (covers booked + fully-booked) */
.time-slot.booked,
.time-slot.fully-booked {
    background: #EDE8DE;
    color: #8E877E;
    cursor: not-allowed;
    border: 1px solid #E3DCD0;
    opacity: 0.7;
}

.time-slot.booked:hover,
.time-slot.fully-booked:hover {
    transform: none;
    background: #EDE8DE;
}

/* Partial — 1 barber free. Visually same as available (still bookable) */
.time-slot.partial {
    background: #FBF6EC;
    color: #7E5C31;
    border: 1px solid #D6C09A;
    cursor: pointer;
}

.time-slot.partial:hover {
    background: #F4E9D5;
    border-color: #C9A46A;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(126, 92, 49, 0.16);
}

/* Colore-full — Colore slots taken, barbers still free. Visually same as available */
.time-slot.colore-full {
    background: #FBF6EC;
    color: #7E5C31;
    border: 1px solid #D6C09A;
    cursor: pointer;
}

.time-slot.colore-full:hover {
    background: #F4E9D5;
    border-color: #C9A46A;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(126, 92, 49, 0.16);
}

/* Closed — shop closed or admin exception */
.time-slot.chiuso {
    background: #F4F1EA;
    color: #9A938A;
    cursor: not-allowed;
    border: 1px solid #E3DCD0;
    opacity: 0.55;
}

.time-slot.chiuso:hover {
    transform: none;
    background: #F4F1EA;
}

/* Lunch break */
.time-slot.pausa {
    background: #F4F1EA;
    color: #9A938A;
    cursor: not-allowed;
    border: 1px solid #E3DCD0;
    opacity: 0.55;
}

.time-slot.pausa:hover {
    transform: none;
    background: #F4F1EA;
}

/* DST transition — treat as disabled */
.time-slot.dst-unavailable {
    background: #F4F1EA;
    color: #9A938A;
    cursor: not-allowed;
    opacity: 0.5;
    border: 1px solid #E3DCD0;
}

.time-slot.dst-unavailable:hover {
    transform: none;
    background: #F4F1EA;
}

.time-slot-content {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Selected slot checkmark */
.time-slot.selected .time-slot-content::before {
    content: "✓ " !important;
    font-weight: bold !important;
    color: var(--gold-light) !important;
    display: inline !important;
}

/* Appointment Selection */
.appointment-selection {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--background-accent);
    border-top: 1px solid var(--border-color);
}

.selected-info {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.selected-info h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.selected-details {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.appointment-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

/* Booking Form */
.booking-form {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
}

.booking-form h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.booking-summary {
    background: var(--background-accent);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.booking-summary h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.summary-details p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.booking-notice {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.booking-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.booking-notice a:hover {
    color: var(--secondary-color);
}

/* Responsive Design for Calendar */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 70px repeat(5, minmax(70px, 1fr));
        font-size: var(--font-size-sm);
        min-width: fit-content;
    }

    .calendar-header {
        padding: var(--spacing-lg) var(--spacing-md);
        background: var(--primary-color) !important;
    }

    .calendar-week-title {
        font-size: var(--font-size-lg);
    }

    .calendar-nav-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .time-header,
    .day-header {
        padding: var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    .time-slot {
        min-height: 50px;
        padding: var(--spacing-xs);
    }

    .time-slot-content {
        font-size: var(--font-size-xs);
    }

    .time-label {
        min-height: 50px;
        font-size: var(--font-size-xs);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .appointment-actions {
        flex-direction: column;
        align-items: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .appointment-selection,
    .booking-form {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .booking-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--background-secondary);
        display: block;
        width: 100%;
        max-width: 100vw;
    }

    .booking-calendar > .calendar-grid {
        width: 460px;
        min-width: 460px;
    }

    .booking-calendar::-webkit-scrollbar { height: 4px; }
    .booking-calendar::-webkit-scrollbar-track { background: var(--background-secondary); border-radius: 2px; }
    .booking-calendar::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 2px; }

    .calendar-grid {
        grid-template-columns: 60px repeat(5, 80px) !important;
        font-size: var(--font-size-xs);
        min-width: 460px;
        width: 460px;
        display: grid !important;
        flex-shrink: 0;
    }

    /* Chrome compliance */
    .prenota .booking-calendar .calendar-grid {
        grid-template-columns: 60px 80px 80px 80px 80px 80px !important;
        min-width: 460px;
        width: 460px;
    }

    .calendar-grid .time-slot,
    .calendar-grid .day-header {
        min-width: 80px;
        max-width: 80px;
        width: 80px;
        box-sizing: border-box;
    }

    .calendar-grid .time-label,
    .calendar-grid .time-header {
        min-width: 60px;
        max-width: 60px;
        width: 60px;
        box-sizing: border-box;
    }

    .calendar-header {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-md);
        background: var(--primary-color) !important;
        width: 460px;
        min-width: 460px;
    }

    .calendar-week-title {
        font-size: var(--font-size-base);
        order: -1;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-base);
    }

    .day-header {
        min-width: 80px;
        width: 80px;
        position: sticky;
        top: 0;
        background: var(--background-secondary);
        z-index: 3;
        flex-shrink: 0;
        border-right: 1px solid var(--border-color);
    }

    .time-slot {
        min-height: 45px;
        min-width: 80px;
        width: 80px;
        flex-shrink: 0;
    }

    /* Occupied slots on mobile — ensure they override available styles */
    .time-slot.booked,
    .time-slot.fully-booked {
        background: #EDE8DE !important;
        color: #8E877E !important;
        cursor: not-allowed !important;
        border: 1px solid #E3DCD0 !important;
        opacity: 0.7 !important;
    }

    .time-slot.booked:hover,
    .time-slot.fully-booked:hover {
        transform: none !important;
        background: #EDE8DE !important;
    }

    .time-label {
        min-height: 45px;
        min-width: 60px;
        width: 60px;
        position: sticky;
        left: 0;
        background: var(--background-primary);
        z-index: 2;
        border-right: 2px solid var(--border-color);
        flex-shrink: 0;
    }

    .time-header {
        position: sticky;
        left: 0;
        top: 0;
        background: var(--background-primary);
        z-index: 4;
        border-right: 2px solid var(--border-color);
        min-width: 60px;
        width: 60px;
    }

    .time-slot:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: -2px;
        z-index: 5;
    }

    /* Subtle scroll indicator — no verbose text */
    .booking-calendar::after {
        content: "";
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
        border-radius: 2px;
        margin-top: var(--spacing-xs);
        opacity: 0.4;
    }

    .time-slot:focus {
        z-index: 10;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .time-slot {
        border: 2px solid;
    }

    .time-slot.available {
        border-color: #000;
        background: #fff;
    }

    .time-slot.selected {
        border-color: #000;
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .time-slot,
    .calendar-nav-btn {
        transition: none;
    }

    .time-slot:hover,
    .time-slot.selected {
        transform: none;
    }
}

/* Subtle fade-in animation for content sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance animation */
.hero-content {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-image {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Scroll-triggered reveal: hidden by default, visible when observed */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in from left variant */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Heading underline grows on reveal */
h2.reveal::after {
    width: 0 !important;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

h2.reveal.visible::after {
    width: 84px !important;
}

/* Stagger children inside a reveal container */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* Stagger contact items sliding in from left */
.contact-item.reveal-left:nth-child(1) { transition-delay: 0.05s; }
.contact-item.reveal-left:nth-child(2) { transition-delay: 0.15s; }
.contact-item.reveal-left:nth-child(3) { transition-delay: 0.25s; }

/* Scroll indicator in hero */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2.2s ease-in-out infinite;
    opacity: 0.45;
    z-index: 1;
    cursor: pointer;
}

/* Sits on the ink hero, so it takes the light gold rather than the
   on-light bronze */
.scroll-indicator span {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
    50% { transform: translateX(-50%) translateY(-10px); opacity: 0.8; }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress {
        display: none !important;
    }
}

/* =========================================
   ADVANCED ANIMATIONS & EFFECTS
   ========================================= */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: progressGradient 6s linear infinite;
    z-index: 200;
    pointer-events: none;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(201, 164, 106, 0.4);
}

@keyframes progressGradient {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* --- Section dividers: the logo's own swoosh, used as an ornament ---
   (replaces the old green-tinted wave SVGs) */
.wave-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) var(--spacing-md);
    margin: 0;
    overflow: hidden;
    line-height: 0;
}

/* the old inline <svg> waves are retired */
.wave-divider svg { display: none; }

.wave-divider::before,
.wave-divider::after {
    content: '';
    height: 1px;
    width: min(160px, 18vw);
    background: linear-gradient(90deg, transparent, rgba(126, 92, 49, 0.32));
}

.wave-divider::after {
    background: linear-gradient(90deg, rgba(126, 92, 49, 0.32), transparent);
}

/* the swoosh mark itself */
.wave-divider .divider-mark {
    display: block;
    width: min(210px, 34vw);
    height: auto;
    opacity: 0.75;
    flex: none;
}

.wave-divider--flip {
    transform: none;
}

/* On an ink ground the hairlines lift to gold */
.wave-divider--ink {
    background: var(--ink);
}

.wave-divider--ink::before {
    background: linear-gradient(90deg, transparent, rgba(201, 164, 106, 0.4));
}

.wave-divider--ink::after {
    background: linear-gradient(90deg, rgba(201, 164, 106, 0.4), transparent);
}

/* --- Split-Text Letter Reveal --- */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-40deg);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.split-text .char-space {
    display: inline-block;
    width: 0.3em;
}

/* --- Typewriter Cursor --- */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: typewriterBlink 0.8s steps(2) infinite;
}

@keyframes typewriterBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Button Ripple Effect --- */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btnRipple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btnRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Floating Decorative Shapes --- */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: var(--accent);
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation: floatShape1 18s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 12%;
    animation: floatShape2 22s ease-in-out infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation: floatShape3 15s ease-in-out infinite;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(45deg); }
    50% { transform: translate(-15px, 25px) rotate(90deg); }
    75% { transform: translate(20px, 10px) rotate(135deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-25px, 15px) rotate(60deg) scale(1.1); }
    66% { transform: translate(15px, -20px) rotate(120deg) scale(0.9); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(180deg); }
}

/* Nav link hover dot removed — see the Navigation block. Hover is a
   colour shift only, with no bar and no dot. */
.nav-menu a::before { content: none; }

/* --- Footer reveal wave --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* --- Footer Easter Egg --- */
.egg-reveal {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    opacity: 0;
    transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.footer-egg:hover .egg-reveal {
    max-width: 300px;
    opacity: 1;
}

/* --- Responsive: hide decorations on mobile --- */
@media (max-width: 768px) {
    .floating-shapes {
        display: none;
    }

    .wave-divider svg {
        height: 24px;
    }

}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .contact-form,
    .nav-toggle,
    .booking-calendar {
        display: none;
    }

    .hero {
        padding-top: var(--spacing-lg);
    }

    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* ================================
   BOOKING SUCCESS PAGE STYLES
   ================================ */

.booking-success-section {
    min-height: 80vh;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(160deg, #F7F4EF 0%, #EFEAE1 100%);
}

.booking-success-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-header {
    margin-bottom: var(--spacing-xl);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.success-header h1 {
    color: var(--primary-color);
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.success-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.booking-summary-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.booking-summary-card h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.booking-details {
    margin-bottom: var(--spacing-xl);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    text-align: right;
}

.detail-value.booking-id {
    font-family: 'Courier New', monospace;
    background: var(--background-secondary);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
}

.calendar-download {
    margin-bottom: var(--spacing-lg);
}

.calendar-download .btn {
    margin-bottom: var(--spacing-sm);
}

.calendar-help {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.booking-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.booking-notice h3 {
    color: #856404;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.booking-notice h3::before {
    content: "ℹ️";
    font-size: var(--font-size-xl);
}

.booking-notice ul {
    margin: 0;
    padding-left: var(--spacing-lg);
    color: #856404;
}

.booking-notice li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.success-contact {
    background: var(--background-secondary);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.success-contact p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.success-contact p:first-of-type {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.success-contact p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-success-section {
        padding: var(--spacing-lg) 0;
    }

    .booking-success-content {
        margin: 0 var(--spacing-md);
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-header h1 {
        font-size: var(--font-size-xl);
    }

    .booking-summary-card {
        padding: var(--spacing-lg);
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        text-align: left;
    }

    .detail-value {
        text-align: left;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ================================
   BOOKING CONFIRMATION PAGE STYLES
   ================================ */

/* Main container - minimal white background */
.booking-confirmation-main {
    min-height: 100vh;
    background: var(--ivory-1);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201, 164, 106, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(143, 109, 75, 0.04) 0%, transparent 50%);
}

/* Section container - center everything */
.booking-confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* Glassmorphism confirmation card */
.booking-confirmation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: var(--spacing-2xl);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect */
.booking-confirmation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.booking-confirmation-card:hover::before {
    left: 100%;
}

/* Typography */
.booking-confirmation-title {
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.booking-confirmation-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Elegant dividers */
.booking-confirmation-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: var(--spacing-xl) 0;
}

/* Booking summary - clean list design */
.booking-summary {
    margin: var(--spacing-xl) 0;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.booking-summary-row:last-child {
    border-bottom: none;
}

.booking-summary dt {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.booking-summary dd {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    margin: 0;
}

/* Calendar button - prominent but elegant */
.btn-calendar {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 48px; /* WCAG AA touch target */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(126, 92, 49, 0.30);
}

.btn-calendar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 92, 49, 0.40);
}

.btn-calendar:focus {
    outline: 3px solid rgba(126, 92, 49, 0.40);
    outline-offset: 2px;
}

.btn-calendar:active {
    transform: translateY(0);
}

/* Navigation buttons */
.booking-confirmation-nav {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.booking-confirmation-nav .btn {
    min-width: 200px;
    padding: 14px 32px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-confirmation-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nav-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* WCAG AA touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fade-in animation */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional animations for booking confirmation */
.booking-confirmation-card {
    animation: slideInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.booking-confirmation-title {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.booking-confirmation-desc {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.booking-summary-row {
    animation: fadeInUp 0.5s ease-out both;
}

.booking-summary-row:nth-child(1) { animation-delay: 0.4s; }
.booking-summary-row:nth-child(2) { animation-delay: 0.5s; }
.booking-summary-row:nth-child(3) { animation-delay: 0.6s; }

.btn-calendar {
    animation: fadeInUp 0.6s ease-out 0.7s both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-calendar:hover {
    transform: translateY(-3px) scale(1.02);
}

.booking-confirmation-nav {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.booking-confirmation-divider {
    animation: expandWidth 0.6s ease-out both;
}

.booking-confirmation-divider:first-of-type {
    animation-delay: 0.35s;
}

.booking-confirmation-divider:last-of-type {
    animation-delay: 0.75s;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Mobile-first responsive design */
@media (max-width: 640px) {
    .booking-confirmation-section {
        padding: var(--spacing-md) var(--spacing-sm);
        align-items: flex-start;
        padding-top: var(--spacing-xl);
    }

    .booking-confirmation-card {
        padding: var(--spacing-xl) var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .booking-confirmation-title {
        font-size: var(--font-size-2xl);
    }

    .booking-confirmation-desc {
        font-size: var(--font-size-base);
    }

    .booking-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        text-align: left;
    }

    .booking-summary dd {
        font-size: var(--font-size-base);
        align-self: flex-end;
    }

    .booking-confirmation-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-btn {
        width: 100%;
    }

    .btn-calendar {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    .booking-confirmation-card {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
}

/* Focus management for accessibility */
.booking-confirmation-title:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .booking-confirmation-card {
        background: white;
        border: 2px solid black;
        backdrop-filter: none;
    }

    .booking-confirmation-divider {
        background: black;
    }

    .booking-summary-row {
        border-bottom-color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
    }

    .booking-confirmation-card::before {
        display: none;
    }

    .btn-calendar:hover,
    .nav-btn:hover {
        transform: none;
    }
}
