/* ============================================
   Deer Trail — Custom Styles
   Warm & Friendly Home & Repair
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f6c0b0;
    color: #6e2319;
}

/* ---- Navigation ---- */
.nav-fixed {
    background: rgba(250, 248, 246, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(219, 206, 192, 0.3);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(74, 59, 49, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #d95230;
}

/* ---- Buttons ---- */
.btn-primary {
    background: #d95230;
    color: #ffffff;
    font-weight: 600;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 82, 48, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary:hover {
    background: #c23a1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 82, 48, 0.4);
    color: #ffffff;
}

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

.btn-secondary {
    background: #ffffff;
    color: #4a3b31;
    font-weight: 600;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 59, 49, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #ebe0d4;
}

.btn-secondary:hover {
    border-color: #d95230;
    color: #d95230;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 59, 49, 0.12);
}

.btn-cta {
    background: #ffffff;
    color: #d95230;
    font-weight: 600;
    border-radius: 1rem;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: #c23a1f;
}

.btn-cta-secondary {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    border-radius: 1rem;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---- Badges / Tags ---- */
.badge-tag {
    background: #fbe0d4;
    color: #a02e1a;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-tag-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fde0d4;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

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

.card-float-stat-1 {
    animation: float-medium 5s ease-in-out infinite;
}

.card-float-stat-2 {
    animation: float-fast 4s ease-in-out infinite;
}

.card-float-stat-3 {
    animation: float-medium-reverse 5.5s ease-in-out infinite;
}

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

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

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

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

/* ---- Service Cards ---- */
.service-card {
    opacity: 1;
}

.service-card .rounded-3xl {
    border: 1px solid rgba(219, 206, 192, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .rounded-3xl {
    transform: translateY(-8px);
    border-color: rgba(217, 82, 48, 0.2);
}

/* ---- Gallery Items ---- */
.gallery-item {
    opacity: 1;
}

.gallery-item .rounded-3xl {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .rounded-3xl {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 59, 49, 0.15);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    opacity: 1;
}

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

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

/* ---- Form Inputs ---- */
.input-field {
    font-family: inherit;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(217, 82, 48, 0.1);
}

.input-field::placeholder {
    color: #dbcec0;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #d95230;
    color: #ffffff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(217, 82, 48, 0.4);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    z-index: 40;
}

.back-to-top:hover {
    background: #c23a1f;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(217, 82, 48, 0.5);
}

.back-to-top svg {
    stroke: currentColor;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

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

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .card-float-stat-1,
    .card-float-stat-2,
    .card-float-stat-3 {
        display: none;
    }
}

/* ---- 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;
    }
}
