:root {
  /* Brand palette */
  --color-primary:        #0A1929;
  --color-primary-dark:   #0f161b;
  --color-primary-mid:    #1a3a52;
  --color-slate:          #4b6b85;
  --color-accent:         #cc6e1b;/*#ff7535;*/
  --color-accent-dark:    #cc6e1b;/*#e55a25;*/

  /* Neutrals */
  --color-text:           #333;
  --color-text-medium:    #555;
  --color-text-dark:      #444;
  --color-white:          #ffffff;
  --color-border:         #ddd;
  --color-bg-light:       #f8f9fa;

  /* Feedback */
  --color-success-bg:     #d4edda;
  --color-success-border: #c3e6cb;
  --color-success-text:   #155724;

  /* Overlays / shadows */
  --shadow-xs:            rgba(0, 0, 0, 0.1);
  --shadow-sm:            rgba(0, 0, 0, 0.12);
  --shadow-md:            rgba(0, 0, 0, 0.18);
  --shadow-nav:           rgba(0, 0, 0, 0.3);
  --shadow-media:         rgba(0, 0, 0, 0.6);
  --shadow-lightbox:      rgba(0, 0, 0, 0.92);
  --color-primary-tint:   rgba(10, 25, 41, 0.1);
  --color-white-78:       rgba(255, 255, 255, 0.78);
  --color-white-85:       rgba(255, 255, 255, 0.85);
  --color-bg-light-85:    rgba(248, 249, 250, 0.85);
  --color-primary-85:     rgba(10, 25, 41, 0.85);
  --color-primary-mid-70: rgba(26, 58, 82, 0.70);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-image: url('/static/img/Sultindvik_oversikt_cropped.JPG');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--color-primary-dark);
    box-shadow: 0 2px 4px var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}

.background {
    position: relative;
}

.background-image {
    display: none;
}

.navbar {
    padding: 1rem 0;
    position: relative;
}

/* Hamburger button (hidden on desktop, shown via max-width query) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-tint);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Messages */
.messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 20px;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success-text);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        background-image: url('/static/img/projects/vlcsnap-2026-04-28-22h04m27s374.png');
        background-attachment: scroll;
        background-position: top center;
    }

    /* Hamburger nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary-dark);
        padding: 0.5rem 0;
        box-shadow: 0 4px 8px var(--shadow-nav);
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }

    /* Page header */
    .page-header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Grids */
    .hero .container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
