:root {
    --navy: #0b1f3a;
    --navy-2: #12365f;
    --teal: #12b8bd;
    --orange: #f59e42;
    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #edf2f7;
    --gray-300: #c7d0dd;
    --gray-600: #5b6778;
    --gray-800: #263244;
    --shadow: 0 22px 60px rgba(11, 31, 58, 0.12);
    --radius: 8px;
}

/* Base layout and typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    background: var(--white);
    color: var(--gray-800);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.12;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
}

h3 {
    font-size: 1.2rem;
}

.section-heading {
    max-width: 760px;
}

.section-heading p:last-child {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-top: 18px;
}

/* Shared buttons and animated loading state */
.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--teal);
    box-shadow: 0 12px 26px rgba(18, 184, 189, 0.28);
    color: var(--navy);
}

.btn-primary:hover {
    background: #24cdd1;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-loader {
    align-items: center;
    background: var(--white);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 1000;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-mark {
    animation: pulse 1s ease-in-out infinite;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 68px;
    overflow: hidden;
    width: min(320px, calc(100vw - 48px));
}

.loader-mark img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

/* Sticky navigation */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(199, 208, 221, 0.55);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 12px;
}

.brand img {
    height: 54px;
    object-fit: contain;
    width: 230px;
}

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

.nav-menu a {
    color: var(--gray-800);
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
}

.nav-menu a::after {
    background: var(--teal);
    bottom: -8px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
    width: 100%;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    background: var(--navy);
    border-radius: 999px;
    height: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
    width: 24px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    background: var(--navy);
    color: var(--white);
    min-height: calc(100vh - 76px);
    overflow: hidden;
    padding: 112px 0 80px;
    position: relative;
}

.hero-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(18, 184, 189, 0.28), transparent 32%),
        linear-gradient(135deg, rgba(18, 54, 95, 0.72), rgba(11, 31, 58, 0.95)),
        url("assets/tally-talent-logo.jpg") center right 5% / min(48vw, 620px) no-repeat;
    inset: 0;
    opacity: 0.98;
    position: absolute;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2,
.hero h3 {
    color: var(--white);
}

.tagline {
    color: #c9f7f8;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    margin-top: 12px;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    margin-top: 24px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
    color: var(--gray-800);
    padding: 24px;
}

.hero-panel img {
    border-radius: var(--radius);
    margin-bottom: 22px;
    object-fit: contain;
    width: 100%;
}

.hero-panel strong {
    color: var(--navy);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.hero-panel span {
    color: var(--gray-600);
}

/* About and service cards */
.about {
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
}

.statement,
.why-us,
.service-card,
.career-box,
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.statement {
    padding: 30px;
}

.statement i,
.service-card i {
    align-items: center;
    background: rgba(18, 184, 189, 0.12);
    border-radius: 8px;
    color: var(--teal);
    display: inline-flex;
    font-size: 1.3rem;
    height: 46px;
    justify-content: center;
    margin-bottom: 22px;
    width: 46px;
}

.statement p,
.service-card p,
.career-box p {
    color: var(--gray-600);
    margin-top: 12px;
}

.why-us {
    margin-top: 22px;
    padding: 30px;
}

.why-us ul {
    display: grid;
    gap: 14px;
    list-style: none;
    margin-top: 18px;
}

.why-us li {
    align-items: flex-start;
    color: var(--gray-600);
    display: flex;
    gap: 12px;
}

.why-us i {
    color: var(--teal);
    margin-top: 5px;
}

.services-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
}

.service-card {
    padding: 30px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    border-color: rgba(18, 184, 189, 0.4);
    box-shadow: 0 28px 70px rgba(11, 31, 58, 0.16);
    transform: translateY(-6px);
}

/* Careers */
.careers {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--white);
}

.careers h2,
.careers h3 {
    color: var(--white);
}

.careers .section-heading p:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.careers-grid {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: 1fr 0.75fr;
}

.career-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    padding: 32px;
}

.career-box p {
    color: rgba(255, 255, 255, 0.76);
}

.career-box a {
    color: #b7fbfd;
    display: inline-block;
    font-weight: 800;
    margin-top: 18px;
}

/* Contact */
.contact-grid {
    align-items: start;
    display: grid;
    gap: 52px;
    grid-template-columns: 0.85fr 1fr;
}

.contact-info p:not(.eyebrow) {
    color: var(--gray-600);
    margin-top: 18px;
}

.contact-methods {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.contact-methods a,
.contact-methods span {
    align-items: center;
    color: var(--gray-800);
    display: flex;
    font-weight: 700;
    gap: 12px;
}

.contact-methods i {
    color: var(--teal);
}

.contact-form {
    display: grid;
    gap: 12px;
    padding: 32px;
}

.contact-form label {
    color: var(--navy);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-800);
    font: inherit;
    padding: 14px 15px;
    resize: vertical;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(18, 184, 189, 0.14);
    outline: 0;
}

.contact-form button {
    margin-top: 8px;
    width: fit-content;
}

.form-status {
    color: var(--navy-2);
    font-weight: 700;
    min-height: 24px;
}

/* Footer and scroll-to-top control */
.site-footer {
    background: #07162a;
    color: rgba(255, 255, 255, 0.72);
    padding-top: 42px;
}

.footer-grid {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: var(--white);
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transition: background 180ms ease, transform 180ms ease;
    width: 42px;
}

.social-links a:hover {
    background: var(--teal);
    color: var(--navy);
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 34px;
    padding: 18px 20px;
    text-align: center;
}

.scroll-top {
    align-items: center;
    background: var(--orange);
    border: 0;
    border-radius: 8px;
    bottom: 22px;
    box-shadow: 0 12px 28px rgba(245, 158, 66, 0.32);
    color: var(--navy);
    cursor: pointer;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 22px;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 46px;
    z-index: 90;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive behavior */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 900px) {
    .section {
        padding: 78px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        background: var(--white);
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 76px;
        transition: max-height 220ms ease;
    }

    .nav-menu.active {
        max-height: 320px;
    }

    .nav-menu li {
        width: min(1120px, calc(100% - 40px));
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 86px;
    }

    .hero-grid,
    .careers-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 460px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .section {
        padding: 64px 0;
    }

    .brand img {
        width: 190px;
    }

    .hero {
        padding-bottom: 64px;
    }

    .hero-actions,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .statement,
    .why-us,
    .service-card,
    .career-box,
    .contact-form {
        padding: 24px;
    }

    .contact-methods a,
    .contact-methods span {
        align-items: flex-start;
    }
}
