/* Base & Variables */
:root {
    --navy: #0a2540;
    --white: #ffffff;
    --orange: #ff6b35;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --text: #333;
    --bg: #f9fafb;
    --card: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

a {
    transition: color 0.3s;
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background: var(--navy);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    z-index: 1001;
    /* Ensure logo stays above mobile menu */
}

.logo span {
    color: var(--orange);
}

/* Desktop Defaults */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--orange);
}

/* Hamburger Menu (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5a 100%);
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 50px;
    /* Offset for fixed header */
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Wrap buttons on small screens */
    align-items: center;
}

.google-play-badge {
    height: 60px;
    width: auto;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    justify-content: center;
    /* Center content for consistent width */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

.phone-mockup {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    font-size: 0;
    /* Removing potential whitespace from inline-block */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: inline-block;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.splash-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-light {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards & Grids */
.safety-grid,
.steps,
.benefits-grid,
.trust-grid {
    display: grid;
    gap: 30px;
}

.safety-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.safety-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--orange);
}

.safety-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--navy);
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Steps */
.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Benefits */
.benefit {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    font-size: 32px;
    color: var(--orange);
    flex-shrink: 0;
}

.benefit h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Partner CTA & Forms */
.partner-cta {
    background: var(--navy);
    color: var(--white);
    padding: 60px;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 900px;
}

.partner-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.partner-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input,
textarea {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    width: 100%;
    /* Full width */
}

/* Specific styling for the partner form dark theme inputs */
#partnerForm input,
#partnerForm textarea {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

#partnerForm input::placeholder,
#partnerForm textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange);
}

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

.submit-btn {
    background: var(--orange);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    justify-self: start;
}

.submit-btn:hover {
    background: #e55a2a;
}

/* Finder Search Styling */
.finder-wrapper {
    max-width: 600px;
    margin: 0 auto 50px;
}

.finder-input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Wrap on small screens */
}

.finder-input {
    flex: 1;
    background: white;
    color: var(--navy);
    border: 2px solid #ddd;
    min-width: 200px;
    /* Ensure input doesn't get too small */
}

.finder-btn {
    background: var(--orange);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Badges */
.badge {
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.badge-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.badge h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--orange);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Privacy Page Specifics */
.privacy-body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.privacy-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 100px 20px 40px;
    /* Top padding for fixed header */
}

.privacy-card {
    background: var(--card);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.privacy-card h1 {
    color: var(--navy);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.privacy-card h2 {
    color: var(--navy);
    margin-top: 35px;
    font-size: 1.4rem;
}

.effective-date {
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {

    /* Header & Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        /* Below header */
        left: 0;
        width: 100%;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 18px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .app-buttons {
        justify-content: center;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .partner-cta {
        padding: 30px;
    }

    .privacy-card {
        padding: 25px;
    }

    .privacy-card h1 {
        font-size: 1.8rem;
    }

    .finder-input-group {
        flex-direction: column;
    }

    .finder-btn {
        width: 100%;
    }
}