/* Define custom font utilities using the imported Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
.font-header {
/*     font-family: 'Playfair Display', serif; */
       font-family: 'Cinzel', sans-serif;
	   color: black !important;
}

.font-body {
    font-family: 'Raleway', sans-serif;
}

/* Set Poppins as the site-wide default font */
body {
    font-family: 'Raleway', sans-serif;
    scroll-behavior: smooth;
}

/* Theme variables: Primary Taupe Palette (refined for higher contrast and a professional look) */
:root {
    /* Core palette - refined luxury taupe scheme */
    --color-taupe: #B08A78; /* Primary Taupe - warm neutral base */
    --color-taupe-rgb: 176,138,120;
    --color-taupe-light: #F2EDE9; /* Light Taupe - off-white background tone */
    --color-taupe-light-rgb: 242,237,233;
    --color-taupe-dark: #5C4338; /* Dark Taupe - deeper contrast for text/accent */
    --color-taupe-dark-rgb: 92,67,56;

    /* Supporting neutrals */
    --color-black: #000000;
    --color-charcoal: #222222;
    --color-white: #FFFFFF;

    /* CTA & accent colors */
    --color-taupe-cta: #9C6B5A; /* CTA button - rich medium taupe */
    --color-taupe-cta-hover: #73473A; /* CTA hover - darker for visual depth */

    /* Surface and hover states */
    --color-surface: #FFFFFF; /* Main page surface */
    --color-hover-subtle: rgba(var(--color-taupe-dark-rgb), 0.06); /* Light hover background */

    /* Utility colors */
    --color-danger: #EF4444; /* Validation/error */

    /* Font choices - elegant, modern luxury */
    --font-heading: 'Parisienne', cursive; /* Signature-style heading font */
    --font-body: 'DM Sans', sans-serif; /* Clean, modern readable text */
}


/* Utility overrides to remap used Tailwind color classes to the Taupe palette.
   Only color properties are changed so HTML and layout remain untouched. */
.bg-white { background-color: var(--color-white) !important; }
.bg-gray-50 { background-color: var(--color-taupe-light) !important; }

/* Keep a couple safe neutral mappings used by layout components */
.bg-white { background-color: var(--color-white) !important; }
.bg-gray-50 { background-color: var(--color-taupe-light) !important; }

/* Note: specific Tailwind-to-variable fuchsia/purple mappings were removed.
    The project now uses semantic classes (.text--brand, .btn--primary, .social-btn, etc.)
    which are controlled by the :root variables. This keeps colors maintainable
    and prevents accidental color overrides via utility class names. */

/* Subtle hover helper token used by components that expect a faint tint */
.hover-subtle { background-color: var(--color-hover-subtle); }

/* Ensure hovered fuchsia-700 utilities map to the CTA hover (covers script-added classes) */
.hover\:bg-fuchsia-700:hover { background-color: var(--color-taupe-cta-hover) !important; }

/* Ensure explicit white text utility keeps precedence when combined with other text utilities */
.text-white { color: var(--color-white) !important; }

/* Helper mappings for semantic pseudo-state classes used in the HTML migration */
.hover\:text--brand:hover { color: var(--color-taupe) !important; }
.focus\:border--brand:focus { border-color: var(--color-taupe) !important; }

/* ==================================================
   Semantic component classes (production-ready)
   Use these in HTML/JS instead of utility color classes
   ================================================== */

/* Buttons ------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    transition: all 220ms ease;
    text-decoration: none;
}
button:focus{
    background-color: var(--color-taupe-cta-hover) !important;
    color: white !important;
}
.btn--small { padding: .35rem .75rem; font-size: .9rem; }
.btn--primary {
    background-color: var(--color-taupe-cta);
    color: var(--color-white) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.btn--primary:hover { background-color: var(--color-taupe-cta-hover); transform: translateY(-1px); }
.btn--outline {
    background-color: transparent;
    color: var(--color-white) !important;
    border: 2px solid var(--color-taupe);
}
.btn--outline:hover {
    background-color: var(--color-taupe-cta);
    color: var(--color-white);
}

/* Navigation links -------------------------------------- */
.nav-link { color: var(--color-taupe-dark); text-decoration: none; }
.nav-link:hover { color: var(--color-taupe-cta); }
.nav-link-hover::after { background-color: var(--color-taupe-dark); }

/* Tab buttons (policies, booking, prep) ----------------- */
.tab-button {
    transition: all 220ms ease;
    background-color: var(--color-surface);
    color: var(--color-taupe-dark);
    border-radius: 1rem;
    border: 0 !important;
}
.tab-button--active {
    background-color: var(--color-taupe-cta) !important;
    color: var(--color-white) !important;
    box-shadow: 0 12px 30px rgba(var(--color-taupe-dark-rgb), 0.12);
}

.tab-button:hover {
    background-color: var(--color-taupe-cta);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Service tab (list items) -------------------------------- */
.service-tab { color: var(--color-taupe-dark); background-color: var(--color-surface); }
.service-tab:hover { background-color: var(--color-hover-subtle); }

/* Small utility: theme text classes ----------------------- */
.text--brand { color: var(--color-taupe); }
.text--heading { color: var(--color-taupe-dark); }
.bg--surface { background-color: var(--color-surface); }

/* Muted background used for subtle cards / panels (taupe light) */
.bg--muted { background-color: var(--color-taupe-light) !important; }

/* Brand border for accent separators */
.border--brand { border-color: var(--color-taupe) !important; }

/* Social icon buttons (square) */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-taupe-cta) !important;
    color: var(--color-white) !important;
    transition: background-color 180ms ease, transform 180ms ease;
}
.social-btn:hover { background-color: var(--color-taupe-cta-hover) !important; transform: translateY(-2px); }



/* Ensure the document fills the viewport so min-height on auth works consistently */
html, body { height: 100%; }

/* Custom CSS for the Dynamic SLIDER */
.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1.2s ease-in-out;
    will-change: transform;
    background-color: var(--color-taupe-dark); /* ensure no white gaps show during translate */
}

/* Ensure slides and track never reveal white background during GPU transforms */
.slider-container, .slider-container .slide {
    overflow: hidden;
    background-color: var(--color-taupe-dark);
}

/* Defensive: mask sub-pixel gaps by slightly overlapping slides */
.slider-container .slide {
    /* Ensure slides fill the container height and don't repeat images */
    margin-right: 0;
    height: 100%;
    min-height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    width: 100%;
    /* *** CRITICAL CHANGE FOR FULL IMAGE VIEW *** */
    /* Ensures the entire image is visible within the slide, maintaining its aspect ratio. */
    background-size: cover;
    /* Fills any resulting gaps (pillarboxing/letterboxing) with the brand color. */
    background-color: var(--color-taupe-dark);
    background-position: center;
    background-repeat: no-repeat;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Overlay to ensure text readability - DARK PURPLE/MAGENTA OVERLAY */
.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Theme Overlay: Deep Purple/Magenta (Using purple-900 equivalent for overlay) */
    background-color: rgba(var(--color-taupe-dark-rgb), 0.6);
    z-index: 1;
}

/* Style for the professional image placeholder */
.about-image {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease-in-out;
}

.about-image:hover {
    transform: scale(1.02);
}

/* NEW: Custom Nav Link Hover Effect (Modern Underline) */
.nav-link-hover {
    position: relative;
    padding-bottom: 8px;
	color: #9c6b5a !important;
    /* Extra space for the underline */
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-taupe-dark);
    /* use darker taupe so underline reads on light backgrounds */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    border-radius: 9999px;
    /* Rounded line */
}

.nav-link-hover:hover::after,
.nav-link-hover.active::after {
    width: 100%;
}

/* Services cards: make a consistent card layout
           - enforce card to be column layout so left content stays top and price+CTA sit at the bottom
           - ensure same min-height for visual consistency across grid
        */
.service-panel .p-4.rounded-lg.border.bg-gray-50 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 140px !important;
}

/* Card description spacing */
.service-panel .card-desc {
    min-height: 1.25rem;
    /* reserve space so cards align even if description is short */
}

/* Right column (price + CTA) should be inline and sit at the bottom of the card */
.service-panel .text-right.flex.flex-col.items-end {
    display: flex !important;
    flex-direction: row !important;
    /* price and CTA inline */
    align-items: center !important;
    gap: 6.75rem !important;
    margin-top: 12px !important;
}


/* Make sure CTA sits close to the price */
.service-panel .text-right.flex.flex-col.items-end .mt-2 {
    margin-top: 0 !important;
}

/* Active tab visual via attribute selector for consistency */
.service-tab[aria-selected="true"] {
    background-color: var(--color-taupe);
    /* approximate fuchsia-600 */
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(var(--color-taupe-rgb), 0.12);
}

/* Improve hover for service tabs: clear, consistent and easy to maintain */
.service-tab {
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.service-tab:hover {
    background-color: rgba(var(--color-taupe-rgb), 0.06);
    /* subtle taupe tint */
    color: var(--color-taupe-dark);
    /* slightly darker taupe for contrast */
    box-shadow: 0 6px 14px rgba(var(--color-taupe-dark-rgb), 0.06);
}

/* Helper class applied by JS: ensures the price and CTA align on the bottom-right and are responsive */
.card-price-cta {
    display: flex !important;
    gap: .75rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
}

@media (max-width: 640px) {
    .card-price-cta {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
}

/* Custom focus styles for form inputs */
.form-input:focus {
    outline: none;
    border-color: var(--color-taupe);
    box-shadow: 0 0 0 3px rgba(var(--color-taupe-rgb), 0.08);
}

/* Improved tab styles for auth page */
.tab-btn {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--color-charcoal);
    transition: all 150ms ease;
}
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn[aria-pressed="true"] {
    background: linear-gradient(90deg, rgba(var(--color-taupe-rgb),0.12), rgba(var(--color-taupe-dark-rgb),0.08));
    color: var(--color-white);
    background-color: var(--color-taupe); /* primary */
    box-shadow: 0 8px 20px rgba(var(--color-taupe-rgb), 0.12);
}

/* Input focus refinement to look modern and subtle */
.form-input {
    transition: box-shadow 160ms ease, border-color 160ms ease;
    border-radius: 0;
}
.form-input:focus {
    outline: none;
    border-bottom-color: var(--color-taupe);
    box-shadow: 0 6px 20px rgba(var(--color-taupe-rgb),0.04);
}

.is-invalid { box-shadow: 0 0 0 3px rgba(239,68,68,0.06) !important; border-bottom-color: #ef4444 !important; }
.is-invalid { box-shadow: 0 0 0 3px rgba(239,68,68,0.06) !important; border-bottom-color: var(--color-danger) !important; }

/* Map container responsive aspect ratio */
.map-container {
    position: relative;
    width: 100%;
    /* prefer aspect-ratio when available for consistent behavior */
    aspect-ratio: 16 / 9;
    min-height: 320px; /* fallback for small/older browsers */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1rem;
}

/* Stack contact grid on small screens and ensure map keeps usable height */
@media (max-width: 768px) {
    /* If contact grid uses lg:grid-cols-2, stack into single column */
    .map-container { min-height: 360px; aspect-ratio: auto; }
    .grid.lg\:grid-cols-2 { grid-template-columns: 1fr !important; }
}

/* FOOTER STYLES */
.site-footer a { color: inherit; }

footer a:hover { color: #ffffff; }
footer a:hover { color: var(--color-white); }

footer .font-header { letter-spacing: 0.2px; }

footer address { line-height: 1.45; }

@media (max-width: 640px) {
    footer .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    footer .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
    footer .hidden.md\:block { display: none !important; }
}
/* Pull content above the overlay */
.site-footer > .max-w-7xl { z-index: 10; }

@media (min-width: 768px) {
    /* Slightly increase gap between columns on tablet screens for better balance */
    .site-footer { padding: 4rem 3rem; }
    .site-footer .grid { gap: 1.5rem; }
}

/* Footer headings with thin fuchsia underline */
.footer-heading {
    position: relative;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 36px;
    height: 3px;
    background: var(--color-taupe);
    border-radius: 6px;
    opacity: 0.95;
}

/* Ensure heading underline doesn't overlap following text by adding bottom margin to heading */
.footer-heading { margin-bottom: 1.25rem; }

/* Footer links and hover transitions */
.footer-link, .site-footer a { transition: color 160ms ease, transform 160ms ease; }
.footer-link:hover { color: #ec4899; transform: translateY(-2px); }
.footer-link:hover { color: var(--color-taupe); transform: translateY(-2px); }

/* Social buttons: subtle raise on hover */
.social-btn { transition: transform 180ms ease, box-shadow 180ms ease; }
.social-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 30px rgba(236,72,153,0.12); }
.social-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 30px rgba(var(--color-taupe-rgb),0.12); }

.footer-link:hover { color: var(--color-taupe); transform: translateY(-2px); }
.social-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 30px rgba(var(--color-taupe-rgb),0.12); }

/* Slight inner border on top section to match reference */
.site-footer .border-b { border-color: rgba(255,255,255,0.06); }

/* Make quick-links stack nicely on small screens */
@media (max-width: 768px) {
    .site-footer .grid { grid-template-columns: 1fr !important; }
}

/* Lower copyright bar -- slightly darker box */
.site-footer .py-6 { background: rgba(0,0,0,0.25); padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.03); }
.site-footer .py-6 { background: rgba(0,0,0,0.25); padding: 1.25rem 0; border-top: 1px solid rgba(var(--color-white),0.03); }

/* AUTH / LOGIN PAGE STYLES */
.tab-btn[aria-pressed="true"] { background: #f8f8ff; border-color: rgba(124,43,220,0.12); box-shadow: 0 6px 14px rgba(124,43,220,0.04); }
.tab-btn[aria-pressed="true"] { background: rgba(var(--color-taupe-rgb),0.06); border-color: rgba(var(--color-taupe-dark-rgb),0.12); box-shadow: 0 6px 14px rgba(var(--color-taupe-dark-rgb),0.04); }
.tab-btn[aria-pressed="true"]:not(:disabled) { color: #6b21a8; }
.tab-btn[aria-pressed="true"]:not(:disabled) { color: var(--color-taupe-dark); }

.form-input { font-family: 'Poppins', sans-serif; }
.form-input[disabled] { opacity: 0.6; }

/* Buttons disabled look */
button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Password toggle button small reset */
.password-toggle { background: transparent; border: none; cursor: pointer; }

@media (max-width: 1024px) {
    .lg\:block { display: none !important; }
}

/* Responsive auth card tweaks */
@media (max-width: 768px) {
    main.w-full.max-w-3xl { max-width: 720px; }
    .form-input { font-size: 15px; }
}

@media (max-width: 480px) {
    main.w-full.max-w-3xl { border-radius: 0.5rem; }
    .tab-btn { padding-top: .65rem; padding-bottom: .65rem; }
    section.p-10 { padding: 1rem; }
}

/* Fullscreen auth page for small devices - stronger mobile-friendly layout */
@media (max-width: 640px) {
    /* Body and root container fill the viewport with no extra padding */
    body.auth-page { padding: 0; min-height: 100vh; display: block; }

    /* Make the main card full-bleed and single column on mobile */
    main.w-full.max-w-3xl {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        display: block;
    }

    /* Collapse the grid to a single column and hide decorative left column entirely */
    .auth-page .grid { grid-template-columns: 1fr !important; }
    .auth-page .lg\:block { display: none !important; }

    /* Form section should fill the viewport height and center content with comfortable padding */
    .auth-page section.p-6 {
        padding: 1.25rem;
        display: block;
        min-height: 100vh;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure the inner container stretches and has sensible vertical spacing */
    .auth-page .max-w-md {
        width: 100%;
        padding-top: 3vh;
        padding-bottom: 3vh;
        margin: 0 auto;
    }

    /* Stack tab buttons full width and make them visually distinct */
    .auth-page .flex.flex-col.sm\:flex-row { display: block; }
    .auth-page .tab-btn { display: block; width: 100%; margin-bottom: .6rem; }

    /* Make primary action buttons full width and a bit taller for thumbs */
    .auth-page button[type="submit"], .auth-page #signup-submit { width: 100%; padding-top: .9rem; padding-bottom: .9rem; font-size: 1rem; }

    /* Inputs spacing and sizing to feel native on mobile */
    .auth-page .form-input { padding: .5rem 0; font-size: 16px; }

    /* Respect visual rhythm between form groups */
    .auth-page .max-w-md > * + * { margin-top: 1rem; }
}

/* Validation / Input error styles */
.input-error { color: #ef4444; min-height: 1.25rem; visibility: hidden; opacity: 0; transition: opacity 160ms ease; }
.input-error { color: var(--color-danger); min-height: 1.25rem; visibility: hidden; opacity: 0; transition: opacity 160ms ease; }
.input-error.visible { visibility: visible; opacity: 1; }
.input-error.visible { visibility: visible; opacity: 1; }
.is-invalid { border-color: #ef4444 !important; }
.is-invalid { border-color: var(--color-danger) !important; }
.password-toggle i { vertical-align: middle; }

#ast-scroll-top {
    background-color: #a15f1e;
    font-size: 15px;
    padding-top: 12px;
    margin-left: 8px;
    padding-left: 2px;
}
/* Gallery-specific small CSS to create the category grid overlay look */
/* Desktop: 3 columns gives a more gallery/portfolio feel (not mobile-like) */
.categories-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Leaner corners (not overly rounded) and framed look */
.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Larger image for desktop-like gallery; use aspect-ratio so images scale nicely */
.category-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
    border-radius: 4px 4px 0 0;
}

.category-tile:focus-within,
.category-tile:hover {
    transform: translateY(-3px);
    transition: transform .22s ease;
}

/* Sliding overlay that comes from the bottom on hover */
/* Overlay covers the full image area; overlay body holds the visible sliding content */
.category-overlay {
    position: absolute;
    inset: 0;
    padding: 0;
    pointer-events: none;
}

.overlay-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    pointer-events: none;
}

/* darker surface for better contrast (raised opacity) */
.overlay-surface {
    position: absolute;
    inset: 0;
    background: rgba(var(--color-taupe-rgb), 0.68);
    opacity: 0;
    transition: opacity .28s ease;
}

/* center content horizontally and keep it slightly lifted from the bottom */
.overlay-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    padding: 18px;
    transform: translateY(100%);
    transition: transform .36s cubic-bezier(.25, .9, .3, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    align-items: center;
    max-width: 94%;
    margin: 0 auto;
}

/* On hover/focus: reveal surface + slide inner content up */
.category-tile:hover .overlay-surface,
.category-tile:focus-within .overlay-surface {
    opacity: 1;
}

.category-tile:hover .overlay-inner,
.category-tile:focus-within .overlay-inner {
    transform: translateY(0%);
}

.overlay-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-white);
}

.overlay-sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 4px;
}

.overlay-cta {
    margin-top: 8px;
    display: inline-block;
    max-width: 140px;
    width: 100%;
    text-align: center;
}

.overlay-inner .btn--primary {
    padding: .45rem .85rem;
    border-radius: 8px;
    display: inline-block;
}

/* Featured portfolio hero */
.portfolio-hero {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.hero-media {
    flex: 1 1 55%;
    height: 420px;
    background-size: cover;
    background-position: center;
}

.hero-copy {
    flex: 1 1 45%;
    padding: 30px;
    background: var(--color-white);
}

@media (max-width: 900px) {
    .hero-media {
        height: 300px
    }

    .portfolio-hero {
        flex-direction: column
    }
}

.btn--primary:hover,
.btn--primary:focus {
    background: linear-gradient(90deg, var(--color-taupe-cta-hover) 80%, var(--color-taupe-dark) 100%) !important;
    color: var(--color-white) !important;
}

.btn--outline:hover,
.btn--outline:focus {
    background: var(--color-taupe-light) !important;
    color: var(--color-taupe-dark) !important;
    border: 2px solid var(--color-taupe-dark) !important;
}

/* Lightbox enhancements */
/* Lightbox: consistent panel size so different image ratios don't change dialog size */
/* Lightbox panel: fixed, consistent dimensions to avoid reflow between images */
/* Lightbox panel: fixed, consistent dimensions to avoid reflow between images */
#gallery-lightbox .glb-panel {
    max-width: 960px;
    width: calc(100% - 48px);
    height: 72vh;
    /* fixed visual viewport height for the panel */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media area takes the panel height minus the footer; keeps consistent size across images */
#gallery-lightbox .glb-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: calc(72vh - 88px);
    /* 88px reserved for header/buttons and footer area */
    background: #fff;
    overflow: hidden;
}

/* Ensure the image always fits the media box without resizing the panel */
#gallery-lightbox img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Filter bar active/hover states (production polish) */
.filter-bar button {
    border: 1px solid rgba(var(--color-taupe-rgb), 0.12);
    background: transparent;
    color: #000000 !important;
}

.filter-bar button:hover {
    background: rgba(var(--color-taupe-rgb), 0.04);
}

.filter-bar button[aria-pressed="true"] {
    background: var(--color-taupe-cta);
    color: var(--color-white) !important;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(var(--color-taupe-rgb), 0.12);
}


/* Polished production hero — scoped styles */
:root {
    --hero-padding: 48px;
}

.hero-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}


/* --- Responsive Services Hero Section (services.html only) --- */
.services-hero {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 28px;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: var(--color-taupe-light);
}

@media (max-width: 1100px) {
    .services-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .services-hero {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .services-hero {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* MOBILE: hide hero image and make left column full-width for a clean small-screen experience */
@media (max-width: 700px) {
    .services-hero {
        grid-template-columns: 1fr !important;
    }

    .services-hero .hero-media {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .services-hero .hero-left {
        border-radius: 12px;
        padding: 20px 14px;
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hero-ctas .btn {
        width: 100%;
        min-width: 0;
    }

    .features-row {
        flex-direction: column;
        gap: 12px;
    }

    .feature-badge {
        width: 100%;
        justify-content: flex-start;
    }
}

.hero-left {
    padding: var(--hero-padding);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 248, 246, 1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .hero-left {
        padding: 32px 12px 24px 12px;
    }
}

@media (max-width: 700px) {
    .hero-left {
        padding: 22px 6px 16px 6px;
    }
}

.hero-media {
    position: relative;
    min-height: 320px;
    background-image: url('assets/Featured Braids.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 1101px) {
    .hero-media {
        min-height: 420px;
    }
}

@media (max-width: 1100px) {
    .hero-media {
        min-height: 240px;
    }
}

@media (max-width: 700px) {
    .hero-media {
        min-height: 160px;
        border-radius: 0;
    }
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--color-taupe-rgb), 0.28), rgba(0, 0, 0, 0.28));
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-ctas {
    margin-top: 1.6rem;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 500px) {
    .hero-ctas {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

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

.features-row {
    display: flex;
    gap: 12px;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .features-row {
        flex-direction: column;
        gap: 8px;
    }
}

.feature-badge {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--color-white);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    min-width: 0;
    flex: 1 1 180px;
    max-width: 100%;
}

/* Hero card placement: absolute on desktop, flow inside media on small screens to prevent overlap */
.hero-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 2;
    /* above overlay */
    max-width: calc(100% - 48px);
}

/* When the layout stacks, make the hero-card relative and centered below the image */
@media (max-width: 1100px) {
    .hero-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0 auto;
        transform: none;
        width: calc(100% - 48px);
        max-width: 760px;
    }
}

/* Prevent CTA buttons from overflowing; clamp sizes and allow wrap */
.hero-ctas .btn {
    min-width: 160px;
    max-width: 100%;
}

@media (max-width: 500px) {
    .hero-ctas .btn {
        min-width: 0;
    }
}

/* Ensure left column content doesn't grow too tall and push into media on narrow screens */
.hero-left .hero-title,
.hero-left .hero-sub {
    z-index: 2;
}

/* Stronger heading weight for Featured Services */
.hero-left .hero-title {
    font-weight: 600;
}

@media (max-width: 700px) {
    .feature-badge {
        width: 100%;
        justify-content: flex-start;
    }
}

.feature-badge i {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    background: var(--color-taupe-cta);
    color: var(--color-white);
    border-radius: 8px;
}

/* Responsive Services Hero Section (services.html only) */
.services-hero {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 28px;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
    .services-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .services-hero {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 700px) {
    .services-hero {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

.hero-left {
    padding: var(--hero-padding);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 248, 246, 1) 100%);
}

@media (max-width: 900px) {
    .hero-left {
        padding: 32px 12px 24px 12px;
    }
}

@media (max-width: 700px) {
    .hero-left {
        padding: 22px 6px 16px 6px;
    }
}

.hero-media {
    position: relative;
    min-height: 320px;
    background-image: url('assets/Featured Braids.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (max-width: 1100px) {
    .hero-media {
        min-height: 240px;
    }
}

@media (max-width: 700px) {
    .hero-media {
        min-height: 160px;
        border-radius: 0;
    }
}

.hero-ctas {
    margin-top: 1.6rem;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 500px) {
    .hero-ctas {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

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

.feature-badge {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--color-white);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    min-width: 0;
    flex: 1 1 180px;
    max-width: 100%;
}

@media (max-width: 700px) {
    .features-row {
        flex-direction: column;
        gap: 8px;
    }

    .feature-badge {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Contact us  */

.text--brand {
    color: var(--color-taupe);
}

.text--heading {
    color: var(--color-taupe-dark);
}

.bg--muted {
    background-color: var(--color-taupe-light);
}

.border--brand {
    border-color: var(--color-taupe);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 200ms ease;
}

.btn--primary {
    background: linear-gradient(90deg, var(--color-taupe-cta) 80%, var(--color-taupe) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(var(--color-taupe-dark-rgb), 0.15);
}

.btn--primary:hover {
    background: linear-gradient(90deg, var(--color-taupe-cta-hover) 80%, var(--color-taupe-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-taupe-dark-rgb), 0.25);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 180ms ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-taupe);
    box-shadow: 0 0 0 3px rgba(var(--color-taupe-rgb), 0.1);
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.image-overlay {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.image-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--color-taupe-dark-rgb), 0.3), rgba(var(--color-taupe-rgb), 0.4));
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Book now  */

.book-hero {
    position: relative;
    min-height: 140px;
    height: 18vh;
    background-image: url('assets/hero-section-image-2.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

@media (min-width: 640px) {
    .book-hero {
        min-height: 180px;
        height: 22vh;
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }
}

@media (min-width: 768px) {
    .book-hero {
        min-height: 220px;
        height: 26vh;
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .book-hero {
        min-height: 260px;
        height: 30vh;
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }
}

.book-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(176, 138, 120, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: 2rem;
}

@media (min-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}


/* About us */
/* Page-scoped styles for about.html to keep layout tight and highly responsive */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 56px 20px;
    display: grid;
    place-items: center;
    min-height: 36vh;
    border-radius: 8px;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    /* Single taupe-tinted low-opacity overlay that covers the whole image */
    background-color: rgba(var(--color-taupe-rgb), 0.90);
    mix-blend-mode: multiply;
    z-index: 0;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-hero__content .hero-title {
    color: var(--color-white);
    font-weight: 600;
    font-size: clamp(1.8rem, 6vw, 3.6rem);
    line-height: 1.02;
    text-align: center;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    margin: 0;
}

.page-hero__content .hero-sub {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    margin: 0;
}

.page-hero__panel {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 22px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.story-section {
    margin-top: 28px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.story-copy .lead {
    color: var(--color-taupe-dark);
    font-size: 1.02rem;
}

.story-copy .muted {
    color: rgba(0, 0, 0, 0.65);
}

.story-quote {
    font-style: italic;
    color: var(--color-taupe-dark);
    border-left: 4px solid rgba(var(--color-taupe-dark-rgb), 0.06);
    padding-left: 12px;
}

.story-media {
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.story-copy .btn {
    margin-top: 10px;
}

.mission-section {
    margin-top: 40px;
    padding-bottom: 28px;
}

.mission-inner {
    text-align: center;
}

.mission-cards {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.mission-card {
    flex: 1 1 180px;
    max-width: 220px;
}

.mission-card__icon {
    padding: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    background: var(--color-white);
    color: var(--color-taupe-dark);
    font-weight: 700;
}

.mission-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 42px 16px;
        min-height: 28vh;
    }

    .mission-card {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .page-hero {
        padding: 28px 12px;
        min-height: 20vh;
        border-radius: 0;
    }

    .page-hero__content .hero-title {
        font-size: clamp(1.4rem, 6.6vw, 2.0rem);
    }

    .story-copy .lead {
        font-size: 0.98rem;
    }

    .mission-card__icon {
        padding: 14px;
    }

    .page-hero__panel {
        padding: 12px 14px;
    }
}

/* Ensure About page headings are strong regardless of Tailwind defaults */
.hero-title,
h2.hero-title,
.hero-title.text--heading {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.form-button {
    background: linear-gradient(90deg, var(--color-taupe-cta) 80%, var(--color-taupe) 100%);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: black !important;
    z-index: 5;
}