/*
Theme Name: BuyRentUp Premium Showcase
Theme URI: https://buyrentup.com
Author: Antigravity
Author URI: https://deepmind.google/antigravity
Description: Editorial Light Boutique Showcase & Media Visualizer for Real Estate.
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buyrentup
*/

/* ==========================================================================
   🏛️ EDITORIAL LIGHT DESIGN SYSTEM (Warm Ivory & Alabaster Palette)
   ========================================================================== */
:root {
    /* Palette Tokens */
    --color-bg-main: #FAF8F5;       /* Warm Soft Ivory background */
    --color-bg-secondary: #F4F0EA;  /* Soft Alabaster Cream */
    --color-surface: #FFFFFF;       /* Pure Surface White */
    --color-surface-trans: rgba(255, 255, 255, 0.85);
    
    --color-text-main: #1C1917;     /* Deep Charcoal Graphite */
    --color-text-muted: #78716C;    /* Muted Warm Stone */
    --color-text-light: #A8A29E;    /* Soft Hint Gray */
    
    --color-accent: #8C7A6B;        /* Boutique Bronze */
    --color-accent-hover: #6B5B4E;  /* Deep Warm Bronze */
    --color-accent-light: #F2ECE4;  /* Soft Bronze Tint */
    --color-border: #E7E2D9;        /* Delicate Warm Border */
    --color-border-hover: #C8BFB0;  /* Focused Border Tint */
    
    /* Typography Tokens */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Effects & Shadows */
    --glass-bg: rgba(250, 248, 245, 0.75);
    --glass-border: rgba(231, 226, 217, 0.6);
    --glass-blur: 20px;
    
    --shadow-subtle: 0 10px 30px rgba(28, 25, 23, 0.04);
    --shadow-medium: 0 20px 40px rgba(28, 25, 23, 0.07);
    --shadow-elevated: 0 30px 70px rgba(28, 25, 23, 0.12);
    --shadow-bronze: 0 12px 30px rgba(140, 122, 107, 0.2);
}

/* ==========================================================================
   Базові налаштування та захист від зсуву мобільної версії (Mobile Reset)
   ========================================================================== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* Hide scrollbars for clean horizontal carousels */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Кнопки та загальні компоненти
   ========================================================================== */
.btn-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
    outline: none;
    padding: 12px 24px;
    box-sizing: border-box;
}

.btn-bronze {
    background: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-bronze);
}

.btn-bronze:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* ✨ ВЕЛЕТЕНСЬКА ПРЯМА КНОПКА ДЗВІНКУ */
.btn-phone-direct {
    background: #8C7A6B;
    color: #FFFFFF !important;
    border: 2px solid #8C7A6B;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(140, 122, 107, 0.35);
    transition: all 0.3s ease;
}

.btn-phone-direct:hover {
    background: #6B5B4E;
    border-color: #6B5B4E;
    transform: scale(1.02);
}

/* ✨ PULSE ANIMATIONS & MICRO-INTERACTIONS */
@keyframes pulse-red-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.45); opacity: 0.4; }
}

.pulse-dot-red {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    animation: pulse-red-glow 1.8s infinite ease-in-out;
}

@keyframes btn-glow-pulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(140, 122, 107, 0.25); }
    50% { box-shadow: 0 18px 40px rgba(140, 122, 107, 0.55); }
}

.btn-cta-primary {
    background: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
    animation: btn-glow-pulse 4s infinite ease-in-out;
    min-height: 48px;
}

.btn-cta-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-editorial-outline {
    background: #FFFFFF;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.btn-editorial-outline:hover {
    border-color: var(--color-accent);
    background: #FAF8F5;
}

.btn-telegram {
    background: #0088cc;
    color: #FFFFFF;
    border-color: #0088cc;
}

.btn-telegram:hover {
    background: #006699;
    border-color: #006699;
}

/* ==========================================================================
   💬 Telegram Bridge Modal Styles
   ========================================================================== */
.telegram-bridge-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.telegram-bridge-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.telegram-bridge-card {
    background: #FFFFFF;
    border-radius: 32px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
    padding: 36px 28px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.telegram-bridge-overlay.is-active .telegram-bridge-card {
    transform: translateY(0);
}

.telegram-tag-badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ==========================================================================
   📱 МОБІЛЬНА ОПТИМІЗАЦІЯ (Mobile Ergonomics & Width Protection)
   ========================================================================== */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    /* Transform fixed header on small mobile screens to keep viewports roomy */
    .editorial-header {
        position: relative !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    main {
        padding-top: 12px !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
    }

    .btn-core {
        padding: 10px 16px !important;
        font-size: 0.75rem !important;
    }

    .ag-stage-tab {
        padding: 6px 2px !important;
    }
}

@media (max-width: 560px) {
  .floating-cta {
    left: auto !important;
    right: 16px !important;
    width: auto !important;
    max-width: fit-content !important;
    justify-content: flex-start !important;
  }
}
