﻿/* =========================
   COMMON / SHARED
========================= */

html,
body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B9BE8;
    --primary-dark: #2f5fa7;
    --text: #111;
    --muted: #555;
    --surface: #f3f4f6;
    --border: #dcdcdc;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.section {
    padding: 80px 0;
}

/* Shared labels */
.about-label,
.section-label,
.why-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.about-line,
.section-label .line,
.why-label .line {
    width: 50px;
    height: 2px;
    background: var(--text);
}

.about-label span:last-child,
.section-label span:last-child,
.why-label span:last-child {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Shared buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--text);
    padding: 14px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: #f2f2f2;
}

/* Shared navbar */
.navbar {
    padding: 5px 0;
    background: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* Shared footer */
.main-footer {
    background: var(--surface);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.footer-sitemap {
    display: flex;
    justify-content: center;
    gap: 50px;
    font-weight: 600;
}

.footer-sitemap a,
.footer-legal a,
.footer-social a {
    text-decoration: none;
    color: var(--text);
    transition: 0.3s;
}

.footer-sitemap a {
    font-size: 16px;
}

.footer-legal a {
    font-size: 15px;
}

.footer-social a {
    font-size: 18px;
}

.footer-sitemap a:hover,
.footer-legal a:hover,
.footer-social a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-copy {
    font-size: 15px;
    color: var(--text);
}

/* =========================
   HOME PAGE (index.html)
========================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero-content {
    position: absolute;
    bottom: 100px;
    left: 75%;
    transform: translateX(-50%);
}

.about-section {
    background: var(--surface);
    padding: 80px 0;
}

.about-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.about-left {
    flex: 1.2;
}

.about-right {
    flex: 1;
    max-width: 520px;
}

.about-left h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.05;
    color: var(--primary);
}

.about-right p {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

/* Home services block only: direct wrapper under section */
.services-section {
    background: var(--surface);
    padding: 80px 0;
}

.services-section > .services-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 80px;
}

.services-section > .services-wrapper .services-left,
.services-section > .services-wrapper .services-right {
    flex: 1;
}

.services-section > .services-wrapper .services-left h2 {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.services-section > .services-wrapper .services-intro {
    margin-bottom: 40px;
    color: #444;
    line-height: 1.7;
    text-align: left;
    max-width: none;
}

.services-section > .services-wrapper .service-image {
    width: 100%;
    height: 400px;
    background: #ddd;
    overflow: hidden;
}

.services-section > .services-wrapper .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-section > .services-wrapper .services-list {
    border-left: 1px solid #ccc;
    padding-left: 40px;
}

.services-section > .services-wrapper .service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s ease;
}

.services-section > .services-wrapper .service-item.active {
    opacity: 1;
}

.services-section > .services-wrapper .service-number {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.services-section > .services-wrapper .service-item.active .service-number {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.services-section > .services-wrapper .service-content h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
}

.services-section > .services-wrapper .service-content p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

.services-section > .services-wrapper .service-item.active .service-content p {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
}

.why-section {
    background: var(--surface);
    padding: 80px 0 100px;
}

.why-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 90px;
    gap: 60px;
}

.why-left,
.why-right {
    flex: 1;
}

.why-right {
    max-width: 520px;
    align-self: flex-end;
}

.why-left h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.1;
}

.why-right p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.why-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.why-item {
    padding: 0 40px;
    border-left: 1px solid var(--border);
}

.why-item:first-child {
    border-left: none;
    padding-left: 0;
}

.why-number {
    font-size: 80px;
    font-weight: 800;
    margin-bottom: 30px;
}

.why-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.why-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 280px;
}

.cta-section {
    background: var(--primary);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 50px;
    font-weight: 600;
}

.cta-link {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border: 2px solid #fff;
    transition: 0.3s ease;
}

.cta-link:hover {
    background: #fff;
    color: var(--primary);
}

/* =========================
   SERVICES PAGE (services.html)
========================= */

.services-hero {
    position: relative;
    min-height: 90vh;
    background: url('/images/img3.png') center / cover no-repeat;
    display: flex;
    align-items: center;
}

.services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.hero-box {
    max-width: 600px;
    width: 100%;
    color: #fff;
}

.hero-box h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-box p {
    font-size: 16px;
    margin-bottom: 25px;
}

.services-section .services-header h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
}

.services-section .services-header .services-intro {
    width: 100%;
    max-width: 750px;
    margin-bottom: 50px;
    line-height: 1.6;
    text-align: left;
    color: var(--muted);
}

.services-section .services-header + .services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.services-section .services-header + .services-wrapper .services-left img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.services-section .services-header + .services-wrapper .services-right {
    border-left: 1px solid #e6e6e6;
    padding-left: 60px;
    margin-top: 40px;
    min-width: 0;
}

.services-section .services-header + .services-wrapper .service-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s ease;
    text-align: left;
}

.services-section .services-header + .services-wrapper .service-item.active {
    opacity: 1;
}

.services-section .services-header + .services-wrapper .service-number {
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.services-section .services-header + .services-wrapper .service-content {
    min-width: 0;
}

.services-section .services-header + .services-wrapper .service-content h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
}

.services-section .services-header + .services-wrapper .service-content p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    overflow-wrap: break-word;
}

.services-section .services-header + .services-wrapper .service-item.active .service-content p {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
}

.why-wings .split-layout {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.why-wings .left h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
}

.why-wings .right p {
    line-height: 1.7;
    color: var(--muted);
}

.service-capabilities {
    padding: 80px 0;
}

.capabilities-top {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
    text-align: left;
}

.capabilities-left,
.capabilities-right {
    flex: 1;
}

.capabilities-left h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
}

.capabilities-right p {
    line-height: 1.7;
    color: var(--muted);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
}

.capability-item {
    text-align: center;
    padding: 0 40px;
    position: relative;
}

.capability-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.12);
}

.capability-item h3 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #000;
}

.capability-item h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.capability-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 280px;
    margin: 0 auto;
}

/* =========================
   CONTACT PAGE (contact.php)
========================= */

.contact-hero {
    position: relative;
    height: 80vh;
    background: url('/images/hero-contact.jpeg') center / cover no-repeat;
    display: flex;
    align-items: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(218, 218, 218, 0.5);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 600px;
    text-align: left;
}

.contact-hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-hero .hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.contact-intro,
.contact-form-section,
.contact-location {
    text-align: left;
}

.contact-intro-wrapper,
.contact-form-wrapper,
.location-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.location-wrapper {
    gap: 100px;
}

.contact-intro h2,
.contact-form-section h2,
.location-left h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary);
}

.contact-intro p,
.form-left p,
.location-left p {
    font-size: 20px;
    line-height: 1.8;
}

.location-left p {
    margin: 25px 0 35px;
}

.form-left,
.form-right,
.location-left,
.location-right,
.intro-left,
.intro-right {
    flex: 1;
}

.contact-details {
    margin-top: 25px;
    line-height: 1.8;
}

.form-right {
    text-align: left;
}

.form-right form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-right label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.form-right input,
.form-right textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-right textarea {
    min-height: 220px;
    resize: vertical;
}

.form-right input:focus,
.form-right textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(47, 95, 167, 0.1);
}

.location-right iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Success modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 40px 45px;
    border-radius: 10px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary);
}

.modal-box p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

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

/* =========================
   CAREERS PAGE (career.php)
========================= */

.careers-hero {
    min-height: 90vh;
    background: url('/images/hero-careers.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.careers-hero .hero-content {
    max-width: 650px;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    margin-right: 50px;
}

.careers-hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.careers-hero .hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.careers-hero .btn-secondary {
    background: #eee;
}

.careers-openings {
    padding: 100px 0;
}

.careers-openings .split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.careers-openings .left h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
}

.careers-openings .right {
    text-align: right;
    max-width: 500px;
    font-size: 20px;
    line-height: 1.7;
}

.why-join-section,
.culture-section,
.apply-section {
    background: var(--surface);
}

.why-join-section,
.culture-section {
    padding: 100px 0;
}

.why-join-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: flex-end;
}

.why-join-left,
.why-join-right {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
}

.why-join-left h2 {
    font-size: 50px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: left;
}

.why-join-intro {
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: left;
}

.why-join-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #ddd;
}

.why-join-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.career-list {
    border-left: 1px solid #ccc;
    padding-left: 40px;
}

.career-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s ease;
}

.career-item.active {
    opacity: 1;
}

.career-number {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.career-item.active .career-number {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.career-content h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
}

.career-content {
    flex: 1;
    min-width: 0;
}

.career-content p {
    display: none;
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.career-item.active .career-content p {
    display: block;
    margin-top: 8px;
}

.culture-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

.culture-left,
.culture-right {
    flex: 1;
}

.culture-right {
    max-width: 520px;
}

.culture-left h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary);
    text-align: left;
}

.culture-right p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.culture-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.culture-item {
    padding: 0 40px;
    border-left: 1px solid var(--border);
}

.culture-item:first-child {
    border-left: none;
    padding-left: 0;
}

.culture-number {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 15px;
}

.culture-item h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.apply-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.apply-image img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apply-content {
    padding: 40px 60px;
}

.apply-content h2 {
    font-size: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary);
}

.apply-content p {
    margin-bottom: 40px;
    line-height: 1.5;
}

.career-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.career-form label {
    font-weight: 600;
}

.career-form input {
    padding: 10px;
    border: 1px solid #333;
    font-family: inherit;
}

.career-form input[type='file'] {
    padding: 10px;
    background: #fff;
}

.career-form button {
    width: fit-content;
    margin-top: 10px;
}

/* =========================
   LEGAL PAGES
   (privacy-policy.html, terms-of-service.html)
========================= */

.legal-page {
    background: #fff;
    padding: 5px 0 120px;
}

.legal-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header img {
    height: 200px;
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 10px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .why-top,
    .culture-top,
    .why-join-wrapper {
        flex-direction: column;
    }

    .why-stats,
    .culture-stats {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-item,
    .culture-item {
        border-left: none;
        padding-left: 0;
    }

    .why-number {
        font-size: 56px;
    }

    .why-join-left,
    .why-join-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .services-section > .services-wrapper,
    .contact-intro-wrapper,
    .contact-form-wrapper,
    .location-wrapper,
    .careers-openings .split-layout,
    .capabilities-top,
    .why-wings .split-layout,
    .services-section .services-header + .services-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-section .services-header + .services-wrapper .services-right,
    .services-section > .services-wrapper .services-list,
    .career-list {
        border-left: none;
        padding-left: 0;
    }

    .location-right iframe {
        height: 350px;
    }

    .apply-wrapper {
        grid-template-columns: 1fr;
    }

    .apply-content {
        padding: 60px 30px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .capability-item {
        padding: 0;
    }

    .capability-item::after {
        display: none;
    }

    .contact-hero h1,
    .about-left h2,
    .services-section > .services-wrapper .services-left h2,
    .why-left h2,
    .services-section .services-header h2,
    .why-wings .left h2,
    .capabilities-left h2,
    .contact-intro h2,
    .contact-form-section h2,
    .location-left h2,
    .careers-hero h1,
    .careers-openings .left h2,
    .why-join-left h2,
    .culture-left h2,
    .apply-content h2,
    .cta-section h2 {
        font-size: 36px;
    }

    .hero .hero-content {
        left: 50%;
        bottom: 60px;
    }

    .careers-hero .hero-content {
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-left-group {
        flex-direction: column;
        gap: 20px;
    }

    .footer-sitemap {
        flex-wrap: wrap;
        gap: 20px;
    }
}
