/* ══════════════════════════════════════════════
   Shared Styles — Concierge Studio
   ══════════════════════════════════════════════ */

/* ── Variables (Light/Cream default) ── */
:root {
    --c-bg: #F6F2EA;
    --c-surface: #EDE7DB;
    --c-surface-elevated: rgba(255,255,255,0.70);
    --c-border: rgba(44, 42, 36, 0.08);
    --c-border-light: rgba(44, 42, 36, 0.14);
    --c-text: #2C2A24;
    --c-text-secondary: #5E5A4E;
    --c-text-muted: #8F8A7A;
    --c-accent: #B8944E;
    --c-accent-dim: #9A7A30;
    --c-accent-bright: #D4AF5E;
    --c-accent-glow: rgba(184, 148, 78, 0.10);
    --c-white: #0C0B09;
    --c-ink: #1A1914;
    --c-cream: #F6F2EA;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Instrument Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --c-bg: #0A0A0A;
    --c-surface: #111111;
    --c-surface-elevated: #1A1A1A;
    --c-border: #222222;
    --c-border-light: #2A2A2A;
    --c-text: #E8E4DE;
    --c-text-secondary: #8A8680;
    --c-text-muted: #5A5854;
    --c-accent: #D4A853;
    --c-accent-dim: #B8923F;
    --c-accent-bright: #E5C06A;
    --c-accent-glow: rgba(212, 168, 83, 0.12);
    --c-white: #FAFAF8;
    --c-ink: #FAFAF8;
    --c-cream: #0A0A0A;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border-light) transparent;
}

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageEntrance 0.4s ease-out;
}

::selection {
    background: var(--c-accent);
    color: var(--c-bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ── Noise Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 9999;
}

[data-theme="dark"] body::before {
    opacity: 0.025;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.15rem 2.5rem;
    padding-top: max(1.15rem, env(safe-area-inset-top));
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(246, 242, 234, 0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
    border-bottom-color: var(--c-border-light);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}
.nav--bordered { border-bottom-color: var(--c-border-light); }

[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.85);
    box-shadow: none;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-white);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.nav-logo span { color: var(--c-accent); }

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-links a {
    color: var(--c-text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s;
    position: relative;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--c-white); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--c-accent);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-link-active { color: var(--c-white) !important; }
.nav-link-active::after { width: 100% !important; }

.nav-cta {
    background: var(--c-white) !important;
    color: var(--c-bg) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 100px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.25s !important;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(12,11,9,0.15);
}
.nav-cta::after { display: none !important; }

[data-theme="dark"] .nav-cta {
    background: transparent !important;
    border: 1px solid var(--c-accent-dim) !important;
    color: var(--c-accent) !important;
}
[data-theme="dark"] .nav-cta:hover {
    background: var(--c-accent) !important;
    color: var(--c-bg) !important;
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ── Language Switcher ── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.lang-switcher a {
    background: none;
    border: 1px solid transparent;
    color: var(--c-text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.7rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-switcher a:hover { color: var(--c-text); }
.lang-switcher a.active {
    color: var(--c-accent);
    border-color: var(--c-accent-dim);
}
.lang-switcher span {
    color: var(--c-text-muted);
    font-size: 0.7rem;
    opacity: 0.4;
}

/* ── Theme Toggle ── */
.theme-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 0.55rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}
.theme-toggle:hover { color: var(--c-text); }
.theme-toggle svg { width: 16px; height: 16px; }

.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(246, 242, 234, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--c-white);
}
.mobile-menu a:hover { color: var(--c-accent); }

[data-theme="dark"] .mobile-menu {
    background: rgba(10, 10, 10, 0.97);
}
.mobile-menu .lang-switcher {
    margin-top: 1.5rem;
    gap: 0.5rem;
}
.mobile-menu .lang-switcher a {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
}
.mobile-menu .theme-toggle {
    margin-top: 1rem;
    padding: 0.6rem;
    border: 1px solid var(--c-border-light);
}
.mobile-menu .theme-toggle svg {
    width: 22px;
    height: 22px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 15px 34px;
    background: var(--c-white);
    color: var(--c-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(12,11,9,0.18);
}
.btn-primary svg { width: 17px; height: 17px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 15px 34px;
    background: transparent;
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1.5px solid var(--c-border-light);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-ghost:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-glow);
    color: var(--c-white);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 15px 34px;
    background: var(--c-accent);
    color: var(--c-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-gold:hover {
    background: var(--c-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184,148,78,0.25);
}
.btn-gold svg { width: 17px; height: 17px; transition: transform 0.3s; }
.btn-gold:hover svg { transform: translateX(3px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 14px 24px;
    background: transparent;
    border: 1.5px solid var(--c-border-light);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-outline:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-glow);
}

/* ── Section Layout ── */
.section {
    padding: 7rem 2.5rem;
    position: relative;
}
.section-inner {
    max-width: 1140px;
    margin: 0 auto;
}
.section-full {
    padding: 7rem 2.5rem;
    max-width: none;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 1.25rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--c-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: var(--c-white);
    line-height: 1.15;
    margin-bottom: 1.15rem;
}

.section-subtitle {
    font-size: 1.06rem;
    font-weight: 400;
    color: var(--c-text-secondary);
    max-width: 520px;
    line-height: 1.72;
    margin-bottom: 3.5rem;
}

/* ── Divider ── */
.divider {
    max-width: 1140px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border-light), transparent);
}

/* ── Tags/Pills ── */
.tag {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 100px;
    border: 1px solid var(--c-border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--c-text-muted);
    letter-spacing: 0.02em;
    margin-right: 6px;
    margin-bottom: 6px;
}

.service-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    color: var(--c-text-muted);
}

/* ── Footer ── */
.footer {
    padding: 2.5rem 2.5rem;
    border-top: 1px solid var(--c-border);
}
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    font-size: 0.78rem;
    color: var(--c-text-muted);
}
.footer-copy a { color: var(--c-accent); }
.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--c-text-secondary);
    font-size: 0.78rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--c-white); }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-5%, 10%) scale(1.15); opacity: 1; }
}

/* ── Skip to Content ── */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--c-accent);
    color: var(--c-bg);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 100px 100px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    color: var(--c-bg);
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    background: var(--c-surface-elevated);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    color: var(--c-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}
.back-to-top svg { width: 18px; height: 18px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .theme-toggle { margin-left: auto; }
}

@media (max-width: 968px) {
    .section, .section-full { padding: 5rem 2.5rem; }
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
    .section, .section-full { padding: 4.5rem 2rem; }
}

@media (max-width: 560px) {
    .nav {
        padding: 1rem 1.25rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    .section, .section-full { padding: 4rem 1.5rem; }
    .footer { padding: 2.5rem 1.5rem; }
    .footer-links { gap: 1.25rem; }
    .btn-primary,
    .btn-ghost,
    .btn-gold {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
    .btn-outline {
        padding: 11px 20px;
        font-size: 0.85rem;
    }
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}
