/**
 * Alabama GPS Monitoring, LLC — Main stylesheet
 * Brand: business card blue gradient (#0056b3 → #00a2e8), white, soft gray, teal accent
 */

:root {
    /* Business card gradient */
    --color-card-blue-dark: #0056b3;
    --color-card-blue-light: #00a2e8;
    --gradient-card: linear-gradient(135deg, var(--color-card-blue-dark) 0%, var(--color-card-blue-light) 100%);
    --color-navy: #1a365d;
    --color-navy-light: #2c5282;
    --color-white: #ffffff;
    --color-gray-100: #f7fafc;
    --color-gray-200: #edf2f7;
    --color-gray-400: #a0aec0;
    --color-gray-600: #718096;
    --color-gray-800: #2d3748;
    --color-header-bg: #cbd5e1;
    --color-teal: #319795;
    --color-teal-muted: #4fd1c5;
    --color-success: #276749;
    --color-error: #c53030;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 960px;
    --header-height: 64px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0, 86, 179, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 86, 179, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 86, 179, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Background animations for sections — visible but subtle */
@keyframes float-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(25px, -18px) scale(1.05); opacity: 0.8; }
    66% { transform: translate(-18px, 14px) scale(0.96); opacity: 0.5; }
}

@keyframes float-drift-alt {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    40% { transform: translate(-22px, 20px) scale(1.06); opacity: 0.7; }
    75% { transform: translate(14px, -12px) scale(0.95); opacity: 0.55; }
}

@keyframes shimmer {
    0% { background-position: 120% 0, 0 0; }
    100% { background-position: -20% 0, 0 0; }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--gradient-card);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        var(--gradient-card);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Bail bondsman banner — black & red, above header */
.banner-bonds {
    background: #1a1a1a;
    text-align: center;
    padding: 0.55rem 1rem;
    border-bottom: 2px solid #c41e3a;
}

.banner-bonds a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.banner-bonds a:hover {
    color: #fff;
}

.banner-bonds a:hover strong {
    color: #ff4444;
}

.banner-bonds strong {
    color: #c41e3a;
    font-weight: 700;
}

/* Header — sticky, mobile-friendly (business card gradient) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gradient-card);
    color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-logo {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.site-logo:hover {
    color: var(--color-white);
    opacity: 0.95;
}

.site-logo-img {
    height: 100px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
}

.site-logo-text {
    white-space: nowrap;
}

.site-logo:hover .site-logo-img {
    opacity: 0.9;
}

.header-phone {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-phone:hover {
    color: var(--color-white);
    opacity: 0.9;
}

/* Nav — hamburger menu (all screen sizes) */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card-blue-dark);
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.main-nav.is-open {
    display: block;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 52px;
    height: 52px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    border-radius: var(--radius);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.2s ease;
}

/* Hamburger → X: top and bottom bars meet at center and rotate; middle shrinks out */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* Main content — blue shimmer on background only + floating orbs */
.main-content {
    position: relative;
    min-height: calc(100vh - 200px);
    background-color: #f5f6f8;
    background-image:
        linear-gradient(105deg, transparent 0%, transparent 28%, rgba(0, 86, 179, 0.12) 45%, rgba(0, 162, 232, 0.22) 50%, rgba(0, 86, 179, 0.12) 55%, transparent 72%, transparent 100%),
        radial-gradient(circle at 1px 1px, rgba(0, 86, 179, 0.06) 1px, transparent 0);
    background-size: 220% 100%, 28px 28px;
    background-position: 120% 0, 0 0;
    animation: shimmer 5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.main-content::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(0, 162, 232, 0.2) 0%, rgba(0, 162, 232, 0.05) 50%, transparent 70%);
    animation: float-drift 18s ease-in-out infinite;
}
.main-content::after {
    width: 340px;
    height: 340px;
    bottom: -80px;
    left: -120px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.18) 0%, rgba(0, 86, 179, 0.04) 50%, transparent 70%);
    animation: float-drift-alt 20s ease-in-out infinite;
}

.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* Typography */
h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--color-navy);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Section titles — accent bar */
.section-title h2,
h2.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title h2::after,
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-teal-muted));
    border-radius: 2px;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

.btn:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-card-blue-dark);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.35);
}

.btn-primary:hover {
    background: #004a99;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background: var(--color-teal);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(49, 151, 149, 0.35);
}

.btn-secondary:hover {
    background: #2c7a7b;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 151, 149, 0.4);
}

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

.btn-outline:hover {
    background: var(--color-card-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.25);
}

/* Hero — carousel background + overlay + content */
.hero {
    position: relative;
    background: var(--gradient-card);
    color: var(--color-white);
    padding: 3.5rem 1.25rem 4.5rem;
    text-align: center;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating background images */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay so text stays readable over any image */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.75) 0%, rgba(0, 162, 232, 0.6) 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .subheadline {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-ctas .btn {
    background: var(--color-white);
    color: var(--color-card-blue-dark);
    border: 2px solid transparent;
    min-width: 10rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-ctas .btn:hover {
    background: var(--color-gray-100);
    color: var(--color-card-blue-dark);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Trust strip — blue shimmer + teal accent */
.trust-strip {
    position: relative;
    background-color: #eef1f5;
    background-image:
        linear-gradient(100deg, transparent 0%, transparent 32%, rgba(0, 86, 179, 0.14) 48%, rgba(0, 162, 232, 0.24) 50%, rgba(0, 86, 179, 0.14) 52%, transparent 68%, transparent 100%),
        radial-gradient(circle at 1px 1px, rgba(49, 151, 149, 0.08) 1px, transparent 0);
    background-size: 200% 100%, 24px 24px;
    background-position: 100% 0, 0 0;
    animation: shimmer 5.5s ease-in-out infinite 0.3s;
    padding: 1.75rem 1.25rem;
    border-bottom: 3px solid var(--color-teal);
    overflow: hidden;
}

.trust-strip-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: center;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--color-gray-800);
    font-size: 0.95rem;
}

.trust-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--color-teal-muted), var(--color-teal));
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(49, 151, 149, 0.25);
}

/* Sections — static background only (no shimmer here so cards never shimmer) */
.section {
    position: relative;
    padding: 2.5rem 1.25rem;
    background-color: #f5f6f8;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 86, 179, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    z-index: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(49, 151, 149, 0.18) 0%, rgba(49, 151, 149, 0.04) 50%, transparent 70%);
    pointer-events: none;
    animation: float-drift 15s ease-in-out infinite;
}

.section-alt {
    position: relative;
    background-color: #eef1f5;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 86, 179, 0.07) 1px, transparent 0);
    background-size: 24px 24px;
    overflow: hidden;
}

.section-alt::before {
    content: '';
    position: absolute;
    z-index: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(0, 162, 232, 0.2) 0%, rgba(0, 162, 232, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: float-drift-alt 17s ease-in-out infinite;
}

/* Section content (and cards) must sit above background and orbs */
.section > *,
.section-alt > * {
    position: relative;
    z-index: 5;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Cards — fully opaque layer above animated background; no shimmer on cards */
.card-grid {
    position: relative;
    z-index: 10;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    z-index: 10;
    isolation: isolate;
    background-color: #ffffff !important;
    background-image: none !important;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 86, 179, 0.06);
    padding: 1.5rem;
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-teal);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 86, 179, 0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--color-card-blue-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-gray-400);
    border-radius: var(--radius);
    background: var(--color-white);
}

/* Date inputs: wrapper clips iOS calendar fields so they don’t extend off screen */
.date-input-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.date-input-wrap input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15);
}

.form-group .field-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    margin-top: 0.35rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    flex-shrink: 0;
    margin: 0;
}

.form-actions {
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #c6f6d5;
    color: var(--color-success);
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: var(--color-error);
    border: 1px solid #feb2b2;
}

/* Footer — business card gradient + subtle texture */
.site-footer {
    position: relative;
    background: var(--gradient-card);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 1.25rem;
    margin-top: 3rem;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand strong {
    display: block;
    color: var(--color-white);
    font-size: 1.2rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-contact p {
    margin: 0.25rem 0;
}

.footer-contact a {
    color: #1a1a1a;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #000;
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 1.5rem 0 0;
}

/* Page-specific: Home sections */
.home-section h2 {
    margin-bottom: 1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Service page images */
.service-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
    margin-bottom: 1rem;
}

/* Image placeholders — when no image file is present */
.img-placeholder {
    background: var(--color-gray-200);
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    z-index: 10;
    isolation: isolate;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid var(--color-gray-200);
    border-left: 5px solid var(--color-teal);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 28px rgba(49, 151, 149, 0.18);
    transform: translateX(4px);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Pricing table placeholder */
.pricing-block {
    position: relative;
    z-index: 10;
    isolation: isolate;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-teal);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-block:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(2px);
}

.pricing-block .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-card-blue-dark);
}

/* Payment page */
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
}

.payment-badges span {
    padding: 0.35rem 0.75rem;
    background: var(--color-gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact page */
.contact-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ========== Mobile-friendly styles ========== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .main-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .header-inner {
        padding: 0.7rem 1.25rem;
        gap: 0.75rem;
    }

    .site-logo {
        font-size: 1.4rem;
        gap: 0.65rem;
        min-width: 0;
    }

    .site-logo-img {
        height: 58px;
        max-width: 160px;
    }

    .site-logo-text {
        white-space: normal;
        line-height: 1.3;
    }

    .header-right {
        display: none;
    }

    .hero {
        padding: 2rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero .subheadline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-ctas .btn {
        min-width: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        min-height: 48px;
    }

    .trust-strip {
        padding: 1rem 1rem;
    }

    .trust-strip-inner {
        gap: 0.75rem 1rem;
        flex-direction: column;
        align-items: center;
    }

    .trust-item {
        font-size: 0.9rem;
    }

    .container {
        padding: 1.25rem 1rem;
        text-align: center;
        min-width: 0;
    }

    .section {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .section-alt {
        text-align: center;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-title h2,
    h2.section-title {
        text-align: center;
    }

    .card-grid {
        justify-items: center;
        gap: 1rem;
    }

    .card {
        text-align: left;
        max-width: 100%;
        padding: 1.25rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .btn {
        min-height: 44px;
        padding: 0.7rem 1rem;
    }

    .form,
    .form-group {
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.75rem;
        min-height: 48px;
        max-width: 100%;
    }

    /* Date fields: wrapper + viewport constraint so iOS calendar stays on screen */
    .date-input-wrap {
        overflow: hidden;
        width: 100%;
        max-width: min(100%, 100vw - 2rem);
    }

    .date-input-wrap input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .checkbox-label {
        align-items: center;
        margin-top: 0.5rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
    }

    .form-links-list a {
        display: block;
        text-align: center;
        padding: 0.85rem 1rem;
        min-height: 48px;
    }

    .contact-two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-wrap iframe {
        min-height: 220px;
    }

    .footer-inner {
        padding: 0 1rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-links a {
        display: inline-block;
        margin: 0.25rem;
    }
}

@media (max-width: 480px) {
    .site-logo-text {
        font-size: 1.2rem;
    }

    .site-logo-img {
        height: 50px;
        max-width: 135px;
    }

    .hero h1 {
        font-size: 1.35rem;
    }
}

.map-label {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    min-height: 250px;
}

.map-placeholder {
    background: var(--color-gray-200);
    height: 250px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-600);
}

/* Scroll targets on forms page — leave room below sticky header */
#contact-form,
#application-form,
#signup-form {
    scroll-margin-top: 6rem;
}

/* Forms page: form list */
.form-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-links-list li {
    margin-bottom: 1rem;
}

.form-links-list a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--color-gray-100);
    border-radius: var(--radius);
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
}

.form-links-list a:hover {
    background: var(--color-gray-200);
    border-color: var(--color-navy);
}

/* Floating menu — hamburger only (Call is inside menu), mobile only */
.fab-menu {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    align-items: center;
    justify-content: center;
}

.fab-nav-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--color-card-blue-dark);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 86, 179, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab-nav-toggle:hover,
.fab-nav-toggle:focus {
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

.fab-nav-toggle:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 3px;
}

/* Hamburger: three horizontal lines stacked vertically */
.fab-nav-toggle .nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s ease;
}

.fab-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.fab-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.fab-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .fab-menu {
        display: flex;
    }
}

@media (min-width: 769px) {
    .fab-menu {
        display: none !important;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-navy);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}
