/* General Body & Font Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff; /* A light grey background to make the navbar stand out */
}

html {
    scroll-behavior: smooth;
}

/* Header & Container Styles */
.site-header {
    padding: 25px 0;
}

.container {
    width:92vw;
    max-width: 92vw;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styling */
.navbar {
    width: 50%;
    margin : auto;
    height: 2rem;
    /* padding: 3rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #104463; /* Dark teal blue from the image */
    padding: 10px;
    /* border-radius: 50px; Creates the pill shape */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Logo and Brand Name */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.navbar-brand img {
    height: 28px; /* Adjust size as needed */
    margin-right: 12px;
}

.navbar-brand h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px; /* Space between "Services" and "Contact Us" */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #cccccc;
}

.nav-links li:last-child a{
    color : black;
}

/* Contact Us Button */
.btn-contact {
    background-color: #ffffff;
    color: #104463; /* Same as navbar background */
    padding: 10px 10px;
    border-radius: 10px;
    font-weight: 200;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-contact:hover {
    background-color: #e9e9e9;
    color: #104463;
}

/* --- Hero Section Styling --- */

.hero-section {
    position: relative; 
    height: 80vh; /* CHANGED: Reduced height from 90vh to give a wider "theater" feel */
    display: flex;
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* CHANGED: This is a more direct way to fill the container */
    height: 100%; /* CHANGED: This ensures the video fills the new 80vh height */
    object-fit: cover; /* This command is still key, it just has to do less work now */
    z-index: -1; 
}

.hero-content {
    /* The hero-section's flex properties are already centering this div */
    z-index: 1; /* Ensures content is above the video */
    color: #104463; /* Sets the default text color to the dark blue */
    padding: 20px;
}

.hero-tagline {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    /* This color is slightly lighter in the prototype */
    color: #0d537d;
}

.hero-headline {
    font-size: 7vh;
    font-weight: 700;
    line-height: 1.2; /* Adjusts spacing between the two lines */
    margin: 0 0 30px 0; /* Removes default margin and adds bottom margin */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to lift text from the video */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between the buttons */
}

/* --- General Button Styling for Hero --- */
.btn {
    padding: 12px 14px;
    text-decoration: none;
    font-weight: 300;
    font-size: larger;
    font-size: 16px;
    border-radius: 8px; /* Slightly rounded corners as seen in the prototype */
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent; /* Base border for smooth transitions */
}

.btn:hover {
    transform: translateY(-3px); /* Lifts the button slightly on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Primary "About Us" Button */
.btn-primary {
    background-color: #104463;
    color: #ffffff;
    border-color: #104463;
}

.btn-primary:hover {
    background-color: #0c334a; /* A darker shade for hover */
    border-color: #0c334a;
}

/* Secondary "Contact Us" Button (Ghost Button) */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0); /* Frosted glass effect */
    color: #104463;
    border-color: #ffffff;
    backdrop-filter: blur(5px); /* Enhances the frosted glass effect */
}

.btn-secondary:hover {
    /* background-color: #ffffff; */
    color: #104463;
}

/* --- Services Section ("What We Deliver") -------------------------------------------------------------------------------------------------------------------------- */ 

.services-section {
    padding: 2vh 0 0; /* CHANGED: Removed bottom padding (was 100px) */
    background-color: #ffffff;
    text-align: center;
}

/* 2. ADD the new styles for the blue banner */
.tagline-banner {
    background-color: #104463; /* Same dark blue as the navbar */
    margin-top: 100px; /* Creates the large white space above the banner */
    /* padding: 35px 20px; Generous vertical padding to match the image */
    padding : 20px 0px;
    text-align: center;
}

.tagline-banner p {
    color: #ffffff;
    font-size: 18px;
    /* font-style: italic; */
    font-weight: 500; /* A medium weight, not too bold */
    margin: 0;
    display: inline-flex; /* Helps align the decorative line */
    align-items: center;
}

/* This pseudo-element creates the decorative vertical line */
.tagline-banner p::before {
    content: '';
    display: inline-block;
    height: 25px; /* The height of the line */
    width: 2px;  /* The thickness of the line */
    background-color: rgba(255, 255, 255, 0.4); /* A semi-transparent white for a softer look */
    margin-right: 20px; /* Space between the line and the text */
}

/* The main "What We Deliver" heading */
.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* font-size: 42px; */
    font-weight: 500;
    color: #1a1a1a; /* A very dark grey, almost black, for strong contrast */
    margin-bottom: 20px;
}

/* The introductory paragraph below the main heading */
.section-intro {
    max-width: 800px; /* Constrains the width of the paragraph to match the prototype */
    margin: 0 auto 80px auto; /* Centers the paragraph and adds significant space below it */
    font-size: 18px;
    color: #666666; /* The specified grey text color from the image */
    line-height: 1.6; /* Improves readability */
    text-align: center;
}

/* The container for the 3 service columns */
.services-grid {
    display: flex; /* This activates Flexbox for easy column layout */
    justify-content: space-between; /* Spreads the items out evenly */
    gap: 40px; /* Modern way to add space between the columns */
    text-align: left; /* CRITICAL: Overrides the parent's text-align:center for the items */
}

/* Each individual service column */
.service-item {
    flex: 1; /* Allows each item to grow and take up an equal amount of space */
    /* No padding is needed as the layout is driven by margins */
}

.service-item .divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0; 
    margin: 0 0 25px 0;
}

.service-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a; 
    margin-top: 0;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    color: #666666;
    line-height: 1.7; 
    margin: 0;
}

/* --- About Section Styling --- */

.about-section {
    /* padding: 0px 0; */
    background-color: #fff; /* Using the light grey background for contrast */
}

/* The grid container for the three feature blocks */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    align-items: start;
    gap: 30px;
    text-align: left;
    max-width: 92vw;
    /* max-height: 50px; */
    margin: 60px auto 0;
}

/* 
  THIS IS THE CORRECTED RULE.
  It styles the images themselves.
*/
.about-item img,
.about-item picture {
    display: block;
    width: 100%;
    height: 42vh;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* This class makes the "Trust" item span the full width of the grid */
.item-full-width {
    grid-column: 1 / -1; /* Spans from the first grid line to the last */
}

.about-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.about-item p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 993px) {
    .item-full-width img {
        object-position: center top; /* This is the magic line! */
    }
}

/* --- Partners Section ("Why Choose Jetstream") --- */

.partners-section {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
}

.partners-carousel-container {
    /* CHANGE 1: Make the container fluid and responsive */
    width: 90%;          /* It will now take up 90% of the screen */
    max-width: 1400px;   /* But it will stop growing at 1400px */
    margin: 60px auto 0 auto; /* Keeps it centered */
    overflow: hidden;
    
    /* CHANGE 2: REMOVED the mask-image properties to get rid of the fade */
}

.partners-carousel-track {
    display: flex;
    justify-content: flex-start; 
    
    /* CHANGE 3: Switched variables from fixed pixels to responsive units */
    --card-width: 28vw; /* Card width is now 28% of the viewport width */
    --card-gap: 2vw;     /* Gap is now 2% of the viewport width */
    
    gap: var(--card-gap); 
    width: calc(6 * var(--card-width) + 5 * var(--card-gap));
    animation: scroll 35s linear infinite;
}


@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-3 * var(--card-width) - 3 * var(--card-gap)));
    }
}

.partner-card {
    flex-shrink: 0;
    width: var(--card-width); /* This now uses the responsive variable from above */
    
    /* CHANGE 4: Added min and max widths to control the scaling */
    min-width: 320px; /* Stops cards from getting too small */
    max-width: 420px; /* Stops cards from getting too big */
    
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    height: 420px;
    position: relative;
    overflow: hidden; 
}

.partner-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #104463;
    margin: 0 0 10px 0;
}

.partner-card p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.partner-card-image-wrapper {
    border-radius: 26px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    position: absolute;
    width: 280px;
    height: 200px;
    bottom: -30px; 
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #ddd
}

.partner-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* --- CONTACT SECTION ("Get in Touch") --- */

.contact-section {
    /* REMOVED: Top padding is gone as requested */
    background-color: #ffffff;
    text-align: center;
}

.contact-section .section-intro {
    margin-bottom: 60px;
}

.contact-video-wrapper {
    /* KEY CHANGE: This MUST be relative to act as an anchor for the form */
    position: relative; 
    /* REMOVED: All padding and min-height are gone to remove the white space */
    width: 100%;
}

.contact-video {
    /* This element now just sets the height of the container */
    display: block; /* Ensures it behaves predictably */
    width: 100%;
    height: 70vh; /* Using vh is more reliable for section height */
    object-fit: cover;
    /* z-index is not needed here as requested */
}

.contact-form-container {
    /* KEY CHANGE: Making the form absolute lets it float on top of the video */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This centers the form perfectly */
    z-index: 2; /* This guarantees the form is ON TOP and clickable */

    /* Your styles (unchanged) */
    max-width: 550px; 
    height: fit-content;
    width: 90%; /* Using 90% width for better responsiveness on small screens */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 60px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: left;
}


/* --- MULTI-STEP FORM STYLES (BRANDED - NO CHANGES BELOW THIS LINE) --- */

.contact-tf-form-wrapper {
  position: relative;
  padding-top: 20px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e9ecef;
  border-radius: 4px;
  position: absolute;
  top: -20px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background-color: #104463;
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
}

.multi-step-form {
  position: relative;
}

.form-steps {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.form-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
}

.form-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.form-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 500;
  color: #343a40;
  margin-bottom: 40px;
}

.form-step label span, .form-step label svg {
  color: #104463;
}

.form-step label svg {
  width: 20px;
}

.form-step input,
.form-step textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ced4da;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: 500;
  color: #104463;
  background-color: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.form-step input:focus,
.form-step textarea:focus {
  border-bottom-color: #104463;
}

.form-step input::placeholder,
.form-step textarea::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.form-step textarea {
  resize: none;
  line-height: 1.4;
  font-size: 1.5rem;
}

.button-group {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-ok, .btn-submit {
  background-color: #104463;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-ok:hover, .btn-submit:hover {
  background-color: #0c334a;
  transform: translateY(-2px);
}

.key-hint {
  font-size: 0.9rem;
  color: #6c757d;
}
.key-hint.small {
  margin-top: 10px;
  display: block;
}

.form-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}
.nav-arrow {
  background: #f1f3f5;
  color: #343a40;
  border: 1px solid #dee2e6;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease-in-out, background-color 0.2s;
}
.nav-arrow:hover {
    background-color: #e9ecef;
}
.nav-arrow:active {
    transform: translateY(2px);
}
.nav-arrow:disabled {
  background-color: #f8f9fa;
  color: #ced4da;
  cursor: not-allowed;
  border-color: #f1f3f5;
}

.form-step .error-message {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}
.form-step.has-error .error-message {
  display: block;
}
.form-step.has-error input {
  border-bottom-color: #d9534f;
}

.success-step .success-content {
  text-align: center;
  padding: 40px 0;
}
.success-content p {
  font-size: 1.5rem;
  color: #343a40;
  margin-bottom: 25px;
}

/* --- FINAL CONTACT US SECTION (with Map) --- */

.final-contact-section {
    padding: 100px 0; /* Adds generous white space above and below */
    background-color: #ffffff;
    text-align: center;
}

.contact-details {
    /* margin-top: 25px; Space between title and address */
    margin-bottom: 50px;
}

.contact-details p {
    font-size: 18px; /* Clean, readable font size */
    color: #666666; /* Using the consistent grey text color from your design */
    line-height: 1.8; /* Improves readability of the address block */
    margin: 0;
}

.map-container {
    /* max-width: 2000px; Controls the maximum width of the map */
    margin: 0 auto; /* Centers the map container */
    border-radius: 16px; /* Creates the soft rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Adds the subtle, professional shadow */
    overflow: hidden; /* CRITICAL: This clips the iframe to match the rounded corners */
}

.map-container iframe {
    width: 100%; /* Makes the map responsive */
    height: 500px; /* Sets a fixed height for the map */
    border: 0; /* Removes any default border */
    display: block; /* Fixes potential small gap below the iframe */
}

/* --- FINAL SITE FOOTER (REVISED) --- */

.site-footer {
    width: 100%;
}

/* Part 1: Main Footer with Video */
.footer-main {
    position: relative;
    /* CHANGE 1: Increased padding to make the footer taller */
    /* EDIT THIS VALUE if you want to adjust the height further */
    padding: 100px 0; 
    overflow: hidden;
    /* REMOVED: General 'color: #ffffff' is no longer needed */
}

.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.95); /* A very slight dim for readability */
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-about {
    max-width: 400px;
}

/* CHANGE 2: Styling titles to be dark */
.footer-about h2, .footer-sitemap h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #1a1a1a; /* Using a near-black for strong contrast */
    /* REMOVED: text-shadow is not needed for dark text */
}

/* CHANGE 3: Styling the tagline to be dark grey */
.footer-about p {
    font-size: 16px;
    line-height: 1.6;
    color: #777; /* A professional, readable dark grey */
    margin: 0;
}

.footer-sitemap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-sitemap li {
    margin-bottom: 12px;
}

/* CHANGE 4: Styling the sitemap links to be grey */
.footer-sitemap a {
    text-decoration: none;
    font-size: 16px;
    color: #666666; /* Medium grey for links */
    transition: color 0.3s ease;
}

.footer-sitemap a:hover {
    color: #1a1a1a; /* Darken on hover */
}

/* Part 2: Sub-Footer Bar (CORRECTED) */
.footer-sub {
    background-color: #104463;
    padding: 25px 0;
    color: #ffffff;
    position: relative;
    z-index: 10;
}

.footer-sub-content {
    display: flex;
    justify-content: space-between; /* This will now work correctly */
    align-items: center;
    width: 100%; /* Take up the full width of the parent .container */
}

.footer-cta {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    /* This rule forces the text to take up space on the left */
    flex: 1 0 auto; 
    z-index: 100;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-socials a {
    /* No color needed here, the SVG has its own colors */
    transition: opacity 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.8; 
}

.footer-socials svg {
    width: 24px;
    height: 24px;
    /* REMOVED: fill: currentColor is gone to allow the SVG's own colors to show */
}


/* --- Footer Responsive Adjustments (CORRECTED) --- */
@media (max-width: 768px) {
    .footer-main-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .footer-main {
        padding: 60px 0;
    }

    /* We add a rule to stack the sub-footer on mobile for better readability */
    .footer-sub-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}


/* =================================== */
/*      Responsive Media Queries       */
/* =================================== */

/* For Tablets (up to 992px) */
@media (max-width: 992px) {

    /* --- Navbar Adjustments --- */
    .navbar {
        width: 90%; /* Make the navbar wider on smaller screens */
    }

    /* --- Hero Section Adjustments --- */
    .hero-headline {
        font-size: 48px; /* Reduce the main headline size to prevent awkward wrapping */
        line-height: 1.3;
    }

    .hero-tagline {
        font-size: 18px; /* Slightly smaller tagline */
    }

    /* --- Services Section Adjustments --- */
    .services-section {
        padding-top: 80px; /* Reduce the top spacing a bit */
    }
    
    .section-title {
        font-size: 36px; /* Slightly smaller section title */
    }

    .section-intro {
        margin-bottom: 60px; /* Reduce space below the intro text */
    }

    .services-grid {
        flex-direction: column; /* THIS IS THE KEY CHANGE: Stack the items vertically */
        gap: 60px; /* Adjust the gap for vertical spacing */
    }

    /* The service item text is already left-aligned, so no change is needed there. */

    .tagline-banner {
        margin-top: 80px; /* Reduce the space above the blue banner */
    }

    .about-section {
        padding: 80px 0; /* Reduce vertical padding on tablet */
    }
    
    .about-grid {
        grid-template-columns: 1fr; /* KEY CHANGE: Stacks the grid items into a single column */
        gap: 40px; 
    }
}