/* Karyan Nine — Premium Luxury Theme Stylesheet */

:root {
    --primary-color: #1c1917;
    --primary-dark: #0c0a09;
    --secondary-color: #44403c;
    --gold: #d4af37;
    --gold-light: #f5e0a3;
    --gold-dark: #a1821f;
    --accent-color: #d4af37;
    --light-bg: #faf7f2;
    --cream: #faf7f2;
    --white: #ffffff;
    --text-dark: #1c1917;
    --text-light: #78716c;
    --border-color: #e7e5e4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 4px 30px rgba(28, 25, 23, 0.05);
    --shadow-luxury: 0 10px 40px rgba(28, 25, 23, 0.12);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

/* Background watermark quote for luxury feeling */
body::before {
    content: "KARYAN NINE — LUXURY WITHOUT LIMITS";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 0;
    font-family: var(--font-heading);
    font-size: 6vw;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.02;
    pointer-events: none;
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
}

/* Navigation Menu */
.navbar {
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.navbar-brand img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.15));
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #e7e5e4 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 10, 9, 0.9) 0%, rgba(12, 10, 9, 0.6) 50%, rgba(12, 10, 9, 0.9) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.hero-headline h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #d6d3d1;
    margin-top: 1.5rem;
    font-weight: 300;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 2rem auto;
    border-radius: 2px;
}

.hero-specs-list {
    background: rgba(28, 25, 23, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #f5f5f4;
}

.hero-specs-list li {
    display: flex;
    align-items: center;
}

.hero-specs-list li i {
    font-size: 1.2rem;
}

.text-gold {
    color: var(--gold) !important;
}

/* Common Section Styles */
.section-padding {
    padding: 6.5rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* AI facts box */
.ai-quick-summary {
    background: #ffffff;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    box-shadow: var(--shadow-luxury);
}

.ai-quick-summary table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f4;
}

.ai-quick-summary table tr:last-child td {
    border-bottom: none;
}

/* Specifications Cards */
.spec-category {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
    transition: var(--transition);
}

.spec-category:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.spec-category h5 {
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Luxury button styling */
.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 0.75rem 2rem;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
    color: var(--white) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4) !important;
}

.btn-outline-light {
    border-color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 0.75rem 2rem;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary-dark) !important;
}

.btn-success {
    background: #15803d;
    border-color: #15803d;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
}

.btn-success:hover {
    background: #166534 !important;
    border-color: #166534 !important;
}

/* Hover Zoom Utility */
.hover-zoom {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hover-zoom img {
    transition: var(--transition);
    width: 100%;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Tables styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.table-dark {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Forms styling */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.contact-form-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-luxury);
}

/* Accordion */
.accordion-luxury .accordion-item {
    border: 1px solid var(--border-color) !important;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.accordion-luxury .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    background: var(--white);
}

.accordion-luxury .accordion-button:not(.collapsed) {
    color: var(--gold-dark);
    background: var(--light-bg);
    box-shadow: none;
}

.accordion-luxury .accordion-button::after {
    filter: grayscale(1) brightness(0.5);
}

/* Footer styling */
.footer {
    background: var(--primary-dark);
    color: #a8a29e;
    padding: 5rem 0 3rem;
    border-top: 2px solid var(--gold);
}

/* Modals layout */
.modal-content {
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-luxury);
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

/* Secure unit overlay */
.eoi-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 10, 9, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.eoi-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.eoi-popup-card {
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-luxury);
}

.eoi-popup-overlay.active .eoi-popup-card {
    transform: scale(1);
}

.eoi-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.eoi-popup-close:hover {
    color: var(--gold-dark);
}

.eoi-popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.eoi-popup-shield {
    width: 64px;
    height: 64px;
    background: var(--light-bg);
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.eoi-popup-title {
    font-weight: 800;
    margin-bottom: 0;
}

.eoi-popup-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.eoi-popup-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    font-weight: 600;
}

.eoi-popup-amount {
    color: #b91c1c;
    font-weight: 800;
    font-size: 2.25rem;
}

.eoi-popup-only {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-light);
}

.eoi-popup-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.eoi-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eoi-popup-btn {
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.eoi-popup-btn-cost {
    background: var(--gold);
    color: var(--primary-dark);
}

.eoi-popup-btn-cost:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.eoi-popup-btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.eoi-popup-btn-whatsapp:hover {
    background: #128c7e;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none !important;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.08) rotate(15deg);
    color: var(--white);
}

/* Sticky EOI vertical middle bar */
.sticky-eoi-middle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
}

.sticky-eoi-bar-link {
    background: var(--primary-color);
    border-left: 2px solid var(--gold);
    color: var(--gold) !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.6rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.sticky-eoi-bar-link:hover {
    background: var(--gold);
    color: var(--primary-dark) !important;
    border-left-color: var(--primary-dark);
}

.sticky-eoi-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.sticky-eoi-icon-wrap {
    margin-top: 0.5rem;
    font-size: 1.15rem;
}

/* Scroll indicator animation */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.hero-scroll-indicator:hover {
    opacity: 1;
    color: var(--gold);
}

.hero-scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-dot::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    .hero-specs-list {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
}
