/* ========================================
   Andy's Quick Stop - Custom Styles
   ======================================== */

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

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

body {
    min-height: 100vh;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, #047857, transparent 70%);
    top: -100px;
    right: -150px;
}

.geo-circle-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    bottom: 10%;
    left: -100px;
    opacity: 0.06;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #047857;
    top: 40%;
    right: 5%;
    opacity: 0.04;
    transform: rotate(15deg);
}

.geo-square-rotated {
    width: 150px;
    height: 150px;
    background: #047857;
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    opacity: 0.03;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #047857 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 30%;
    left: 3%;
    opacity: 0.1;
}

/* --- Navigation --- */
.nav-header {
    background: rgba(255, 253, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(4, 120, 87, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #047857;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.btn-primary-nav {
    position: relative;
    overflow: hidden;
}

.btn-primary-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-nav:hover::before {
    opacity: 1;
}

/* --- Mobile Menu --- */
.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 253, 247, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
}

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

.mobile-menu-link {
    display: block;
}

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

.hero-image {
    animation: heroImageFloat 6s ease-in-out infinite;
}

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

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.floating-card-1 {
    top: 15%;
    left: -20px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

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

/* --- Buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-cta:hover::before {
    opacity: 1;
}

/* --- Service Cards --- */
.service-card {
    perspective: 1000px;
}

.service-card > div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover > div {
    transform: translateY(-4px);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Badge --- */
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffdf7;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* --- Selection --- */
::selection {
    background: #047857;
    color: white;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-square-rotated {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 640px) {
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .font-display.text-5xl,
    .font-display.text-6xl,
    .font-display.text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .font-display.text-4xl {
        font-size: 2rem;
    }
}
