/* GENERELT */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #3A3A3A;
    background-color: #FFFFFF;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    letter-spacing: 1px;
    margin-top: 0;
}

a {
    color: inherit;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 8px 0 4px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    height: 70px;
    margin-bottom: 4px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: #3A3A3A;
    font-weight: 500;
    padding: 4px 6px;
}

nav a,
.dropdown {
    display: inline-flex;
    align-items: center;
}

nav a:hover {
    text-decoration: underline;
}

/* DROPDOWN FOR BRUDEKJOLER */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255,255,255,0.95);
    min-width: 140px;
    text-align: left;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dropdown-content a {
    display: block;
    padding: 6px 12px;
    text-transform: none;
}

.dropdown-content a:hover {
    background-color: #F7F4EF;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* HERO / TOPPBILDER */

.hero {
    height: 50vh;
    background-size: cover;
    background-position: bottom;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px; /* plass til header */
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.9));
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: rgba(255,255,255,0.6);
    padding: 20px 30px;
    border-radius: 4px;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero p {
    margin: 0;
}

/* KNAPP */

.button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #D8CFC4;
    color: #3A3A3A;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.button:hover {
    background: #C7BBAE;
}

/* INNHOLDSSEKSJONER */

.content {
    padding: 80px 20px 60px; /* plass til header */
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.content h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.content p {
    line-height: 1.6;
}

.om-tekst {
    text-align: left;
}

.om-tekst h3:nth-of-type(2) {
    margin-top: 50px; /* juster tallet etter smak */
}


/* KJOLE-BLOKKER */

.kjole {
    margin-bottom: 40px;
    border-top: 1px solid #F0ECE6;
    padding-top: 20px;
    text-align: center;
}

.kjole h3 a {
    text-decoration: none;
}

.kjole h3 a:hover {
    text-decoration: underline;
}

.kjole-bilde {
    width: 100%;
    max-width: 400px;   /* gjør bildet middels stort */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    margin: 0 auto 20px; /* sentrerer bildet og gir luft under */
    border-radius: 4px;
    object-fit: cover;
}

.kjole-bilde:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* GALLERI GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.kjole-galleri {
    display: grid;
    grid-template-columns: 1fr; /* én kolonne */
    gap: 20px;
    max-width: 700px;
    margin: 0 auto; /* midtstiller bildene */
}

.kjole-galleri img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.kjole-galleri {
    margin-top: 70px;
}

/* PROFILBILDE */

.profil {
    width: 220px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
}

/* KONTAKT / KART */

.kontakt-section {
    text-align: center;
}

.kontakt-info p {
    margin: 4px 0;
}

.kart {
    margin-top: 20px;
    border: 1px solid #E0D8CF;
    overflow: hidden;
    border-radius: 4px;
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 75%;
    margin-bottom: 10px;
}

.lightbox p {
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

/* INSTAGRAM-link */
.instagram-link {
    text-align: center;
    margin-top: 20px;
}

.instagram-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 3px;
    fill: #000; /* svart ikon, samme stil som eksempelet */
}

.insta-username {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.insta-username:hover {
    text-decoration: underline;
}


/* RESPONSIVITET */

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .hero {
        height: 70vh;
        background-attachment: scroll; /* bedre på mobil */
    }

    .hero-text {
        margin: 0 15px;
        padding: 16px 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo {
        height: 40px;
    }

    nav {
        font-size: 12px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content {
        padding-top: 100px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: 80px;   /* mindre luft over hero-tekst */
        height: 55vh;        /* gjør hero litt lavere */
    }

    .content {
        padding-top: 40px;   /* mindre luft mellom hero og innhold */
    }
}


.modeller-tittel {
    text-align: center;
}

/* FOOTER */

.footer {
    display: flex;
    flex-wrap: wrap; /* gjør at det brytes på mobil */
    justify-content: center;
    gap: 20px; /* avstand mellom elementene */
    padding: 20px 10px;
    font-size: 15px;
    color: #000;
    text-align: center;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.instagram-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
    fill: #000;
}

.insta-footer {
    display: flex;
    align-items: center;
    gap: 4px;
}

