/* 
    Jagadamba Tours & Travels 
    Optimized Production Stylesheet
*/

:root {
    /* Primary Palette - WCAG 2.1 Compliant */
    --primary-color: #0B1F3A;
    --secondary-color: #F59E0B;
    --secondary-hover: #D97706;
    --accent-color: #1E293B;
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --medium-gray: #64748B; /* Darkened for better contrast */
    --dark-gray: #1F2937;
    --text-color: #334155;
    
    /* Typography */
    --font-primary: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Transitions */
    --section-padding: clamp(40px, 8vw, 80px) 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --container-padding: 20px;
}

/* Base Optimization */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    max-width: 100%;
    overflow-x: hidden;
    font-display: swap; /* Performance optimization */
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto; /* Performance: Skip off-screen rendering */
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-height: 48px; /* Touch target size */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 60px);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Accessibility & Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-white { color: var(--white); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.py-section { padding: var(--section-padding); }

/* --- Footer Refinement --- */
.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Media Query Optimizations */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    .container {
        padding: 0 15px;
    }
}
