/* ==========================================================================
   Brenham Honor Guard - Mobile-First Responsive Stylesheet
   ========================================================================== 
   
   BREAKPOINTS:
   - Base (320px+): Mobile styles (default)
   - 480px: Large mobile / small tablet
   - 768px: Tablet
   - 1024px: Small desktop / landscape tablet
   - 1280px: Large desktop
   
   APPROACH: Mobile-first design using min-width media queries
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================================================== */
:root {
    /* Colors */
    --navy: #0d1b2a;
    --navy-mid: #1b263b;
    --navy-light: #415a77;
    --gold: #b8860b;
    --gold-light: #daa520;
    --gold-pale: #f4e4bc;
    --cream: #faf8f5;
    --cream-dark: #f0ece4;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #5c5c5c;
    --red-accent: #8b0000;
    
    /* Spacing - fluid scale using clamp() */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 4vw, 4rem);
    --space-2xl: clamp(3rem, 6vw, 6rem);
    
    /* Container padding - responsive */
    --container-padding: clamp(1rem, 4vw, 4rem);
    
    /* Typography - fluid scale */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
    --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Touch target minimum size */
    --touch-target: 44px;
}

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

html {
    scroll-behavior: smooth;
    /* Prevent font size adjustment on orientation change in iOS */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive images */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove list styles */
ul,
ol {
    list-style: none;
}

/* Improve button/input defaults */
button,
input,
select,
textarea {
    font: inherit;
}

/* ==========================================================================
   TOP BAR - Hidden on mobile, visible on larger screens
   ========================================================================== */
.top-bar {
    display: none; /* Hidden by default on mobile */
    background: var(--navy);
    padding: var(--space-xs) var(--container-padding);
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
}

.top-bar-left {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-right {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.top-bar-right a {
    color: var(--gold-light);
    transition: color var(--transition-base);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.top-bar-right a:hover,
.top-bar-right a:focus {
    color: var(--gold-pale);
}

/* Show top bar on tablet and up */
@media (min-width: 768px) {
    .top-bar {
        display: flex;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: var(--space-sm) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--gold);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    transition: opacity var(--transition-base);
}

.logo:hover,
.logo:focus {
    opacity: 0.8;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon::before {
    content: '★';
    color: var(--gold);
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: none; /* Hidden on very small screens */
}

/* Nav Links - Mobile: Hidden dropdown */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: var(--space-md) var(--container-padding);
    color: var(--navy);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Ensure touch target size */
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--gold);
    background: rgba(184, 134, 11, 0.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    margin: 4px 0;
    transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Show logo subtitle on larger mobile */
@media (min-width: 400px) {
    .logo-subtitle {
        display: block;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon::before {
        font-size: 1.5rem;
    }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    nav {
        padding: 0 var(--container-padding);
    }
    
    .logo {
        gap: var(--space-md);
        padding: var(--space-md) 0;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon::before {
        font-size: 1.75rem;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        box-shadow: none;
        gap: 0;
        height: 100%;
    }
    
    .nav-links a {
        padding: var(--space-lg) var(--space-md);
        border-bottom: 3px solid transparent;
        margin-bottom: -3px;
    }
    
    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a.active {
        border-bottom-color: var(--gold);
        background: rgba(184, 134, 11, 0.05);
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 70vh; /* Smaller on mobile */
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 100%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 0%, rgba(65, 90, 119, 0.3) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l5 15h15l-12 9 5 15-13-10-13 10 5-15-12-9h15z' fill='%23ffffff' fill-opacity='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 750px;
    padding: 0 var(--container-padding);
    animation: fadeUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.4);
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-badge span {
    color: var(--gold-light);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-4xl);
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero h1 span {
    display: block;
    color: var(--gold-light);
}

.hero-description {
    font-family: 'Lora', serif;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin-bottom: var(--space-lg);
    font-style: italic;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Tablet and up: hero adjustments */
@media (min-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-description {
        font-size: var(--text-md);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--space-md);
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 85vh;
        padding-bottom: var(--space-xl);
    }
    
    .hero-pattern {
        background-size: 80px 80px;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    /* Ensure touch target */
    min-height: var(--touch-target);
    /* Full width on mobile */
    width: 100%;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus {
    background: var(--navy-mid);
}

/* Tablet+: auto-width buttons */
@media (min-width: 768px) {
    .btn {
        width: auto;
        padding: var(--space-md) var(--space-lg);
    }
}

/* ==========================================================================
   QUOTE BANNER
   ========================================================================== */
.quote-banner {
    background: var(--gold);
    padding: var(--space-lg) var(--container-padding);
    text-align: center;
    position: relative;
}

/* Decorative edges - hidden on mobile for simplicity */
.quote-banner::before,
.quote-banner::after {
    display: none;
}

.quote-text {
    font-family: 'Lora', serif;
    font-size: var(--text-base);
    font-style: italic;
    color: var(--navy);
    max-width: 900px;
    margin: 0 auto var(--space-sm);
    line-height: 1.7;
}

.quote-author {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .quote-banner {
        padding: var(--space-xl) var(--container-padding);
    }
    
    .quote-text {
        font-size: var(--text-lg);
    }
    
    /* Show decorative edges on larger screens */
    .quote-banner::before,
    .quote-banner::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        width: 100px;
        height: 100%;
        background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
    }
    
    .quote-banner::before {
        left: 0;
    }
    
    .quote-banner::after {
        right: 0;
        transform: scaleX(-1);
    }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats {
    background: var(--navy);
    padding: var(--space-lg) var(--container-padding);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
    position: relative;
}

/* Remove dividers on mobile */
.stat-item::after {
    display: none;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Tablet: 4 columns */
@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
        padding: var(--space-xl) var(--container-padding);
    }
    
    .stat-item {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
    
    .stat-label {
        font-size: var(--text-sm);
    }
    
    /* Show dividers between stats */
    .stat-item:not(:last-child)::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 60%;
        width: 1px;
        background: rgba(184, 134, 11, 0.3);
    }
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
    padding: var(--space-xl) var(--container-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.section-label::before,
.section-label::after {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-2xl) var(--container-padding);
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-label::before,
    .section-label::after {
        width: 2rem;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .section-subtitle {
        font-size: var(--text-md);
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    order: -1; /* Image first on mobile */
}

.about-image-main {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.folded-flag {
    width: 150px;
    height: 75px;
    position: relative;
}

.folded-flag-shape {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 75px solid #002868;
    position: relative;
}

.folded-flag-shape::before {
    content: '★ ★ ★';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
}

/* Hide decorative frame on mobile */
.about-image-frame {
    display: none;
}

.about-content h2 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.about-content p {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.highlight-icon {
    width: 24px;
    height: 24px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2.5;
}

.highlight-text {
    font-size: var(--text-sm);
    color: var(--text-dark);
    font-weight: 500;
}

/* Larger mobile: 2 columns for highlights */
@media (min-width: 400px) {
    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .about-image-main {
        height: 350px;
    }
    
    .folded-flag {
        width: 180px;
        height: 90px;
    }
    
    .folded-flag-shape {
        border-left-width: 90px;
        border-right-width: 90px;
        border-bottom-width: 90px;
    }
    
    .folded-flag-shape::before {
        top: 35px;
        font-size: 0.9rem;
    }
    
    .about-content h2 {
        font-size: var(--text-2xl);
    }
}

/* Desktop: side by side layout */
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        order: 0; /* Reset order */
    }
    
    .about-image-main {
        height: 450px;
    }
    
    .folded-flag {
        width: 200px;
        height: 100px;
    }
    
    .folded-flag-shape {
        border-left-width: 100px;
        border-right-width: 100px;
        border-bottom-width: 100px;
    }
    
    .folded-flag-shape::before {
        top: 40px;
        font-size: 1rem;
        letter-spacing: 0.5rem;
    }
    
    /* Show decorative frame on desktop */
    .about-image-frame {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        right: -1.5rem;
        bottom: -1.5rem;
        border: 2px solid var(--gold);
        z-index: -1;
    }
}

/* ==========================================================================
   ELIGIBILITY SECTION
   ========================================================================== */
.eligibility {
    background: var(--cream);
}

.eligibility-content {
    max-width: 1000px;
    margin: 0 auto;
}

.eligibility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.eligibility-card {
    background: var(--white);
    padding: var(--space-lg);
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.eligibility-card h3 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.eligibility-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.eligibility-card ul {
    margin-top: var(--space-sm);
}

.eligibility-card li {
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.eligibility-card li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.6rem;
    top: 0.6rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .eligibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .eligibility-card {
        padding: var(--space-xl);
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    background: var(--navy);
    position: relative;
}

.services .section-title {
    color: var(--white);
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: rgba(184, 134, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* ==========================================================================
   HISTORY SECTION (Timeline)
   ========================================================================== */
.history {
    background: var(--cream-dark);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px; /* Space for the line and dot */
}

/* Vertical line - left side on mobile */
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

/* Timeline dot */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid var(--cream-dark);
    border-radius: 50%;
    position: absolute;
    left: -19px;
    top: 0;
    z-index: 10;
}

.timeline-content {
    background: var(--white);
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.timeline-text {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Desktop: Center timeline with alternating sides */
@media (min-width: 768px) {
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
        margin-bottom: var(--space-lg);
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }
    
    .timeline-content {
        width: calc(50% - 3rem);
        padding: var(--space-lg);
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }
    
    .timeline-dot {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-year {
        font-size: var(--text-xl);
    }
    
    .timeline-title {
        font-size: var(--text-md);
    }
}

/* ==========================================================================
   HELP SECTION
   ========================================================================== */
.help {
    background: var(--white);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.help-card {
    background: var(--cream);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.help-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.help-card h3 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.help-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .help-card {
        padding: var(--space-xl);
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: var(--space-lg);
    text-align: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
}

.contact-card h4 {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.contact-card a {
    color: var(--gold-light);
    transition: color var(--transition-base);
    /* Make links larger touch targets */
    display: inline-block;
    padding: var(--space-xs) 0;
}

.contact-card a:hover,
.contact-card a:focus {
    color: var(--gold-pale);
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .contact-card {
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #050a10;
    padding: var(--space-lg) var(--container-padding) var(--space-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo .logo-title {
    color: var(--white);
    font-size: var(--text-lg);
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

.footer-links a {
    color: #0d1b2a;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
    padding: var(--space-xs);
    /* Touch target */
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-xs);
    line-height: 1.6;
}

/* Desktop: horizontal layout */
@media (min-width: 768px) {
    footer {
        padding: var(--space-xl) var(--container-padding) var(--space-lg);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-links {
        gap: var(--space-lg);
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .top-bar,
    nav,
    .mobile-menu-btn,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .hero h1,
    .hero h1 span {
        color: black;
    }
    
    .hero-description {
        color: #333;
    }
    
    .section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }
}
