/* CSS Variables for centralized color management */
:root {
    /* Color values */
    --primary-blue: #1a4870;
    --secondary-blue: #a5e2ff;
    --accent-blue: #057ecd; /* Modern blue for CTAs */
    --dark-blue: #041f60;
    --darker-blue: #0a1628;
    --light-blue: #e0f2fe;
    --light-background: #e8eef1;
    --white: #FFFFFF;
    --text-color: #0f172a;
    --text-secondary: #64748b;
    /* Accent alpha variants */
    --accent-blue-10a: rgba(59, 130, 246, 0.1);
    --accent-blue-30a: rgba(59, 130, 246, 0.3);
    --accent-blue-40a: rgba(59, 130, 246, 0.4);
    --shadow: rgba(15, 23, 42, 0.08);
    --shadow-lg: rgba(15, 23, 42, 0.12);
    --border: #e2e8f0;
    
    /* Hero background image - Update this path to your image */
    --hero-background-image: url('../images/heroBanner.webp');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure proper touch targets for mobile */
button, 
input[type="submit"], 
input[type="button"], 
.submit-btn,
.nav-item a {
    min-height: 44px;
    min-width: 44px;
}

/* Improve text rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    opacity: 0.95;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Navigation */
nav {
    background: linear-gradient(to bottom, var(--dark-blue), var(--darker-blue));
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-item a:hover::before {
    width: 100%;
}

.nav-item a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-item a.active {
    background-color: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.nav-item a.active::before {
    width: 100%;
    background-color: var(--white);
}

/* Hero Section */
.banner {
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 0;
    padding-top: 70px; /* Added to account for fixed navigation */
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 85vh;
}

.logo-section {
    position: relative;
    z-index: 3;
    display: none;
}

.logo-container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-blue);
    font-weight: bold;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* SVG Logo styles */
.logo-svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-blue);
}

.hero-text {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-logo-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.hero-logo-image {
    width: 100%;
    height: auto;
}

.logo-placeholder:hover {
    transform: scale(1.05);
}

/* Ensure hero headings are readable over light overlay */
.banner .hero-text h1 {
    color: var(--dark-blue);
}

.banner p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 400;
    color: var(--dark-blue);
}

/* Main content sections */
section {
    padding: 6rem 2rem;
    padding-top: 8rem; /* Increased to account for fixed navigation */
    background-color: var(--light-background);
    position: relative;
}

section:nth-child(even) {
    background-color: var(--white);
}

section h2 {
    color: var(--dark-blue);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
    border-radius: 2px;
}

/* About section */
.about-us-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, var(--white), var(--light-background));
}

.about {
    background: transparent;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Contact sections */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fallback for older browsers that don't support grid */
@supports not (display: grid) {
    .contact-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2.5rem;
    }
    
    .contact-card {
        flex: 1 1 350px;
        max-width: 500px;
    }
}

/* Contact Card */
.contact-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(to bottom, var(--white), var(--light-background));
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-blue), var(--secondary-blue));
    border-radius: 0 2px 2px 0;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 64px var(--shadow-lg);
    border-color: var(--accent-blue);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin: 0;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.contact-info .role {
    font-weight: 500;
    color: var(--accent-blue);
}

.contact-info a, .contact-form-container a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover, .contact-form-container a:hover {
    color: var(--dark-blue);
    text-decoration: none;
    transform: translateX(4px);
}

/* Headshot */
.headshot {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px var(--shadow-lg);
    transition: transform 0.3s ease;
}

.contact-card:hover .headshot {
    transform: scale(1.05);
}

/* Useful links section */
.useful-links {
    background: linear-gradient(to bottom, var(--white), var(--light-background));
    padding: 6rem 2rem;
    position: relative;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fallback for older browsers that don't support grid */
@supports not (display: grid) {
    .links-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .link-category {
        flex: 1 1 300px;
        max-width: 400px;
    }
}

.link-category {
    background: linear-gradient(to bottom, var(--white), var(--light-background));
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
}

.link-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-lg);
    border-color: var(--accent-blue);
}

.link-category h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.link-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-category li {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.link-category li:last-child {
    border-bottom: none;
}

.link-category a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    display: block;
    padding: 0.25rem 0;
}

.link-category a:hover {
    color: var(--accent-blue);
    text-decoration: none;
    transform: translateX(4px);
}

/* Contact form section */
.contact-form-section {
    background-color: var(--primary-blue);
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, var(--primary-blue), var(--dark-blue));
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(59,130,246,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--white), var(--light-background));
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 16px 48px var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.contact-form-container h3 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Contact form page main text color */
.contact-form-container p {
    color: var(--dark-blue);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

input, textarea, select {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
    font-family: inherit;
}

/* Enhanced select dropdown styling to override iOS defaults */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23057ecd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

/* Ensure select maintains styling on iOS */
select:focus {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Override iOS select styling completely */
select::-ms-expand {
    display: none;
}

/* Custom styling for select options */
select option {
    background-color: var(--white);
    color: var(--text-color);
    padding: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-10a);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Buttons */
.submit-btn {
    background: linear-gradient(to bottom, var(--dark-blue) 70%, var(--darker-blue) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover,
.submit-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow-lg);
    color: var(--white) !important;
    background: linear-gradient(to bottom, var(--dark-blue) 70%, var(--darker-blue) 100%);
    filter: none;
}

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

/* Book section button - ensure it looks the same as hero section button */
.contact-form-container .submit-btn {
    background: linear-gradient(to bottom, var(--dark-blue) 70%, var(--darker-blue) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px var(--shadow-lg);
}
/* Footer */
footer {
    background: linear-gradient(to bottom, var(--primary-blue), var(--darker-blue));
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Footer badges layout */
#footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-item:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.footer-badge-container {
    margin-bottom: 1.5rem;
}

.footer-badge-image {
    height: 150px;
    width: auto;
}

/* Enhanced Responsive Design with Better Flex Layouts */

/* Large Desktop */
@media (min-width: 1200px) {
    .nav-links {
        gap: 5rem;
    }
    
    .nav-item a {
        font-size: 1.1rem;
    }
    
    .hero-text {
        padding: 8rem 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }
    
    .hero-text {
        padding: 5rem 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .nav-item a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .banner {
        min-height: 75vh;
        padding-top: 60px;
    }
    
    .hero-content {
        min-height: 75vh;
    }
    
    .hero-text {
        padding: 4rem 1.5rem;
    }
    
    section {
        padding: 4rem 1.5rem;
        padding-top: 6rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
        margin: 0 1rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-category {
        padding: 1.5rem;
    }
    
    .faq-container {
        padding: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) {
    .nav-links {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }
    
    .nav-item a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .banner {
        min-height: 70vh;
        padding-top: 50px;
    }
    
    .hero-content {
        min-height: 70vh;
    }
    
    .hero-text {
        padding: 3rem 1rem;
    }
    
    .hero-logo-container {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 3rem 1rem;
        padding-top: 5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
        margin: 0 0.5rem;
    }
    
    .contact-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .headshot {
        width: 90px;
        height: 90px;
    }
    
    .submit-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .link-category {
        padding: 1.25rem;
    }
    
    .faq-container {
        padding: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem 0.75rem 1rem 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        margin: 0.75rem 1rem 1rem 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0;
    }
    
    .nav-links {
        gap: 0.2rem;
        padding: 0 0.25rem;
    }
    
    .nav-item a {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .banner {
        min-height: 65vh;
        padding-top: 45px;
    }

    .hero-content {
        min-height: 65vh;
    }
    
    .hero-text {
        padding: 2.5rem 0.75rem;
    }
    
    .hero-logo-container {
        max-width: 250px;
        margin-bottom: 1.25rem;
    }

    section {
        padding: 2.5rem 0.75rem;
        padding-top: 4rem;
    }

    .contact-form-container {
        padding: 1.5rem;
        margin: 0 0.25rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .contact-info {
        align-items: center;
    }
    
    .headshot {
        width: 80px;
        height: 80px;
    }

    .submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .link-category {
        padding: 1rem;
    }
    
    .link-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .link-category li {
        margin-bottom: 0.75rem;
        padding: 0.4rem 0;
    }

    /* Stack footer badges on small screens */
    #footer-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .faq-container {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 0.875rem 0.5rem 0.875rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        margin: 0.5rem 0.75rem 0.75rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Improve form inputs on mobile */
    input, textarea, select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    label {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .nav-item a {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .hero-text {
        padding: 2rem 0.5rem;
    }
    
    .hero-logo-container {
        max-width: 200px;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0.5rem;
        padding-top: 3.5rem;
    }
    
    .contact-form-container {
        padding: 1.25rem;
        margin: 0 0.125rem;
    }
    
    .contact-card {
        padding: 0.875rem;
    }
    
    .headshot {
        width: 70px;
        height: 70px;
    }
    
    .submit-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .link-category {
        padding: 0.875rem;
    }
    
    .faq-container {
        padding: 0.875rem;
    }
    
    .faq-question {
        padding: 0.75rem 0.4rem 0.75rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        margin: 0.4rem 0.6rem 0.6rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Improve form usability on mobile */
    input, textarea, select {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Enhanced iOS select styling override */
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23057ecd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.75rem center !important;
        background-size: 0.875rem !important;
        padding-right: 2.5rem !important;
    }
    
    /* Force iOS to use custom styling */
    select:focus,
    select:active,
    select:hover {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* Better focus states for mobile */
    input:focus, textarea:focus, select:focus {
        transform: none;
        box-shadow: 0 0 0 3px var(--accent-blue-10a);
    }
    
    /* Improve button interactions on touch devices */
    .submit-btn:active {
        transform: scale(0.98);
    }
    
    /* Better spacing for touch interfaces */
    .nav-item a {
        margin: 0.25rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        min-height: 100vh;
    }
    
    .hero-text {
        padding: 2rem 1rem;
    }
    
    section {
        padding: 3rem 1rem;
        padding-top: 4rem;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .hero-logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* iOS Safari specific fixes for select dropdowns */
@supports (-webkit-touch-callout: none) {
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23057ecd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 1rem center !important;
        background-size: 1rem !important;
        padding-right: 3rem !important;
    }
    
    select:focus,
    select:active {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
}

/* Additional iOS fixes for form elements */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23057ecd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 1rem center !important;
        background-size: 1rem !important;
        padding-right: 3rem !important;
    }
}/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* FAQ section */
.faq-section {
    background: var(--light-background);
}

.faq-container {
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--primary-blue), var(--dark-blue));
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 16px 48px var(--shadow-lg);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 24px var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: linear-gradient(to bottom, var(--white), var(--light-background));
    border: none;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--dark-blue);
}

.faq-question .faq-question-text {
    flex: 1 1 auto;
    padding-right: 1rem;
}

.faq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent-blue);
}

.faq-arrow {
    flex: 0 0 auto;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-arrow::before {
    content: '▼'; /* standard down arrow */
    font-size: 12px;
    line-height: 1;
    color: var(--dark-blue);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow::before {
    content: '▲'; /* standard up arrow */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    margin: 1rem 1.25rem 1.25rem 1.25rem;
    color: var(--text-secondary);
}
