/* =========================================================
   Arctic Technical Consulting
   Main stylesheet
   ========================================================= */


/* =========================================================
   Variables
   ========================================================= */

:root {
    --blue: #004BD4;
    --blue-dark: #00379d;

    --black: #080b10;
    --dark: #10151d;

    --white: #ffffff;
    --light: #f4f6f9;

    --grey: #68707c;
    --border: #e2e6ec;

    --max-width: 1280px;
    --header-height: 90px;
}


/* =========================================================
   Reset
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: var(--white);
    color: var(--dark);

    line-height: 1.6;
    padding-top: var(--header-height);
}

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

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


/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;

    background: var(--black);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}

.header-container {
    width: min(92%, var(--max-width));
    min-height: 90px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* Brand */

.site-brand {
    display: flex;
    align-items: center;

    gap: 14px;
    flex-shrink: 0;

    color: var(--white);

    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1.25;
}

.site-brand:hover {
    color: var(--white);
}

.site-brand img {
    width: 245px;
    height: auto;
    max-width: 100%;

    object-fit: contain;
}


/* Main navigation */

.main-nav {
    display: flex;
    align-items: center;

    gap: 32px;
}

.main-nav a {
    position: relative;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.95rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--blue);

    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after {
    width: 100%;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--white);
}


/* Language selector */

.language-nav {
    display: flex;
    align-items: center;

    gap: 8px;
}

.language-nav a {
    color: rgba(255, 255, 255, 0.65);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.05em;
}

.language-nav a:hover {
    color: var(--white);
}

.language-nav .active {
    color: var(--blue);
}


/* Bootstrap navbar */

.navbar {
    padding: 0;
}

.navbar-brand {
    margin-right: 0;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(3, 7, 14, 0.94) 0%,
            rgba(3, 7, 14, 0.80) 42%,
            rgba(3, 7, 14, 0.35) 72%,
            rgba(3, 7, 14, 0.15) 100%
        ),
        url("../images/hero-runway.png");

    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 5px;

    background: var(--blue);
}

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

    width: min(92%, var(--max-width));

    margin: 0 auto;
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;

    margin-bottom: 22px;

    color: #72a4ff;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;

    margin-bottom: 24px;

    color: var(--white);

    font-size: clamp(2.8rem, 5vw, 5rem);

    line-height: 1.03;

    letter-spacing: -0.035em;
}

.hero p {
    max-width: 680px;

    margin-bottom: 36px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.15rem;

    line-height: 1.8;
}


/* =========================================================
   Buttons
   ========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;
}

.button-primary,
.button-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 27px;

    border-radius: 4px;

    font-size: 0.92rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button-primary {
    background: var(--blue);
    color: var(--white);

    border: 2px solid var(--blue);
}

.button-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);

    color: var(--white);

    transform: translateY(-2px);
}

.button-secondary {
    background: transparent;

    color: var(--white);

    border:
        2px solid rgba(255, 255, 255, 0.55);
}

.button-secondary:hover {
    background: var(--white);
    border-color: var(--white);

    color: var(--black);

    transform: translateY(-2px);
}


/* =========================================================
   General sections
   ========================================================= */

.section-container {
    width: min(92%, var(--max-width));

    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.section-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--blue);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

section h2 {
    margin-bottom: 22px;

    color: var(--black);

    font-size: clamp(2rem, 3.5vw, 3.2rem);

    line-height: 1.15;

    letter-spacing: -0.025em;
}

section p {
    color: var(--grey);
}


/* =========================================================
   Homepage intro
   ========================================================= */

.intro {
    background: var(--white);
}

.intro .section-container {
    max-width: var(--max-width);
}

.intro p:not(.section-eyebrow) {
    max-width: 800px;

    margin-bottom: 20px;

    font-size: 1.05rem;
}

.intro a {
    color: var(--black);

    font-weight: 500;
}

.intro a:hover {
    color: var(--blue);
}


/* =========================================================
   Services
   ========================================================= */

.services-preview,
.services-overview {
    background: var(--light);
}

.service-grid,
.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin-top: 50px;
}

.service-card {
    position: relative;

    min-height: 210px;

    padding: 36px 32px;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--blue);
}

.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    margin-bottom: 14px;

    color: var(--black);

    font-size: 1.3rem;
}

.service-card p {
    margin: 0;

    font-size: 0.97rem;
}

.section-link {
    display: inline-block;

    margin-top: 28px;

    color: var(--black);

    font-weight: 500;
}

.section-link:hover {
    color: var(--blue);
}


/* =========================================================
   Greenland homepage section
   ========================================================= */

.greenland-experience {
    position: relative;

    background: var(--dark);

    color: var(--white);
}

.greenland-experience .section-container {
    max-width: 1000px;
}

.greenland-experience h2 {
    color: var(--white);
}

.greenland-experience p {
    max-width: 800px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 1.05rem;
}

.greenland-experience a {
    display: inline-block;

    margin-top: 25px;

    color: var(--white);

    font-weight: 500;
}

.greenland-experience a:hover {
    color: #72a4ff;
}


/* =========================================================
   Text links
   ========================================================= */

.text-link {
    display: inline-block;

    margin-top: 25px;

    color: var(--blue);

    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   Contact CTA
   ========================================================= */

.contact-cta {
    padding: 85px 0;

    background: var(--blue);

    color: var(--white);
}

.contact-cta .section-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.contact-cta h2 {
    margin-bottom: 10px;

    color: var(--white);
}

.contact-cta p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.82);
}

.contact-cta .button-primary {
    flex-shrink: 0;

    background: var(--black);

    border-color: var(--black);
}

.contact-cta .button-primary:hover {
    background: var(--white);

    border-color: var(--white);

    color: var(--black);
}


/* =========================================================
   Page hero
   ========================================================= */

.page-hero {
    padding: 95px 0 90px;

    background: var(--light);

    border-bottom: 1px solid var(--border);
}

.page-hero .section-container {
    max-width: var(--max-width);
}

.page-hero h1 {
    max-width: 950px;

    margin-bottom: 25px;

    color: var(--black);

    font-size: clamp(2.7rem, 4.5vw, 4.5rem);

    line-height: 1.08;

    letter-spacing: -0.035em;
}

.page-hero-text {
    max-width: 850px;

    margin: 0;

    color: var(--grey);

    font-size: 1.08rem;

    line-height: 1.8;
}


/* =========================================================
   About content
   ========================================================= */

.about-content {
    background: var(--white);
}

.about-content-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;

    align-items: start;
}

.about-content h2 {
    margin-bottom: 0;
}

.about-text {
    padding-top: 30px;
}

.about-text p {
    margin-bottom: 22px;

    font-size: 1.05rem;

    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   About Arctic experience
   ========================================================= */

.about-experience {
    background: var(--dark);

    color: var(--white);
}

.about-experience .section-container {
    max-width: 1000px;
}

.about-experience h2 {
    color: var(--white);
}

.about-experience p {
    max-width: 800px;

    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =========================================================
   About focus
   ========================================================= */

.about-focus {
    background: var(--light);
}

.about-focus-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin-top: 50px;
}

.about-focus-item {
    position: relative;

    min-height: 245px;

    padding: 38px 32px;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.about-focus-item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--blue);
}

.about-focus-item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08);
}

.focus-number {
    display: block;

    margin-bottom: 28px;

    color: var(--blue);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.about-focus-item h3 {
    margin-bottom: 15px;

    color: var(--black);

    font-size: 1.3rem;
}

.about-focus-item p {
    margin: 0;

    font-size: 0.97rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 0;

    background: var(--black);

    color: rgba(255, 255, 255, 0.68);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    width: min(92%, var(--max-width));

    margin: 0 auto;
}


/* Main footer */

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(220px, 1fr)
        minmax(150px, 0.65fr);

    gap: 80px;

    padding: 58px 0 48px;
}


/* Footer brand */

.footer-brand {
    max-width: 430px;
}

.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;

    color: var(--white);
}

.footer-logo:hover {
    color: var(--white);
}

.footer-logo img {
    width: 310px;
    height: auto;
    max-width: 100%;
    flex: 0 1 auto;

    object-fit: contain;
}

.footer-logo-text {
    display: flex;

    flex-direction: column;

    line-height: 1.2;
}

.footer-logo-text span {
    color: rgba(255, 255, 255, 0.82);

    font-size: 1rem;
}

.footer-logo-text strong {
    color: var(--white);

    font-size: 1.15rem;
    font-weight: 700;
}
.atc-letter {
    color: var(--blue);
    font-weight: inherit;
}

.footer-description {
    max-width: 390px;

    margin: 0;

    color: rgba(255, 255, 255, 0.50);

    font-size: 0.9rem;

    line-height: 1.75;
}


/* Footer columns */

.footer-column {
    padding-top: 7px;
}

.footer-heading {
    display: block;

    margin-bottom: 20px;

    color: var(--white);

    font-size: 0.73rem;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* Company */

.footer-address {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.88rem;

    font-style: normal;

    line-height: 1.6;
}

.footer-address strong {
    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.88);

    font-weight: 600;
}

.footer-cvr {
    margin-top: 10px;
}


/* Footer navigation */

.footer-nav {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.58);

    font-size: 0.9rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--white);

    transform: translateX(3px);
}


/* =========================================================
   Footer bottom
   ========================================================= */

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    padding: 0;
}


/* Copyright / links row */

.footer-bottom-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 20px 0 16px;
}

.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.40);

    font-size: 0.78rem;
}

.footer-bottom-links {
    display: flex;

    align-items: center;

    gap: 14px;

    color: rgba(255, 255, 255, 0.40);

    font-size: 0.78rem;
}

.footer-bottom-links > a {
    color: rgba(255, 255, 255, 0.58);

    transition: color 0.2s ease;
}

.footer-bottom-links > a:hover {
    color: var(--white);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.18);
}


/* Footer languages */

.footer-languages {
    display: flex;

    align-items: center;

    gap: 6px;
}

.footer-languages a {
    color: rgba(255, 255, 255, 0.48);

    font-weight: 600;

    transition: color 0.2s ease;
}

.footer-languages a:hover {
    color: var(--white);
}

.footer-languages a.active {
    color: var(--blue);
}

.footer-languages span {
    color: rgba(255, 255, 255, 0.22);
}


/* Ra-IT credit - own centred row */

.footer-credit {
    width: 100%;

    padding: 13px 0 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);

    text-align: center;

    color: rgba(255, 255, 255, 0.34);

    font-size: 0.75rem;
}

.footer-credit span {
    margin-right: 3px;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.68);

    font-weight: 700;

    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--blue);
}


/* =========================================================
   Responsive - tablet
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 91px;
    }

    .site-brand img {
        width: 195px;
    }

    .site-header .navbar-collapse {
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
    }

    .header-container {
        min-height: var(--header-height);

        flex-wrap: wrap;

        padding: 10px 0;

        gap: 18px;
    }

    .navbar-collapse {
        padding: 20px 0 10px;
    }

    .main-nav {
        width: 100%;

        align-items: flex-start;

        gap: 12px;
    }

    .main-nav a::after {
        bottom: 0;
    }

    .language-nav {
        margin-top: 18px;
    }

    .hero {
        min-height: 600px;

        background-position: 62% center;
    }

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

    .service-card {
        min-height: auto;
    }

    .about-content-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .about-text {
        padding-top: 0;
    }

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

    .about-focus-item {
        min-height: auto;
    }

    .contact-cta .section-container {
        flex-direction: column;

        align-items: flex-start;
    }


    /* Footer */

    .footer-main {
        grid-template-columns:
            1.4fr 1fr;

        gap: 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   Responsive - mobile
   ========================================================= */

@media (max-width: 600px) {

    section {
        padding: 70px 0;
    }

    .site-brand {
        font-size: 0.95rem;
    }

    :root {
        --header-height: 76px;
    }

    .site-brand img {
        width: 165px;
        height: auto;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;

        align-items: flex-start;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .page-hero {
        padding: 70px 0;
    }

    .page-hero h1 {
        font-size: 2.6rem;
    }

    .about-focus-item {
        min-height: auto;
    }


    /* Footer */

    .footer-main {
        grid-template-columns: 1fr;

        gap: 36px;

        padding: 45px 0 38px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logo img {
        width: 260px;
        height: auto;
        flex: 0 1 auto;
    }

    .footer-bottom-row {
        flex-direction: column;

        align-items: center;

        gap: 12px;

        padding: 18px 0 15px;

        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .footer-credit {
        padding: 13px 0 17px;
    }
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    max-width: 920px;
    margin-top: 38px;
}

.contact-form-intro {
    max-width: 720px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 3px;

    background: var(--white);
    color: var(--black);

    font: inherit;
    font-size: 0.95rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 170px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 212, 0.12);
}

.contact-privacy {
    margin-top: 24px;
    max-width: 760px;
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.7;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
}

.contact-form-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contact-form-status {
    color: var(--grey);
    font-size: 0.85rem;
}

@media (max-width: 767px) {

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-field-full {
        grid-column: auto;
    }

    .contact-form {
        margin-top: 28px;
    }

}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--blue);
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease;

    z-index: 1000;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.back-to-top:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--blue);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}


/* Mobile */

@media (max-width: 600px) {

    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;
    }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .back-to-top {
        transition: none;
    }

}

/* Keep in-page anchors visible below the fixed header */
html { scroll-padding-top: calc(var(--header-height) + 16px); }
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* Keep logo and navigation comfortable at Bootstrap collapse widths */
@media (min-width: 901px) and (max-width: 1199px) {
    .header-container { gap: 20px; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 0.88rem; }
}
