/* ========================================
   Sweet Life Texas — Custom Styles
   Premium Dark Luxury Real Estate
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-bg: #1a1410;
    --color-bg-light: #221a14;
    --color-bg-lighter: #2a1f18;
    --color-gold: #c8956c;
    --color-gold-light: #d4a574;
    --color-sand: #f5efe6;
    --color-sand-muted: rgba(245, 239, 230, 0.6);
    --color-sand-dim: rgba(245, 239, 230, 0.4);
    --color-sand-border: rgba(245, 239, 230, 0.08);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-sand);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-playfair { font-family: var(--font-display); }
.font-outfit { font-family: var(--font-body); }

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--color-gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-sand);
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

#navbar.scrolled {
    background: rgba(26, 20, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease-out-expo);
}

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

.nav-link:hover {
    color: var(--color-gold) !important;
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.5s var(--ease-out-expo), pointer-events 0.5s;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.4s var(--ease-out-expo);
}

.mobile-link:hover::after {
    width: 100%;
}

.menu-line {
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-subtitle {
    animation: fadeUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-title {
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-desc {
    animation: fadeUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.8s var(--ease-out-expo) 0.7s both;
}

.hero-stats {
    animation: fadeUp 0.8s var(--ease-out-expo) 0.8s both;
}

.hero-image-grid {
    position: relative;
    height: 580px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: 2px;
}

.hero-img img {
    transition: transform 0.8s var(--ease-out-expo);
    display: block;
}

.hero-img:hover img {
    transform: scale(1.03);
}

.hero-img-main {
    width: 340px;
    height: 460px;
    top: 0;
    right: 40px;
    z-index: 2;
}

.hero-img-secondary {
    width: 260px;
    height: 200px;
    bottom: 80px;
    left: 0;
    z-index: 3;
}

.hero-img-accent {
    width: 200px;
    height: 120px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 20, 16, 0.4) 100%);
}

.hero-img-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-bg);
    border: 1px solid rgba(200, 149, 108, 0.3);
    border-radius: 100px;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--color-sand);
    z-index: 4;
}

.hero-decor {
    position: absolute;
    pointer-events: none;
}

.hero-decor-1 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
    border: 1px solid rgba(200, 149, 108, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-decor-2 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: -10px;
    border: 1px solid rgba(200, 149, 108, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite 3s;
}

/* Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold-light);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.cta-primary:hover::before {
    transform: translateX(0);
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-primary .cta-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out-expo);
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border: 1px solid rgba(200, 149, 108, 0.4);
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.cta-secondary:hover {
    border-color: var(--color-gold);
    background: rgba(200, 149, 108, 0.08);
}

/* Stats */
.stat-number {
    font-family: var(--font-display);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    animation: fadeIn 2s ease 1s both;
}

/* ========================================
   About Section
   ======================================== */
.about-image-wrapper {
    position: relative;
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.9);
}

.about-image-accent {
    z-index: -1;
}

.about-text {
    font-size: 1rem;
}

.about-signature {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--color-gold);
}

/* ========================================
   Services Section
   ======================================== */
.service-card {
    position: relative;
}

.service-card-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-sand-border);
    border-radius: 2px;
    transition: all 0.5s var(--ease-out-expo);
}

.service-card:hover .service-card-inner {
    border-color: rgba(200, 149, 108, 0.25);
    background: rgba(200, 149, 108, 0.04);
    transform: translateY(-4px);
}

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

.service-card:hover .service-title {
    color: var(--color-gold);
}

.service-desc {
    transition: color 0.3s ease;
}

.service-card:hover .service-desc {
    color: var(--color-sand-muted);
}

/* ========================================
   Areas Section
   ======================================== */
.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--color-sand-border);
    transition: border-color 0.4s ease;
}

.area-card:hover {
    border-color: rgba(200, 149, 108, 0.3);
}

.area-card-info {
    background: var(--color-bg);
}

.area-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(200, 149, 108, 0.2);
    color: var(--color-sand-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.area-tag:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(200, 149, 108, 0.06);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    position: relative;
}

.testimonial-card-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-sand-border);
    border-radius: 2px;
    transition: all 0.5s var(--ease-out-expo);
}

.testimonial-card:hover .testimonial-card-inner {
    border-color: rgba(200, 149, 108, 0.2);
    transform: translateY(-4px);
}

.testimonial-text {
    font-size: 0.95rem;
}

/* ========================================
   Contact Form
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 239, 230, 0.1);
    border-radius: 2px;
    color: var(--color-sand);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--color-sand-dim);
}

.form-input:focus {
    border-color: var(--color-gold);
    background: rgba(200, 149, 108, 0.04);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8956c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--color-bg);
    color: var(--color-sand);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold-light);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.form-submit:hover::before {
    transform: translateX(0);
}

.form-submit > * {
    position: relative;
    z-index: 1;
}

.form-submit .form-submit-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.form-submit:hover .form-submit-arrow {
    transform: translateX(4px);
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 16px 20px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: 2px;
    color: var(--color-gold);
    font-size: 0.9rem;
}

.form-success.hidden {
    display: none;
}

/* Contact Info */
.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1023px) {
    .hero-image-grid {
        height: 420px;
        margin-top: 2rem;
    }

    .hero-img-main {
        width: 260px;
        height: 360px;
        right: 20px;
    }

    .hero-img-secondary {
        width: 200px;
        height: 160px;
        bottom: 60px;
        left: 0;
    }

    .hero-img-accent {
        width: 160px;
        height: 100px;
        bottom: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .hero-image-grid {
        height: 360px;
        margin-top: 2.5rem;
    }

    .hero-img-main {
        width: 200px;
        height: 280px;
        right: 10px;
    }

    .hero-img-secondary {
        width: 160px;
        height: 120px;
        bottom: 40px;
        left: 0;
    }

    .hero-img-accent {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem !important;
    }

    .about-image-accent {
        width: 32px;
        height: 32px;
        bottom: -4px;
        right: -4px;
    }

    .about-image-dots {
        display: none;
    }

    .cta-primary,
    .cta-secondary {
        padding: 14px 24px;
        font-size: 0.75rem;
    }
}

@media (max-width: 639px) {
    .hero-image-grid {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 2rem;
    }

    .hero-img {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 180px !important;
    }

    .hero-img-main {
        grid-column: 1 / -1;
        height: 240px !important;
    }

    .hero-img-secondary {
        height: 140px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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