/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-display: swap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Font Loading Optimization - Roboto and Roboto Slab */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/robotoslab/v24/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Header Banner - Updated to match original Scouting America colors */
.header-banner {
    background: #005696; 
    color: white;
    font-family: 'Roboto Slab';
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
}

.logo-section .logo img {
    height: 50px;
    margin-right: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logo white */
}

.logo-section .logo h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.logo-section .logo h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 5px;
}

/* Mobile Hamburger Menu Button - Right Side */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 3; /* Position on the right */
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Desktop Utility Navigation */
.utility-nav.desktop-only {
    display: flex;
}

.utility-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.utility-nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease;
}

.utility-nav a:hover {
    color: #FFD700;
}

.my-scouting-btn {
    background: #2d5aa0; /* Exact blue from original website */
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
}

.my-scouting-btn:hover {
    background: #1e3a8a; /* Darker blue on hover */
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #1a365d;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #FFD700;
}

/* Mobile Navigation Sections */
.mobile-nav-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-section h4 {
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    color: #FFD700;
    padding-left: 10px;
}

/* Desktop Main Navigation - Updated to match original styling */
.main-nav.desktop-only {
    background: white; /* Changed from dark blue to white */
    border-top: 1px solid #e9ecef; /* Light border to separate from header */
    border-bottom: 1px solid #e9ecef; /* Light border at bottom */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.main-nav a {
    color: #666; /* Changed from white to gray text */
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #003F87; /* Changed hover/active color to blue */
    border-bottom-color: #003F87;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(85deg, #fadb04 42%, #FADB0403 68%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hero-text {
    text-align: left;
}

.cub-scouts-logo {
    display: inline-block;
    margin-right: 20px;
    vertical-align: top;
    float: left;
}

.cub-scouts-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #003F87;
    margin-bottom: 15px;
    line-height: 1.1;
    font-family: 'Roboto Slab', serif;
    text-transform: uppercase;
    text-align: left;
    margin-top: 0;
    overflow: hidden;
}

.hero-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003F87;
    margin-bottom: 25px;
    font-family: 'Roboto Slab', serif;
    text-align: left;
    overflow: hidden;
}

.hero-text p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.buttons {
    padding: 20px;
}

.find-apply-btn {
    background: #003F87;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40%;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
}

.donate-btn {
    color: #003F87;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 40%;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;    
}
.donate-btn:hover {
    transform: translateY(-2px);
}

.find-apply-btn:hover {
    background: #002855;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 63, 135, 0.3);
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: white;
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003F87;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Roboto Slab', serif;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.welcome-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.welcome-links a {
    color: #003F87;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #003F87;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.welcome-links a:hover {
    background: #003F87;
    color: white;
    transform: translateY(-2px);
}

/* Program Overview */
.program-overview {
    padding: 40px 0;
    background: white;
}

.program-overview h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #003F87;
    margin-bottom: 15px;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Roboto Slab', serif;
}

.program-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.program-text {
    flex: 1;
}

.program-text p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.program-image {
    flex-shrink: 0;
    width: 300px;
}

.program-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.learn-more {
    color: #003F87;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #003F87;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.learn-more:hover {
    background: #003F87;
    color: white;
    transform: translateY(-2px);
}
/* Parent Resources */
.parent-resources {
    padding: 80px 0;
    background: #f8f9fa;
}

.parent-resources h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003F87;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Roboto Slab', serif;
}

.parent-resources h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resource-item a {
    color: #003F87;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #003F87;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resource-item a:hover {
    background: #003F87;
    color: white;
}

/* Welcome to Cub Scouting */
.welcome-cub-scouting {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.welcome-cub-scouting h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003F87;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFD700;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-nav a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFD700;
    color: #2c3e50;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-action {
    color: #FFD700;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #FFD700;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-action:hover {
    background: #FFD700;
    color: #2c3e50;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #003F87;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #003F87;
    box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.contact-submit-btn {
    background: #003F87;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
    min-width: 200px;
}

.contact-submit-btn:hover {
    background: #002855;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 63, 135, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-info {
    margin-top: 50px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003F87;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
}

/* Form Validation Styles */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-select:valid:not(:focus),
.form-textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #27ae60;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 30px auto;
        padding: 30px 20px;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
}

/* Font Loading States */
body {
    font-display: swap;
}

body.fonts-loaded {
    font-display: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .main-nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Show mobile menu button and hide desktop nav on mobile */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .utility-nav.desktop-only,
    .main-nav.desktop-only {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h3 {
        font-size: 1.3rem;
    }
    
    .welcome-section h2,
    .program-overview h1,
    .parent-resources h2,
    .welcome-cub-scouting h1,
    .uniforms-section h1,
    .faq-section h1,
    .be-a-scout-section h1 {
        font-size: 2rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .resource-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h3 {
        font-size: 1.1rem;
    }
    
    .location-finder {
        padding: 20px;
    }
    
    .zip-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .zip-label {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .welcome-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile nav adjustments for very small screens */
    .mobile-nav {
        width: 100%;
    }
    
    .mobile-nav-header {
        padding: 15px;
    }
    
    .mobile-nav-section {
        padding: 15px;
    }
    
    .mobile-nav-menu a {
        padding: 10px 0;
    }
}
