/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #003d7a;
    --light-blue: #0056b3;
    --accent-blue: #007bff;
    --white: #ffffff;
    --black: #000000;
    --gray-dark: #333333;
    --gray-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    background-color: var(--white);
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
header.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ── Logo ── */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ── Navbar ── */
nav.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    white-space: nowrap;
}

nav.navbar a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

nav.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav.navbar a:hover::after,
nav.navbar a.active::after {
    width: 100%;
}

nav.navbar a.active {
    color: #ffd700;
}

/* ── Hamburger Toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
    position: relative;
    color: var(--white);
    padding: 140px 20px;
    text-align: center;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 122, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ── CTA Button ── */
.cta-button {
    display: inline-block;
    background: #ffd700;
    color: var(--black);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

/* ── Services Section ── */
.services {
    padding: 100px 20px;
    background: var(--gray-light);
}

.section-title {
    font-size: 42px;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ── Service Card (sub-pages) ── */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--gray-dark);
    font-size: 15px;
    line-height: 1.7;
}

/* ── Service Category Cards (homepage) ── */
.service-category-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-blue);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 350px;
    justify-content: space-between;
}

.service-category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.service-category-card h3 {
    color: var(--primary-blue);
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

.service-category-card p {
    color: var(--gray-dark);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

.service-category-card .service-icon {
    width: 100px;
    height: 100px;
    font-size: 48px;
}

.view-more {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-category-card:hover .view-more {
    color: #ffd700;
    transform: translateX(5px);
}

/* ── About Section ── */
.about {
    padding: 100px 20px;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text h3 {
    font-size: 22px;
    color: var(--light-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text p {
    color: var(--gray-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.commitment-list {
    list-style: none;
    margin-top: 15px;
    padding-left: 0;
}

.commitment-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray-dark);
    font-size: 15px;
}

.commitment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    max-width: 100%;
    border-radius: 10px;
}

/* ── Team Section ── */
.team {
    padding: 100px 20px;
    background: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    border: 3px solid var(--white);
}

.team-card h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin: 25px 0 8px;
    font-weight: 700;
    padding: 0 20px;
}

.team-position {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 20px;
}

.team-bio {
    color: var(--gray-dark);
    font-size: 14px;
    line-height: 1.6;
    padding: 0 20px 25px;
}

/* ── Contact Section ── */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-blue);
    min-width: 40px;
    margin-top: 2px;
}

.contact-item h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-item p {
    color: var(--gray-dark);
    font-size: 15px;
    margin: 0;
}

.contact-item a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-blue);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: #25d366;
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    background: #20ba58;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

/* ── Contact Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

/* ── Spinner ── */
.submit-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: submit-spin 0.7s linear infinite;
}

/* ── Form Notice Toast ── */
.form-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: min(420px, calc(100vw - 40px));
    padding: 15px 25px;
    border-radius: 8px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.form-notice--success {
    background: var(--primary-blue);
}

.form-notice--error {
    background: #c0392b;
}

.form-notice--hidden {
    animation: slideOut 0.3s ease forwards;
}

/* ── Footer ── */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffd700;
    color: var(--black);
    transform: translateY(-3px);
}

/* ── Service Detail Pages ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-content h1,
.page-hero .hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.page-hero .hero-content p {
    font-size: 18px;
    opacity: 0.95;
    color: var(--white);
}

.services-detail {
    padding: 80px 20px;
    background: var(--gray-light);
}

.service-details {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 61, 122, 0.1);
}

.service-details h4 {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-details ul li {
    padding: 7px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray-dark);
    font-size: 14px;
    line-height: 1.6;
}

.service-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 15px;
}

.service-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 10px;
    color: var(--white);
}

.service-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--light-blue);
    transform: translateY(-4px);
}

/* ── Error Page (404) ── */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 20px;
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
}

.error-icon {
    font-size: 80px;
    color: #ffd700;
    margin-bottom: 30px;
    opacity: 0.7;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.error-btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.error-btn-primary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
    transform: translateY(-2px);
}

.error-btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.error-btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Static / Simple Pages (Privacy, Terms) ── */
.static-page {
    padding: 80px 20px;
}

.static-page h1 {
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.static-page .last-updated {
    color: #888;
    font-size: 14px;
    margin-bottom: 50px;
}

.static-page h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.static-page p,
.static-page li {
    color: var(--gray-dark);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.static-page ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.static-page a {
    color: var(--accent-blue);
}

/* ── Keyframe Animations ── */
@keyframes submit-spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Collapsible nav */
    nav.navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    nav.navbar.open {
        max-height: 400px;
        padding: 10px 0 20px;
    }

    nav.navbar ul {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

    nav.navbar ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }

    nav.navbar ul li:last-child a {
        border-bottom: none;
    }

    header .container {
        position: relative;
        flex-wrap: nowrap;
    }

    .hero {
        min-height: 450px;
        padding: 100px 20px 80px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .page-hero .hero-content h1,
    .page-hero .hero-content h2 {
        font-size: 30px;
    }

    .service-cta {
        padding: 40px 20px;
    }

    .service-cta h2 {
        font-size: 26px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }
}
