/* ==========================================================================
   ESTATEARCH - PREMIUM STYLING SYSTEM
   ========================================================================== */

/* --- 1. Global & Common Styles --- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.transition-standard {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.float-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast-enter {
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes shimmer {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: shimmer 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- 3. Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8f9ff;
}
::-webkit-scrollbar-thumb {
    background: #c4c6ce;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0054cc;
}

/* --- 4. Navigation & Header --- */
.navbar-glass {
    background: rgba(248, 249, 255, 0.75);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-bottom: 1px solid rgba(220, 225, 235, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.navbar-scrolled {
    background: rgba(248, 249, 255, 0.94);
    border-bottom: 1px solid rgba(220, 225, 235, 0.6);
    box-shadow: 0 10px 40px rgba(0, 15, 34, 0.06);
}

.logo-text {
    background: linear-gradient(135deg, #000f22 0%, #0054cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-hover-effect {
    position: relative;
}
.nav-hover-effect::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    right: 50%;
    height: 3px;
    background: linear-gradient(90deg, #C9A84C, #f0d080);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.nav-hover-effect:hover::after {
    left: 0;
    right: 0;
    opacity: 1;
}

.nav-active {
    color: #000f22 !important;
    font-weight: 600;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 4px;
    right: 4px;
    height: 4px;
    background: linear-gradient(90deg, #C9A84C 0%, #f0d080 100%);
    border-radius: 9999px;
    box-shadow: 0 1.5px 6px rgba(201, 168, 76, 0.35);
}

/* --- 5. UI Elements & Accents --- */
.hero-gradient {
    background: linear-gradient(to right, rgba(0, 15, 34, 0.82) 40%, rgba(0, 15, 34, 0.25) 100%);
}

.hero-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.gold-underline {
    position: relative;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #C9A84C, #f0d080);
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C9A84C;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px 28px;
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}
.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* --- 6. Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #000f22 0%, #0a2540 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    border-radius: 8px;
    padding: 14px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 15, 34, 0.15);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0054cc, #026aff);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 106, 255, 0.25);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    border-radius: 8px;
    padding: 13px 32px;
    backdrop-filter: blur(8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #C9A84C 0%, #a48128 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    border-radius: 8px;
    padding: 14px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}
.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0d080, #C9A84C);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}
.btn-gold:hover::before {
    opacity: 1;
}
.btn-gold span {
    position: relative;
    z-index: 1;
}

.btn-outline-gold {
    border: 1.5px solid #C9A84C;
    color: #C9A84C;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    border-radius: 8px;
    padding: 13px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-gold:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: #f0d080;
    color: #f0d080;
    transform: translateY(-2px);
}

/* --- 7. Cards & Hover Effects --- */
.property-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 15, 34, 0.12);
}
.property-card:hover .property-image {
    transform: scale(1.07);
}
.property-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 15, 34, 0.13);
}

/* --- 8. Forms & Inputs --- */
.c-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(196, 198, 206, 0.5);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0d1c2e;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}
.c-input:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}
.c-input::placeholder {
    color: #a5a7b9;
}

select.c-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.info-row {
    transition: transform .3s ease;
}
.info-row:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   PAGE SPECIFIC RULES
   ========================================================================== */

/* --- Homepage --- */
.slider-container {
    position: relative;
    height: 92vh;
    min-height: 650px;
    background: #000f22;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    background-size: cover;
    background-position: center;
}
.slide.active {
    opacity: 1;
}
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 15, 34, 0.94) 30%, rgba(0, 15, 34, 0.35) 100%);
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #C9A84C 0%, #f0d080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.25;
}

.industry-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 168, 76, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

details.premium-accordion {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}
details.premium-accordion[open] {
    box-shadow: 0 12px 35px rgba(0, 15, 34, 0.08);
    border-color: rgba(201, 168, 76, 0.25);
}
details.premium-accordion[open] summary {
    background: linear-gradient(135deg, #000f22, #0a2540);
    color: #fff;
}
details.premium-accordion[open] summary .acc-icon {
    color: #C9A84C;
    transform: rotate(180deg);
}

.acc-icon {
    transition: transform 0.3s ease;
}

/* --- About Page --- */
.who-card {
    transition: transform .35s ease, box-shadow .35s ease;
}
.who-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 15, 34, 0.10);
}

/* --- Services Catalog Page --- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(0, 15, 34, 0.12);
    border-color: rgba(0, 84, 204, 0.3);
}
.service-card:hover .svc-icon {
    background: linear-gradient(135deg, #0054cc, #026aff);
    color: #fff;
}

.svc-icon {
    transition: all 0.3s ease;
}

.stage-item {
    transition: transform 0.3s ease;
}
.stage-item:hover {
    transform: translateX(4px);
}

/* --- Service Details Page --- */
.service-hero {
    position: relative;
    height: 500px;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}
.service-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 15, 34, 0.96) 0%, rgba(0, 15, 34, 0.4) 100%);
}

.benefit-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.benefit-item:hover {
    transform: translateX(6px);
}

/* --- FAQ Page --- */
.faq-item {
    transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item[open] {
    box-shadow: 0 8px 32px rgba(0, 15, 34, .08);
    border-color: rgba(0, 84, 204, .2);
}
.faq-item[open] summary {
    background: linear-gradient(135deg, #000f22, #0a2540);
    color: #fff;
}
.faq-item[open] .faq-icon {
    color: #C9A84C;
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

summary::-webkit-details-marker {
    display: none;
}
summary {
    list-style: none;
}
