@media (max-width: 600px) {
    .page_container, .about_content, .services_list, .contact_info, .footer, .contact_form {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* No extra padding for hero section */
    .service_card, .about_content, .contact_info, .footer, .contact_form {
        border-radius: 8px;
    }
}
/* Font Imports*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

/* Viking Brand colours*/
:root {
    --primary_blue: #243A6F;
    --dark_gray: #111111;
    --light_gray: #f7f7f7;
    --white: #ffffff;
    --error: #d32f2f;
    --header-bg-opacity: 0.15;
}
/*Reset default browser styles*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark_gray);
    background: var(--light_gray);
    padding-top: 0px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Sticky header with scroll effect*/
.site_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255,255,255,var(--header-bg-opacity));
    box-shadow: none;
}

.site_header.scrolled {
    /* No background, JS will handle opacity */
    box-shadow: 0 2px 8px rgba(36, 58, 111, 0.12);
}

header {
    background: transparent;
    padding: 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 70px;
    padding-left: 20px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(36,58,111,0.12));
}

.nav_links {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.nav_links a {
    text-decoration: none;
    color: var(--primary_blue);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.nav_links a:hover,
.nav_links a:focus {
    background: var(--primary_blue);
    color: var(--white);
    outline: none;
}

.nav_toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 44px;
    width: 44px;
    margin-left: 12px;
    z-index: 2001;
    padding: 0;
    position: absolute;
    top: 18px;
    right: 24px;
}

.nav_toggle_bar {
    display: block;
    width: 32px;
    height: 4px;
    margin: 5px 0;
    background: var(--primary_blue);
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(36,58,111,0.12);
}

.site_header.scrolled .nav_toggle_bar {
    background: var(--primary_blue);
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 10px;
        align-items: stretch;
        position: relative;
    }
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto 8px auto;
    }
    .nav_toggle {
        display: flex;
        position: absolute;
        top: 18px;
        right: 24px;
    }
    .nav_links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        width: 200px;
        box-shadow: 0 2px 8px rgba(36,58,111,0.10);
        border-radius: 0 0 8px 8px;
        padding: 16px 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s, transform 0.3s;
    }
    .nav_links.open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
    .nav_links li {
        width: 100%;
        text-align: left;
        padding: 10px 24px;
    }
    .contact_grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact_info {
        margin-top: 0;
    }
    .page_container h1,
    .hero_content h1 {
        text-align: center;
    }
}

ul {
    padding-left: 50px;
    padding-bottom: 20px;
}

@media (max-width: 600px) {
    .logo {
        margin: 0 auto 6px auto;
    }
    .logo img {
        padding-left: 10px;
        height: 40px;
    }
    .navbar {
        padding: 10px 2px 0px 2px;
        gap: 6px;
    }
    .nav_toggle {
        height: 40px;
        width: 40px;
        margin-left: 6px;
        top: 10px;
        right: 10px;
    }
    .nav_toggle_bar {
        width: 28px;
        height: 4px;
        margin: 4px 0;
    }
    .nav_links {
        top: 56px;
        width: 100vw;
        left: 0;
        right: 0;
        border-radius: 0 0 12px 12px;
        gap: 4px;
    }
    .nav_links li {
        padding: 12px 32px;
    }
    .hero_content h1 {
        font-size: 2rem;
    }
    .hero_content p {
        font-size: 1rem;
    }
    .cta_btn {
        padding: 10px 18px;
        font-size: 0.98rem;
    }
    .page_container {
        margin: 70px auto 20px auto;
        padding-left: 15px;
        max-width: 100%;
    }
    .service_card {
        padding: 18px 8px;
        max-width: 100%;
    }
    .contact_form {
        padding: 18px 8px;
        max-width: 100%;
    }
    .card_img, .about_img, .contact_img {
        max-width: 100%;
    }
    .page_container h1,
    .hero_content h1 {
        text-align: center;
    }
}

/* Hero section style */
.hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 40px 0;
    /*background: url('../images/logo.jpg') center/cover no-repeat;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    filter: brightness(0.7);
    transition: opacity 0.8s ease;
}

.hero video.playing {
    opacity: 1;
}


.hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 58, 111, 0.45);
    z-index: 1;
}

.hero_content {
    position: relative;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero_content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(36,58,111,0.18);
}

.hero_content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 4px rgba(36,58,111,0.12);
}

.cta_btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    text-decoration: none;
    background-color: var(--primary_blue);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(36,58,111,0.10);
    transition: background 0.3s, box-shadow 0.3s;
}

.cta_btn:hover,
.cta_btn:focus {
    background-color: var(--accent_blue);
    box-shadow: 0 4px 16px rgba(36,58,111,0.18);
    outline: none;
}

/* general page containers style*/
.page_container {
    max-width: 1100px;
    margin: 110px auto 50px auto;
    padding: 0 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(36,58,111,0.08);
    width: 100%;
}

body.home .page_container {
    margin-top: 50px;
    margin-bottom: 50px;
}

.page_container h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.page_container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .page_container {
        margin: 70px auto 20px auto;
        padding: 0 2px;
        max-width: 100%;
    }
    .page_container h1,
    .hero_content h1 {
        text-align: center;
    }
}

/* Services page style*/
.services_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.service_card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 20px;
}

.service_card:hover {
    box-shadow: 0 4px 16px rgba(36,58,111,0.12);
}

.service_card h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    color: var(--primary_blue);
    font-size: 1.3rem;
}

.card_img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(36,58,111,0.10);
    transition: opacity 0.7s, transform 0.7s;
    position: relative;
    z-index: 1;
}

.card_more {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 80%;
    background: rgba(36,58,111,0.92);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(36,58,111,0.18);
    padding: 22px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
    font-size: 1rem;
    text-align: center;
}

.card_img:hover + .card_more,
    .service_card:hover .card_more,
    .service_card:focus .card_more {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
}

.card_more p {
    margin: 0;
}

.about_img, .contact_img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(36,58,111,0.10);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}

.animated.visible .card_img,
.animated.visible .about_img,
.animated.visible .contact_img {
    opacity: 1;
    transform: none;
}

.card_more {
    /* Remove conflicting hidden/slide styles for popup */
}

.card_more text {
    margin-bottom: 50px;
}

.service_card:hover .card_more,
    .service_card:focus .card_more {
        /* All handled above */

}

/* About page styling */
.about_content h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--primary_blue);
}

.about_content img {
    padding: 20px;
    display: block;
    margin: auto;
}

/* contact form styling */
.contact_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    background: var(--light_gray);
    padding: 28px 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(36,58,111,0.06);
}

.contact_form label {
    font-weight: 600;
    color: var(--primary_blue);
    margin-bottom: 4px;
}

.contact_form input,
.contact_form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--white);
    transition: border 0.2s;
}

.contact_form input:focus,
.contact_form textarea:focus {
    border: 1.5px solid var(--primary_blue);
    outline: none;
}

.contact_form button {
    align-self: flex-start;
    cursor: pointer;
    color: #fff;
    background: var(--primary_blue);
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(36,58,111,0.10);
    transition: background 0.3s, box-shadow 0.3s;
}

.contact_form button:hover,
.contact_form button:focus {
    background: var(--accent_blue);
    box-shadow: 0 4px 16px rgba(36,58,111,0.18);
    outline: none;
}

.form_error {
    color: var(--error);
    font-size: 0.98rem;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* footer styling */
footer {
    background: var(--primary_blue);
    color: var(--white);
    padding: 20px 40px;
    text-align: center;
    margin-top: 60px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(36,58,111,0.08);
}

.footer_contact {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1rem;
}
.footer_link {
    color: var(--white);
    background: var(--primary_blue);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 2px;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.footer_link:hover {
    background: var(--accent_blue);
    color: var(--white);
}
.footer_map {
    display: inline-block;
    margin-left: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(36,58,111,0.10);
}
.footer_map iframe {
    display: block;
    border: none;
    width: 120px;
    height: 80px;
}
@media (max-width: 600px) {
    .footer_contact {
        flex-direction: column;
        gap: 8px;
        font-size: 0.98rem;
    }
    .footer_map iframe {
        width: 100px;
        height: 70px;
    }
}

/* Google Map styling */
.map_container {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(36,58,111,0.10);
    margin-top: 10px;
}
.map_container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Contact page grid layout */
.contact_grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
    margin-top: 30px;
}
.contact_info {
    background: var(--light_gray);
    padding: 18px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(36,58,111,0.08);
    font-size: 1.08rem;
}
.contact_info h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: var(--primary_blue);
}
.contact_info a {
    color: var(--primary_blue);
    text-decoration: underline;
    transition: color 0.2s;
}
.contact_info a:hover {
    color: var(--accent_blue);
}
@media (max-width: 900px) {
    .contact_grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .contact_info {
        margin-bottom: 0;
    }
    .page_container h1,
    .hero_content h1 {
        text-align: center;
    }
}

/* Hide nav links on home page until scrolled */
body.home .nav_links {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
body.home .site_header.scrolled .nav_links {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 900px) {
    body.home .nav_links {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    body.home .nav_links.open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
#hero_video::-webkit-media-controls {
    display: none !important;
}

#hero_video::-webkit-media-controls-enclosure {
    display: none !important;
}

#hero_video::-webkit-media-controls-panel {
    display: none !important;
}

