/* --- Global & Reset --- */
:root {
    --primary-blue: #1a234b;
    --accent-blue: #3b5288;
    --accent-hover: #1e5a9e;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #cfcac3;
    --border-color: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #cfcac3; /* Updated to custom grey */
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Shared Header & Navigation --- */
.hero-section {
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 5% 60px 5%;
    position: relative;
}

/* Modifiers for different hero heights */
.hero-section.small-hero { padding-bottom: 40px; min-height: 300px; }
.hero-section.large-hero { padding-bottom: 80px; min-height: 600px; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 40px;
    border-bottom: 0px solid rgba(255,255,255,0.1);
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.logo-sub { font-weight: 300; font-size: 0.9rem; letter-spacing: 2px; }

.nav-links { display: flex; gap: 30px; font-size: 1.05rem; color: #ccc; align-items: center; }
.nav-links a:hover { color: white; }
.btn-contact { background-color: var(--accent-blue); color: white; padding: 8px 20px; border-radius: 4px; }
.btn-contact:hover { background-color: var(--accent-hover); }

.hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-content.left-align { text-align: left; margin: 0; } /* For Landing Page */
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; }
.hero-content p { font-size: 1.1rem; color: #d1d5db; max-width: 600px; margin: 0 auto; }

/* --- Shared Layout Containers --- */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { font-size: 2rem; margin-bottom: 40px; color: var(--text-dark); text-align: center; }

/* --- ABOUT PAGE STYLES --- */
.about-intro { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
.about-intro p { font-size: 1.1rem; color: var(--text-light); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member { text-align: center; background: white; padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.team-member img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px auto; object-fit: cover; }
.team-member h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-member span { color: var(--accent-blue); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 10px; }
.team-member p { font-size: 0.9rem; color: var(--text-light); }

/* --- CLIENTS PAGE STYLES --- */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.client-box {
    background: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    filter: grayscale(100%);
    transition: 0.3s;
}
.client-box:hover { filter: grayscale(0%); border-color: var(--accent-blue); }
.client-box img { max-height: 60px; opacity: 0.7; }

:root {
    --carousel-ui-color: #0A66C2; /* Color for the filling dots */
    --btn-bg-color: #3b5288;      /* Color for the button background */
    --btn-arrow-color: #cfcac3;   /* Color for the arrow inside the button */
}

.card-image {
    transform: scale(1.15);
    /* Make sure you also have object-fit: cover; here to keep the aspect ratio nice */
    object-fit: cover; 
}

/* --- Carousel Styles --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px; 
    
    /* Removed scroll-behavior: smooth; so JS can handle infinite warping silently */
    
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.carousel-track::-webkit-scrollbar {
    display: none; 
}

.carousel-track .card {
    flex: 0 0 calc(33.333% - 14px); 
    min-width: 320px; 
    scroll-snap-align: start;
}

/* Left & Right Navigation Buttons */
.carousel-btn {
    background-color: var(--btn-bg-color); 
    color: var(--btn-arrow-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s, transform 0.2s;
}
.carousel-btn:hover { 
    filter: brightness(1.2); /* Brightens any color you choose automatically */
    transform: scale(1.05);
}
.prev-btn { left: -28px; }
.next-btn { right: -16px; }

@media (max-width: 768px) {
    .carousel-btn { display: none; }
}

/* Hide buttons on very small mobile screens where users can just swipe */
@media (max-width: 768px) {
    .carousel-btn { display: none; }
}

/* --- Carousel Header (Progress Bar & Counter) --- */
:root {
    --carousel-ui-color: #1a234b; /* Change this to set the color of all circles */
}

/* --- Sleek Dot UI --- */
.carousel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 15px; 
}
.dot-container {
    display: flex;
    gap: 10px;
}
.carousel-dot {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--carousel-ui-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden; /* Keeps the inner fill contained to the circle */
    background: transparent;
}
.carousel-dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* JS controls this */
    background-color: var(--carousel-ui-color);
}

/* --- Text-Only Cards --- */
.text-cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 equal columns */
    gap: 20px; /* Matches the carousel gap perfectly */
    margin-top: 40px; 
    padding: 0 5px;
}
@media (max-width: 768px) {
    .text-cards-section {
        grid-template-columns: 1fr; /* Stacks cards vertically on small screens */
    }
}
.text-card {
    background: #aaa6a5;
    border: 0px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.text-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.text-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #000000;
}
.text-card p {
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}
/* --- CASE STUDIES & NEWS CARDS (Shared) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: #aaa6a5;
    border: 0px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-tag { font-size: 0.8rem; color: var(--accent-blue); font-weight:600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.card h3 { font-size: 1.25rem; color: #000000; margin-bottom: 15px; }
.card p { font-size: 0.95rem; color: #000000; margin-bottom: 20px; flex-grow: 1; }
.read-more { color: var(--accent-blue); font-weight: 600; font-size: 0.9rem; }

/* --- CONTACT PAGE STYLES --- */
.contact-wrapper { display: flex; gap: 60px; background: white; padding: 40px; border-radius: 8px; border: 1px solid var(--border-color); }
.contact-form { flex: 2; }
.contact-info { flex: 1; border-left: 1px solid var(--border-color); padding-left: 40px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea { height: 150px; resize: vertical; }

.btn-submit {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}
.btn-submit:hover { background-color: var(--accent-hover); }

.info-item { margin-bottom: 30px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-blue); }
.info-item p { color: var(--text-light); font-size: 0.95rem; }

/* --- Footer --- */

.footer { background-color: #1a234b; /* Updated to custom blue */ color: white; padding: 60px 5% 30px 5%; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 40px; }
.footer-brand { flex: 1; min-width: 200px; margin-bottom: 30px; }
.footer-links { display: flex; gap: 80px; flex-wrap: wrap; }
.link-column h4 { font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.link-column ul li { margin-bottom: 12px; }
.link-column ul li a { color: #8fa1b8; font-size: 0.9rem; }
.link-column ul li a:hover { color: white; }
.footer-bottom { padding-top: 30px; text-align: center; color: #5d6d84; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; }
    .contact-wrapper { flex-direction: column; padding: 20px; }
    .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 30px; }
    .hero-content h1 { font-size: 2rem; }
}