/* ==================== VARIABLES ==================== */
:root {
    --black: #0a0a0a;
    --black-light: #111;
    --black-lighter: #1a1a1a;
    --ash: #2a2a2a;
    --ash-light: #3a3a3a;
    --ash-lighter: #4a4a4a;
    --text: #e5e5e5;
    --text-muted: #888;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ash);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

.logo i {
    color: var(--text);
    font-size: 1.25rem;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--ash);
    list-style: none;
    padding: 1rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-menu li {
    border-bottom: 1px solid var(--ash);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        transform: none;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
    }
    
    .nav-menu li {
        border: none;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
    }
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--ash-light);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--ash-lighter);
}

.btn-primary.large {
    padding: 1.25rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--ash-light);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .btn-primary,
    .btn-outline {
        width: auto;
        padding: 1rem 2rem;
    }
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    background: var(--black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top right, var(--ash) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(10,10,10,0.3), rgba(10,10,10,0.9)),
        url('https://images.unsplash.com/photo-1598371839696-5c5bb00bdc28?w=800') center/cover;
    opacity: 0.4;
    filter: grayscale(30%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--ash-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--text);
    font-style: italic;
}

.hero-content > p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    font-style: italic;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stats > div {
    text-align: center;
}

.hero-stats span:first-child {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stats span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 4rem 2rem;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .hero-stats {
        gap: 3rem;
    }
    
    .hero-stats span:first-child {
        font-size: 2.5rem;
    }
}

/* ==================== SECTIONS ==================== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--ash);
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
}

/* ==================== FEATURED ==================== */
.featured {
    background: var(--black-light);
}

.featured-grid {
    display: grid;
    gap: 1rem;
}

.featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.featured-item.large {
    aspect-ratio: 3/4;
}

.featured-item.wide {
    aspect-ratio: 16/9;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.overlay h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-item.large {
        grid-column: span 1;
        grid-row: span 2;
        aspect-ratio: auto;
    }
    
    .featured-item.wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
    }
}

/* ==================== SERVICES ==================== */
.services {
    background: var(--black);
}

.services-grid {
    display: grid;
    gap: 1rem;
}

.service-card {
    background: var(--black-light);
    border: 1px solid var(--ash);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--ash-light);
    transform: translateY(-3px);
}

.service-card i {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== CTA ==================== */
.cta {
    background: var(--black-light);
    text-align: center;
    padding: 4rem 1rem;
}

.cta h2 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ==================== SUPPORT WIDGET ==================== */
.support-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.support-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--ash-light);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.support-toggle:hover {
    background: var(--ash-lighter);
    transform: translateY(-2px);
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--black-light);
    border: 1px solid var(--ash);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--ash);
    border-bottom: 1px solid var(--ash-light);
}

.chat-header h4 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.message.user {
    align-self: flex-end;
    background: var(--ash-light);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.admin {
    align-self: flex-start;
    background: var(--ash);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--ash);
    background: var(--black);
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    background: var(--black-light);
    border: 1px solid var(--ash);
    color: var(--white);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--ash-light);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-tools {
    display: flex;
    gap: 0.5rem;
}

.chat-tools button {
    padding: 0.5rem 1rem;
    background: var(--ash);
    border: none;
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.chat-login {
    position: absolute;
    inset: 0;
    background: var(--black-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.chat-login p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.google-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.google-btn:hover {
    background: var(--text);
}

.hidden { display: none !important; }

/* ==================== FOOTER ==================== */
footer {
    background: var(--black);
    border-top: 1px solid var(--ash);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ash);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--ash-light);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ash);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ==================== BOTTOM NAVIGATION (MOBILE ONLY) ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: #0b0b0a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    border-top: 1px solid var(--ash);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    flex: 1;
    height: 100%;
    position: relative;
    transition: color 0.3s ease;
}

.bottom-nav .nav-item i {
    font-size: 19px;
    margin-bottom: 5px;
}

.bottom-nav .nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 2px;
    background-color: #cca464;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-nav .nav-item.active {
    color: #cca464;
}

.bottom-nav .nav-item.active::after {
    opacity: 1;
}

.bottom-nav .center-button-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}

.bottom-nav .center-btn {
    position: absolute;
    top: -20px;
    height: auto;
}

.bottom-nav .icon-circle {
    width: 54px;
    height: 54px;
    background-color: #cca464;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 22px rgba(204, 164, 100, 0.45);
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.bottom-nav .center-btn i {
    color: var(--black);
    font-size: 20px;
    margin-bottom: 0;
}

.bottom-nav .center-btn span {
    color: #cca464;
    font-weight: 600;
}

.bottom-nav .center-btn::after {
    display: none;
}

@media (max-width: 1023px) {
    body {
        padding-bottom: 80px;
    }
    .support-widget {
        bottom: 90px !important;
    }
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none !important;
    }
}
