/* ============================================
   Vorbasse Festudlejning – Stylesheet
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --primary:        #1A1E45;
    --primary-dark:   #12163A;
    --primary-darker: #0B0E25;
    --accent:         #DED185;
    --accent-dark:    #C4BC5E;
    --green:          #3F704D;
    --bg-light:       #FEFEFE;
    --bg-alt:         #F2EFCC;
    --text-dark:      #1A1E45;
    --text-mid:       #2A2E5A;
    --white:          #FFFFFF;
    --shadow:         0 4px 24px rgba(26, 30, 69, 0.10);
    --shadow-hover:   0 12px 40px rgba(26, 30, 69, 0.18);
    --radius:         16px;
    --radius-sm:      10px;
    --transition:     all 0.3s ease;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Poppins', sans-serif; /* body */
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* ----- Layout ----- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 88px 0;
}

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

/* ----- Typography ----- */
h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 52px;
    font-size: 1.05rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    line-height: 1;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 30, 69, 0.35);
}

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

.btn-white:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1.05rem;
}


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
    background: var(--primary);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    padding: 8px 22px !important;
    border-radius: 50px;
    transition: var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}


/* ============================================
   HERO
   ============================================ */
#hero {
    min-height: 100vh;
    background: linear-gradient(145deg, #222858 0%, #201547 45%, #0D0A24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 32px;
}

.hero-content h1 {
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 18px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 44px;
    line-height: 1.7;
}

/* Floating bubbles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    animation: floatBubble ease-in-out infinite;
}

.bubble:nth-child(1) { width: 90px;  height: 90px;  left: 8%;   top: 18%;  animation-duration: 9s;  animation-delay: 0s; }
.bubble:nth-child(2) { width: 130px; height: 130px; right: 12%; top: 25%;  animation-duration: 11s; animation-delay: 1.5s; }
.bubble:nth-child(3) { width: 55px;  height: 55px;  left: 22%;  bottom: 22%; animation-duration: 8s;  animation-delay: 3s; }
.bubble:nth-child(4) { width: 105px; height: 105px; right: 28%; bottom: 18%; animation-duration: 12s; animation-delay: 0.8s; }
.bubble:nth-child(5) { width: 45px;  height: 45px;  left: 58%;  top: 12%;  animation-duration: 7s;  animation-delay: 2.5s; }
.bubble:nth-child(6) { width: 70px;  height: 70px;  left: 42%;  bottom: 35%; animation-duration: 10s; animation-delay: 4s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1);    opacity: 0.5; }
    50%       { transform: translateY(-22px) scale(1.06); opacity: 0.85; }
}


/* ============================================
   YDELSER – 3 CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px 36px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-blue  { border-top-color: var(--primary); }
.card-gold  { border-top-color: var(--accent-dark); }
.card-brown { border-top-color: var(--green); }

.card-blue  .card-link { color: var(--primary); }
.card-gold  .card-link { color: var(--accent-dark); }
.card-brown .card-link { color: var(--green); }

.card-blue  .card-link:hover { color: var(--primary-dark); }
.card-gold  .card-link:hover { color: var(--accent-dark); }
.card-brown .card-link:hover { color: var(--green); filter: brightness(0.8); }

.card-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
    line-height: 1;
}

.card h3 {
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 24px;
    flex: 1;
}

.card-link {
    color: var(--primary);
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    color: var(--green);
    gap: 8px;
}


/* ============================================
   PRISER
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-featured {
    background: linear-gradient(150deg, #222858 0%, var(--primary-darker) 100%);
    color: var(--white);
    transform: scale(1.04);
}

.pricing-featured:hover {
    transform: scale(1.04) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    line-height: 1;
}

.pricing-card h3 {
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
    padding: 8px 16px;
    background: rgba(26, 30, 69, 0.07);
    border-radius: 50px;
}

.pricing-featured .price {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.pricing-card ul {
    list-style: none;
    width: 100%;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-card ul li {
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--text-mid);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-featured ul li {
    color: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.pricing-note {
    text-align: center;
    color: var(--text-mid);
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.75;
}


/* ============================================
   SÅDAN FUNGERER DET
   ============================================ */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 48px 24px 36px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(222, 209, 133, 0.5);
}

/* Trin 2: navy, trin 3: grøn */
.step:nth-child(3) .step-number {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 30, 69, 0.35);
}

.step:nth-child(5) .step-number {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(63, 112, 77, 0.4);
}

.step-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
    line-height: 1;
}

.step h3 {
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent-dark);
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
    opacity: 0.8;
    margin-top: 16px;
}


/* ============================================
   KONTAKT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-method,
.contact-area {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.contact-method:hover {
    transform: translateX(5px);
    border-left-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.contact-area {
    cursor: default;
    border-left-color: var(--green);
}

.contact-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
    line-height: 1;
}

.contact-method strong,
.contact-area strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method span,
.contact-area span {
    font-size: 0.85rem;
    color: var(--text-mid);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-family: 'Avenir Next Condensed', 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row .form-group {
    margin-bottom: 0;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #C8CADE;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    color: var(--text-dark);
    background: #FAFAF5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #9090B0;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 30, 69, 0.10);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-mid);
    opacity: 0.65;
    margin-top: 10px;
    text-align: center;
}


/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 52px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 46px;
    width: auto;
}

.footer-brand p {
    font-size: 0.88rem;
    opacity: 0.65;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.45;
}


/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE – TABLET (≤ 960px)
   ============================================ */
@media (max-width: 960px) {
    .cards-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-5px);
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 480px;
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

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

    h2 {
        font-size: 1.75rem;
    }
}


/* ============================================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px 24px;
        gap: 14px;
        display: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .nav-links a {
        display: block;
        padding: 8px 0;
        font-size: 1rem;
    }

    .nav-cta {
        display: inline-block !important;
        width: auto !important;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

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

    section {
        padding: 64px 0;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 14px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-links {
        gap: 16px;
    }
}


/* ============================================
   RESPONSIVE – SMALL MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 24px 16px;
    }
}
