/* ============================================
   Lake Isis Villas — Custom Styles
   ============================================ */

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

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

/* --- Selection Color --- */
::selection {
    background-color: #c94420;
    color: #fdfbf7;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5ea;
}

::-webkit-scrollbar-thumb {
    background: #d9ba78;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c8a054;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c94420;
    outline-offset: 2px;
}

/* --- Scroll Reveal Animations --- */
/* 
   Default state: all elements are visible.
   JS adds .revealed class for animation on scroll.
   This ensures content is readable even without JS.
*/
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.fade-up {
    transform: translateY(30px);
    opacity: 0;
}

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

.reveal.fade-left {
    transform: translateX(-30px);
    opacity: 0;
}

.reveal.revealed.fade-left {
    opacity: 1;
    transform: translateX(0);
}

.reveal.fade-right {
    transform: translateX(30px);
    opacity: 0;
}

.reveal.revealed.fade-right {
    opacity: 1;
    transform: translateX(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.fade-up,
    .reveal.fade-left,
    .reveal.fade-right {
        transform: none;
        opacity: 1;
    }
    
    .reveal.revealed.fade-up,
    .reveal.revealed.fade-left,
    .reveal.revealed.fade-right {
        transform: none;
        opacity: 1;
    }
    
    img,
    .group:hover img,
    button,
    a {
        transition: none;
    }
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
}

#navbar.scrolled .nav-link {
    color: #2C2420;
}

#navbar.scrolled .font-serif {
    color: #2C2420;
}

/* --- Mobile Menu Animation --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Decorative Divider --- */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c94420, #f5b082);
}

/* --- Card Hover Effects --- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* --- Testimonial Quote Style --- */
.testimonial-quote {
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 80px;
    color: #fce8da;
    line-height: 1;
    z-index: 0;
}

/* --- Button Ripple (subtle) --- */
.btn-elegant {
    position: relative;
    overflow: hidden;
}

.btn-elegant::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-elegant:active::after {
    width: 300px;
    height: 300px;
}

/* --- Image Hover Zoom --- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* --- Subtle Pattern Backgrounds --- */
.pattern-dots {
    background-image: radial-gradient(circle, #d9ba78 1px, transparent 1px);
    background-size: 24px 24px;
}

/* --- Form Input Transitions --- */
input,
select,
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #menuBtn,
    #mobileMenu,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal,
    .bg-terracotta-600 {
        background: #2C2420 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
