/* ==========================================================
   Familien Helgeland – felles stilark
   Ligger i .themes/style.css
   Bilder refereres relativt til denne filen (../images/)
   ========================================================== */

/* ---------- Grunnoppsett ---------- */
body {
    margin: 0;
    padding: 0;
    background-image: url('../images/background_slate.gif');
    background-position: left top;
    background-repeat: repeat;
    background-attachment: scroll;
    background-color: #212121;
    color: #fff;
    font-family: "Roboto", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---------- Header ---------- */
header.site-header {
    background-color: rgba(33, 33, 33, 0.70);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
}

.site-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.8rem;
    letter-spacing: 2.5px;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0;
    margin-left: 40px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Hovedinnhold ---------- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background-color: #0a0a0a;
    width: 100%;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #999999;
}

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

.footer-link a {
    color: #999999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: #ffffff;
}

/* ==========================================================
   Forside (body.page-home)
   ========================================================== */
body.page-home main {
    padding: 40px 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    background: transparent;
}

.slide {
    display: none;
    position: relative;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

/* ==========================================================
   Kontaktside (body.page-contact)
   ========================================================== */
.contact-container {
    max-width: 700px;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    padding: 45px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #111;
    font-size: 1rem;
    border-radius: 2px;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

.form-group textarea {
    height: 160px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.turnstile-box {
    margin-bottom: 25px;
}

button.submit-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: "Roboto", sans-serif;
}

button.submit-btn:hover {
    background-color: rgba(0, 115, 170, 0.8);
}

#form-status {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================
   Personvernside (body.page-privacy)
   ========================================================== */
body.page-privacy {
    color: #ddd;
}

body.page-privacy main {
    align-items: stretch;
}

.privacy-content {
    max-width: 900px;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.7;
}

.privacy-content h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 400;
}

.privacy-content .updated {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 30px;
    font-style: italic;
}

.privacy-content h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 20px;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-content a {
    color: #7ab8e6;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Responsivt
   ========================================================== */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .contact-container {
        padding: 25px;
    }

    .privacy-content {
        padding: 25px;
    }
}
