:root {
    --navy: #073b6f;
    --navy-deep: #042947;
    --blue: #0e639c;
    --blue-soft: #eaf4fb;
    --green: #6ba40c;
    --green-dark: #4d7d08;
    --ink: #172535;
    --muted: #5d6b7a;
    --line: #dbe5ec;
    --surface: #f6f9fb;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(5, 42, 72, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
.navbar-brand,
.eyebrow,
.btn {
    font-family: "Montserrat", Arial, sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2 {
    color: var(--navy-deep);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.24;
}

h3 {
    color: var(--navy-deep);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

a {
    color: var(--blue);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:hover,
a:focus {
    color: var(--green-dark);
    text-decoration: none;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 3000;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

.site-header {
    z-index: 1200;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(3, 30, 54, 0.6);
    transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
    border-bottom-color: transparent;
    background: rgba(4, 41, 71, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.site-header .navbar {
    min-height: 82px;
    margin: 0;
    border: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 82px;
    padding: 9px 15px;
    color: var(--white);
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--white);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
    width: 112%;
    height: 112%;
    max-width: none;
    object-fit: cover;
    object-position: center 38%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--white);
    font-size: 22px;
    letter-spacing: 0.07em;
}

.brand-copy small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar-nav>li>a {
    padding: 31px 15px 27px;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus,
.navbar-nav>.active>a,
.navbar-nav>.active>a:hover,
.navbar-nav>.active>a:focus {
    border-bottom-color: var(--green);
    color: var(--white);
    background: transparent;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 760px;
    overflow: hidden;
    background: url("../images/office-look.png") no-repeat center center;
    background-size: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 24, 43, 0.91) 0%, rgba(4, 42, 72, 0.78) 39%, rgba(4, 42, 72, 0.26) 68%, rgba(2, 19, 35, 0.12) 100%),
        linear-gradient(0deg, rgba(2, 24, 43, 0.3), transparent 42%);
}

.hero-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 126px;
    padding-bottom: 106px;
}

.hero-copy {
    max-width: 650px;
    color: var(--white);
}

.eyebrow {
    margin-bottom: 13px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a8db43;
}

.hero h1 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    margin-bottom: 20px;
    color: #b6ec52;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-intro {
    max-width: 610px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.91);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    padding: 13px 23px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-brand {
    border: 1px solid var(--green);
    color: var(--white);
    background: var(--green);
    box-shadow: 0 12px 28px rgba(94, 151, 10, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
    border-color: var(--green-dark);
    color: var(--white);
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.64);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: var(--white);
    color: var(--navy-deep);
    background: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    border: 1px solid var(--white);
    color: var(--navy-deep);
    background: var(--white);
}

.btn-light:hover,
.btn-light:focus {
    border-color: #edf5e0;
    color: var(--navy-deep);
    background: #edf5e0;
    transform: translateY(-2px);
}

.btn-whatsapp {
    border: 1px solid #25d366;
    color: var(--white);
    background: #25a955;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    border-color: #1c8d45;
    color: var(--white);
    background: #1c8d45;
    transform: translateY(-2px);
}

.hero-domains {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(2, 28, 50, 0.72);
    backdrop-filter: blur(8px);
}

.hero-domains .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-domains .container:before,
.hero-domains .container:after {
    display: none;
}

.hero-domains span {
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.hero-domains span:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 48px;
}

.section-heading.text-center {
    margin-right: auto;
    margin-left: auto;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading>p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.capabilities {
    background: var(--surface);
}

.capability-grid>div,
.pillar-grid>div {
    display: flex;
    margin-bottom: 30px;
}

.capability-card {
    position: relative;
    width: 100%;
    min-height: 288px;
    padding: 30px 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(6, 54, 91, 0.05);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.capability-card:after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--blue-soft);
    transition: transform 220ms ease, background 220ms ease;
}

.capability-card:hover {
    border-color: rgba(14, 99, 156, 0.26);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.capability-card:hover:after {
    background: #edf7dc;
    transform: scale(1.18);
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 10px 24px rgba(8, 76, 125, 0.2);
}

.capability-icon i {
    font-size: 24px;
}

.capability-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.capability-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.about {
    background:
        radial-gradient(circle at 90% 12%, rgba(107, 164, 12, 0.1), transparent 26%),
        var(--white);
}

.about-layout {
    display: flex;
    align-items: stretch;
}

.about .section-heading {
    margin-bottom: 28px;
}

.about-lead {
    color: #31475a;
    font-size: 18px;
    line-height: 1.8;
}

.about .col-md-7>p:not(.about-lead) {
    color: var(--muted);
}

.vision-card {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #d8e8bd;
    border-radius: 14px;
    background: #f6fbee;
}

.vision-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
}

.vision-icon i {
    font-size: 20px;
}

.vision-card h3 {
    margin-bottom: 7px;
}

.vision-card p {
    margin-bottom: 0;
    color: #41572b;
}

.mission-panel {
    height: 100%;
    padding: 42px 38px;
    border-radius: 20px;
    color: var(--white);
    background:
        linear-gradient(150deg, rgba(7, 59, 111, 0.96), rgba(4, 41, 71, 0.99)),
        url("../images/office-look.png") no-repeat center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.mission-panel .eyebrow {
    color: #a8db43;
}

.mission-panel h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: 30px;
}

.mission-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mission-list li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 34px;
    color: rgba(255, 255, 255, 0.9);
}

.mission-list li:last-child {
    margin-bottom: 0;
}

.mission-list li:before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: var(--navy-deep);
    background: #a8db43;
    font-family: FontAwesome;
    font-size: 11px;
}

.research-ribbon {
    padding: 34px 0;
    color: var(--white);
    background: linear-gradient(100deg, var(--green-dark), var(--green));
}

.research-ribbon .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ribbon-copy p {
    margin-bottom: 2px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 27px;
    font-weight: 700;
}

.ribbon-copy span {
    color: rgba(255, 255, 255, 0.86);
}

.why-a2j {
    background: var(--white);
}

.pillar-card {
    width: 100%;
    padding: 30px 24px;
    border-top: 4px solid var(--blue);
    border-radius: 8px 8px 14px 14px;
    background: var(--surface);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.pillar-card:hover {
    border-color: var(--green);
    box-shadow: 0 16px 38px rgba(5, 42, 72, 0.1);
    transform: translateY(-5px);
}

.pillar-card>span {
    display: block;
    margin-bottom: 32px;
    color: rgba(14, 99, 156, 0.24);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.pillar-card h3 {
    margin-bottom: 10px;
}

.pillar-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.photo-gallery {
    background:
        radial-gradient(circle at 8% 12%, rgba(14, 99, 156, 0.08), transparent 25%),
        var(--surface);
}

.public-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-photo-card {
    position: relative;
    display: block;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(5, 42, 72, 0.08);
}

.public-photo-card:after {
    content: "\f00e";
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(4, 41, 71, 0.86);
    font-family: FontAwesome;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.public-photo-card:hover:after,
.public-photo-card:focus:after {
    opacity: 1;
    transform: translateY(0);
}

.public-photo-card img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 260ms ease;
}

.public-photo-card:hover img,
.public-photo-card:focus img {
    transform: scale(1.035);
}

.gallery-empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    border: 1px dashed #b8c8d3;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.gallery-empty>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.gallery-empty>span i {
    font-size: 25px;
}

.gallery-empty h3 {
    margin-bottom: 8px;
}

.gallery-empty p {
    margin-bottom: 0;
}

.contact {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.contact:before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 80px solid rgba(14, 99, 156, 0.04);
    border-radius: 50%;
}

.contact-layout {
    position: relative;
    display: flex;
    align-items: center;
}

.contact .section-heading {
    margin-bottom: 28px;
}

.contact-actions .btn i {
    margin-right: 8px;
}

.contact-card {
    margin: 0;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    font-style: normal;
}

.contact-row {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-row>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: var(--white);
    background: var(--navy);
}

.contact-row>span i {
    font-size: 18px;
}

.contact-row strong {
    display: block;
    margin-bottom: 3px;
    color: var(--navy-deep);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
}

.contact-row p,
.contact-row a {
    margin-bottom: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
}

.contact-row .phone-number {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
}

.map-link {
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    color: var(--white);
    background: var(--navy);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.map-link:hover,
.map-link:focus {
    color: var(--white);
    background: var(--blue);
}

.map-link i {
    margin-right: 8px;
}

.site-footer {
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.76);
    background: var(--navy-deep);
}

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

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
}

.footer-brand>div {
    margin-left: 12px;
}

.footer-brand strong {
    color: var(--white);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
}

.footer-brand p,
.copyright {
    margin-bottom: 0;
    font-size: 13px;
}

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.floating-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.floating-button i {
    font-size: 22px;
}

.floating-button:hover,
.floating-button:focus {
    color: var(--white);
    transform: translateY(-3px);
}

.floating-button.whatsapp {
    background: #25b95d;
}

.floating-button.call {
    background: var(--blue);
}

@media (min-width: 992px) {
    .capability-grid,
    .pillar-grid {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    h2 {
        font-size: 33px;
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        min-height: 720px;
        background-position: 56% center;
    }

    .about-layout,
    .contact-layout {
        display: block;
    }

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

    .mission-panel,
    .contact-card {
        margin-top: 42px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 29px;
    }

    .site-header {
        background: rgba(4, 41, 71, 0.98);
    }

    .site-header .navbar {
        min-height: 72px;
    }

    .navbar-header {
        min-height: 72px;
    }

    .navbar-brand {
        height: 72px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-mark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        font-size: 10px;
    }

    .navbar-toggle {
        margin-top: 18px;
        border-color: rgba(255, 255, 255, 0.46);
    }

    .navbar-toggle .icon-bar {
        background: var(--white);
    }

    .navbar-collapse {
        max-height: calc(100vh - 72px);
        border-top-color: rgba(255, 255, 255, 0.14);
        box-shadow: none;
        background: rgba(4, 41, 71, 0.99);
    }

    .navbar-nav {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .navbar-nav>li>a {
        padding: 13px 20px;
        border-bottom: 0;
        border-left: 3px solid transparent;
    }

    .navbar-nav>li>a:hover,
    .navbar-nav>li>a:focus,
    .navbar-nav>.active>a,
    .navbar-nav>.active>a:hover,
    .navbar-nav>.active>a:focus {
        border-left-color: var(--green);
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        align-items: flex-end;
        min-height: 760px;
        background-position: 61% center;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(2, 24, 43, 0.96) 2%, rgba(3, 31, 54, 0.82) 58%, rgba(3, 31, 54, 0.22) 100%);
    }

    .hero-layout {
        padding-top: 150px;
        padding-bottom: 150px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-intro {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-domains .container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .hero-domains span {
        padding: 11px 7px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 9px;
    }

    .section {
        padding: 66px 0;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .capability-card {
        min-height: 0;
    }

    .public-photo-grid {
        grid-template-columns: 1fr;
    }

    .public-photo-card,
    .public-photo-card img {
        min-height: 0;
        height: 250px;
    }

    .vision-card {
        align-items: flex-start;
    }

    .mission-panel,
    .contact-card {
        padding: 30px 24px;
    }

    .research-ribbon .container,
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .ribbon-copy p {
        font-size: 23px;
    }

    .research-ribbon .btn {
        width: 100%;
    }

    .contact-actions .btn {
        flex: 1 1 100%;
    }

    .site-footer {
        padding-bottom: 96px;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 420px) {
    .brand-copy small {
        letter-spacing: 0;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-layout {
        padding-bottom: 158px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
