/* =====================================================
   PANTEON DE DASMARIÑAS — MODERN DESIGN SYSTEM
   Color Scheme: Forest Green #1e5631 + Gold #c5a400
   ===================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0d2b18;
    --green-800: #154124;
    --green-700: #1e5631;
    --green-600: #26613a;
    --green-500: #2e7d46;
    --green-400: #4a9d6b;
    --green-100: #e8f5e9;
    --gold-600: #a88a00;
    --gold-500: #c5a400;
    --gold-400: #d4b30a;
    --gold-300: #e6c840;
    --gold-100: #fff8e1;
    --dark: #111827;
    --dark-600: #374151;
    --dark-500: #4b5563;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ACCESSIBILITY BAR ===== */
.accessibility-bar {
    background: #2c2c2c;
    color: #fff;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    z-index: 1100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 32px;
}

.accessibility-bar .acc-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.accessibility-bar .acc-label {
    margin-right: 4px;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.accessibility-bar .acc-text-btn,
.accessibility-bar .acc-contrast-btn {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.accessibility-bar .acc-text-btn:hover,
.accessibility-bar .acc-contrast-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}

.accessibility-bar .acc-text-btn.active,
.accessibility-bar .acc-contrast-btn.active {
    background: var(--green-700, #1e5631);
    border-color: var(--green-700, #1e5631);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

.accessibility-bar .acc-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.2);
    margin: 0 2px;
}

@media (max-width: 480px) {
    .accessibility-bar {
        padding: 5px 8px;
        justify-content: center;
        gap: 6px;
        min-height: 36px;
    }
    .accessibility-bar .acc-group {
        gap: 3px;
    }
    .accessibility-bar .acc-label {
        font-size: 0.76rem;
        margin-right: 2px;
        color: rgba(255,255,255,0.85);
    }
    .accessibility-bar .acc-label .acc-lbl-text {
        display: none;
    }
    .accessibility-bar .acc-text-btn,
    .accessibility-bar .acc-contrast-btn {
        padding: 3px 7px;
        font-size: 0.72rem;
        min-height: 28px;
    }
    .accessibility-bar .acc-divider {
        height: 16px;
        margin: 0 2px;
    }
}

/* ===== HIGH CONTRAST / DARK MODE (Landing Page) ===== */
body.high-contrast {
    --gray-50: #1a1a2e;
    --gray-100: #22223a;
    --gray-200: #2d2d44;
    --gray-300: #3a3a52;
    --gray-400: #8888a0;
    --white: #1e1e30;
    --dark: #f0f0f5;
    --dark-500: #c0c0d0;
    --dark-600: #d0d0e0;
    --green-100: rgba(30,86,49,0.15);
}

body.high-contrast .header-top {
    background: rgba(26,26,46,0.97);
    border-bottom-color: rgba(255,255,255,0.08);
}

body.high-contrast .header-top.scrolled {
    background: rgba(26,26,46,0.99);
}

body.high-contrast .nav-link {
    color: #c0c0d0;
}

body.high-contrast .nav-link:hover,
body.high-contrast .nav-link.active {
    color: #a0e0b0;
    background: rgba(30,86,49,0.2);
}

body.high-contrast .logo-text h1 {
    color: #a0e0b0;
}

body.high-contrast .logo-text p {
    color: #8888a0;
}

body.high-contrast .about-section {
    background: #1e1e30;
}

body.high-contrast .services-section {
    background: #1a1a2e;
}

body.high-contrast .service-card {
    background: #22223a;
    border-color: #2d2d44;
}

body.high-contrast .service-card h3 {
    color: #f0f0f5;
}

body.high-contrast .service-card p {
    color: #a0a0b8;
}

body.high-contrast .card-icon {
    background: rgba(30,86,49,0.2);
}

body.high-contrast .map-section {
    background: #1e1e30;
}

body.high-contrast .contact-section {
    background: #1a1a2e;
}

body.high-contrast .contact-form-panel {
    background: #22223a;
    border-color: #2d2d44;
}

body.high-contrast .contact-form-panel h3 {
    color: #f0f0f5;
}

body.high-contrast .form-group input,
body.high-contrast .form-group textarea {
    background: #2d2d44;
    border-color: #3a3a52;
    color: #f0f0f5;
}

body.high-contrast .form-group label {
    color: #a0a0b8;
}

body.high-contrast .section-title {
    color: #a0e0b0;
}

body.high-contrast .section-tag {
    background: rgba(30,86,49,0.2);
    color: #a0e0b0;
}

body.high-contrast .about-lead {
    color: #e0e0e8;
}

body.high-contrast .about-text p {
    color: #a0a0b8;
}

body.high-contrast .feature-item {
    background: #2d2d44;
    color: #e0e0e8;
}

body.high-contrast .feature-item:hover {
    background: rgba(30,86,49,0.2);
}

body.high-contrast .footer {
    background: #0d0d1a;
}

body.high-contrast .mobile-nav {
    background: rgba(26,26,46,0.98);
}

body.high-contrast .mobile-nav-link {
    color: #e0e0e8;
    border-bottom-color: #2d2d44;
}

body.high-contrast .bottom-navbar {
    background: rgba(26,26,46,0.95);
    border-top-color: #2d2d44;
}

body.high-contrast .bottom-nav-item {
    color: #8888a0;
}

body.high-contrast .bottom-nav-item.active,
body.high-contrast .bottom-nav-item:hover {
    color: #a0e0b0;
}

body.high-contrast .accessibility-bar {
    background: #111122;
}

body.high-contrast .map-wrapper {
    border-color: #2d2d44;
}

body.high-contrast .map-info-bar {
    background: #0d2b18;
    color: #ffffff !important;
}

body.high-contrast .map-info-item,
body.high-contrast .map-info-item span {
    color: #ffffff !important;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--gray-50);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.nav-open {
    overflow: hidden;
}

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

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.2;
    color: var(--dark);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(30,86,49,0.3);
}

.btn-primary:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,86,49,0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(197,164,0,0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197,164,0,0.4);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-top {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header-top.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 73px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-500);
    transition: var(--transition);
}

.logo:hover { transform: scale(1.08); }

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--green-700);
    margin-bottom: 0;
}

.logo-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--dark-500);
    font-weight: 400;
}

/* Nav Desktop */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-500);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--green-700);
    background: var(--green-100);
}

.nav-link.active {
    color: var(--green-700);
    background: var(--green-100);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    padding: 32px 24px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--green-700);
    padding-left: 10px;
}

.mobile-nav-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-actions .btn {
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: url('cemetery photos/banner.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13,43,24,0.88) 0%,
        rgba(30,86,49,0.78) 40%,
        rgba(13,43,24,0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: slideDown 0.8s ease forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto 32px;
    font-weight: 300;
    animation: slideDown 0.8s ease 0.2s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Box */
.search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    margin-bottom: 48px;
    animation: slideDown 0.8s ease 0.3s both;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 20px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: var(--gold-500);
    box-shadow: 0 0 30px rgba(197,164,0,0.15);
}

.search-icon {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.45);
}

.search-box button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(197,164,0,0.4);
}

/* Search Prompt */
.search-prompt {
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
}

/* Search Results Dropdown */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(13,43,24,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 9999;
    padding: 8px;
}

.search-results.visible {
    display: block;
    animation: searchDropIn 0.3s ease;
}

@keyframes searchDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-track {
    background: transparent;
}
.search-results::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.search-count {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-400);
    padding: 8px 12px 4px;
}

.search-loading,
.search-empty {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.search-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.3);
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: default;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.08);
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197,164,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-400);
    font-size: 0.8rem;
    margin-top: 2px;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.result-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(197,164,0,0.2);
    color: var(--gold-300);
    margin-top: 4px;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
}

.result-details span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-details span i {
    font-size: 0.68rem;
    color: var(--green-400);
}

.result-type-badge {
    padding: 1px 8px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(78,160,106,0.2) !important;
    color: var(--green-400) !important;
    font-size: 0.7rem !important;
    font-weight: 600;
    text-transform: capitalize;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: slideDown 0.8s ease 0.4s both;
    position: relative;
    z-index: 0;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-300);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Ensure down arrow is below search results and disappears when dropdown is open */
.hero-section:has(.search-results.visible) .hero-scroll,
.hero-scroll.hidden-by-search {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hero-scroll a {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== SECTIONS COMMON ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-100);
    color: var(--green-700);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--green-800);
    margin-bottom: 12px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--dark-500);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--green-100);
}

.feature-item i {
    color: var(--green-500);
    font-size: 0.9rem;
}

/* Slider */
.slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-slider .slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slider .slide-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
}

.slider-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold-500);
    transform: scale(1.2);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation-delay: var(--delay, 0s);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green-100), rgba(30,86,49,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-icon i {
    font-size: 1.4rem;
    color: var(--green-700);
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
}

.service-card:hover .card-icon i {
    color: var(--white);
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--dark-500);
    line-height: 1.65;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-700), var(--gold-500));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover .card-accent {
    transform: scaleX(1);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 100px 0;
    background: var(--white);
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.map-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0d2b18;
    color: #ffffff !important;
    flex-wrap: wrap;
    gap: 12px;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #ffffff !important;
}

.map-info-item span {
    color: #ffffff !important;
    font-weight: 600;
}

.map-info-item i {
    color: var(--gold-400);
}

.map-embed {
    position: relative;
    background: var(--gray-200);
}

.map-embed iframe {
    display: block;
    width: 100%;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-panel {
    background: linear-gradient(160deg, var(--green-800), var(--green-700));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
}

.contact-info-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 12px;
}

.contact-info-panel > p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(197,164,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--gold-400);
    font-size: 1rem;
}

.contact-item strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.contact-item span {
    font-size: 0.92rem;
    color: var(--white);
}

/* Contact Form */
.contact-form-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-form-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--green-800);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--gray-50);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,86,49,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--green-900);
    color: var(--white);
}

.footer-main {
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-500);
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold-400);
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-400);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold-400);
    padding-left: 6px;
}

.footer-col a i {
    font-size: 0.65rem;
    color: var(--gold-500);
}

.footer-col p i {
    color: var(--gold-500);
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===== BOTTOM MOBILE NAV ===== */
.bottom-navbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.1rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--green-700);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .header-actions .btn { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info-panel {
        padding: 32px;
    }

    .contact-form-panel {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .bottom-navbar { display: flex; }

    .footer { padding-bottom: 72px; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-stats {
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .map-info-bar {
        flex-direction: column;
        text-align: center;
    }

    .about-section,
    .services-section,
    .map-section,
    .contact-section {
        padding: 64px 0;
    }

    .section-container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 28px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        display: none;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 24px 16px;
    }

    .contact-info-panel h3 {
        font-size: 1.3rem;
    }

    .contact-form-panel h3 {
        font-size: 1.3rem;
    }

    .contact-grid {
        gap: 24px;
    }

    .search-box {
        padding: 4px 4px 4px 14px;
    }

    .search-box input {
        font-size: 0.88rem;
    }

    .search-prompt {
        font-size: 0.95rem;
    }

    .search-results {
        max-width: calc(100vw - 32px);
        max-height: 300px;
    }

    .result-details {
        flex-direction: column;
        gap: 4px;
    }

    .result-icon {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .result-name {
        font-size: 0.88rem;
    }
}

/* ===== POLISHED MAP BUTTON (Nav) ===== */
.nav-map-btn {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400)) !important;
    color: var(--green-900) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 12px rgba(197,164,0,0.35);
    position: relative;
    overflow: hidden;
    animation: navMapPulse 3s ease-in-out infinite;
}

.nav-map-btn:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300)) !important;
    color: var(--green-900) !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(197,164,0,0.45);
}

.nav-map-btn i {
    font-size: 0.85rem;
}

@keyframes navMapPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(197,164,0,0.35); }
    50% { box-shadow: 0 4px 20px rgba(197,164,0,0.55), 0 0 0 4px rgba(197,164,0,0.1); }
}

/* ===== HERO MAP BUTTON (CTA) ===== */
.hero-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    border: 2px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        0 0 0 0 rgba(197,164,0,0);
    z-index: 1;
}

.hero-map-btn:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--gold-400);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.35),
        0 0 30px rgba(197,164,0,0.2);
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
}

.hero-map-btn-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.hero-map-btn:hover .hero-map-btn-arrow {
    transform: translateX(4px);
}

/* Glow ring */
.hero-map-btn-glow {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold-500), var(--green-400), var(--gold-400));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.hero-map-btn:hover .hero-map-btn-glow {
    opacity: 0.6;
}

/* Shimmer sweep */
.hero-map-btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.12),
        transparent
    );
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    40% { left: 100%; }
    100% { left: 100%; }
}

/* High contrast overrides */
body.high-contrast .nav-map-btn {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400)) !important;
    color: var(--green-900) !important;
}

body.high-contrast .hero-map-btn {
    border-color: var(--gold-400);
}

/* High contrast — Contact info panel fix (dark green bg with readable text) */
body.high-contrast .contact-info-panel {
    background: linear-gradient(160deg, #1a1a2e, #22223a);
    border: 1px solid #3a3a52;
}

body.high-contrast .contact-info-panel h3 {
    color: #f0f0f5;
}

body.high-contrast .contact-info-panel > p {
    color: #c0c0d0;
}

body.high-contrast .contact-item {
    background: rgba(255,255,255,0.06);
    border-color: #3a3a52;
}

body.high-contrast .contact-item strong {
    color: #a0a0b8;
}

body.high-contrast .contact-item span {
    color: #f0f0f5;
}

body.high-contrast .contact-icon {
    background: rgba(160,224,176,0.12);
}

body.high-contrast .contact-icon i {
    color: #a0e0b0;
}

/* High contrast — Footer readability */
body.high-contrast .footer-main {
    background: #0d0d1a;
}

body.high-contrast .footer-col p,
body.high-contrast .footer-col a {
    color: #c0c0d0;
}

body.high-contrast .footer-bottom {
    background: #080812;
}

/* Search result items — clickable cursor */
.search-result-item {
    cursor: pointer;
}

/* High contrast — Hero search results readability */
body.high-contrast .search-results {
    background: rgba(26,26,46,0.97);
    border-color: #3a3a52;
}

body.high-contrast .search-result-item:hover {
    background: rgba(160,224,176,0.08);
}

body.high-contrast .result-name {
    color: #f0f0f5;
}

body.high-contrast .result-details span {
    color: #a0a0b8;
}

/* ===== GLOBAL DATA TABLE DESIGN SYSTEM ===== */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 16px;
    position: relative;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    text-align: left;
}
.data-table th {
    padding: 12px 16px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark-500);
    background: #f8fafc;
    border-bottom: 1.5px solid var(--gray-200);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.data-table td {
    padding: 13px 16px;
    font-size: 0.85rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    line-height: 1.4;
}
.data-table tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table .badge-code {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.data-table .table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sched-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-100);
    border: 1px solid rgba(22, 101, 52, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sched-loc-badge:hover {
    background: var(--green-700);
    color: #ffffff;
    border-color: var(--green-700);
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.25);
}
.sched-loc-badge i { color: var(--gold-500); }
.sched-loc-badge:hover i { color: #ffffff; }

/* Filter Buttons & Phase Pill Tabs */
.filter-btn, .phase-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    color: var(--dark-500);
    border: 1.5px solid var(--gray-300);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none;
}
.filter-btn:hover, .phase-pill-btn:hover {
    border-color: var(--gold-500);
    color: var(--green-900);
    background: #fdfbf7;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(197, 164, 0, 0.15);
}
.filter-btn.active, .phase-pill-btn.active {
    background: linear-gradient(135deg, #0d2b18 0%, #174225 100%) !important;
    color: #ffffff !important;
    border: 2px solid var(--gold-500) !important;
    box-shadow: 0 4px 14px rgba(13, 43, 24, 0.3), 0 0 0 3px rgba(197, 164, 0, 0.2) !important;
    transform: translateY(-1px);
}
.phase-pill-btn .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-400);
    transition: all 0.2s ease;
}
.phase-pill-btn.active .pill-dot {
    background: var(--gold-400);
    box-shadow: 0 0 8px var(--gold-400);
}
.phase-pill-btn .pill-count {
    background: var(--gray-100);
    color: var(--dark-500);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: all 0.2s ease;
}
.phase-pill-btn.active .pill-count {
    background: var(--gold-500);
    color: #0d2b18;
}