/* === PREMIUM BRAND PALETTE & VARIABLES === */
:root {
    --primary: #20B8EB; 
    --secondary: #28383B; 
    --secondary-light: #364b4f;
    --text-main: #2b2b2b; 
    --text-light: #5f6368;
    --bg-light: #f4f6f8; 
    --white: #ffffff;
    --border-color: #e0e0e0;
}

/* === GLOBAL TYPOGRAPHY === */
body {
    font-family: 'Droid Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica', Arial, sans-serif;
    color: var(--secondary);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p { margin-bottom: 1.5rem; font-size: 1.05rem; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
a:hover { color: var(--secondary); }

/* === LAYOUT & CONTAINERS === */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

/* === MINIMALIST HEADERS === */
.section-header { margin-bottom: 60px; }
.section-header h2 {
    font-size: 2.8rem;
    line-height: 3.5rem !important;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary);
}
.section-header.center { text-align: center; }
.section-header.center h2::after { left: 50%; transform: translateX(-50%); }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-weight: 700;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 0; 
}
.btn-primary { background-color: var(--secondary); color: var(--white); border: 1px solid var(--secondary); }
.btn-primary:hover { background-color: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-outline { background-color: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--secondary); }

/* === HEADER & NAVIGATION === */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; min-height: 90px; }
.logo img { max-height: 45px; width: auto; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 40px; }
.nav-menu li a {
    color: var(--secondary);
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s ease;
}
.nav-menu li a:hover::after, .nav-menu li a.active::after { width: 100%; }

/* === HERO SECTIONS === */
.hero-home {
    background: linear-gradient(to right, rgba(40, 56, 59, 0.95) 30%, rgba(40, 56, 59, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') no-repeat center center/cover;
    color: var(--white); padding: 180px 0 150px; border-bottom: 5px solid var(--primary);
}
.hero-home h1 { color: var(--white); font-size: 4rem; line-height: 1.1; margin-bottom: 30px; max-width: 800px; letter-spacing: -1px; }
.hero-home p { font-size: 1.25rem; max-width: 650px; margin-bottom: 40px; color: #e0e4e5; font-weight: 400; }

.hero-inner {
    padding: 120px 0 100px;
    background: linear-gradient(to right, rgba(40, 56, 59, 0.95) 100%, rgba(40, 56, 59, 0.9)), url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') no-repeat center center/cover;
}
.hero-inner h1 { font-size: 3rem; margin-bottom: 15px; color: var(--white); }
.hero-inner p { font-size: 1.1rem; max-width: 700px; margin: 0; color: var(--primary); }

/* === GRIDS & CARDS (Institutional Grid) === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-2-asym { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }

.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background-color: var(--border-color); border: 1px solid var(--border-color);
}
.service-card { background: var(--white); padding: 50px 40px; transition: all 0.3s ease; position: relative; }
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background-color: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover { background-color: #fafbfc; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--secondary); }
.service-card p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* === DETAILED SERVICE CARDS (For Services Page) === */
.service-detail-card {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 50px 40px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-detail-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border-color: var(--primary);
}

.service-index {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.service-detail-card h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--secondary);
}

.service-detail-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

.service-meta h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.service-meta p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-meta p:last-child {
    margin-bottom: 0;
}

/* === FORMS === */
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-family: 'Helvetica', Arial, sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.form-control {
    width: 100%; padding: 15px; border: 1px solid var(--border-color); background-color: var(--bg-light); color: var(--text-main); font-family: 'Droid Sans', sans-serif; font-size: 1rem; border-radius: 0; transition: border-color 0.3s ease; box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--primary); background-color: var(--white); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* === TEAM PROFILES (Premium 2x2 Grid Layout) === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.profile-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.profile-image-container {
    width: 100%;
    aspect-ratio: 4 / 3; /* Cinematic, premium crop */
    background-color: var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Ensures faces aren't cut off */
    display: block;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image-container img {
    transform: scale(1.03); /* Subtle premium zoom effect on hover */
}

.profile-details {
    padding: 40px;
    flex-grow: 1; 
}

.profile-details h3 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.profile-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.profile-details p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on smaller screens */
    }
}

/* === MISC COMPONENTS === */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.stat-item { border-left: 1px solid rgba(32, 184, 235, 0.4); padding-left: 30px; }
.stat-item h3 { color: var(--white); font-size: 3.5rem; line-height: 1; margin-bottom: 10px; }
.stat-item p { color: var(--primary); font-family: 'Helvetica', Arial, sans-serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.stat-item span { display: block; font-size: 0.95rem; color: #b8c4c6; line-height: 1.6; }

/* === FOOTER === */
footer { background-color: #1a2527; color: #a0a0a0; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0a0a0; }
.footer-links a:hover { color: var(--primary); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.9rem; letter-spacing: 0.5px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-home h1 { font-size: 3rem; }
    .grid-2, .grid-2-asym { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; padding: 20px 0; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .services-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .stat-item { border-left: none; border-top: 1px solid rgba(32, 184, 235, 0.4); padding-left: 0; padding-top: 30px; }
}