@charset "utf-8"; /* CSS Document */


.hero {
    display: flex;
    flex-direction: column; 
    align-items: center;         /* centres text horizontally */
    justify-content: flex-start;  /* forces content to start at the top */
    
    /* PUSH DOWN HERE */
    /* this creates the gap between the header and your text */
    /* padding-top: 20px !important; */

    /* OFFSET FOR FIXED HEADER */
    margin-top: 80px;            
    
    height: 60vh;
    width: 100%;
    position: relative;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                url('images/hero-bg.jpg') no-repeat center center/cover;   /* 0.5 is 50% dark. increase to 0.7 for darker, decrease to 0.3 for lighter */
}



.hero-content {
    position: absolute;
    left: 50%;
    top: 5%;   /* anchors the start of the text near the top */
    transform: translateX(-50%);   /* perfectly centers the container horizontally */
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    display: flex;   /* this stacks everything vertically in order */
    flex-direction: column;
    align-items: center; 
    text-align: center;
}



.hero-corner-logo {
    position: relative;   /* remove absolute positioning so it follows the buttons */
    top: 0;
    right: 0;
    margin-bottom: 50px;   /* space between the logo and the buttons */
    width: 350px;   /* adjusted slightly for better balance */
    height: auto;
    display: block;
    opacity: 0;   /* keep your existing animation and effects */
    animation: pureFade 4.5s ease-in 1s forwards; 
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.5));
}



.hero-content h1 {
    font-family: open sans, roboto, inter, lato, verdana, arial;
    font-size: 3rem;    /* large, bold heading */
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;   /* looks great for driver training sites */
    animation: fadeInUp 1s ease-out forwards;
}



.hero-content p {
    font-size: 2.5rem;   /* 1.25rem default */
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 400;   /* optional: a lighter weight looks very elegant in hero sections */
    letter-spacing: 1px;   /* gives the text some breathing room */
    opacity: 0;   /* slightly softer white for the subtext */
    animation: fadeInUp 1s ease-out 1s forwards;   /* 0.3s delay */
}



/* button styling */
.hero-buttons {
    display: flex;
    gap: 80px;   /* space between the two hero section buttons */
    margin-top: 5px;
    justify-content: center;
    opacity: 0;
    animation: pureFade 3s ease-in 2s forwards;
}



.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 0.5rem;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    /* this creates the shadow around the button box */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    
    /* this makes the text inside the button sharp */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}



.btn-primary {
    background-color: #f40000;   /* signature red */
    color: #ffffff;
}



.btn-primary:hover {
    background-color: #4cbb17;   
    color: #ffffff;
    transform: translateY(-5px);
}



.btn-secondary {
    border: 2px solid #212427;
    color: #212427;
}



.btn-secondary:hover {
    background-color: #212427;
    color: #ffffff;
    transform: translateY(-5px);
}



.btn-primary:hover, .btn-secondary:hover {
    /* transform: translateY(-5px);
    /* Shadow becomes blurrier and lighter as it "lifts" */
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.4); 
}



/* define a pure fade-in (no movement) */
@keyframes pureFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* set the initial state to hidden */
.hero-content h1, 
.hero-content p, 
.hero-buttons {
    opacity: 0;
    animation-fill-mode: forwards;   /* this keeps them visible after fading in */
}



/* 3. apply the fade with staggered timing */

.hero-content h1 {
    /* animation: name | duration | timing-function | delay | fill-mode */
    animation: pureFade 3.5s ease-in 0.4s forwards;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}



.hero-content p {
    animation: pureFade 3s ease-in 2.5s forwards;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}



/* benefits section : divided into three equal boxes */

.benefits {
    padding: 80px 20px;
    background-color: #ffffff;   /* white background to contrast the Hero */
}



.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;   /* prevents squashing on smaller screens */
    gap: 40px;   /* distance between the three boxes*/
    justify-content: center;
}



.benefit-card {
    flex: 1;   /* makes all cards equal width */
    text-align: center;
    padding: 40px 25px;
    background: #F9F9F9;
    border-radius: 1rem;   /* 1rem is usually 16px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #EDEDED;
    display: flex;
    flex-direction: column;
    /* 1. Add the static shadow */
    /* This makes the cards look slightly elevated even before hovering */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
}



.benefit-card:hover {
    transform: translateY(-5px);   /* lifts the card on hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);   /* make the shadow deeper on hover */
    border-color: #000080;    /* subtle border on hover */
}



.benefit-icon {
    font-size: 40px;
    margin-bottom: 20px;
}



.benefit-card h3 {
    font-family: 'Open Sans', sans-serif;
    color: #F40000;   
    font-size: 1.4rem;
    font-weight: 400;   /* 400 is normal / regular, 300 is light */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-bottom: 15px;   /* adds space for the line */
    margin-bottom: 20px;
}



.benefit-card:hover h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    transition: text-shadow 0.3s ease;
}



.benefit-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);   /* centers the line */
    width: 200px;                 /* adjust width of the line here */
    height: 2px;                 /* thickness of the line */
    background-color: #F40000;    /* signature red */
    border-radius: 2px;          /* smooths the edges of the line */
    transition: width 0.3s ease;   /* animation for the hover effect */
}



.benefit-card:hover h3::after {
    width: 300px;  /* the line stretches out slightly on hover */
}



.benefit-card p {
    font-family: 'Open Sans', sans-serif;
    color: #102A43;   /* #102A43 stormy navy / ink, #2C6CB0 denim blue */
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 1.2rem;
}



/* container for the image to keep it centered and sized */
.benefit-image-wrap {
    width: 100%;         /* adjust this to your preferred icon size */
    height: 150px;
    margin: 0 auto 20px;   /* centers the box and adds space below */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;    /* clips any image spillover */
    
/* added for rounded images */
    position: relative;     /* anchor for the overflow 'cut' */
    overflow: hidden;       /* clips the square image corners */
    border-radius: 1rem;    /* defines the curve of the cut (16px) */
    
/* OPTIONAL: Add a subtle border to define the image shape */
    border: 2px solid #EDEDED;
}



/* the actual JPEG image */
.benefit-img {
    width: 100%;         /* makes image fill the width of the wrap */
    height: 100%;        /* maintains aspect ratio and ensures it fills the height for proper clipping */
    object-fit: cover;   /* ensures the whole logo fits inside the 80x80 box */
    display: block;
    
/* optional: re-use your logo hover glow for consistency */
    transition: transform 0.3s ease, filter 0.3s ease;
}



/* apply that "subtle glow" from your main logo to these icons too */
.benefit-card:hover .benefit-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}



/* not in use */
.benefit-link {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #0096ff;   /* #0000FF default hex code for an unvisited link, #0645AD, #3366CC */
    text-decoration: underline;
    transition: color 0.3s ease, transform 0.3s ease;
}



.benefit-link:hover {
    color: #f40000;   
    text-decoration: underline;
}



/* optional: make the link move slightly on hover */
.benefit-link:hover {
    transform: translateX(2px);
}



.benefit-btn {
    display: inline-block;
    margin-top: auto;   /* auto pushes button to the bottom of the box */
    padding: 10px 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #0096ff;
    text-decoration: none;
    border: 1px solid #212427;   /* the button shape */
    border-radius: 2rem;   /* rounded pill shape */
    transition: all 0.3s ease;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);   /* creates the shadow around the button box */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);   /* makes the text inside the button sharp */
}



.benefit-btn:hover {
    background-color: #f40000;   /* hover state: background fills with #F40000 signature red */
    border-color: #f40000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 0, 0, 0.2);
    text-decoration: none !important;
}



/* BUTTONS */

.btn-main {
    display: inline-block;
    margin-top: auto;   /* auto pushes button to the bottom of the box */
    padding: 10px 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #0096ff;
    text-decoration: none;
    border: 1px solid #212427;   /* the button shape */
    border-radius: 2rem;   /* rounded pill shape */
    transition: all 0.3s ease;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);   /* creates the shadow around the button box */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);   /* makes the text inside the button sharp */
}



.btn-main:hover {
    background-color: #f40000;   /* hover state: background fills with #F40000 signature red */
    border-color: #f40000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 0, 0, 0.2);
}



/* main content styling */
.main-intro {
    padding: 10px 10px;
    background-color: #fafafa;
}



.main-intro .container {
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}



.main-intro h2 {
    color: #f40000;   /* #2B2B2B blackened chrome, #353535 deep gunmetal, #5E5E5E dark pewter, #102A43 Navy Blue */
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}



.lead-text {
    font-size: 1.3rem;
    color: #212427;
    line-height: 1.8;
    margin-bottom: 0;
}



.lead-text + .btn-main,
p + .btn-main {
    margin-top: 35px !important;   /* only adds the gap when this button follows a lead-text paragraph or standard paragraph */
    display: inline-block;   /* ensures the margin works correctly on a link */
}



/* two column layout */
.text-columns {
    display: flex;
    gap: 130px;
    text-align: left;
    margin-top: 80px;
    margin-bottom: 100px;
}



.column {
    flex: 1;
    padding-bottom: 10px;
}



.column h4 {
    color: #F40000;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
}



.column p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #212427;
}



.column .benefit-btn {
    display: inline-block;
    margin-top: 30px;
}






/* CALL TO ACTION */

.cta-box {
    background: #212427;
    color: #ffffff;
    padding: 20px;
    border-radius: 1rem;
    margin-top: 30px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
}



.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
}



.cta-box p {
    color: #ffffff;
    font-size: 1.3rem;
    opacity: 1;
    margin-bottom: 20px;
}



.cta-button {
    margin-top: 15px;      /* pushes ONLY this button down */
    background-color: #008000;    
    display: inline-block;
}



.cta-button:hover {
    background-color: #f40000;
    transform: translateY(-5px);    /* moves the button UP */
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);    /* adds a shadow to make it look "lifted" */
    text-decoration: none !important;    /* ensures no underline appears */
}





/* global style */
h3 { color: #212427; }



/* homepage specific override */
.benefit h3 { 
    color: #f40000; 
    text-decoration: none; 
}



/* mobile responsiveness */
@media (max-width: 768px) {
    .text-columns {
        flex-direction: column;
    }
    
    .main-intro h2 {
        font-size: 2rem;
    }
}
