/* Waverly Ohio Realtor - Lakeside Serenity Design */

:root {
    --lake: #1e6b7a;
    --lake-dark: #165561;
    --teal: #2d8a99;
    --sage: #7fa99b;
    --sand: #e8dcc4;
    --coral: #e8927c;
    --coral-light: #f4b5a4;
    --ivory: #faf8f3;
    --mist: #e3ece9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--ivory);
    color: var(--lake-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--mist);
}

::-webkit-scrollbar-thumb {
    background: var(--coral);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-light);
}

/* Selection */
::selection {
    background: var(--coral);
    color: white;
}

/* Wave Pattern */
.wave-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    height: 120px;
    transform: translateY(1px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Hero Animations */
.hero-badge {
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Lifestyle Cards */
.lifestyle-card {
    animation: fadeInScale 0.8s ease-out both;
}

.lifestyle-card:nth-child(1) {
    animation-delay: 0.2s;
}

.lifestyle-card:nth-child(2) {
    animation-delay: 0.3s;
}

.lifestyle-card:nth-child(3) {
    animation-delay: 0.4s;
}

.lifestyle-card:hover {
    transform: translateY(-8px);
}

/* Services Section */
.services-content {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.services-testimonial {
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.service-item {
    animation: fadeInUp 0.6s ease-out both;
}

.service-item:nth-child(1) {
    animation-delay: 0.4s;
}

.service-item:nth-child(2) {
    animation-delay: 0.5s;
}

.service-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Community Section */
.community-content {
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

.community-highlight {
    animation: fadeInUp 0.6s ease-out both;
}

.community-highlight:nth-child(1) {
    animation-delay: 0.4s;
}

.community-highlight:nth-child(2) {
    animation-delay: 0.5s;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States */
a:focus,
button:focus {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

/* Rounded Elements */
.rounded-full {
    border-radius: 9999px;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .hero-badge {
        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;
    }
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(135deg, var(--lake), var(--teal));
}

/* Shadow Utilities */
.shadow-soft {
    box-shadow: 0 10px 40px rgba(30, 107, 122, 0.1);
}

.shadow-soft-lg {
    box-shadow: 0 20px 60px rgba(30, 107, 122, 0.15);
}

/* Backdrop Blur */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Custom Utilities */
.text-balance {
    text-wrap: balance;
}
