/* colors.css */

/* Custom Colors */
:root {
    --primary-blue: #333b49;      /* bright orange */
    --accent-orange: #333b49;     /* burnt orange */
    --text-dark: #ffffff;          /* white text */
    --background-dark: #171f28;    /* black background */
    --header-dark: #1a1a1a;        /* dark header background */

}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-dark) !important;
    scroll-behavior: smooth; /* smooth scrolling for anchor links */
}

/* Layout to keep it at the top and horizontal */
.menu-list {
  display: flex;
  flex-direction: row; /* Arranges items horizontally */
  justify-content: center; /* Centers the menu at the top */
  list-style: none;
  margin: 0;
  padding: 10px 0;
  width: 100%;
}

.menu-list__item {
  margin: 0 15px; /* Spacing between links */
}



/* Force the containers to exist */
.video-wrapper, 
.full-screen-video-component {
    width: 100%;
    min-height: 500px; /* Adjust this to how tall you want it on phone */
    height: 100vh;     /* This makes it fill the whole screen height */
    position: relative;
    background-color: #000; /* If the video fails, you'll see black, not white */
    overflow: hidden;
}

video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* This keeps the video from looking "stretched" */
}

@media (max-width: 768px) {
    /* 1. Stack the list items vertically */
    .menu-list {
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-start; /* Aligns links to the left */
        gap: 15px; /* Adds spacing between vertical items */
        width: 100%;
    }

    /* 2. Ensure the wrapper allows the height to grow */
    .nav-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    /* 3. Force visibility */
    .navigation {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
    content-wrapper h1 {
        /* 1. Make it smaller */
        font-size: 1rem !important; 
        
        /* 2. Move it to the right */
        text-align: left !important; /* Reset the center alignment */
        margin-left: 20px;           /* Adjust this number to nudge it further right */
        
        /* 3. Cleanup for mobile */
        padding-top: 10vh;           /* Reduces that big top gap on small screens */
        line-height: 1.2;
}
.content-wrapper {
    padding-top: 80vh !important;
}
}



header.header {
    background-color: transparent !important;
}



/* The Animation */
.fadeInLeft {
  display: inline-block;
  opacity: 0;
  animation: fadeFromLeft 0.8s ease forwards;
  /* Uses your --idx variable for staggered loading */
  animation-delay: calc(var(--idx) * 0.1s); 
}

@keyframes fadeFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px); /* Starts 30px to the left */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* Ends at its natural position */
  }
}

/* Section Padding */
.section-padding {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 4rem;
    }
}

/* Hero Section Background */
.hero-background {
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    background-size: cover;
    background-position: center;
}

/* Override default Tailwind light backgrounds */
.bg-white,
.bg-gray-50,
.bg-gray-100,
.bg-gray-200,
.bg-gray-300 {
    background-color: var(--background-dark) !important;
}

/* Override Tailwind gray/dark text */
.text-gray-600,
.text-gray-700,
.text-gray-800,
.text-gray-900,
.text-text-dark,
.text-primary-blue,
.text-accent-orange {
    color: var(--text-dark) !important;
}

/* Primary Blue Background */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

/* Accent Orange Background */
.bg-accent-orange {
    background-color: var(--accent-orange) !important;
}

/* Header Hide/Show (if using JS toggle class) */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
.lp-link {
    color: #000000; /* Or whatever color stands out */
}

#global-navbar {
    position: absolute !important; /* This pins it to the top of the page, not the screen */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50; /* Keeps it above other elements */
}



/* Hover for all buttons */

.back-to-top {
    position: fixed;   /* This keeps it on the screen while scrolling */
    bottom: 20px;      /* Distance from the bottom */
    right: 20px;       /* Distance from the right */
    z-index: 999;      /* Ensures it stays on top of other elements */
    background-color: #131A25; /* Your brand color */
    color: white;
    padding: 10px;
    border-radius: 50%; /* Makes it circular */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    background-color: #1a2433;
}

#modal-global-contact-us .close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back to top SVG icon */
.back-to-top svg {
    stroke: #FFF !important;
    width: 2rem;
    height: 2rem;
}

/* ===== Buttons (baby blue theme across site) ===== */
.back-to-top,
#learn-more-btn,
#login,
#submit,
#view-category-btn {
    background-color: #4FC3F7 !important; /* baby blue */
    color: black !important;
    border-radius: 9999px !important;     /* full rounded */
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
}

.back-to-top:hover,
#learn-more-btn:hover,
#login:hover,
#submit:hover,
#view-category-btn:hover {
    background-color: #0288D1 !important; /* much darker blue for pop */
    color: #FFF !important;
    transform: translateY(-2px);
}

/* Ensure the header inside doesn't have a fixed position override */
header.header {
    position: relative !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-dark);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #e06600; /* slightly darker */
}

.btn-accent:hover {
    background-color: #b24400; /* slightly darker */
}

/* Borders */
.border-primary-blue {
    border-color: var(--primary-blue);
}

.border-accent-orange {
    border-color: var(--accent-orange);
}



 /* Force all light backgrounds → black */
.bg-white,
.bg-gray-50,
.bg-gray-100,
.bg-gray-200,
.bg-gray-300 {
    background-color: #171f28 !important;
}

/* Force all text → white */
.text-gray-600,
.text-gray-700,
.text-gray-800,
.text-gray-900,
.text-text-dark,
.text-primary-blue,
.text-accent-orange {
    color: #ffffff !important;
}

/* Replace blue backgrounds with bright orange */
.bg-primary-blue {
    background-color: #ff7a00 !important;
}

/* Replace accent orange with burnt orange */
.bg-accent-orange {
    background-color: #cc5500 !important;
}

/* --- Services Section Theme Override --- */

#services {
    /* Background is handled by your HTML image/overlay, 
       but we force a dark backup just in case */
    background-color: #1a1a1a !important; 
    border: 1px solid var(--accent-orange) !important;
}

/* Force the Main Title to White/Orange */
#services h2 {
    color: #000000 !important; 
}





/* Target the first paragraph (The "From compliance..." text) */
#services .relative.z-10 > p:first-of-type {
    color: #000000; /* Black */
}

/* Target the service description paragraphs specifically */
#services .service-description {
    color: #ffffff !important; /* White */
}

/* This targets ONLY the service description */
.service-description {
    color: white !important; /* Forces it to be white */
}

/* This targets the description ONLY when it's inside the modal */
#modal-service-text.service-description {
    color: #ffffff; /* Dark color for readability on white modal background */
}
/* Force the Card Titles to your Bright Orange */
#services h3 {
    color: var(--text-dark) !important; 
}

/* Force the Card Descriptions to White */
#services .grid p {
    color: #ffffff !important;
}

/* Make sure the glassmorphism cards aren't too bright */
#services .bg-white\/90 {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#about {
    background-color: #333b49 !important;
    border: 1px solid #C0C0C0 !important; /* Accent Orange border */
}

#classes {
    background-color: #333b49 !important;
    border: 1px solid #C0C0C0 !important; /* Accent Orange border */
}

#contact {
    background-color: #333b49 !important;
    border: 1px solid #333b49 !important; /* Accent Orange border */
}



/* Targeting the h2 */
.text-3xl {
    color: #ff7a00 !important; 
}

a[href="tel:+18082297572"] {
    color: #ff7a00; /* Makes the text red */
}


/* Targets any link that sends an email */
a[href^="mailto:"] {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Targets the specific email address */
a[href="mailto:customer.service@gocsps.com"] {
    color: #ff7a00;
}

.text-4xl {
    color: #ffffff !important; 
}

.text-xl {
    color: #ffffff !important; 
}



.service-heading {
    font-size: 1.25rem;      /* Equivalent to text-xl */
    font-weight: 600;        /* Equivalent to font-semibold */
    color: #000000 !important;         /* Replace with your actual 'primary-blue' hex code */
    margin-bottom: 0.75rem;  /* Equivalent to mb-3 (3 * 0.25rem) */
}

.services-grid {
    color: #000000 !important;
}