/* Reset and base styles */

:root {
    --bg-dark: hsl(210, 20%, 15%);
    --text-light: hsl(0, 0%, 98%);
    --text-dark: #0A1A27;
    --accent: #58FF8D;
}

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

h1 {
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.04em;
    word-spacing: 10px;
    font-weight: 400;
}

h2 {
    text-align: center;
    letter-spacing: 1px;
    word-spacing: 2px;
    font-weight: 500;
}

h3 {
    letter-spacing: 1px;
    word-spacing: 2px;
    font-weight: 500;
}

h1, h2, h3 {
    margin: 0;
    font-family: forevs, serif;
    font-style: normal;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-family: 'ibm-plex-sans', sans-serif;
    font-weight: 400;
    font-style: normal;
}

body.js { opacity: 0; }
body.js.loaded { opacity: 1; }

button {
    display: flex;
    padding: 16px 24px;
    font-family: forevs, serif;
    font-weight: 700;
    font-size: 1.25em;
    font-style: normal;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 32px;
    border: 1px solid rgba(100, 217, 135, 0.40);
    background: #AAFFC4;
    word-spacing: 2px;
    color: var(--text-dark);
}

input {

    display: flex;
    width: 440px;
    padding: 12px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    border-radius: 32px;
    border: 1px solid rgba(10, 26, 39, 0.20);
    background: #FFF;
    font-size: 1em;
    font-family: 'ibm-plex-sans', sans-serif;
    font-weight: 400;
    font-style: normal;
}



/* Container */
.container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-image: 
        linear-gradient(rgba(33, 41, 52, 0.7), rgba(33, 41, 52, 0.7)),
        url('_xt/studio-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero-sektion med bakgrundsbild */
.hero {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image:
        linear-gradient(rgba(33, 41, 52, 0.7), rgba(33, 41, 52, 0.7)),
        url('_xt/studio-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Logo */
.logo {
    position: relative;
    margin: 1rem auto 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

.logo svg {
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 4rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.main-content h1 {
    font-size: clamp(1.5rem, -0.7674rem + 9.3023vw, 4.5rem);
    line-height: 1.2;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1rem 0;
}

.main-content p {
    font-size: clamp(1rem, 0.8791rem + 0.4959vw, 1.25rem);
    line-height: 1.5;
    max-width: 48rem;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    padding: 2em 0 1em;
}

.newsletter {
    text-align: center;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(255, 255, 255, 0.2);
    padding: 3em 0 0;
}

.newsletter h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin: .25em auto;
}

.newsletter p {
    font-size: 1rem;
    line-height: 1.5rem;
    margin: .25em auto;
    padding: 0;
}

.newsletter p.small {
    font-size: .75rem;
    line-height: 1.5;
    color: rgba(255,255,255,.5);
}

/* =====================
   SIDFOT
   ===================== */

.footer {
    padding: 3rem 4rem;
    animation: slideUp 1s ease-out 0.4s both;
    background-color: #0A1A27;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Sidfotens logotyp */
.footer-logo {
    margin-bottom: 0.625rem;
}

.footer-logo-svg {
    width: 134px;
    height: auto;
    display: block;
}

/* Adress */
address {
    font-style: normal;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
}

/* Generell länk i sidfoten */
.footer-link {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

/* Kolumnrubrik (t.ex. "Kontakta oss", "Foto") */
.footer-heading {
    font-family: 'ibm-plex-sans', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

/* Kontaktperson-rad */
.footer-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.82);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-person:last-of-type {
    border-bottom: none;
}

/* Ikoner (mejl + telefon) */
.footer-person-links {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.footer-person-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
}

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

/* Fotokreditering */
.footer-photo-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

.footer-photo-text a {
    color: rgba(255,255,255,0.5);
}

.footer-photo-text a:hover {
    text-decoration: none;
}

/* Instagram-ikon (övre högra hörnet av sidfoten) */
.footer-instagram {
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
}

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

/* FORM SUCCESS */

.form-success {
  margin-top: 12px;
  text-align: center;
}

.form-success__title {
    font-family: forevs, serif;
    font-size: 1.25em;
    font-weight: 500;
    margin: 0 0 6px 0;
}

.form-success__text {
  margin: 0;
  opacity: 0.9;
}

/* Mjuk fade-in */

.form-success {
  animation: fadeIn 0.4s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
    .logo {
        top: 2rem;
        left: 2rem;
        transform: scale(.8);
    }
    
    .footer {
        padding: 2rem;
    }
}


@media (max-width: 767px) {

    .logo {
        transform: scale(.6);
    }

    
    .main-content {
        padding: 1rem 1rem 1.5rem;
    }

    .main-content h1 {
        padding: 0 1rem 1rem;
    }
    

    .newsletter {
        padding: 1em 1em 0;
        width: 100%;
    }

    .newsletter h2 {
        font-size: clamp(1.125rem, 0.3314rem + 3.2558vw, 2rem);
    }

    .form {
        flex-direction: column;
        padding: 2em 0 0rem;
    }

    button {
    padding: 16px 24px;
    font-size: 1.125em;
    border-radius: 64px;
    word-spacing: 2px;
    max-height: 4rem;
}

    input {
        padding: 4px 24px;
        border-radius: 64px;
        border: 1px solid rgba(10, 26, 39, 0.20);
        background: #FFF;
        font-size: 1em;
        font-family: 'ibm-plex-sans', sans-serif;
        font-weight: 400;
        font-style: normal;
        max-height: 4rem;
        width: 100%;
    }
    
    .footer {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }

    .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}