/* ============================================
   Verdile's - Mario the Tailor
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #97c69e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #68a56e;
}

/* --- Pill Badge --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(46, 102, 50, 0.08);
    border: 1px solid rgba(46, 102, 50, 0.15);
    border-radius: 9999px;
    color: #2e6632;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* --- Primary Button --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #2e6632;
    color: #fefdf8;
    border: none;
    border-radius: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px -3px rgba(46, 102, 50, 0.3);
}

.btn-primary:hover {
    background: #235026;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(46, 102, 50, 0.4);
}

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

/* --- Secondary Button --- */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #fefdf8;
    border: 2px solid rgba(254, 253, 248, 0.3);
    border-radius: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.1);
    border-color: rgba(254, 253, 248, 0.6);
    transform: translateY(-2px);
}

/* --- Input Fields --- */
.input-field {
    padding: 0.875rem 1rem;
    background: #f5f0e8;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #173318;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #97c69e;
}

.input-field:hover {
    border-color: #c5dfc8;
    background: #fdf9ed;
}

.input-field:focus {
    border-color: #448349;
    background: #fefdf8;
    box-shadow: 0 0 0 4px rgba(68, 131, 73, 0.1);
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px -2px rgba(30, 64, 30, 0.08);
}

.nav-scrolled .nav-link {
    color: #2e6632 !important;
}

.nav-scrolled .font-serif {
    color: #173318 !important;
}

.nav-scrolled .text-forest-600 {
    color: #448349 !important;
}

/* --- Hero Floating Cards --- */
.floating-card-1 {
    animation: float-1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-3 5s ease-in-out infinite;
}

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

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

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(5px); }
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2e6632, #68a56e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3efe5;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}
