/*  CTC.css */
:root {
    /*  Originals   */
    /*  --primary-blue: #002868; -- Adjust to match your logo blue */
    /*  --primary-red: #bf0a30;  -- Adjust to match your logo red */

    /* Exact matches from CTC_Logo.v4.jpg */
    --primary-blue: #1d446b; 
    --primary-red: #c14d44;
    --logo-off-white: #eceae4; 
    --pure-white: #ffffff;
}

/* SEO Friendly Typography */
h1 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 10px; }

/* Body Styles */
body { 
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    /* Using the logo's off-white for the page background */
    background-color: var(--logo-off-white); 
    color: #333;
}

header {
    /* Keeping the header crisp white to make the logo pop */
    background: var(--pure-white);
    padding: 20px 10px;
    border-bottom: 3px solid var(--primary-red);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Responsive Logo Styling */
.logo-container img {
    /* This scales the 2133px image down while maintaining aspect ratio */
    width: 100%;
    max-width: 400px; /* Desktop size: Looks professional in a header */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hamburger Icon Styles (Outside media query) */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above the nav menu */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out; /* This makes the movement smooth */
    transform-origin: center; /* Keeps the rotation anchored correctly */
}

@media (max-width: 600px) {
    header { padding: 10px; }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative; /* Essential for the absolute menu positioning */
    }

    .logo-container img {
        max-width: 250px; /* Mobile size: Prevents the logo from taking up the whole screen */
    }
/*
    #nav-menu {
        display: none; /* Hidden by default on mobile *-/
    }
*/
    #nav-menu.active {
        display: block; /* Shown when toggled */
    }

    .menu-toggle {
        display: none; /* Show hamburger on mobile:  flex */
    }

    /* Top bar rotates 45 degrees down */
    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    /* Middle bar fades out */
    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    /* Bottom bar rotates 45 degrees up */
    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .social-nav {
        display: none; /* Hide links by default until 'active' class is added */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits below header */
        left: 0;
        width: 100%;
        background: var(--pure-white);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 20px;
    }

    /* Show menu when active class is added via JS */
    .social-nav.active {
        display: flex;
    }

    .form-group {
        flex-direction: column; /* This forces the Name and Email to stack */
        gap: 15px; /* Adds a nice space between the stacked fields */
    }

    /* Ensures the inputs take up the full width of the container */
    .form-container input, 
    .form-container textarea {
        width: 100%; 
        box-sizing: border-box; /* Prevents padding from pushing the box wider than the screen */
    }
}

.social-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-nav a:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}


.btn-play {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.btn-share {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.tag {
    display: inline-block;
    background: var(--logo-off-white);
    color: var(--primary-red);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.btn-submit {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-submit:hover {
    background-color: #a03d35; /* Darker red */
    transform: scale(1.02);
}

/* Footer Styles */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-section h3 {
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.footer-section a {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Back to Top Button */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-blue);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    line-height: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
}

#backToTop:hover {
    background-color: var(--primary-red);
    transform: scale(1.1);
}