/* ==========================================
   CW's Upholstery — Custom Styles
   ========================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric background shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #971130;
    top: -100px;
    right: -150px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ff6357;
    bottom: 20%;
    left: -80px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #971130;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #ff6357;
    top: 60%;
    left: 8%;
    opacity: 0.04;
}

.geo-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 40px solid #971130;
    top: 75%;
    right: 12%;
    opacity: 0.04;
}

/* --- Hero geometric shapes --- */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-geo-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 148, 136, 0.15);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
}

.hero-geo-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    top: 25%;
    right: 15%;
}

.hero-geo-4 {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 205, 189, 0.2);
    border-radius: 50%;
    bottom: 30%;
    right: 25%;
}

.hero-geo-5 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 148, 136, 0.12);
    top: 40%;
    left: 10%;
    transform: rotate(-20deg);
}

/* --- CTA banner geometric shapes --- */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.cta-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -80px;
    left: -80px;
}

.cta-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    bottom: -40px;
    right: 15%;
}

.cta-geo-3 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 205, 189, 0.1);
    top: 20%;
    right: 5%;
}

/* --- Badge tags --- */
.badge-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fce7eb, #fad0d9);
    color: #971130;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4em 1em;
    border-radius: 100px;
    border: 1px solid #f5a8b8;
}

.badge-tag-light {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #ffdcd3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4em 1em;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- CTA button --- */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-inline {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-inline-hidden {
    opacity: 0;
    transform: translateX(-20px);
}

/* --- Nav --- */
.nav-link {
    position: relative;
}

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

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

/* --- Service cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #971130, #ff6357);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

/* --- Testimonial cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: #fce7eb;
    pointer-events: none;
    z-index: 0;
}

/* --- Mobile menu --- */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !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-hidden,
    .reveal-inline-hidden {
        opacity: 1;
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
    .geo-circle-1 { width: 250px; height: 250px; }
    .geo-circle-2 { width: 150px; height: 150px; }
    .geo-square-1 { width: 100px; height: 100px; }
    .geo-triangle-1 { border-left-width: 60px; border-right-width: 60px; border-bottom-width: 104px; }
}
