/* ===== Custom CSS for Haven of Hope ===== */

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

body {
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 42, 10, 0.08);
}

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

.nav.scrolled .nav-logo-text {
    color: #0a2a0a;
}

.nav-link {
    position: relative;
}

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

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

.nav.scrolled .nav-link {
    color: #1a6b1a;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a6b1a;
    color: #fdfcfa;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #145214;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 107, 26, 0.3);
}

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

/* Hero buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fdfcfa;
    color: #0a2a0a;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    background: #f5f0e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fdfcfa;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: 2px solid rgba(253, 252, 250, 0.5);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-hero-secondary:hover {
    background: rgba(253, 252, 250, 0.15);
    border-color: rgba(253, 252, 250, 0.8);
    transform: translateY(-2px);
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #0a2a0a 0%, #145214 25%, #1a6b1a 50%, #2d8a2d 75%, #85c485 100%);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: block;
}

/* ===== Badges ===== */
.badge-green {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #dcefdc;
    color: #1a6b1a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.badge-light {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(253, 252, 250, 0.15);
    color: #dcefdc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(253, 252, 250, 0.2);
}

.badge-highlight {
    display: inline-flex;
    align-items: center;
    background: #fdfcfa;
    color: #0a2a0a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-green {
    display: inline-flex;
    align-items: center;
    background: #dcefdc;
    color: #1a6b1a;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.tag-forest {
    display: inline-flex;
    align-items: center;
    background: #1a6b1a;
    color: #fdfcfa;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.tag-cream {
    display: inline-flex;
    align-items: center;
    background: rgba(253, 252, 250, 0.15);
    color: #dcefdc;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

/* ===== Room Cards ===== */
.room-card {
    opacity: 1;
}

.room-card-img-wrap {
    position: relative;
}

/* ===== Feature Cards ===== */
.feature-card {
    opacity: 1;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for reduced motion or no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    border-bottom: 1px solid #dcefdc;
    padding-bottom: 0.75rem;
}

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

/* ===== Geometric Background Shapes ===== */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: #1a6b1a;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -80px;
}

.geo-circle--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    opacity: 0.04;
}

.geo-rect {
    position: absolute;
    opacity: 0.05;
    background: #1a6b1a;
    border-radius: 1rem;
}

.geo-rect--1 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle {
    position: absolute;
    opacity: 0.04;
    background: #1a6b1a;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.geo-triangle--1 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    right: 5%;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .geometric-bg {
        display: none;
    }
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2d8a2d;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Utility ===== */
@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;
    }
    
    .room-card-img {
        transition: none;
    }
}
