@charset "utf-8"; /* CSS Document */


/* page settings */

html {
        overflow-y: scroll;
        scroll-behavior: smooth;   /* add this to the top of your CSS file for a smooth glide up */
}



* {
        margin: 0;
        box-sizing: border-box;
}



body {
        display: flex;
        flex-direction: column;
        background-color: #FAFAFA;
        min-height: 100vh;   /* VITAL : instructs the body to be at least screen-height */
        margin: 0;
        font-family: 'Open Sans', sans-serif;   /* this makes every piece of text on your site use Open Sans by default */
        font-optical-sizing: auto;
        font-weight: 400;   /* standard weight */
        font-style: normal;
        padding-bottom: 0;
}



header {
        position: fixed;      /* this "sticks" the header to the screen */
        top: 0;               /* locks it to the very top edge */
        left: 0;              /* locks it to the left edge */
        width: 100%;          /* ensures it stretches across the screen */
        height: 80px;         /* give it a set height (adjust to fit your logo) */
        background: #FAFAFA;  /* give it a solid background so text doesn't show through */
        align-items: center;    /* vertically centers the logo and nav */
        box-shadow: none;   /* optional: adds a nice shadow 0 2px 5px rgba(0,0,0,0.1)*/
        transition: all 0.5s ease-in-out;   /* added to ensure smoothness when header shrinks on scroll */
        z-index: 9999;        /* keeps it above the scrolling content */
}



footer {
        position: relative;   /* relative ensures that the footer sits after the page content, fixed locks it in a static position */
        border-top: none !important;
        padding-top: 30px;    /* space between the line and your links */
        margin-top: 60px;     /* space between your main content and the footer */
        background-color: #F9F9F9;   /* subtle off white */
}




.site-header {
        background-color: #fafafa;
        width: 100%;
        height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0;
        z-index: 1000;
    /* border-bottom: 1px solid #f40000;   /* the dark/red bar that stretches 100% width */
}



/* the "Inner Track" that keeps content aligned with your page text */
.header-container {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;         /* centers the container on the screen */
        height: 100%;
        display: flex;          /* places the logo and dropnav side-by-side */
        justify-content: space-between;    /* logo left, nav right */
        align-items: center;    /* perfectly aligns them vertically */
        /* padding: 0 20px;          /* 'safety gap' from the screen edges */
}



.content-wrapper {
        flex: 1;
        padding-top: 60px;   /* offset for the fixed header */
}



/* contained within header, logo size 1500 x 300, ratio 5:1 */
.logo-wrapper {
        margin-left: 10px;
        transition: all 0.5s ease-in-out;   /* the speed the logo grows at : transform 0.3s ease, filter 0.3s ease; */
        cursor: pointer;
        display: flex;
        align-items: center;
}



.logo-wrapper img {
    height: 35px;          /* forces the logo to a specific size */
    width: auto;           /* keeps the logo from stretching */
    display: block;
    transition: height 0.5s ease-in-out, transform 0.5s ease-in-out; 
    transform: scale(1);    /* explicitly define the starting scale */
}



/* ensure the link container behaves like a block for the image */
.logo-link {
        display: inline-block;
        padding: 5px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        border-radius: 4px;         /* slightly rounded corners for a modern feel */
}



.logo-link:hover {
    border-color: #212427;      /* #212427 dark charcoal color */
    background-color: #f9f9f9;  /* optional: a very faint grey tint inside the box */
}



/* --- THE SHRINK STYLES WHEN PAGE SCROLLS --- */

/* when scrolled, make the header shorter and add a shadow */
header.scrolled {
    height: 60px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: rgba(250, 250, 250, 0.95);   /* slight transparency */
}



/* when scrolled, make the logo smaller */
header.scrolled .logo-wrapper img {
    height: 30px !important;
    transition: height 0.5s ease-in-out, transform 0.5s ease-in-out;
}



.site-header.sticky {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);   /* adds a shadow to the bottom edge of the dropnav when it squeezes during page scroll */
}



header.scrolled .dropnav {
    height: 60px !important;    /* matching the fold */
}



/* shrinks the height of the parent links when scrolling */
header.scrolled .dropnav li a.parentlink {
    height: 60px !important;
    line-height: 60px !important;
    padding-top: 0px !important;    
    padding-bottom: 0px !important;
    transition: all 0.3s ease-in-out;   /* smooth folding animation */
}



/* This adjusts the arrow position to stay centered in the smaller height */
header.scrolled .dropnav li.parent:has(ul) > a.parentlink::after {
    top: 50% !important;
    transform: translateY(-50%) !important;
}



/* This pulls the dropdown menu up so it still meets the new smaller header */
header.scrolled .dropnav li.parent:hover > ul.child {
    top: 60px !important;   /* adjusted to meet the bottom of the shrunken link */
}



.page-title-header {
    width: 100% !important;
    padding-top: 60px !important; /* Large gap from nav */
    padding-bottom: 0px !important;
    display: block !important;
}



/* COPYRIGHT SETTINGS */

/* contained within footer */
.copyright {
        color: #212427;   /* best easy on the eye text colour #212427, #222222, #333333 */
        line-height: 1.2;
        font-size: 14px;
        font-family: 'Open Sans', sans-serif;
        font-weight: 400;
        font-style: normal;
        justify-self: center;   /* copyright stays dead center */
        text-align: center;
        white-space: nowrap;   /* keeps the copyright on one line */
}



/* the container: vertical alignment master */
.footer-container {
    display: grid;    
    grid-template-columns: 1fr auto 1fr;   /* left (1fr), center (auto), right (1fr) */
    align-items: center;                 /* this is the magic for vertical alignment */
    padding: 30px 40px;                  /* reduced padding slightly for a tighter look */
    max-width: 1200px;
    margin: 0 auto;
    column-gap: 110px;   /* distance from the copyright */
}



/* left nav: perfectly level with center */
.footernav {
    justify-self: start;   /* start keeps menus to the far left, end brings them closer to copyright */
}



.footernav ul {
    display: flex;
    flex-direction: row;
    gap: 50px;            /* distance between the menu links */
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1;       /* Match the copyright */
}



.footernav li {
    display: inline-block;     /* backup for older browsers */
}




.footernav li a:hover {
    text-decoration: underline;
    color: #F40000;            /* adds a hover effect for consistency */
}



.footernav li a {
    font-size: 12px;
    font-weight: 400;
    color: #212427;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s;
}



/* right side: perfectly level with center */
.footer-right {
    justify-self: start;   /* start keeps menus to the far left, end pushes them further from copyright */
    line-height: 1;       /* match the copyright */
}



.footer-right a {
    font-size: 12px;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    color: #212427;
}



.footer-right a:hover {
        text-decoration: underline;
        color: #F40000;
}


#backToTop {
    display: none;        /* hidden by default will show after 300px scroll */
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 10000;       /* above the header and everything else */
    border: none;
    outline: none;
    background-color: #F40000;   /* matching signature red */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;   /* makes it a circle */
    font-size: 50px;
    font-weight: bold;
    width: 100px;
    height: 100px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
}



#backToTop:hover {
    background-color: #4cbb17;   /* turns dark grey on hover */
    transform: scale(1.1);
}



.cookie-container {
    display: none;   /* start hidden, JavaScript will show if needed */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #23272b;
    color: #ffffff;
    padding: 5px;
    font-size: 1.2rem;
    z-index: 9999;
    display: none;   /* JavaScript will change this to 'block' */
    width: 100%;
}



.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;   /* this pulls buttons close to the text */
    max-width: 95%;   /* allows it to use most of the monitors width */
    margin: 0 auto;
    gap: 30px;   /* this creates a consistent gap between text and buttons */
}



.secure-icon {
    margin-right: 10px;    /* Space between lock and text */
    font-size: 1.2rem;     /* Slightly larger than the text */
    vertical-align: middle; /* Aligns it perfectly with the sentence */
    
    /* Optional: Make it a subtle 'Security Gold' or White */
    color: #FFD700; 
    
    /* Optional: Add a subtle glow to make it look active */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}



/* ensure the paragraph stays centered with the icon */
.cookie-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;   /* CRITICAL: prevents the text from jumping to a second line */
    margin: 0;           /* removes default paragraph gaps that might push the box taller */
}



.cookie-buttons {
    display: flex;
    gap: 10px;   /* space between the two buttons */
}



.cookie-btn {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    transition: 0.3s;
}



.cookie-btn.accept {
    background: #008000 !important;
    color: #ffffff;
    display: inline-block !important;
}



body.cookies-accepted {
    padding-bottom: 0;
}



.cookie-btn.decline {
    background: #F40000 !important;
    color: #ffffff;
    font-weight: normal;   /* makes it look less "important" than Accept */
    display: inline-block !important;
    margin-left: 10px;
}



.cookie-btn:hover {
    background: #c30000;   /* slightly darker red on hover */
    opacity: 0.8;
}


.cookie-container p {
    margin: 0;
    font-size: 0.95rem;
}



.cookie-container a {
    color: #f40000;
    text-decoration: underline;
}



.cookie-btn {
    background: #f40000;
    border: none;
    color: white;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 20px;
    transition: background 0.3s ease;
}



/* this applies to ALL screens */
.cookie-content {
    display: flex;
    flex-wrap: wrap;   /* allows wrapping on small screens (phones) */
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
}



.cookie-btn {
        margin-top: 15px;
        width: 100%;
    }
    .cookie-content p {
        white-space: nowrap; /* Forces one line on big screens */
    }
    .cookie-content {
        flex-wrap: nowrap; /* Prevents buttons from dropping down */
    }
}



/* stop specific blocks from underlining their text on hover */
.benefit a, 
.main-intro a, 
.logo-link {
    text-transform: none;
    text-decoration: none !important;
}




/* if you only want underlines on actual text links in paragraphs */
p a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   LAPTOP & SMALL SCREEN OPTIMIZATION (Targets screens between 1024px and 1440px)
   ========================================================================== */
@media screen and (min-width: 1024px) and (max-width: 1440px) {

    /* 1. Prevent containers from strangling your layout content */
    .content-wrapper,
    .content-container,
    .container {
        width: 95% !important; /* Expands slightly to give compressed text more room */
        max-width: 1200px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Soften desktop 2-column restrictions so sidebars don't break lines */
    .content-box-2col,
    .content-box-2col-alt,
    .about-flex-container {
        gap: 20px !important; /* Narrows the gap between columns to preserve space */
    }

    /* 3. Keep main text and sidebar proportional on smaller screens */
    .main-text {
        width: 65% !important; /* Adjust percentages slightly if needed */
    }
    
    .sidebar-column {
        width: 30% !important;
    }

    /* 4. Force buttons or callouts layout to stay fluid */
    .btn-primary, 
    .btn-secondary,
    .return-btn {
        float: none !important; /* Neutralizes rigid alignments pushing off screen */
        display: inline-block !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    
    /* ==========================================================================
   COMPACT NOTEBOOK OPTIMIZATION (Targets 13"-15" High-Res Screens)
   ========================================================================== */
@media screen and (min-width: 1025px) and (max-width: 1440px) {

    /* 1. Make the main frame layout elastic */
    main.content-wrapper,
    .content-container,
    .container {
        width: 92% !important; /* Shrinks the rigid frame edges safely inside the screen */
        max-width: 1240px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Tighten column grids to protect button spacing */
    .content-box-2col,
    .content-box-2col-alt,
    .about-flex-container {
        display: flex !important;
        flex-direction: row !important; /* Keeps them side-by-side but scales gracefully */
        gap: 25px !important; /* Narrows the center structural gap */
        justify-content: space-between !important;
    }

    /* 3. Re-apportion text vs sidebar percentages */
    .main-text {
        width: 66% !important; /* Yields a bit of ground to prevent line-wrapping items */
    }
    
    .sidebar-column {
        width: 30% !important;
    }

    /* 4. Keep action buttons inside boundaries */
    .btn-primary, 
    .btn-secondary,
    .return-btn {
        display: inline-block !important;
        float: none !important; /* Stops old float rules from spilling out of columns */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Lets text drop safely onto line two if squished */
    }

    
}
