/* Core Smooth Scrolling & Offset for Fixed Navbar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    min-height: 200vh;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 78, 146, 0.08);
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-group img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #003d7a;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-text span {
    color: #1a9e6f;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    color: #004e92;
    background: rgba(0, 78, 146, 0.06);
}

.nav-btn.active {
    color: #004e92;
    background: rgba(0, 78, 146, 0.08);
    font-weight: 600;
}

.login-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a9e6f;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 4px;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    color: #148a5e;
    background: rgba(26, 158, 111, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #003d7a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 78, 146, 0.08);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu .nav-btn,
.mobile-menu .login-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
}

.mobile-menu .login-btn {
    margin-left: 0;
    border-top: 1px solid rgba(0, 78, 146, 0.08);
    margin-top: 8px;
    padding-top: 14px;
}

.navbar-spacer {
    height: 72px;
}

/* ── Companies Section ── */
.companies-section {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    padding: 100px 48px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.cards-wrapper {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
}

.company-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 36px;
    flex: 1;
    min-width: 340px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.company-card h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 61.6px;
}

.company-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-more-btn {
    background: none;
    border: none;
    color: #1a9e6f;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
    text-align: left;
}

.view-more-btn:hover {
    color: #25b882;
    transform: translateX(4px);
}

/* ── Modal Styles ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 48px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 28px;
    color: #4a5568;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(0,0,0,0.1);
}

.modal-content h2 {
    color: #003d7a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-right: 40px;
    line-height: 1.3;
}

.modal-content p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

.modal-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 32px 0;
}

.modal-content h4 {
    color: #003d7a;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

.license-list {
    padding-left: 20px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
}

/* ── Gallery Section (Marquee) ── */
.gallery-section {
    background: #070d1b;
    padding: 100px 0 120px;
    overflow: hidden;
    position: relative;
}

.gallery-section .section-header {
    padding: 0 48px;
    margin-bottom: 48px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 24px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 24px;
}

.marquee-track {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    animation: scrollLeft 40s linear infinite;
}

.marquee-track.reverse {
    animation: scrollRight 40s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    to { transform: translateX(calc(-50% - 12px)); }
}

@keyframes scrollRight {
    from { transform: translateX(calc(-50% - 12px)); }
    to { transform: translateX(0); }
}

.gallery-card {
    position: relative;
    width: 400px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card:hover {
    transform: scale(1.05);
    z-index: 5;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* ── Cursor Glow Effect ── */
.companies-section,
.gallery-section {
    position: relative;
    overflow: hidden;
}

.cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.06) 35%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
    transform: translate(-50%, -50%);
}

.companies-container,
.gallery-container {
    position: relative;
    z-index: 2;
}

@media (hover: none) {
    .cursor-glow { display: none; }
}

/* ── Leaders Section ── */
.leaders-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 100px 48px;
    position: relative;
    overflow: hidden; 
}

.leaders-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 61, 122, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

.leaders-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 158, 111, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

.leaders-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dark-header h2 {
    color: #003d7a;
}

.dark-header p {
    color: #64748b;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    perspective: 1000px;
}

.leader-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s ease, transform 0.2s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.leader-card:hover {
    box-shadow: 0 30px 60px rgba(0, 61, 122, 0.15);
}

.leader-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateZ(40px);
}

.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.leader-card h3 {
    color: #003d7a;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    transform: translateZ(20px);
}

.leader-desc {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    transform: translateZ(10px);
}

/* ── Services Section ── */
.services-section {
    background: #0b1121;
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 78, 146, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.svc-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1a9e6f;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(26, 158, 111, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}

.service-card h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 47.6px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.entity-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entity-badge.surveyors {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.entity-badge.engineers {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ── Why Choose Us Section ── */
.why-us-section {
    background: #ffffff;
    padding: 100px 48px;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 78, 146, 0.3);
    box-shadow: 0 20px 40px rgba(0, 61, 122, 0.08);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.1) 0%, rgba(26, 158, 111, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004e92;
    transition: all 0.3s ease;
}

.why-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #004e92 0%, #1a9e6f 100%);
    color: #ffffff;
    transform: scale(1.05);
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.why-card h3 {
    color: #003d7a;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Clients Section ── */
.clients-section {
    background: #f8fafc;
    padding: 100px 0 120px;
    overflow: hidden;
}

.clients-container {
    max-width: 100%;
}

.clients-container .section-header {
    padding: 0 48px;
    margin-bottom: 48px;
}

.logo-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    flex-shrink: 0;
    animation: scrollLeft 50s linear infinite;
}

.logo-track.reverse {
    animation: scrollRight 50s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    to { transform: translateX(-50%); }
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    margin: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

/* ── Professional Associations Section ── */
.associations-section {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
}

.associations-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 158, 111, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.associations-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.associations-content {
    flex: 1;
}

.left-aligned {
    text-align: left;
}

.associations-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.associations-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.associations-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.associations-image-wrapper:hover img {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Testimonials Section ── */
.testimonials-section {
    background: #ffffff;
    padding: 100px 48px;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-masonry {
    column-count: 3;
    column-gap: 24px;
}

.testimonial-card {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 78, 146, 0.2);
    box-shadow: 0 20px 40px rgba(0, 61, 122, 0.08);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #004e92 0%, #1a9e6f 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.quote-icon {
    position: absolute;
    top: 10px;
    right: 24px;
    font-size: 80px;
    line-height: 1;
    color: rgba(0, 61, 122, 0.05);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-line {
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #004e92 0%, #1a9e6f 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.author-info h4 {
    color: #003d7a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-info span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

/* ── FAQ Section ── */
.faq-section {
    background: #070d1b;
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 78, 146, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(26, 158, 111, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-icon span {
    position: absolute;
    background: #1a9e6f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.faq-icon span:nth-child(1) {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon span:nth-child(2) {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon span:nth-child(2) {
    transform: translateX(-50%) rotate(90deg);
}
.faq-item.active .faq-icon span:nth-child(1) {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    padding: 0 28px;
}

.faq-answer > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.location-region h4 {
    color: #1a9e6f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.location-region p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Contact Section ── */
.contact-section {
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 100%);
    padding: 100px 48px 120px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 158, 111, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.contact-card.highlight-card {
    background: rgba(26, 158, 111, 0.08);
    border-color: rgba(26, 158, 111, 0.3);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #004e92 0%, #1a9e6f 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.badge-247 {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(26, 158, 111, 0.2);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(26, 158, 111, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: #6ee7b7;
}

.contact-link span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.phone-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-group a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-group a:hover {
    color: #6ee7b7;
}

.priority-phone {
    color: #6ee7b7 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
}

.location-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.office-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.office-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a9e6f;
    flex-shrink: 0;
}

.office-icon svg {
    width: 22px;
    height: 22px;
}

.office-block h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.office-block p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.office-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.map-wrapper {
    position: relative;
    min-height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%) invert(90%) contrast(90%);
}

/* ── Responsive Media Queries ── */
@media (max-width: 1100px) {
    .navbar { padding: 0 24px; }
    .nav-btn, .login-btn { padding: 8px 10px; font-size: 12px; }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .cards-wrapper { flex-direction: column; align-items: center; }
    .company-card { max-width: 100%; width: 100%; }
    .company-desc { -webkit-line-clamp: initial; margin-bottom: 24px; }
    .company-card h3 { min-height: auto; }
    .leaders-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .associations-container { flex-direction: column-reverse; gap: 40px; }
    .associations-image-wrapper { width: 100%; }
    .associations-image-wrapper img { max-height: 300px; }
    .testimonials-masonry { column-count: 2; }
    .contact-grid { grid-template-columns: 1fr; }
    .location-grid { grid-template-columns: 1fr; }
    .map-wrapper { min-height: 300px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-buttons { display: none; }
    .hamburger { display: flex; }
    .gallery-section { padding: 60px 0 80px; }
    .gallery-section .section-header { padding: 0 24px; }
    .gallery-card { width: 280px; height: 200px; }
    .clients-section { padding: 60px 0 80px; }
    .clients-container .section-header { padding: 0 24px; }
    .client-logo { width: 140px; height: 70px; margin: 0 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card h3 { min-height: auto; }
}

@media (max-width: 600px) {
    .companies-section { padding: 60px 20px; }
    .section-header h2 { font-size: 32px; }
    .modal-content { padding: 32px 24px; }
    .leaders-section { padding: 60px 20px; }
    .why-us-section { padding: 60px 20px; }
    .why-grid { grid-template-columns: 1fr; gap: 24px; }
    .associations-section { padding: 60px 20px; }
    .testimonials-section { padding: 60px 20px; }
    .testimonials-masonry { column-count: 1; }
    .faq-section { padding: 60px 20px; }
    .faq-question { font-size: 15px; padding: 20px; }
    .faq-answer { padding: 0 20px; }
    .locations-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-section { padding: 60px 20px 80px; }
    .location-info { padding: 28px 24px; }
    .badge-247 { position: static; display: inline-block; margin-bottom: 16px; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 18px; }
    .logo-group img { height: 32px; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ── Copyright Footer Section ── */
.footer-section {
    background: #070d1b; /* Same darkish blue shade used in Gallery/FAQ sections */
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 36px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a9e6f; /* Matches your green accent color */
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
    .footer-section {
        padding: 32px 20px;
    }
    
    .footer-links {
        gap: 16px;
    }
}

/* ── Full-Width Featured Leader Card ── */
.featured-leader-wrapper {
    max-width: 100%;
    margin-top: 32px; /* Space between the 3-column grid and this card */
}

.featured-leader-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 48px;
    transition: box-shadow 0.4s ease, transform 0.2s ease;
}

.featured-leader-card:hover {
    box-shadow: 0 20px 50px rgba(0, 61, 122, 0.15);
    transform: translateY(-4px);
}

.featured-leader-img-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 20px; /* Square-ish rounded corners to differentiate from the circular leaders above */
    overflow: hidden;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-leader-content {
    flex: 1;
}

.specialization-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1a9e6f;
    background: rgba(26, 158, 111, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.featured-leader-content h3 {
    color: #003d7a;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: left;
}

.featured-leader-content h4 {
    color: #004e92;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.featured-leader-content .leader-desc {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    max-width: 800px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .featured-leader-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .featured-leader-img-wrapper {
        width: 140px;
        height: 140px;
        border-radius: 50%; /* Makes it circular on mobile to match the layout of other cards */
    }

    .featured-leader-content h3,
    .featured-leader-content h4,
    .featured-leader-content .leader-desc {
        text-align: center;
    }
}