:root {
--color-dark-bg: #444;
--color-grey-light: #eee;
--color-grey-medium: #bbb;
--color-grey-medium-dark: #777;
--color-grey-dark: #333;
--max-width-header: 960px;
--max-width-content: 760px;
--header-height: 60px;
--mobile-padding: 15px;
}

/* RESET AND BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--color-grey-dark);
    line-height: 1.6;
    background-color: var(--color-grey-light);
    background-image: none;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* DESKTOP BLURRED BACKGROUND EFFECT */
@media (min-width: 801px) {
    body {
        background-image: var(--bg-header-desktop);
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        z-index: -1;
    }
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--color-grey-medium-dark);
}

a:hover {
    opacity: 0.8;
}

/* HEADINGS */
h1, h2, h3 { line-height: 1.4; margin-bottom: 0.5em; margin-top:0.5em; color: var(--color-grey-dark); }
h1 {
    font-size: 2.3em; display: inline; padding: 0.2em 0.3em;
    background-color: var(--color-primary); color: white;
    box-decoration-break: clone;
}
h2 { font-size: 1.7em; border-bottom: 2px dotted var(--color-grey-medium); padding-bottom: 0.2em; }
#hero h2 {
    display: inline; padding: 0.2em 0.3em; margin-top:0.6em;
    background-color: white; color: var(--color-primary);
    box-decoration-break: clone; 
    border: none;
}
h4, h5, h6 { color:var(--color-primary); margin-top:0.3em; line-height:1.3; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1.0em; }
p.onelineonly { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content-wrapper p { margin: 0.4em 0;}
.languagenavigation { margin-left:auto; margin-right:1em; }

/* CORE LAYOUT STRUCTURES */
.head-wrapper {
    max-width: var(--max-width-header);
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.content-wrapper {
    max-width: var(--max-width-content);
    margin: 0 auto;
    background-color: white;
    padding: 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.padding-x-20 {
    padding: 0 20px;
}

/* HEADER BAR */
.header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

/* BURGER MENU CONTROLS */
#menu-toggle { display: none; }
.burger-icon {
    display: flex; flex-direction: column; justify-content: space-around;
    width: 30px; height: 25px; cursor: pointer; z-index: 102; padding: 5px 0;
}
.burger-icon span {
    display: block; height: 3px; width: 100%; background: var(--color-primary);
    border-radius: 3px; transition: all 0.3s ease-in-out;
}

/* MOBILE MENU */
.nav-menu {
    position: fixed; top: 0; right: 0; width: 250px; height: 100%;
    background-color: white; box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    padding-top: var(--header-height); z-index: 100; list-style: none; text-align: right;
}
.nav-menu li a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--color-grey-light); color: var(--color-grey-dark); }
.nav-menu li a:hover { background-color: var(--color-grey-light); }
#menu-toggle:checked ~ .nav-menu { transform: translateX(0); }

/* DESKTOP MENU */
@media (min-width: 961px) {
    .nav-menu {
        position: absolute; top: var(--header-height); right: 20px; 
        width: auto; height: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--color-grey-medium); padding: 10px; background-color: white;
        visibility: hidden; opacity: 0; transform: translateY(0);
        transition: opacity 0.3s, visibility 0.3s;
    }
    .nav-menu li { display: block; }
    .nav-menu li a { padding: 8px 15px; border-bottom: none; }
    #menu-toggle:checked ~ .nav-menu { visibility: visible; opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; 
    overflow: hidden;
    background: none;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-header-desktop) no-repeat center center/cover;
    filter: brightness(0.75);    
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2; 
    bottom: 3em;
}

/* INTRO TEXT AREA */
.intro-area { background-color: var(--color-grey-light); padding: 1em 0; }
.intro-area-breadcrumbs { margin: 0.8em; border-bottom: 2px dotted var(--color-grey-medium); padding-bottom: 0.2em; line-height:1.1; }
.intro-area-content { max-width: var(--max-width-content); margin: 0 auto; padding: 0 20px; text-align: center; }
.intro-disclaimer { border-top: 2px dotted var(--color-grey-medium); padding-top:0.3em; margin-top:0.5em; line-height:1.1; }

/* BUTTON STYLE */
.button {
    display: inline-block; padding: 8px 12px; background-color: var(--color-primary);
    color: white !important; border: none; border-radius: 4px; cursor: pointer;
    text-transform: none; font-weight: bold; letter-spacing: 0.5px;
    transition: opacity 0.3s; margin-top: 10px; font-size: 1em; min-height: 40px; height: auto; line-height: 20px;
    text-decoration: none;
}
.button:hover { opacity: 0.8; }
.form-area .button { width: 100%; height: auto; padding: 10px 20px; }


/* DYNAMIC IMAGE CREDIT LAYER STYLES (Applies to both Hero and Feature Box) */
.copyright {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    font-size: 0.7em;
    border-radius: 2px;
    cursor: pointer;
    padding: 0.2em;
    transition: all 0.2s ease;
    line-height: normal;
    z-index:10;
}

/* Remove the default arrow/marker that comes with <summary> */
.copyright summary {
  list-style: none;
  display: inline;
}
.copyright summary::-webkit-details-marker {
  display: none;
}

/* When the detail is open */
.copyright[open] .shortcopyright {
  display: none;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 960px) {
    .head-wrapper { max-width: 100%; box-shadow: none; }
    .content-wrapper { box-shadow: none; }
}

@media (max-width: 720px) {
    /* Mobile Padding for Content Wrapper */
    .content-wrapper { padding-left: var(--mobile-padding); padding-right: var(--mobile-padding); }

    /* Feature Boxes: Single column */
    .feature-boxes { flex-direction: column; }
    
    /* Mobile Hero Image */
    .hero { background: var(--bg-header-mobile) no-repeat center center/cover; }

    /* Mobile Headlines */
    h1 { font-size: 1.6em; }
    h2 { font-size: 1.4em; }
    h3 { font-size: 1.3em; }
    h4 { font-size: 1.2em; }
    h5 { font-size: 1.15em; }
    h6 { font-size: 1.1em; }
}
