
:root {
    --bg: #ffffff;
    --bg-alt: #f3f3f3;
    --text: #222222;
    --muted: #666666;
    --accent: #e5a72f;
    --accent-dark: #c98d18;
    --nav-bg: rgba(0, 0, 0, 0.82);
    --nav-text: #ffffff;
    --btn-text: #ffffff;
    --border: rgba(0, 0, 0, 0.12);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

    --content-width: 1100px;
    --page-gutter: clamp(16px, 3vw, 32px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: #000000; /* Prevents white rubber-band overscroll at the top */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   DARK MODE
   ========================= */

body.dark-mode {
    --bg: #171717;
    --bg-alt: #222222;
    --text: #eeeeee;
    --muted: #b7b7b7;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* =========================
   GENERAL LAYOUT
   ========================= */

.container {
    width: min(
        var(--content-width),
        calc(100% - (var(--page-gutter) * 2))
    );
    margin-inline: auto;
}

.section {
    padding-block: clamp(50px, 7vw, 90px);
}

.section.container {
    width: min(
        var(--content-width),
        calc(100% - (var(--page-gutter) * 2))
    );
}

.section-title {
    margin: 0 0 12px;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.section-subtitle {
    margin: 0 0 25px;
    color: var(--muted);
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 500;
    text-align: center;
}

.center-text {
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.text-block {
    margin-bottom: 35px;
}

.sub-heading {
    margin: 0 0 12px;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.25;
}

.bg-gray {
    background: var(--bg-alt);
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    color: var(--nav-text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    width: 100%; /* Overrides the .container max-width */
    padding-inline: var(--page-gutter); /* Adds safe spacing on the extreme left/right */

    min-height: 70px;
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
}

.logo-link {
    flex: 0 0 auto;
}

.logo {
    width: auto;
    height: clamp(42px, 5vw, 58px);
    max-width: 180px;
    object-fit: contain;
}

.nav-links {
    min-width: 0;
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 24px);

    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    flex: 0 0 auto;
}

.nav-links a {
    display: block;
    padding: 8px 3px;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    white-space: nowrap;

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

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;

    display: grid;
    place-items: center;

    font-size: 1rem;

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

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 17px;

    border: 0;
    border-radius: 4px;

    background: var(--accent);
    color: var(--btn-text);

    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    white-space: nowrap;

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* =========================
   DYNAMIC NAV COMPACT MODE
   ========================= */

.navbar.compact .nav-links,
.navbar.compact .desktop-actions {
    display: none;
}

.navbar.compact .nav-container {
    justify-content: space-between;
}

.navbar.compact .nav-actions {
    margin-left: auto;
}

.mobile-menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 7px;

    border: 0;
    background: transparent;

    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.navbar.compact .mobile-menu-toggle {
    display: flex;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;

    border-radius: 2px;
    background: #ffffff;

    transform-origin: center;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

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

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

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

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    max-height: 0;
    padding: 0 var(--page-gutter);

    overflow: hidden;
    visibility: hidden;
    opacity: 0;

    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        max-height 0.4s ease,
        opacity 0.25s ease,
        visibility 0.4s ease,
        padding 0.4s ease;
}

.mobile-menu.open {
    max-height: 500px;
    padding-block: 10px;
    visibility: visible;
    opacity: 1;
}

.mobile-menu > a,
.mobile-theme-toggle {
    width: 100%;

    padding: 13px 15px;

    border: 0;
    background: transparent;
    color: #ffffff;

    text-align: left;

    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

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

.mobile-menu > a:hover,
.mobile-theme-toggle:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .btn-primary {
    margin-top: 8px;
    text-align: center;
}

/* =========================
   HERO
   ========================= */

.hero-wrapper {
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 0);

    min-height: min(900px, 92vh);

    display: grid;
    place-items: center;

    color: #ffffff;
    text-align: center;
}


.hero img.hero-sticker {
    position: relative;
    height: clamp(5rem,  20vw, 200px);
    width: clamp(5rem,  20vw, 200px);
    max-width: none;
    left: -10%;
    top: -40%;
    z-index: 5;
    transform: rotate(-0deg);
    margin: 50px 0px;
    padding: 0px 0px;
}
.hero::before {
    content: "";
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: -1;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.45)
        ),
        url("images/zonsondergang_strand.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    will-change: transform;
    transform: translateZ(0);
}

.hero-content {
    width: min(100%, 1000px);
    margin-inline: auto;
}

.hero h1 {
    margin: 0;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 0.98;

    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.45);
}

.hero h1 + h1 {
    margin-top: 8px;
}

.hero .subtitle {
    margin: clamp(35px, 10vw, 175px) 0 0px;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
}

/* =========================
   COUNTDOWN
   ========================= */

.countdown {
    width: min(90%, 850px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    align-items: start;
}

.time-box,
.colon {
    display: flex;
    justify-content: center;
}

.time-box {
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.time-box .number {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-shadow: 0 0 5px #ffffff;
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
}

.time-box .label {
    margin-top: clamp(7px, 1vw, 12px);

    font-size: clamp(0.65rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.colon {
    font-family: 'San Fransisco', sans-serif;
    text-shadow: 0 0 10px #ffffff;
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
}
/* =========================
   QUOTE
   ========================= */

.quote-banner {
    padding-block: clamp(35px, 5vw, 60px);
    padding-inline: var(--page-gutter);

    background: var(--accent);
    color: #ffffff;

    text-align: center;
}

.construction-notice {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.quote-banner p {
    max-width: 900px;
    margin: 0 auto;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;

}

/* =========================
   TWO COLUMN CONTENT
   ========================= */

.two-col-layout {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );

    gap: clamp(25px, 5vw, 60px);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.two-col-layout .col {
    min-width: 0;
}

/* =========================
   CALLOUT
   ========================= */

.callout-box {
    padding: clamp(22px, 4vw, 40px);

    border-left: 4px solid var(--accent);
    background: var(--bg-alt);

    box-shadow: var(--shadow);
}

.callout-box h4 {
    margin: 0 0 15px;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.custom-list {
    margin: 0;
    padding-left: 1.3rem;
}

.custom-list li {
    margin-bottom: 7px;
}

/* =========================
   FEES
   ========================= */

.fees-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 230px), 1fr)
    );

    gap: clamp(20px, 3vw, 35px);
}

.fee-card {
    padding: clamp(22px, 4vw, 35px);

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

    text-align: center;
    box-shadow: var(--shadow);
}

.fee-card h3 {
    margin: 0 0 8px;

    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.fee-card .price {
    margin: 0 0 10px;

    color: var(--accent);

    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 700;
}

/* =========================
   PRACTICAL INFO
   ========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );

    gap: clamp(25px, 4vw, 45px);
}

.info-card {
    padding: clamp(20px, 3vw, 30px);

    border: 1px solid var(--border);
    background: var(--bg);
}

.info-card h3 {
    margin-top: 0;

    font-family: 'Raleway', sans-serif;
}

/* =========================
   PROGRAMME
   ========================= */

.programme {
    display: grid;
    gap: 15px;
}

.programme-item {
    display: grid;
    grid-template-columns:
        minmax(80px, 140px)
        minmax(0, 1fr);

    gap: clamp(15px, 3vw, 30px);

    padding: clamp(16px, 3vw, 25px);

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

.programme-time {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

/* =========================
   REGISTRATION STEPS
   ========================= */

.steps {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 220px), 1fr)
    );

    gap: clamp(20px, 3vw, 35px);
}

.step {
    padding: clamp(20px, 3vw, 30px);

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

.step-number {
    margin-bottom: 12px;

    color: var(--accent);

    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.step h3 {
    margin: 0 0 8px;

    font-family: 'Raleway', sans-serif;
}

/* =========================
   FAQ
   ========================= */

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    padding: 18px 0;

    cursor: pointer;

    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.faq details p {
    margin: 0;
    padding: 0 0 20px;
    color: var(--muted);
}

/* =========================
   GALLERY
   ========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 250px), 1fr)
    );

    gap: clamp(8px, 1.5vw, 16px);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================
   FOOTER
   ========================= */

footer {
    padding-block: clamp(35px, 5vw, 55px);

    background: #111111;
    color: #ffffff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials a {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

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

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-text {
    margin: 0;
    color: #aaaaaa;
    font-size: 0.85rem;
}

/* =========================
   GENERAL FLUID BEHAVIOR
   ========================= */

p {
    max-width: 75ch;
}

.text-block,
.two-col-layout,
.callout-box,
.fees-grid,
.info-grid,
.programme,
.steps,
.faq,
.gallery-grid {
    max-width: 100%;
}

iframe,
video,
canvas {
    max-width: 100%;
}
