/* ==========================================================================
   1. BRAND VARIABLES & RESET
   ========================================================================== */
:root {
    --maritime-blue: #0b3c5d;
    --brand-orange: #ef5b25;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-brand-canvas: #ffffff; /* Your exact logo background tone */
    --white: #ffffff;
    --border-radius: 8px;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-brand-canvas); /* Applies the background color globally */
}

/* ==========================================================================
   2. HERO HEADER & YOUR ORIGINAL FADEIN ANIMATION
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-header {
    background-color: var(--bg-brand-canvas); /* white background */
    border-bottom: 1px solid #e1e1dc;
    padding: 30px 0 20px 0;
    animation: fadeIn 0.8s ease-out forwards; /* Uses your exact original keyframe name */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.logo-container {
    width: 100%;
    max-width: 320px; /* High-impact scale for desktop views */
    margin: 0 auto;
    text-align: center;
}

.logo-container a {
    display: inline-block;
}

.site-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--maritime-blue);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

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

.main-nav .nav-cta {
    background-color: var(--brand-orange);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}


/* ==========================================================================
   3. LEGAL PAGES (privacy.php & terms.php)
   ========================================================================== */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-container h1 {
    color: var(--maritime-blue);
    font-size: 2.2rem;
    border-bottom: 3px solid var(--brand-orange);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.legal-container h2 {
    color: var(--maritime-blue);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

.legal-container p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.legal-container ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container blockquote {
    background: #f0f0eb; /* Slightly darker cream for contrast panels */
    border-left: 5px solid var(--brand-orange);
    margin: 25px 0;
    padding: 20px;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.legal-container blockquote p {
    margin-bottom: 0;
    font-weight: 500;
}

/* ==========================================================================
   4. GLOBAL FOOTER STYLING
   ========================================================================== */
.main-footer {
    background-color: #f0f0eb; /* Matches panel styling */
    padding: 40px 0 20px 0;
    margin-top: 60px;
    border-top: 1px solid #e1e1dc;
}

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

.footer-branding h3 {
    color: var(--maritime-blue);
    margin-bottom: 8px;
}

.footer-taglines {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #e1e1dc;
    margin: 25px 0;
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 6px;
}

.legal-crn {
    font-weight: 500;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-orange);
}
/* ==========================================================================
   5. MOBILE RESPONSIVENESS (Your exact parameters restored)
   ========================================================================== */
@media (max-width: 480px) {
    .main-header {
        padding: 20px 0 15px 0;
    }

    .logo-container {
        max-width: 290px; 
    }
    
    .header-container {
        gap: 15px;
    }

    .main-nav ul {
        gap: 10px; /* Reduced from 20px to save space */
        flex-wrap: wrap; /* Allows the buttons to stack onto a new row */
    }

    .main-nav .nav-cta {
        padding: 8px 16px; /* Slightly reduced padding for mobile */
        font-size: 0.95rem; /* Slightly smaller text for better fit */
    }
}

/* ========================================================================== 6. DESKTOP LOGO OPTIMISATION ========================================================================== */
@media (min-width: 769px) {
    .logo-container {
        max-width: 440px; /* Bumps up the size on laptop/desktop screens */
    }
}
