/* ============================================
   SHARAN NETHRALAYA - Premium Design Systemfaq
   Modern 2025-2026 Healthcare Website
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Brand Colors - Preserved */
    --primary: #3F2A1D;
    --secondary: #E6D5B8;
    --navbar-bg: #E6D5B8;
    /* Lesser shade of brand brown */
    --accent: #D4A017;
    --background: #E6D5B8;
    --text: #2A1E17;
    --company-red: #ff0000;

    /* Extended Palette */
    --primary-light: #5a4535;
    --primary-dark: #2a1c14;
    --secondary-light: #f0e5d4;
    --secondary-dark: #d4c4a8;
    --accent-light: #e8b82a;
    --accent-dark: #b88a12;

    /* Neutral Tones */
    --white: #ffffff;
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;

    /* Typography Scale */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(63, 42, 29, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(63, 42, 29, 0.1), 0 2px 4px -2px rgba(63, 42, 29, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(63, 42, 29, 0.1), 0 4px 6px -4px rgba(63, 42, 29, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(63, 42, 29, 0.1), 0 8px 10px -6px rgba(63, 42, 29, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(63, 42, 29, 0.25);
    --shadow-glow: 0 0 40px rgba(212, 160, 23, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.27, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   Base Styles & Reset
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Company Name Styling */
.company-name {
    color: var(--company-red);
    font-weight: 700;
}

/* ============================================
   Preloader
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-6);
    animation: pulse 2s ease-in-out infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: var(--space-4);
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    display: none;
    /* Removed to eliminate gap above navbar */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-base);
}

.top-bar a:hover {
    color: var(--accent);
}

.top-bar i {
    color: var(--accent);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--navbar-bg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.navbar.scrolled {
    padding: var(--space-3) 0;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--company-red);
    line-height: 1.2;
}

.brand-tagline {
    font-size: var(--text-xs);
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav-link {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white) !important;
    padding: var(--space-3) var(--space-6) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-cta::before {
    display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-base);
}

.nav-toggle:hover {
    background: var(--accent);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
    margin-top: 0;
    /* Resetting to let padding handle fixed header */
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(63, 42, 29, 0.85) 0%,
            rgba(63, 42, 29, 0.6) 50%,
            rgba(63, 42, 29, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    color: var(--white);
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title .company-name {
    display: block;
    font-size: clamp(2.5rem, 6vw, var(--text-6xl));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, var(--text-xl));
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInDown 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-12);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Page Hero (Internal Pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: var(--space-24) 0 var(--space-16);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 140px;
    /* Account for fixed navbar */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, var(--text-4xl));
    color: var(--white);
    margin-bottom: var(--space-4);
}

.page-hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--accent);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

/* ============================================
   Section Styling
   ============================================ */
.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-alt {
    background: var(--background);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-lg {
    max-width: 1400px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(212, 160, 23, 0.1);
    color: var(--accent-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: var(--space-6);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(212, 160, 23, 0.05) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.card-icon i {
    font-size: var(--text-2xl);
    color: var(--accent);
    transition: transform var(--transition-base);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.card:hover .card-icon i {
    color: var(--white);
    transform: scale(1.1);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Service Card Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

/* ============================================
   Doctor Cards
   ============================================ */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.doctor-image-wrapper {
    position: relative;
    overflow: hidden;
}

.doctor-image-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.05);
}

.doctor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(to top, rgba(63, 42, 29, 0.95) 0%, transparent 100%);
}

.doctor-info {
    padding: var(--space-6);
}

.doctor-name {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.doctor-qualification {
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.doctor-bio {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   Equipment Cards
   ============================================ */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.equipment-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.equipment-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.equipment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.equipment-card-body {
    padding: var(--space-5);
    text-align: center;
}

.equipment-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.equipment-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(63, 42, 29, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-5);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: var(--primary);
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: var(--primary-dark);
}

.faq-question i {
    font-size: var(--text-sm);
    color: var(--accent);
    transition: transform var(--transition-base);
}

.faq-item.open .faq-question {
    background: var(--primary-dark);
    color: var(--white);
}

.faq-item.open .faq-question i {
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #f0e5d4;
    /* Light beige background for the answer body */
    transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 3000px;
}

.faq-answer-content {
    padding: var(--space-6);
    color: var(--text);
    line-height: 1.8;
}

/* ============================================
   Tips Cards
   ============================================ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.tip-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}

.tip-card:hover::before {
    transform: scaleY(1);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.15) 0%, rgba(212, 160, 23, 0.05) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.tip-icon i {
    font-size: var(--text-xl);
    color: var(--accent);
}

.tip-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.tip-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: var(--text-lg);
    color: var(--white);
}

.contact-detail h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.contact-detail p,
.contact-detail a {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

.contact-detail a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Community Section
   ============================================ */
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.community-text h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.community-text p {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.8;
}

.community-image {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-image img {
    width: 100%;
    height: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand .navbar-logo {
    height: 60px;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: var(--white);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact-item p,
.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-social i {
    font-size: var(--text-lg);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: var(--text-2xl);
    color: var(--white);
}

/* WhatsApp pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: inherit;
    animation: whatsappPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translateZ(0) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .contact-grid,
    .community-content,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-20) var(--space-6) var(--space-6);
        box-shadow: var(--shadow-2xl);
        transition: right var(--transition-base);
        z-index: var(--z-modal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: var(--space-4);
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-link::before {
        display: none;
    }

    .nav-cta {
        margin-top: var(--space-4);
        text-align: center;
    }

    .nav-toggle {
        display: flex;
        z-index: var(--z-modal);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: calc(var(--z-modal) - 1);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: var(--space-6);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .services-grid,
    .tips-grid,
    .equipment-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-social {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .whatsapp-float i {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: flex;
    }

    .brand-name {
        font-size: var(--text-base);
    }

    .brand-tagline {
        font-size: 10px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .page-hero {
        padding: var(--space-16) 0 var(--space-12);
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .hero,
    .page-hero {
        margin-top: 0;
        padding-top: 80px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .navbar,
    .whatsapp-float,
    .preloader {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .section {
        page-break-inside: avoid;
    }
}
/* Mobile Sticky Footer */
.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    justify-content: space-around;
}

.mobile-sticky-footer a {
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
    }
}
