/* ===== Custom Styles for American Family Care Group ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* ===== Decorative Shapes ===== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 85, 48, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.deco-circle--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(224, 184, 75, 0.12) 0%, transparent 70%);
    bottom: 20%;
    left: -60px;
}

.deco-circle--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(224, 85, 48, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: 15%;
}

.deco-rect {
    position: absolute;
    pointer-events: none;
}

.deco-rect--1 {
    width: 80px;
    height: 80px;
    background: rgba(224, 184, 75, 0.15);
    border-radius: 20px;
    top: 30%;
    right: 5%;
    transform: rotate(15deg);
}

.deco-dots {
    position: absolute;
    pointer-events: none;
    top: 25%;
    left: 8%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(224, 85, 48, 0.2) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.7;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.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; }

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e05530, #e0b84b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 250, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
}

#mobileMenu {
    animation: fadeIn 0.2s ease-out;
}

/* ===== Buttons ===== */
button, a {
    cursor: pointer;
}

/* ===== Input Focus ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .deco-circle--1 {
        width: 200px;
        height: 200px;
    }
    
    .deco-circle--2 {
        width: 150px;
        height: 150px;
    }
    
    .deco-rect--1 {
        width: 50px;
        height: 50px;
    }
    
    .deco-dots {
        display: none;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(224, 85, 48, 0.2);
    color: #70271c;
}
