/* 
  Miora - Private Concierge
  Responsive Styles
*/

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://db.onlinewebfonts.com/c/f018489f0ca9a68790219a839d630c64?family=Aquire');


/* Modern Premium Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 15, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(26, 27, 31, 0.8);
    border: 1px solid rgba(184, 189, 199, 0.15);
    padding: clamp(32px, 6vw, 64px);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 32px; right: 32px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 48px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin: 0 0 12px 0;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.02em;
}

.modal-header p {
    color: #B8BDC7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    opacity: 0.8;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.input-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.input-group input,
.input-group textarea,
.input-group select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(184, 189, 199, 0.2);
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    transition: var(--transition);
    border-radius: 0;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* Modern Date/Time Picker Overrides */
.input-group input[type="date"],
.input-group input[type="time"] {
    position: relative;
    cursor: pointer;
}

.input-group input[type="date"]::-webkit-calendar-picker-indicator,
.input-group input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 10;
}

/* Add custom modern icons */
.input-group input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8BDC7'%3E%3Cpath d='M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3H7V1H9ZM20 10H4V19H20V10ZM20 8V5H4V8H20Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
}

.input-group input[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8BDC7'%3E%3Cpath d='M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12.5 7V12.25L17 14.92L16.25 16.15L11 13V7H12.5Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
}

.input-group:focus-within label {
    color: #fff;
    letter-spacing: 0.25em; /* Dynamic label expansion */
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8BDC7'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
    padding-right: 30px;
}

.input-group select option {
    background-color: #1A1B1F; /* Force dark background for modern look */
    color: #fff;
    padding: 15px;
    font-family: var(--font-sans);
}

.submit-btn-premium {
    background: #fff;
    color: #000;
    border: none;
    padding: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.submit-btn-premium:hover {
    background: #B8BDC7;
    letter-spacing: 0.25em;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px; right: 40px;
    background: #fff;
    color: #000;
    padding: 20px 40px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ─── Global Variables ────────────────────────────────────────── */
:root {
    --bg-main: #0D0F14;
    --bg-flow: #0D0F14; 
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(13, 15, 20, 0.8);
    --glass-border: rgba(184, 189, 199, 0.15);
    --accent: #B8BDC7; /* Official Silver Accent */
    --gold: #B8BDC7; 
    --font-sans: 'Satoshi', sans-serif;
    --font-serif: 'Aquire', sans-serif; 
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Atmospheric Background Glows */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.10;
}

body::before {
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vh;
    background: #C0C5CE; /* Soft silver glow */
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: #B8BDC7; /* Subdued silver glow */
    opacity: 0.05;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* Typography elements */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 12px 6px 24px;
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    min-width: 320px;
    max-width: 95vw;
    z-index: 1000;
    
    /* Liquid Glass Effect */
    background: rgba(13, 15, 20, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(184, 189, 199, 0.15);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Buttery Smooth Liquid Transition */
    transition: width 0.7s cubic-bezier(0.85, 0, 0.15, 1), 
                top 0.7s cubic-bezier(0.85, 0, 0.15, 1), 
                padding 0.7s cubic-bezier(0.85, 0, 0.15, 1), 
                border-radius 0.7s cubic-bezier(0.85, 0, 0.15, 1), 
                background 0.7s cubic-bezier(0.85, 0, 0.15, 1);
    
    will-change: width, top, padding, border-radius;
}

.navbar.scrolled {
    width: 100%;
    max-width: 100%;
    top: 0;
    padding: 12px clamp(24px, 5vw, 64px);
    border-radius: 0;
    background: rgba(13, 15, 20, 0.95);
    border-bottom: 1px solid rgba(184, 189, 199, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .navbar {
        top: 16px;
        width: calc(100% - 32px);
        min-width: unset;
        padding: 6px 6px 6px 20px;
    }
    .navbar-inner {
        gap: 10px;
    }
    .navbar .logo svg {
        width: 80px;
        height: auto;
    }
    .navbar.scrolled {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 12px 20px;
    }
    .navbar.scrolled .navbar-inner {
        padding: 0;
    }
}

.navbar-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent) !important;
    flex-shrink: 0;
}

.logo svg {
    width: 100px;
    height: 24px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease;
}

/* Instant Auth State Utilities */
.auth-only { display: none !important; }
.guest-only { display: inline-flex !important; }
.admin-only { display: none !important; }

.is-logged-in .auth-only { display: inline-flex !important; }
.is-logged-in .guest-only { display: none !important; }
.is-admin .admin-only { display: inline-flex !important; }

.desktop-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    transition: var(--transition);
    color: var(--text-main);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}


.btn-primary {
    background: #ffffff;
    color: #0c0d10;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.navbar .btn-primary {
    font-family: var(--font-serif);
    padding: 6px 16px;
    font-size: 0.75rem;
    border-radius: 100px;
}

.btn-primary:hover {
    background: #dcdcdc;
    transform: scale(1.02);
}

.prof-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.prof-nav-pill {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.prof-nav-pill.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

.profile-main-container {
    margin-top: 60px;
    min-height: 400px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .menu-toggle:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Mobile Fullscreen Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 1000;
    padding: clamp(16px, 3vw, 32px) clamp(20px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.menu-close {
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 60px;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 16px;
    opacity: 0.8;
}

.mobile-nav-links a:hover {
    color: var(--gold);
    opacity: 1;
}

.mobile-nav-links a i {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.mobile-nav-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section */
.hero {
    position: relative;
    /* The idlePan Ken Burns zoom scales the hero image up to 1.08x on a
       loop. Without a clip boundary here, the enlarged image can paint
       past the section's edges -- at the bottom, that means a strip of
       raw, uncomposited photo showing past where the overlay/mesh-bridge
       are positioned to cover it, appearing and disappearing in sync
       with the zoom. */
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    /* Single hero image now -- just a one-time fade-in plus the ambient
       Ken Burns pan, no crossfade cycling (that was built for 4 images). */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroImgFadeIn 1.5s ease forwards, idlePan 20s ease-in-out infinite;
}

@keyframes heroImgFadeIn {
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reaches fully solid at 90%, not 100% -- the old gradient only hit
       full opacity at the very last pixel, leaving a stretch right above
       the mesh-bridge where the photo (the yacht's ocean/teal tones) was
       still ~10% visible through the overlay, a visible color band. */
    background: linear-gradient(180deg,
        rgba(13, 15, 20, 0) 0%,
        rgba(13, 15, 20, 0.45) 45%,
        rgba(13, 15, 20, 0.92) 75%,
        var(--bg-flow) 90%
    );
}

.hero-mesh-bridge {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 2;
    overflow: hidden;
    line-height: 0;
    will-change: transform;
    pointer-events: none;
    /* The layered wave paths fade in opacity toward the top of this band by
       design, which lets the hero photo show through as a raw, uncomposited
       strip wherever content sits flush against the hero (no gap below to
       hide it). A solid backing here guarantees the whole band is opaque
       regardless of the paths' own alpha. */
    background: var(--bg-flow);
}

.hero-mesh-bridge svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

.hero-mesh-bridge .mesh-fill {
    fill: var(--bg-main);
    stroke: var(--accent);
    stroke-width: 0.5px;
    stroke-opacity: 0.15;
}

@keyframes particleBlurH1 {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(1.1);
        filter: blur(30px);
        letter-spacing: 0.1em;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: -0.04em;
    }
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes idlePan {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1.02); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-kicker {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #d8dade;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    opacity: 0;
    animation: simpleFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.hero-content h1 {
    font-family: 'Aquire', var(--font-serif);
    font-size: clamp(3rem, 8vw, 80px); /* Matches 80px max from image */
    font-weight: 500; /* Matches image */
    line-height: 0.9375; /* Matches 75px/80px ratio from image */
    letter-spacing: -0.02em; /* Matches -1.6px/80px ratio from image */
    margin: 0 0 32px 0;
    color: #fff; /* Always white over the hero photo, in either theme */
    opacity: 0;
    animation: particleBlurH1 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* A short, real, keyword-bearing line folded into the H1 itself
   (SEO tools want an H1 longer than a couple words) without touching the
   big "Own your time." display line -- reset every inherited property so
   it reads as its own small caption, not a continuation of the headline. */
.hero-h1-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    color: #a3a3a3;
    margin-top: 14px;
}

.hero-content p {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.15rem); /* Reduced size */
    font-weight: 500;
    color: #a3a3a3; /* Distinct metallic flat silver matching reference */
    max-width: 550px;
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8); /* Pure black backing for readability over the image, ZERO white bloom */
    opacity: 0;
    animation: simpleFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    opacity: 0;
    animation: simpleFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s forwards;
}

.hero-scroll-cue {
    position: absolute;
    right: clamp(20px, 5vw, 60px);
    bottom: 190px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: simpleFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s forwards;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: heroScrollDrip 2.2s ease-in-out infinite;
}

@keyframes heroScrollDrip {
    0% { top: -100%; }
    60% { top: 100%; }
    100% { top: 100%; }
}

.hero-scroll-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    writing-mode: vertical-rl;
}

@media (max-width: 768px) {
    .hero-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-line::after { animation: none; top: 0; }
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Standard -- the discretion statement that bridges hero and services */
.standard {
    position: relative;
    overflow: hidden;
    /* Tight on both sides -- this section now holds a compact 3-column
       step grid, not a tall statement, so the old generous padding (up
       to 130px on the bottom, on top of Categories' own top padding)
       just read as a big dead void before the services grid. */
    padding: clamp(40px, 6vw, 72px) 0;
    border-bottom: 1px solid var(--glass-border);
}

.standard-glow {
    position: absolute;
    top: 50%;
    left: 8%;
    width: min(70vw, 900px);
    height: min(70vw, 900px);
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(184, 189, 199, 0.08) 0%, rgba(184, 189, 199, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.standard-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.standard-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}

.standard-statement {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.standard-line {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    margin: 0;
}

.standard-highlight {
    color: var(--text-main);
}

/* Orchestrated stagger: eyebrow first, then each line in sequence */
.standard-eyebrow.reveal { transition-delay: 0s; }
.standard-statement .standard-line:nth-child(1) { transition-delay: 0.12s; }
.standard-statement .standard-line:nth-child(2) { transition-delay: 0.28s; }
.standard-statement .standard-line:nth-child(3) { transition-delay: 0.44s; }

/* Categories */
.categories {
    padding: clamp(60px, 10vw, 120px) 0;
    background-color: var(--bg-flow); /* Continuation of the hero base color */
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}


.header-right {
    flex: 0 1 400px;
}

.header-right p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    text-align: right;
}

/* Coverage -- real, static prose (not JS-injected like Categories) so
   crawlers/tools that don't execute JS still see substantive content. */
.coverage {
    padding: clamp(60px, 10vw, 120px) 0;
    border-top: 1px solid var(--glass-border);
}

.coverage-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
}

.coverage-body p {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

/* Process */
.process {
    padding: clamp(60px, 10vw, 120px) 0;
    border-top: 1px solid var(--glass-border);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .process-step {
        padding: 0 40px;
        border-left: 1px solid var(--glass-border);
    }

    .process-step:first-child {
        padding-left: 0;
        border-left: none;
    }
}

/* Orchestrated stagger: steps land left-to-right in reading order */
.process-step:nth-child(1).reveal { transition-delay: 0s; }
.process-step:nth-child(2).reveal { transition-delay: 0.15s; }
.process-step:nth-child(3).reveal { transition-delay: 0.3s; }

.process-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 16px;
}

.process-step h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

/* Staggered Services Grid */
.services-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (min-width: 1200px) {
    .services-container {
        max-width: 1680px;
    }

    .services-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 80px 40px;
    }

    /* At 4 columns each card is much narrower, so let the image scale
       with card width instead of keeping the fixed 3-column height —
       otherwise cards read as tall and slim rather than balanced. */
    .card-img-wrapper {
        height: auto;
        aspect-ratio: 4 / 3;
        margin-bottom: 28px;
    }

    .card-info {
        padding: 0 28px 32px 28px;
    }
}

.card {
    background: linear-gradient(
        135deg, 
        rgba(23, 26, 33, 0.8) 0%, 
        rgba(13, 15, 20, 0.4) 100%
    );
    background-color: rgba(23, 26, 33, 0.4);
    border: 1px solid rgba(184, 189, 199, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.card:hover::after {
    left: 200%;
    transition: all 0.8s ease;
}

.card:hover {
    background: #1E222B;
    border-color: #B8BDC7;
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
    width: 100%;
    height: clamp(200px, 30vh, 320px); /* Strictly prevents images from stretching too tall on any device */
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: idlePan 15s ease-in-out infinite;
    transform-origin: center center;
    transition: filter 0.8s ease;
}

.card:hover .card-img-wrapper img {
    filter: brightness(1.1);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(184, 189, 199, 0); /* Silver */
    transition: background 0.4s ease;
    pointer-events: none;
}

.card:hover .card-img-wrapper::after {
    background: rgba(184, 189, 199, 0.05); /* Subtle silver */
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    padding: 0 32px 32px 32px;
}

.card-info .chip {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.card-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-family: var(--font-serif);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

.premium-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0; /* Minimal rectangle */
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.premium-request-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.premium-request-btn:hover {
    background: #ffffff;
    color: #0b0c10;
    border-color: #ffffff;
}

.premium-request-btn:hover i {
    transform: translate(2px, -2px);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-info h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
}

.icon-btn.dark {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.icon-btn.dark:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}



/* Footer - Premium Silver Mesh */
.footer {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0 60px;
    background: #000;
    overflow: hidden;
    border-top: 1px solid rgba(184, 189, 199, 0.1);
}

.footer-mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

.footer-content-premium {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-main-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media (min-width: 1024px) {
    .footer-main-stack {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: 0.2em;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.footer-nav-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-nav-groups {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(40px, 8vw, 100px);
    }
}

.nav-group h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 600;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-group a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-group a:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
}

.footer-legal-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(184, 189, 199, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

@media (min-width: 768px) {
    .footer-legal-stack {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.legal-links {
    display: flex;
    gap: 32px;
}

.legal-links a {
    color: inherit;
    transition: var(--transition);
    text-decoration: none;
}

.legal-links a:hover {
    color: #fff;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

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

@media (max-width: 768px) {
    /* Service cards used to scroll-fade in like other reveal elements, but on
       a short mobile viewport that reads as the section being empty/unloaded
       for a beat before content appears. Show them immediately instead. */
    .card.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* The cards' own wrapper also carries .reveal (.services-container.reveal),
       so it was staying at opacity:0 -- hiding every card inside it -- until the
       whole tall container had been scrolled well into view. */
    .services-container.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet & Mobile Specific Overrides */
@media (max-width: 1024px) {
    .categories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px; /* Reset to standard gap */
    }
    
    .header-right {
        flex: 1 1 auto;
        width: 100%;
        margin-top: 0;
    }
    
    .header-right p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .deals-layout {
        justify-content: flex-start;
        margin: 0;
    }

    /* Keep the staggered look on mobile, but center them vertically using flex */
    .deals-wrapper {
        display: flex;
        align-items: center; /* This vertically centers the staggered heights */
    }


    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    /* Optional: hide deco items on very small screens to simplify */
    @media (max-width: 480px) {
        .deal-deco, .deal-deco-right {
            display: none;
        }
    }
}

/* Skeleton Styles */
.skeleton {
    background: #2c2e35;
    background: linear-gradient(
        90deg,
        #2c2e35 25%,
        #454852 50%,
        #2c2e35 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 2px;
}

.skeleton-card {
    border-color: rgba(184, 189, 199, 0.2);
}

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

.skeleton-img {
    width: 100%;
    height: clamp(200px, 30vh, 320px);
    margin-bottom: 24px;
}

.skeleton-chip {
    width: 40px;
    height: 20px;
    margin-bottom: 12px;
    border-radius: 20px;
}

.skeleton-title {
    width: 70%;
    height: 28px;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 90%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text:last-of-type {
    width: 60%;
    margin-bottom: 24px;
}

.skeleton-btn {
    width: 140px;
    height: 48px;
    margin-top: auto;
}

/* ─── Button click animations (login / logout) ─────────────────── */

/* Ripple burst on click */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.btn-ripple.rippling::after {
    animation: ripple-burst 0.55s ease-out forwards;
}
@keyframes ripple-burst {
    from { width: 0; height: 0; opacity: 0.8; }
    to   { width: 320px; height: 320px; opacity: 0; }
}

/* Inline spinner */
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Checkmark pop */
@keyframes btn-check-pop {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    60%  { transform: scale(1.25) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Shake on auth error */
@keyframes btn-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Slide-out for logout */
@keyframes logout-slide {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(14px); }
}

/* Shared state classes */
.btn-loading  { pointer-events: none; opacity: 0.7; }
.btn-success  { pointer-events: none; background: #16a34a !important; color: #fff !important; border-color: transparent !important; }
.btn-error    { background: #dc2626 !important; color: #fff !important; animation: btn-shake 0.4s ease; }
.btn-logging-out { pointer-events: none; animation: logout-slide 0.35s ease forwards; }
/* Floating Contact Suite */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
}

.floating-contact > * {
    pointer-events: auto;
}

.social-links-drawer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-contact.open .social-links-drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(26, 27, 31, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 189, 199, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8BDC7;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.social-link:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1) rotate(5deg);
}

.social-link.wa:hover { background: #25D366; color: #fff; }
.social-link.ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.social-link.x:hover { background: #000; color: #fff; border-color: #333; }

.contact-trigger {
    width: 64px;
    height: 64px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.trigger-label {
    position: absolute;
    right: 75px;
    background: rgba(26, 27, 31, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(184, 189, 199, 0.1);
}

.floating-contact.open .trigger-label,
.floating-contact:hover .trigger-label {
    opacity: 1;
    transform: translateX(0);
}

.contact-trigger i {
    font-size: 1.5rem;
    transition: transform 0.5s ease;
}

.floating-contact.open .contact-trigger i,
.floating-contact:hover .contact-trigger i {
    transform: rotate(90deg);
}

.contact-trigger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-trigger:hover::after {
    opacity: 0.2;
}

/* Pulse animation for the trigger */
.contact-trigger::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #fff;
    animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    .contact-trigger {
        width: 56px;
        height: 56px;
    }
    .trigger-label {
        display: none; /* Hide label on mobile to save space */
    }
}

/* Premium Image Loading & Shimmer */
.img-reveal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-reveal.loaded {
    opacity: 1;
}

.img-container {
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    position: relative;
}

.img-shimmer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    animation: img-shimmer-anim 2s infinite;
}

@keyframes img-shimmer-anim {
    100% { transform: translateX(100%); }
}
