/* ========================================================
   EMBER & THYME — FINE DINING DESIGN SYSTEM
   ======================================================== */

:root {
    --bg-canvas: #100c0a;
    --bg-surface-dark: #080605;
    --surface-glass: rgba(245, 236, 228, 0.04);
    --border-glass: rgba(201, 149, 107, 0.12);

    --accent-brand: #c9956b;
    --accent-warm: #8b4a3a;
    --accent-glow: rgba(201, 149, 107, 0.35);
    --text-primary: #f5ece4;
    --text-muted: #9a8b82;
    --text-soft: #c4b5ab;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;

    --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);

    --t-ui-fast: 250ms;
    --t-ui-medium: 600ms;
    --t-transition-curtain: 750ms;

    --fs-body: 1.05rem;
    --fs-small: 0.8rem;
    --fs-tagline: 0.75rem;
    --fs-hero-title: clamp(2.8rem, 6vw, 5rem);
    --fs-section-title: clamp(2.4rem, 4vw, 3.6rem);
}

/* ========================================================
   GLOBAL RESETS & CANVAS SETUP
   ======================================================== */
html, body {
    margin: 0; padding: 0; width: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1320px; margin: 0 auto; }

/* ========================================================
   CINEMATIC SWEEP CURTAIN
   ======================================================== */
.transition-curtain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-surface-dark); z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    transform-origin: top;
    transform: scaleY(1);
    transition: transform var(--t-transition-curtain) var(--ease-cinematic);
}
.curtain-logo {
    font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 6px;
    color: var(--accent-brand); opacity: 1; transition: opacity 0.35s ease;
    font-weight: 400; font-style: italic;
}

.transition-curtain.is-opening { transform: scaleY(0); }
.transition-curtain.is-opening .curtain-logo { opacity: 0; }

.transition-curtain.is-closing {
    transform-origin: bottom;
    transform: scaleY(1);
}

/* ========================================================
   SCROLL REVEALS
   ======================================================== */
.reveal {
    opacity: 0; transform: translateY(40px) translateZ(0);
    will-change: transform, opacity;
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-fade { transform: translateY(0) translateZ(0); }
.reveal.in-view { opacity: 1; transform: translateY(0) translateZ(0); }

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
.glass-header {
    position: fixed; top: 0; left: 0; width: 100%;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000; padding: 1.4rem 0;
    transition: background-color var(--t-ui-medium) var(--ease-ui), transform var(--t-ui-medium) var(--ease-cinematic), padding var(--t-ui-medium) ease;
}
.glass-header.nav-scrolled {
    background-color: rgba(16, 12, 10, 0.92);
    border-bottom-color: rgba(201, 149, 107, 0.25);
    padding: 0.9rem 0;
}
.glass-header.nav-hidden { transform: translateY(-100%); }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1320px; margin: 0 auto; }
.brand-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-main {
    font-family: var(--font-display); font-size: 1.65rem; letter-spacing: 2px;
    color: var(--text-primary); font-weight: 500; font-style: italic;
}
.logo-sub {
    font-size: 0.65rem; letter-spacing: 4px; color: var(--accent-brand);
    font-weight: 400; text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-size: var(--fs-small);
    letter-spacing: 2.5px; text-transform: uppercase; font-weight: 400;
    position: relative; padding: 0.4rem 0; transition: color var(--t-ui-medium) ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--accent-brand); transition: width var(--t-ui-medium) var(--ease-cinematic), left var(--t-ui-medium) var(--ease-cinematic);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* ========================================================
   HERO & PARALLAX ENGINE
   ======================================================== */
.homepage-hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden;
}
.parallax-wrapper {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: 0;
}
.parallax-bg {
    width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}
.hero-background-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(16,12,10,0.35) 0%, rgba(16,12,10,0.88) 70%, rgba(8,6,5,0.97) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 2rem; }
.hero-tagline {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 5px;
    color: var(--accent-brand); font-weight: 400; display: block; margin-bottom: 1.75rem;
}
.hero-title {
    font-family: var(--font-display); font-size: var(--fs-hero-title);
    font-weight: 500; line-height: 1.08; margin: 0 0 1.25rem; font-style: italic;
}
.hero-lead {
    font-size: 1.15rem; color: var(--text-soft); font-weight: 300;
    margin: 0 auto 3rem; max-width: 580px; line-height: 1.85; letter-spacing: 0.3px;
}
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.4rem; font-size: var(--fs-small); font-weight: 400; letter-spacing: 2.5px;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    position: relative; overflow: hidden; z-index: 1; transition: transform var(--t-ui-medium) var(--ease-cinematic);
}
.btn-text { position: relative; z-index: 2; pointer-events: none; transition: color 0.4s ease; }
.btn-hover-fill {
    position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    z-index: 1; transform-origin: top center; transition: transform 0.6s var(--ease-cinematic);
}

.btn-solid { background-color: var(--accent-brand); color: white; border-color: var(--accent-brand); }
.btn-solid .btn-hover-fill { background-color: var(--bg-canvas); transform: scaleY(0); }
.btn-solid:hover .btn-text { color: black; }
.btn-solid:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

.btn-outline { border-color: rgba(245, 236, 228, 0.35); color: var(--text-primary); }
.btn-outline .btn-hover-fill { background-color: var(--text-primary); transform: scaleY(0); }
.btn-outline:hover .btn-text { color: white; }
.btn-outline:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }

/* ========================================================
   PHILOSOPHY / ABOUT SECTION
   ======================================================== */
.philosophy-section { padding: 10rem 0; border-top: 1px solid var(--border-glass); }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.phil-image { position: relative; height: 620px; overflow: hidden; }
.phil-image::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(201, 149, 107, 0.2);
    margin: 1.25rem; pointer-events: none;
}
.phil-image img { width: 100%; height: 100%; object-fit: cover; }
.phil-text h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    line-height: 1.12; margin: 0 0 1.75rem; font-weight: 500;
}
.phil-text p {
    color: var(--text-muted); font-size: var(--fs-body); line-height: 1.9;
    margin-bottom: 1.5rem; letter-spacing: 0.2px;
}

/* ========================================================
   MENU / GALLERY PAGE
   ======================================================== */
.subpage-wrapper { padding: 11rem 0 7rem; min-height: 60vh; }
.section-intro { text-align: center; max-width: 620px; margin: 0 auto 5rem; }
.tagline {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 4px;
    color: var(--accent-brand); display: block; margin-bottom: 0.85rem;
}
.section-intro h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    font-weight: 500; margin: 0 0 1.25rem; line-height: 1.1;
}
.section-intro p { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.8; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 2.5rem; }
.portfolio-card {
    position: relative; height: 480px; background: var(--surface-glass);
    overflow: hidden; transition: transform var(--t-ui-medium) var(--ease-cinematic);
    text-decoration: none; color: inherit; display: block; cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-8px); }

.card-media-box { width: 100%; height: 100%; position: relative; overflow: hidden; background-color: #000; }
.card-media-box img, .card-media-box video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s var(--ease-cinematic), filter 1s ease;
}
.portfolio-card:hover .card-media-box img,
.portfolio-card:hover .card-media-box video { transform: scale(1.06); filter: brightness(0.55); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 2.5rem; box-sizing: border-box;
    background: linear-gradient(to top, rgba(16,12,10,0.95) 0%, transparent 100%);
    transform: translateY(24px); opacity: 0;
    transition: transform 0.8s var(--ease-cinematic), opacity 0.8s ease;
}
.portfolio-card:hover .card-overlay { transform: translateY(0); opacity: 1; }

.card-tag {
    font-size: 0.7rem; text-transform: uppercase; color: var(--accent-brand);
    letter-spacing: 3px; display: block; margin-bottom: 0.6rem;
}
.card-overlay h3 {
    font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 0.5rem;
    font-weight: 500; font-style: italic;
}
.card-overlay p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

.featured-card {
    border: 1px solid rgba(201, 149, 107, 0.3);
    background: linear-gradient(145deg, rgba(139, 74, 58, 0.15) 0%, rgba(16, 12, 10, 0.6) 100%);
    height: 480px; display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 3rem; box-sizing: border-box; text-align: center;
}
.featured-card .featured-icon {
    width: 56px; height: 56px; border-radius: 50%;
    border: 1px solid var(--accent-brand); display: flex; align-items: center; justify-content: center;
    color: var(--accent-brand); font-family: var(--font-display); font-size: 1.4rem;
    font-style: italic; margin-bottom: 1.5rem;
}
.featured-card h3 {
    font-family: var(--font-display); font-size: 1.75rem; margin: 0 0 0.75rem;
    font-weight: 500; font-style: italic;
}
.featured-card p {
    margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; max-width: 280px;
}
.featured-card .price-tag {
    margin-top: 1.5rem; font-size: var(--fs-tagline); letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent-brand);
}

.upload-slot { border: 1px dashed rgba(201, 149, 107, 0.35); background: rgba(201, 149, 107, 0.03); }
.upload-slot:hover { background: rgba(201, 149, 107, 0.06); }
.upload-label {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 3rem;
    box-sizing: border-box; text-align: center; cursor: pointer;
}
.upload-icon-box {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent-brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-brand); font-size: 1.4rem; margin-bottom: 1.5rem;
    transition: background-color 0.5s ease, color 0.5s ease;
}
.upload-slot:hover .upload-icon-box { background-color: var(--accent-brand); color: var(--bg-canvas); }
.upload-label h3 {
    font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.75rem;
    font-weight: 500; font-style: italic; color: var(--text-primary);
}
.upload-label p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }

.animate-entry { animation: cardRevealEntry 0.8s var(--ease-cinematic) forwards; }
@keyframes cardRevealEntry {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   RESERVATIONS / CONTACT
   ======================================================== */
.contact-text h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    font-weight: 500; line-height: 1.12; margin: 0 0 1.5rem;
}
.contact-image { position: relative; height: 100%; min-height: 580px; }
.contact-image::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(201, 149, 107, 0.15);
    margin: 1rem; pointer-events: none;
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

.floating-form .form-row { position: relative; margin-bottom: 3rem; }
.floating-form input, .floating-form textarea {
    width: 100%; padding: 0.9rem 0; background: transparent; border: none;
    border-bottom: 1px solid rgba(245, 236, 228, 0.18); color: var(--text-primary);
    font-family: var(--font-body); font-size: 1rem; font-weight: 300;
}
.floating-form input:focus, .floating-form textarea:focus { outline: none; border-color: transparent; }
.input-bar {
    position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--accent-brand);
    transition: width 0.6s var(--ease-cinematic), left 0.6s var(--ease-cinematic);
}
.floating-form input:focus ~ .input-bar,
.floating-form textarea:focus ~ .input-bar { width: 100%; left: 0; }
.floating-form label {
    position: absolute; left: 0; top: 0.9rem; color: var(--text-muted); font-size: 1rem;
    transition: transform 0.5s var(--ease-cinematic), color 0.5s ease;
    pointer-events: none; transform-origin: left top;
}
.floating-form input:focus ~ label, .floating-form input:not(:placeholder-shown) ~ label,
.floating-form textarea:focus ~ label, .floating-form textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-1.75rem) scale(0.78); color: var(--accent-brand);
    letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem;
}
.block-btn { width: 100%; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
    background-color: var(--bg-surface-dark); padding: 7rem 0 3.5rem;
    position: relative; z-index: 10; border-top: 1px solid var(--border-glass);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h3 {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent-brand); margin-bottom: 1.75rem; font-weight: 400;
}
.footer-desc {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.85;
    max-width: 340px; margin-top: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a {
    text-decoration: none; color: var(--text-muted); font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--text-primary); }
.contact-item {
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem;
}
.contact-item strong {
    display: block; font-size: var(--fs-tagline); color: rgba(245, 236, 228, 0.45);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.25rem; font-weight: 400;
}
.contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--accent-brand); }
.footer-divider { border: none; height: 1px; background: var(--border-glass); margin-bottom: 2.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.legal-wrapper { max-width: 75%; }
.copyright { font-size: 0.85rem; margin-bottom: 0.6rem; color: var(--text-soft); }
.uk-statutory { font-size: 0.78rem; color: #6e625c; line-height: 1.7; margin: 0; }
.privacy-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.privacy-links a {
    font-size: 0.8rem; color: var(--text-muted); text-decoration: none;
    transition: color 0.3s ease; letter-spacing: 0.5px;
}
.privacy-links a:hover { color: var(--accent-brand); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
    .grid-half { grid-template-columns: 1fr; gap: 3.5rem; }
    .phil-image { height: 460px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; }
    .legal-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card, .featured-card { height: 400px; }
    .nav-links { display: none; }
    .philosophy-section { padding: 7rem 0; }
}

/* ========================================================
   SCREENSHOT MODE — forces all reveal animations to their
   final visible state, for full-page screenshot tools
   ======================================================== */
body.screenshot-mode .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
body.screenshot-mode .transition-curtain {
    display: none !important;
}
body.screenshot-mode .parallax-bg {
    transform: none !important;
}
body.screenshot-mode .homepage-hero {
    height: 900px !important;
    max-height: 900px !important;
}
body.screenshot-mode .parallax-wrapper {
    height: 900px !important;
    top: 0 !important;
}