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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== Brand Colors ===== */
:root {
    --primary-navy: #0F3B70;
    --secondary-blue: #1F4B8A;
    --neutral-grey: #6B7280;
    --light-grey: #F3F4F6;
    --white: #ffffff;
    --border-grey: #E5E7EB;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-navy);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: var(--primary-navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Main Layout ===== */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 600px;
}

.logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.launch-icon {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.75rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.subtext {
    font-size: 1rem;
    color: var(--neutral-grey);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--light-grey);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    max-width: 500px;
    width: 100%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--neutral-grey);
}

/* ===== Contact Form ===== */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(15, 59, 112, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.field-error {
    display: block;
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.cta-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-blue);
}

.cta-button:focus {
    outline: 2px solid var(--primary-navy);
    outline-offset: 2px;
}

.cta-button:active {
    transform: translateY(1px);
}

/* ===== Confirmation Message ===== */
.confirmation-message {
    text-align: center;
    padding: 2rem;
    background-color: #ECFDF5;
    border-left: 4px solid #10B981;
    border-radius: 4px;
    color: #047857;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    max-width: 60px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-company {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #B3C1D9;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.policy-link {
    color: var(--white);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #B3C1D9;
    text-decoration: underline;
}

.separator {
    color: #7A92B2;
}

/* ===== Cookie Consent Bar (Sticky Bottom) ===== */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
}

.cookie-bar.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-bar-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.cookie-message {
    font-size: 0.9rem;
    margin: 0;
    color: #B3C1D9;
    line-height: 1.5;
}

.cookie-link {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #E5E7EB;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background-color: #10B981;
    color: var(--white);
}

.cookie-btn.accept:hover {
    background-color: #059669;
}

.cookie-btn.accept:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.cookie-btn.reject {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-btn.reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn.reject:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.cookie-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: opacity 0.3s ease;
}

.cookie-close:hover {
    opacity: 0.7;
}

.cookie-close:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ===== Modal Styles (for Privacy/Cookie Policy modals) ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.policy-modal {
    max-width: 700px;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-grey);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-navy);
}

.modal-close:focus {
    outline: 2px solid var(--primary-navy);
    outline-offset: 2px;
}

/* ===== Policy Modal Content ===== */
.policy-content {
    margin-top: 1rem;
}

.policy-content h3 {
    color: var(--primary-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content p {
    color: var(--neutral-grey);
    line-height: 1.7;
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neutral-grey);
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.policy-content strong {
    color: var(--primary-navy);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

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

    .logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }

    .contact {
        padding: 3rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .cookie-modal {
        max-width: 90%;
        padding: 1.5rem;
    }

    .policy-modal {
        max-width: 90%;
        padding: 1.5rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .footer {
        padding: 1.5rem;
    }

    .footer-brand {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .footer-logo {
        max-width: 50px;
    }

    .footer-company {
        font-size: 0.85rem;
    }

    .policy-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

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

    .tagline {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 2rem;
    }

    .launch-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .subtext {
        font-size: 0.9rem;
    }

    .logo {
        max-width: 160px;
        margin-bottom: 1rem;
    }

    .contact {
        padding: 2rem 1rem;
    }

    .contact-container {
        width: 100%;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .confirmation-message {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .cookie-modal {
        max-width: 95%;
        padding: 1.25rem;
    }

    .policy-modal {
        max-width: 95%;
        padding: 1.25rem;
    }

    .policy-content h3 {
        font-size: 1rem;
    }

    .policy-content ul {
        margin-left: 1.25rem;
    }

    .footer {
        padding: 1rem;
    }

    .footer-brand {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-logo {
        max-width: 45px;
    }

    .footer-company {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .footer-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .policy-link {
        font-size: 0.8rem;
    }

    /* Responsive Cookie Bar (Mobile) */
    .cookie-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.75rem;
    }

    .cookie-bar-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cookie-message {
        font-size: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .cookie-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .form-group input,
    .form-group textarea {
        border: 2px solid var(--primary-navy);
    }

    .cta-button {
        border: 2px solid var(--primary-navy);
    }

    .btn-primary {
        border: 2px solid var(--primary-navy);
    }

    .btn-secondary {
        border: 2px solid var(--primary-navy);
    }
}

/* Print styles */
@media print {
    .footer,
    .cookie-consent,
    .modal {
        display: none;
    }
}
