/* ==========================================================================
   Page Specific Components & Custom Layout Modules
   ========================================================================== */

/* --------------------------------------------------------------------------
   Landing / Home Page Modules
   -------------------------------------------------------------------------- */

/* ----- Hero Video Section ----- */
.hero-section {
    position: relative;
    height: 70vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-pure);
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-pure);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
}

.hero-about-btn {
    display: inline-block;
    margin-top: 20px;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-about-btn:hover {
    color: var(--accent-hover-bright);
    transform: translateX(4px);
}

/* ----- Flat Text Brief Section ----- */
.flat-text-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    color: var(--text-pure);
}

.flat-text-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-pure);
}

.flat-text-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ----- Dual Card Navigation Section ----- */
.cards-section {
    padding: 80px 0;
    background-color: var(--bg-deep);
}

.card-grid {
    display: flex;
    gap: 100px;
}

.nav-card {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-charcoal);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: hidden;
    min-height: 350px;
}

.card-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--text-pure);
}

.nav-card p1 {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    max-width: 45ch;
}

.nav-card p2 {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    max-width: 40ch;
}

/* ----- Image & Text Split Feature Section ----- */
.feature-section {
    padding: 40px 0;
    background-color: var(--bg-alt);
}

.feature-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-image-wrapper {
    flex: 0 0 60%;
}

.feature-text-wrapper {
    flex: 0 0 40%;display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-text-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-pure);
}

.feature-text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Products & Pricing Page Module
   -------------------------------------------------------------------------- */
.pricing-page {
    position: relative;
    padding: 80px 0;
    background: url('../media/images/Products&Pricing-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* This creates a crisp blur layer directly over the background image */
.pricing-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 15, 0.75); /* Your dark tint */
    backdrop-filter: blur(4px); /* Smooths out all pixelation and grain */
    z-index: -1;
}

.pricing-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    color: var(--text-pure);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow ensures crisp legibility */
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-charcoal);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: sans-serif;
}

.pricing-table thead tr {
    background-color: var(--bg-dark);
    color: var(--text-pure);
}

.pricing-table th {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.pricing-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.pricing-table td strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.pricing-table td span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-silver);
}

.pricing-table th.price-column {
    color: var(--text-pure);
}

.price-column {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-pure);
    white-space: nowrap;
}

.pricing-table tbody tr:nth-of-type(even) {
    background-color: var(--bg-dark);
}

.pricing-table tbody tr:hover {
    background-color: var(--border-color);
}

.pricing-note {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.inline-link1 {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.inline-link:hover {
    border-bottom-color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Contact Page Module
   -------------------------------------------------------------------------- */
.contact-page {
    position: relative; /* Anchor for the blur overlay */
    padding: 80px 0;
    background: url('../media/images/ContactUs-bg.jpg'); /* Swap with your contact photo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh; /* Forces page to hit full height */
    display: flex;
    align-items: center;
    z-index: 1;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 15, 0.75); /* Dark tint screen */
    backdrop-filter: blur(4px); /* Hides any grain */
    z-index: -1;
}

.contact-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: var(--text-pure);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-wrapper {
    background: var(--bg-charcoal);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: flex;
    gap: 20px;
}

.form-grid .form-group {
    flex: 1;
}

.conditional-fields {
    max-height: 500px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    margin-bottom: 10px;
}

.conditional-fields.hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Careers / Join Us Page Module
   -------------------------------------------------------------------------- */
.careers-page {
    position: relative; /* Anchor for the blur overlay */
    padding: 80px 0;
    background: url('../media/images/JoinTheTeam-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.careers-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.careers-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-hero {
    text-align: center;
    margin-bottom: 40px;
}

.careers-hero h1 {
    font-size: 2.5rem;
    color: var(--text-pure);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.careers-hero p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: sans-serif;
}

.jobs-table thead tr {
    background-color: var(--bg-dark);
    color: var(--text-pure);
}

.jobs-table th,
.jobs-table td {
    padding: 18px 24px;
}

.job-header-row {
    cursor: pointer;
    background-color: var(--bg-charcoal);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.job-header-row:hover {
    background-color: var(--bg-drawer-hover);
}

.job-header-row td strong {
    color: var(--text-pure);
    font-size: 1.1rem;
}

.job-header-row td {
    color: var(--text-light);
}

.action-column {
    text-align: right;
    width: 60px;
}

.toggle-arrow {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.job-header-row.active .toggle-arrow {
    transform: rotate(180deg);
}

.job-details-row {
    background-color: var(--bg-drawer-row);
    border-bottom: 1px solid var(--border-color);
}

.job-details-row td {
    padding: 0;
}

.job-details-row.hidden .details-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.details-content {
    padding: 20px 24px 25px 24px;
    max-height: 800px;
    opacity: 1;
    overflow: hidden;

    transition:
            max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.2s ease;
}

.details-content h4 {
    color: var(--text-pure);
    margin: 15px 0 8px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.details-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.details-content ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
    color: var(--text-color);
}

.details-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: var(--bg-charcoal);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.download-section h3 {
    font-size: 1.75rem;
    color: var(--text-pure);
    margin-bottom: 10px;
}

.download-section p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.inline-link2 {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

/* --------------------------------------------------------------------------
   About Page Module
   -------------------------------------------------------------------------- */
.about-page {
    padding: 60px 0;
    background-color: var(--bg-alt);
    min-height: 70vh;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 2.5rem;
    color: var(--text-pure);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-split-section {
    margin-bottom: 80px;
}

.about-split-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text-block,
.about-image-block {
    flex: 1;
}

.about-text-block h2 {
    font-size: 1.9rem;
    color: var(--text-pure);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.values-section {
    margin-bottom: 80px;
}

.values-title {
    text-align: center;
    margin-bottom: 40px;
}

.values-title h2 {
    font-size: 2rem;
    color: var(--text-pure);
    text-transform: uppercase;
}

.values-grid {
    display: flex;
    gap: 30px;
}

.value-card {
    flex: 1;
    background-color: var(--bg-charcoal);
    padding: 35px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.2s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--text-pure);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.safety-banner {
    background-color: var(--bg-deep);
    border-left: 4px solid var(--accent-color);
    padding: 40px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.safety-content h2 {
    font-size: 1.8rem;
    color: var(--text-pure);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.safety-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* ==========================================================================
   Responsive Shared Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .card-grid,
    .feature-grid,
    .about-split-grid,
    .values-grid {
        flex-direction: column;
        gap: 25px;
    }

    .feature-text-wrapper,
    .about-text-block {
        text-align: center;
    }

    .about-image-placeholder {
        height: 250px;
    }

    .safety-banner {
        padding: 30px 20px;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--accent-color);
        border-radius: 6px;
    }
}

@media (max-width: 650px) {
    .jobs-table thead {
        display: none;
    }

    .jobs-table td {
        display: block;
        padding: 10px 20px;
        border: none;
    }

    .job-header-row {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .job-header-row td:first-child {
        padding-top: 15px;
    }

    .job-header-row td:nth-child(2),
    .job-header-row td:nth-child(3) {
        font-size: 0.9rem;
        color: var(--text-grey-dark);
    }

    .action-column {
        text-align: left;
        padding-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 14px 16px;
    }

    .form-grid {
        flex-direction: column;
        gap: 0;
    }

    .form-wrapper {
        padding: 25px 20px;
    }
}