/* ============================================
   A-1 Carpet Cleaning — 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 Hero Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 160, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 110, 0.5) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 217, 204, 0.6) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 184, 160, 0.3);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 138, 110, 0.25);
    bottom: 25%;
    right: 8%;
    transform: rotate(20deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 217, 204, 0.2);
    top: 60%;
    left: 15%;
    transform: rotate(-15deg);
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible even without JS */
.no-js .scroll-reveal,
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .no-js .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Form Focus Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #d94068;
    box-shadow: 0 0 0 3px rgba(217, 64, 104, 0.1);
    outline: none;
}

/* ============================================
   Button Hover Effects
   ============================================ */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ============================================
   Service Card Hover (group)
   ============================================ */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf2f4;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a11d40;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #f9cfd9;
    color: #6e1c37;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
