/* ============================================
   Texture Co. — Premium Dark Luxury Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B1318;
}

::-webkit-scrollbar-thumb {
    background: #1A6B6E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2A9D9F;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #070E12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(201, 169, 110, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-fill {
    width: 40%;
    height: 100%;
    background: #C9A96E;
    border-radius: 2px;
    animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* --- Navbar --- */
.navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(7, 14, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 14, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-link {
    display: block;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #D4AF7A 0%, #C9A96E 50%, #B8944F 100%);
    color: #070E12;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
    color: #070E12;
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #E8EBED;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: #C9A96E;
    color: #C9A96E;
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 14, 18, 0.92) 0%,
        rgba(7, 14, 18, 0.82) 40%,
        rgba(11, 19, 24, 0.75) 100%
    );
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(26, 107, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
}

.hero-headline {
    letter-spacing: -0.01em;
}

.hero-badge {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 100px;
}

/* --- Scroll Indicator --- */
.hero-scroll {
    opacity: 0.7;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #C9A96E, transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C9A96E;
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 0; transform: translateY(-4px); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* --- Stat Cards --- */
.stat-card {
    background: rgba(11, 19, 24, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 140px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-4px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-number {
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* --- Section Labels --- */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A96E;
}

/* --- Service Cards --- */
.services-section {
    position: relative;
}

.services-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 107, 110, 0.04) 1px, transparent 0);
    background-size: 40px 40px;
}

.service-card {
    perspective: 800px;
}

.service-card-inner {
    background: rgba(15, 28, 36, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-inner {
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(15, 28, 36, 0.9);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(201, 169, 110, 0.05) 100%);
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.25) 0%, rgba(201, 169, 110, 0.1) 100%);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    transition: color 0.2s ease;
}

.service-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(201, 169, 110, 0.2), transparent);
    margin-top: 4px;
}

/* --- About --- */
.about-section {
    position: relative;
}

.about-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(201, 169, 110, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.about-accent {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    pointer-events: none;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 5 / 9; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 9 / 11; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 11 / 13; grid-row: 2 / 3; }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 14, 18, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-tag {
    background: rgba(201, 169, 110, 0.9);
    color: #070E12;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Testimonials --- */
.testimonials-section {
    position: relative;
}

.testimonials-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 107, 110, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

.testimonial-card {
    background: rgba(11, 19, 24, 0.7);
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(201, 169, 110, 0.2);
    background: rgba(11, 19, 24, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- CTA --- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    background-image: 
        radial-gradient(ellipse at 30% 50%, rgba(26, 107, 110, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(201, 169, 110, 0.1) 0%, transparent 60%);
}

/* --- Contact --- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.contact-info-item:hover {
    background: rgba(201, 169, 110, 0.04);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-card {
    background: rgba(15, 28, 36, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 20px;
    padding: 36px;
}

.form-input {
    background: rgba(7, 14, 18, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: #E8EBED;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: #5A646C;
}

.form-input:focus {
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(7, 14, 18, 0.8);
}

.form-input option {
    background: #0B1318;
    color: #E8EBED;
}

.form-success {
    animation: fadeInUp 0.4s ease;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.3), transparent);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Prefers-reduced-motion: reveal on load */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always visible for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
    .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(6) { grid-column: 1 / 3; grid-row: auto; }
    
    .gallery-img {
        height: 180px;
    }
    
    .gallery-item:nth-child(1) .gallery-img,
    .gallery-item:nth-child(4) .gallery-img {
        height: 220px;
    }
    
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 479px) {
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .gallery-img {
        height: 200px;
    }
}
