/* ================================================================
   RLTY INK — Shared Stylesheet
   ================================================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ---------------------------------------------------------------
   ICON FONT DEFAULT
   --------------------------------------------------------------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---------------------------------------------------------------
   DESIGN SYSTEM — SHARED SHADOWS & GRADIENTS
   --------------------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}
.gold-shimmer {
    background: linear-gradient(135deg, #d4af37 0%, #ffe088 50%, #d4af37 100%);
}
.luxury-shadow {
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.45), 0 18px 36px -18px rgba(0,0,0,0.5);
}
.obsidian-pop-shadow {
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7), 0 30px 60px -30px rgba(0,0,0,0.8);
}
.luxury-card-shadow {
    box-shadow: 0 40px 80px -15px rgba(0,0,0,0.6);
}
.editorial-shadow {
    box-shadow: 0 40px 60px -15px rgba(28,27,27,0.06);
}
.glass-nav {
    background: rgba(11,11,11,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Force nav above third-party widget iframes */
header.nav-dark,
nav.nav-light {
    z-index: 9999 !important;
}

/* ---------------------------------------------------------------
   DESKTOP NAV — SHARED LINK STYLE
   --------------------------------------------------------------- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-weight: inherit;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.nav-chevron {
    font-size: 13px !important;
    line-height: 1;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 155px;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.45rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    color: #d4af37;
    background-color: rgba(255,255,255,0.04);
}

/* Light-theme dropdown panel */
.nav-dropdown-menu-light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.nav-dropdown-menu-light a {
    color: rgba(11,11,11,0.55);
}
.nav-dropdown-menu-light a:hover {
    color: #735c00;
    background-color: rgba(212,175,55,0.06);
}

/* ---------------------------------------------------------------
   HAMBURGER BUTTON
   --------------------------------------------------------------- */
#mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
#mobile-menu-btn:hover { opacity: 0.7; }
#mobile-menu-btn .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hamburger visibility handled via Tailwind flex xl:hidden on the button element */
/* White hamburger icon on dark nav */
.nav-dark #mobile-menu-btn .material-symbols-outlined { color: #ffffff !important; }
/* Dark hamburger icon on light nav */
.nav-light #mobile-menu-btn .material-symbols-outlined { color: #0b0b0b !important; }

/* ---------------------------------------------------------------
   MOBILE NAVIGATION OVERLAY
   --------------------------------------------------------------- */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(11, 11, 11, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}
#mobile-menu.is-open { display: flex; }

#mobile-menu .mm-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-decoration: none;
    margin-bottom: 1.75rem;
    display: block;
}

#mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
#mobile-menu nav a {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.2rem 0;
}
#mobile-menu nav a:hover { color: #d4af37; }

/* "About" section label in mobile menu */
.mm-section-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-top: 0.5rem;
    display: block;
}

/* Sub-links under About */
#mobile-menu nav a.mm-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.14em;
}
#mobile-menu nav a.mm-sub:hover { color: #d4af37; }

/* Social icons */
#mobile-menu .mm-socials {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
#mobile-menu .mm-socials a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}
#mobile-menu .mm-socials a:hover { color: #d4af37; }

/* Phone CTA */
#mobile-menu .mm-cta {
    display: inline-block;
    background: #d4af37;
    color: #241a00;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    text-decoration: none;
    transition: filter 0.2s;
    border-radius: 2px;
}
#mobile-menu .mm-cta:hover { filter: brightness(1.1); }

/* Close button */
#mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
    font-size: 1.75rem;
}
#mobile-menu-close:hover { color: #ffffff; }

/* ---------------------------------------------------------------
   INDEX HERO — RESPONSIVE CTA CARDS
   On desktop: absolute, hanging just below the hero into the press bar.
   On mobile: normal document flow below the search bar.
   Compact horizontal cards (~70px tall) so offset is much smaller.
   --------------------------------------------------------------- */
.hero-cta-grid { margin-top: 2rem; }

@media (min-width: 768px) {
    .hero-cta-grid {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5.5rem;
        z-index: 40;
        margin-top: 0;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ---------------------------------------------------------------
   RESPONSIVE TYPOGRAPHY
   Constrains oversized Tailwind heading classes on small screens.
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.15 !important;
    }
    h2 {
        font-size: clamp(1.35rem, 6vw, 1.875rem) !important;
        line-height: 1.2 !important;
    }
    h3, h4 {
        font-size: clamp(1rem, 4vw, 1.35rem) !important;
        line-height: 1.3 !important;
    }
}

/* ---------------------------------------------------------------
   RESPONSIVE IMAGES & HERO SECTIONS
   --------------------------------------------------------------- */

/* All hero background images: always cover their container */
section > .absolute img,
section > div > .absolute img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Constrain fixed-pixel hero heights on mobile so content doesn't overflow */
@media (max-width: 767px) {
    .min-h-\[921px\] { min-height: 75vh !important; }
    .min-h-\[800px\] { min-height: 70vh !important; }
    .h-\[819px\]     { height: auto !important; min-height: 70vh; }

    /* Buy/Sell card image frames — reduce height on mobile */
    .h-\[750px\]     { height: 480px !important; }
    .h-\[550px\]     { height: 360px !important; }

    /* Wide property image on cash-offer page */
    .aspect-\[21\/7\] { aspect-ratio: 16/9 !important; }
}

/* ---------------------------------------------------------------
   DESKTOP NAV FONT UPGRADE
   Increase from 10px to 13px, semi-bold on all pages.
   --------------------------------------------------------------- */
@media (min-width: 1280px) {
    /* Dark nav (index.html) — nav links */
    header.nav-dark [class*="xl:flex"] a,
    header.nav-dark [class*="xl:flex"] .nav-dropdown-btn {
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.09em !important;
    }
    /* Light nav (all other pages) — nav links */
    nav.nav-light [class*="xl:flex"] a,
    nav.nav-light [class*="xl:flex"] .nav-dropdown-btn {
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.09em !important;
    }
    /* Phone CTA button — larger, bolder */
    .nav-dark a[href^="tel:"],
    nav.nav-light a[href^="tel:"] {
        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 0.14em !important;
        padding: 0.7rem 1.4rem !important;
    }
}

/* ---------------------------------------------------------------
   HERO CTA GLASSMORPHISM CARDS
   --------------------------------------------------------------- */
.hero-cta-card {
    background: rgba(11, 11, 11, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: all 0.3s ease;
    text-decoration: none;
}
.hero-cta-card:hover {
    background: rgba(11, 11, 11, 0.88);
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------
   SEO HEADINGS — H1 / HERO-HEADLINE
   --------------------------------------------------------------- */
.seo-h1 {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.55;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    color: inherit;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .seo-h1 { display: none; }
}
.hero-headline {
    display: block;
}
.hero-cta-card.tab-active {
    border-color: rgba(212,175,55,0.5) !important;
    background: rgba(212,175,55,0.12) !important;
}

/* ---------------------------------------------------------------
   INTERACTIVE SVG MAP STATES
   --------------------------------------------------------------- */
.map-state {
    transition: fill 0.25s ease;
    cursor: pointer;
}
.map-state:hover { fill: rgba(212, 175, 55, 0.32) !important; }
.map-state-label {
    pointer-events: none;
    user-select: none;
}
.map-city-dot {
    transition: r 0.2s ease, opacity 0.2s ease;
}
.map-state:hover ~ .map-city-dot { opacity: 1; }

/* ---------------------------------------------------------------
   CTA PULSE ANIMATION
   --------------------------------------------------------------- */
@keyframes gold-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    50% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.10); }
}
.cta-pulse { animation: gold-pulse 3.5s ease-in-out infinite; }

/* Thin gold divider between sections */
.section-gold-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.28), transparent);
}

/* ---------------------------------------------------------------
   REWARDS PAGE — MOBILE HERO STACKING FIX
   --------------------------------------------------------------- */
.rewards-hero-img-wrap {
    height: 58vw;
    min-height: 240px;
    max-height: 460px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .rewards-hero-img-wrap {
        height: auto;
        max-height: none;
        min-height: 100vh;
        flex-shrink: 1;
    }
}

/* ---------------------------------------------------------------
   BUY PAGE — LUXURY GOLD / OBSIDIAN THEME CLASSES
   Defined explicitly here so they work regardless of Tailwind CDN
   config timing. These override/supplement Tailwind-generated classes.
   --------------------------------------------------------------- */

/* Obsidian color utilities */
.bg-obsidian        { background-color: #0B0B0B !important; }
.text-obsidian      { color: #0B0B0B !important; }
.border-obsidian    { border-color: #0B0B0B !important; }

/* Luxury gold color utilities */
.bg-luxury-gold     { background-color: #D4AF37 !important; }
.text-luxury-gold   { color: #D4AF37 !important; }
.border-luxury-gold { border-color: #D4AF37 !important; }

/* Opacity variants used on buy page */
.bg-luxury-gold\/10  { background-color: rgba(212, 175, 55, 0.10) !important; }
.bg-luxury-gold\/20  { background-color: rgba(212, 175, 55, 0.20) !important; }
.border-luxury-gold\/20 { border-color: rgba(212, 175, 55, 0.20) !important; }
.border-white\/5     { border-color: rgba(255, 255, 255, 0.05) !important; }

/* Inverse surface (dark sections on contact/sell pages) */
.bg-inverse-surface  { background-color: #313030 !important; }
.text-inverse-surface { color: #313030 !important; }

.luxury-border {
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.gold-highlight {
    color: #D4AF37;
}
.text-shadow-gold {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.text-shadow-editorial {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ingot-button {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ingot-button:hover {
    transform: translateY(-2px);
}
.blueprint-grid {
    background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.border-gold {
    border-color: #d4af37;
}
.glass-nav {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.editorial-line {
    height: 1px;
    background: linear-gradient(to right, #d4af37, transparent);
}
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.metallic-gold {
    background: linear-gradient(135deg, #735c00 0%, #d4af37 50%, #735c00 100%);
}

/* ---------------------------------------------------------------
   GENERAL MOBILE POLISH
   --------------------------------------------------------------- */
@media (max-width: 640px) {
    /* Tighten generous section padding on mobile */
    .py-32 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .px-12, .px-8 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .px-24 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

    /* Don't scale-105 middle testimonial on mobile (breaks layout) */
    .scale-105 { transform: scale(1) !important; }

    /* Rewards hero card — full-width on mobile */
    .max-w-2xl { max-width: 100% !important; }
}
