/* ============================================
   Town Center Taps — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

/* ============================================
   Navigation
   ============================================ */
.nav-scrolled {
    background: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: rgba(20, 50, 38, 0.7);
}

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

.nav-scrolled .font-serif {
    color: #1B4332;
}

/* Mobile menu */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: color 0.2s;
}

/* Hamburger animation */
.mobile-menu.active ~ .mobile-toggle .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active ~ .mobile-toggle .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active ~ .mobile-toggle .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: #1B4332;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #143226;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1B4332;
    background: linear-gradient(135deg, #D4A843 0%, #C49A38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0d221a;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-img {
    transform: scale(1.08);
}

.hero-content {
    opacity: 1;
}

.hero-title {
    opacity: 1;
}

.hero-subtitle {
    opacity: 1;
}

.hero-cta {
    opacity: 1;
}

.hero-cards {
    opacity: 1;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.7;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ============================================
   About Section
   ============================================ */
.about-img-wrap {
    transition: transform 0.5s ease;
}

.about-img {
    transition: transform 0.6s ease;
}

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

/* ============================================
   Experience Cards
   ============================================ */
.exp-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

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

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 34, 26, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0.75rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Visit Cards
   ============================================ */
.visit-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.12);
}

/* ============================================
   Contact Form
   ============================================ */
.input-field {
    border: 1.5px solid #dce8e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #1B4332;
    background: #FBF9F6;
    transition: all 0.25s ease;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #8fb892;
}

.input-field:focus {
    border-color: #1B4332;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.08);
}

.success-message {
    animation: fadeInUp 0.5s ease;
}

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

/* ============================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal[data-delay="1"] { transition-delay: 0.1s; }
    .reveal[data-delay="2"] { transition-delay: 0.2s; }
    .reveal[data-delay="3"] { transition-delay: 0.3s; }
    .reveal[data-delay="4"] { transition-delay: 0.4s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta a {
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nav-scrolled,
    .hero-scroll,
    .mobile-menu {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        background: white;
        color: black;
    }
}
