/* styles.css - Carter Technologies custom layout */
/* ---- Base / Reset ---- */
:root {
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    height: 100%;
    overflow: hidden;
}

/* ✅ add space for fixed navbar */
/*body {
    -webkit-overflow-scrolling: touch; 
    
}
*/
/* ---- Navbar ---- */
nav.navbar {
    position: fixed;
    /* stays at top and no overlap with sections */
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    /*backdrop-filter: blur(6px);*/
}

/* Default link styles (overridden by section classes you already add) */
.navbar-brand,
.nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

/* Keep your per-section color controls */
.navbar.home-style .navbar-brand,
.navbar.home-style .nav-link {
    color: #ffffff !important;
}

.navbar.mission-style .navbar-brand,
.navbar.mission-style .nav-link,
.navbar.values-style .navbar-brand,
.navbar.values-style .nav-link,
.navbar.services-style .navbar-brand,
.navbar.services-style .nav-link,
.navbar.contact-style .navbar-brand,
.navbar.contact-style .nav-link {
    color: #474793 !important;
}

/* Make toggler visible on any bg */
.navbar-toggler {
    border-color: rgba(255, 255, 255, .5);
}

/* Let Bootstrap handle spacing; remove fixed push */
#nav-ul {
    margin-left: 0;
    gap: .75rem;
}

@media (min-width: 576px) {
    #nav-ul {
        gap: 1rem;
    }
}

/* #nav-ul{ font-size: 1.1rem; margin-left: 47em; color: white; } */
/* ✅ Vertical flow that scrolls */
main {
    display: flex;
        flex-direction: row;
        overflow-x: auto;
}

/* ---- Hero overlay (kept, but compatible with responsive flow) ---- */
#home.overlay {
    position: relative;
    overflow: hidden;
}

#home.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/3.png") center/cover no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
    z-index: 0;
}

#home.overlay .container {
    position: relative;
    z-index: 1;
    color: white;
    padding: clamp(16px, 5vw, 40px);
}

/* ---- Sections ---- */
/*section { flex-shrink: 0; width: 100vw; padding: 60px; box-sizing: border-box; }*/
/* Push the scroll target a bit below the fixed navbar */
.section {
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

.section {
    min-height: calc(100vh - var(--nav-height));
}

@supports (height: 100dvh) {
    .section {
        min-height: calc(100vh - var(--nav-height));
    }
}

.section {
    position: absolute;
    /*top: 50px;*/
    /* height of navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 0px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 1;
}

section:nth-child(even) {
    background-color: #f1f4f9;
}

section:nth-child(odd) {
    background-color: #fcfcff;
}

/* Headings scale with viewport */
h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h1,h2.section-title {
    color: #474793;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(16px, 3vw, 40px);
}

/* ---- Lists ---- */
ul,
ol {
    font-size: 1.05rem;
    padding-left: 1.25rem;
}

/* ---- Cards: mission + values become responsive grids ---- */
.mission-cards-container,
.values-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    width: min(1100px, 100%);
    margin-inline: auto;
    text-align: left;
}

.mission-card,
.value-card {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(16px, 3.5vw, 30px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mission-card:hover,
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.mission-card h4,
.value-card h4 {
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.mission-card p,
.value-card p {
    margin: 0;
    color: #333;
    line-height: 1.55;
}

.value-card .icon {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #474793;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

/* ---- Tables ---- */
.table {
    width: 100%;
    font-size: clamp(.9rem, 2.2vw, 1rem);
    border-radius: 10px;
    overflow-x: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.table th {
    background-color: #474793;
    color: #fff;
}

.table td {
    vertical-align: middle;
}

/* Add horizontal scroll on very narrow screens without touching HTML */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.section table {
    margin-bottom: 1rem;
}

/* If you want to wrap tables automatically without HTML changes */
.section .table {
    display: table;
}

@media (max-width: 480px) {
    .section .table {
        display: block;
        overflow-x: auto;
    }
}

/* ---- Links / Footer ---- */
a {
    color: #474793;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background-color: #1a1a2e;
    color: #474793;
    padding: 20px;
    text-align: center;
}

/* ---- Home/Values text colors ---- */
/*.values-section { background: linear-gradient(to bottom right, #f6f8ff, #ecefff); padding: clamp(24px, 5vw, 60px) 20px; } .container.p-4.text-center.text-white .lead { font-size: clamp(1rem, 2.8vw, 1.25rem); }*/
/* ---- Small-screen tweaks ---- */
@media (max-width: 575.98px) {
    :root {
        --nav-height: 56px;
    }

    /* tighten section padding */
    .section {
        min-height: auto;
    }

    /* center nav items when expanded */
    #nav-ul {
        width: 100%;
        text-align: right;
        gap: .1rem;
    }
}

/* ul{ font-size: 1.1rem; } ol { font-size: 1.1rem; padding-left: 20px; } */
/* ul{ align-content:flex-end; }*/
/* nav.navbar { position: fixed; stays at top and no overlap with sections top: 0; left: 0; right: 0; z-index: 9999; background: transparent; backdrop-filter: blur(6px); } .navbar-brand, .nav-link { color: #6a5acd !important; font-weight: 500; } .nav-link { color: white !important; } .navbar-brand { color: white !important; } .navbar.home-style .navbar-brand { color: #ffffff !important; } .navbar.mission-style .navbar-brand { color: #474793 !important; } .navbar.values-style .navbar-brand { color: #474793 !important; } .navbar.services-style .navbar-brand { color: #474793 !important; } .navbar.contact-style .navbar-brand { color: #474793 !important; } .navbar.home-style .nav-link { color: #ffffff !important; } .navbar.mission-style .nav-link { color: #474793 !important; } .navbar.values-style .nav-link { color: #474793 !important; } .navbar.services-style .nav-link { color: #474793 !important; } .navbar.contact-style .nav-link { color: #474793 !important; }*/
/* ---- Mission section ---- */
/* .mission-card { background: #ffffff; border-radius: 16px; padding: 24px; margin: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: box-shadow 0.3s ease; text-align: left; flex: 1; min-width: 280px; max-width: 320px; } .mission-card:hover { box-shadow:inset 0 8px 20px rgba(0, 0, 0, 0.12); } .mission-card h4 { font-weight: 700; margin-bottom: 12px; color: #111; } .mission-card p { font-weight: 400; color: #333; line-height: 1.5; } .mission-cards-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 40px 20px; } .values-section { background: linear-gradient(to bottom right, #f6f8ff, #ecefff); padding: 60px 20px; } .section-title { color: #474793; font-size: 2.5rem; font-weight: 700; margin-bottom: 40px; } .values-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; } .value-card { background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 30px 20px; text-align: center; width: 280px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease; } .value-card:hover { transform: translateY(-5px); } .value-card .icon { font-size: 2.5rem; color: #474793; margin-bottom: 15px; } .value-card h4 { font-weight: 700; margin-bottom: 12px; } .value-card p { font-weight: 400; line-height: 1.5; }*/
/* .overlay { background: rgba(0, 0, 0, 0.4); background-attachment:fixed; background-image: url("../images/3.png"); background-size:cover; background-position: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }*/
/* ---- Tables section ---- */
/*.table { background-color: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .table th { background-color: #474793; color: #fff; } .table td { vertical-align: middle; } */