/* --- FONTER --- */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/cormorant-garamond-v16-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/cormorant-garamond-v16-latin-600.woff2') format('woff2');
}

/* --- GLOBAL STYLING (THE BLACKOUT) --- */
* {
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a; /* Det dype, luksuriøse svarte lerretet */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased; /* Gjør hvit skrift på sort bakgrunn ekstra skarp */
}


/* --- TRANSPARENT HEADER --- */
.header-element {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    top: 0;
    left: 0;
    height: 130px;
    width: 100%;
    padding: 0 50px;
    background-color: transparent; /* Fullstendig vektløs over bildet */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
.header-element.scrolled {
    height: 70px; /* Shrinks the header height slightly for a compact look */
    background-color: rgba(15, 15, 15, 0.95); /* Hardens to an almost solid, darker black */
    
    /* Frosted glass effect (very popular in professional premium web design) */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    /* Sharp drop shadow to separate it from the content moving underneath */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center; 
    gap: 24px; 
}

.logo img {
    height: 112px; 
    width: auto;  
    object-fit: contain;
}

.logo h1 {
    font-size: 26px;
    color: #ffffff; 
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px; 
    white-space: nowrap; 
}
.contact-mobile-visible{
        display: block;
        font-size: 20px;
        font-family: 'Cormorant Garamond', serif;
        color: #ebd197; /* Gullkantet knapp på mobil */
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
         
        padding: 6px 12px;
        border-radius: 4px;
        position: relative;
        padding-bottom: 12px;
}

.contact-mobile-visible::after {
    content: '';
    position: absolute;
    left: 0;
    
    /* 3. CONTROL THE OFFSET: Increase this negative number to push it down further */
    bottom: -8px; 
    
    width: 100%;
    height: 1px;  /* Base height */
    background-color: #ebd197; /* Matches your gold text */
    
    /* 4. THE SUB-PIXEL THINNESS */
    transform: scaleY(0.5); 
    transform-origin: bottom;
    
    /* Hide by default */
    opacity: 0; 
    transition: opacity 0.2s ease-in-out;
}

.contact-mobile-visible:hover::after{
    opacity: 1;
    /* text-decoration: underline; */
    /* text-decoration-color: #ebd197; The specific color for the underline */
  
  /* Optional but recommended: Better styling control */
  /* text-decoration-thickness: 0.02px; 
  text-underline-offset: 10px; */
}

a.custom-link {
  text-decoration: none;
  color: #333333;
  position: relative; /* Crucial: anchors the fake underline to the link */
 padding-bottom: 6px;
}

/* 2. Create the fake, ultra-thin underline */
a.custom-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px; /* Controls your underline offset */
  width: 100%;
  height: 1px;  /* Start at 1px */
  background-color: #ebd197; /* The specific underline color */
  
  /* THE MAGIC: Scale the 1px line down to 0.5px */
  transform: scaleY(0.5); 
  transform-origin: bottom;
  
  /* Hide it by default, ready for hover */
  opacity: 0; 
  transition: opacity 0.2s ease-in-out;
}

/* 3. Hover state: Fade the ultra-thin line in */
a.custom-link:hover::after {
  opacity: 1;
}


.navigation ul {
    list-style-type: none;
    display: flex;
    gap: 25px;
}

.navigation ul li a {
    font-size: 14px;
    color: #ffffff; 
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 10px 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navigation ul li a:hover {
    color: #ebd197; /* Premium gullfarge ved hover */
    border-bottom: 1px solid #ebd197;
}

/* --- HERO BANNER (MED BAKGRUNNSBILDE) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh; /* Lar luksusbildet ta opp nesten hele skjermen ved første øyekast */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Referanse til din valgte bildefil */
    background-image: url('bilder/andrew.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Det mørke sløret som fader bildet over i den svarte bodyen */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Toppen har et lett mørkt slør, mens bunnen fader 100% over i kroppens #0a0a0a */
    background: linear-gradient(to bottom, 
        rgba(10, 10, 10, 0.4) 0%,     /* Subtle dark tint at the top for header readability */
        rgba(10, 10, 10, 0) 40%,      /* Completely clear over the middle of the picture */
        rgba(10, 10, 10, 0.4) 65%,    /* Starts gently fading to black earlier */
        rgba(10, 10, 10, 0.85) 85%,   /* Getting much darker */
        rgba(10, 10, 10, 1) 100%
    );
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust height to control how deep the blur goes */
    background: #0a0a0a;
    filter: blur(20px);
    transform: translateY(50%); /* Centers the blur directly on the dividing line */
    z-index: 2;
    pointer-events: none; /* Keeps it from blocking clicks */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 37px;
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ebd197; /* Luksuriøst gull */
    font-weight: 600;
    display: block;
    margin-bottom: 18px;
}

.hero-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-content p {
    font-size: 19px;
    line-height: 1.6;
    color: #cccccc; /* Litt dempet hvit for behagelig lesing */
    max-width: 640px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

/* Luksuriøs knapp: Svart tekst på gullbakgrunn */
.hero-btn {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #0a0a0a;
    background-color: #ebd197; 
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(235, 209, 151, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
    background-color: #ffffff; /* Knappen blir hvit når du holder over den */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* --- DET HELSVARTE INNHOLDET UNDER BILDET --- */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
    background-color: #0a0a0a; /* Sikrer at det forblir kullsvart */
}

.main-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.main-content p {
    color: #999999;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 300;
}

/* --- MAIN CONTENT ENHANCEMENTS --- */

/* Replaces the <br> tags with controlled, responsive spacing */
.text-block {
    margin-bottom: 50px;
}

/* Enhances the empty <h2> you had */
.text-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px; /* Slightly larger for impact */
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
}

.text-block p {
    color: #cccccc; /* Soft grey for readable body text */
    font-size: 18px;
    line-height: 1.8;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto; /* Centers the text block perfectly */
}

/* An elegant, thin gold divider to separate your thoughts */
.luxury-divider {
    border: none;
    height: 1px;
    background-color: #ebd197;
    width: 60px;
    margin: 0 auto 50px auto;
    opacity: 0.8; /* Raised opacity slightly */
    box-shadow: 0 0 10px rgba(235, 209, 151, 0.5), /* Inner tight glow */
                0 0 25px rgba(235, 209, 151, 0.2); /* Outer ambient glow */
}

/* Call to action specific spacing */
.cta-block p {
    margin-bottom: 30px;
    font-size: 20px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; /* Gives the question a softer, inviting feel */
}

/* Re-using your excellent hero-btn class, just ensuring it fits well here */
.cta-block .hero-btn {
    font-size: 14px;
    padding: 16px 45px;
}


/* Ensure the contact section can hold the absolute positioned glow */
.contact-section {
    max-width: 600px;
    margin: 80px auto 0 auto;
    padding: 0 20px;
    position: relative; 
    
    /* THE FIX: Traps the z-index so it doesn't hide behind the black body */
    isolation: isolate; 
}

/* The Ambient Molten Glow */
.contact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%; 
    height: 150%;
    
    /* THE FIX: Increased the alpha channel from 0.04 to 0.15 for a visible glow */
    background: radial-gradient(circle, rgba(235, 209, 151, 0.05) 0%, rgba(10, 10, 10, 0) 70%);
    
    filter: blur(50px); 
    pointer-events: none; 
    z-index: -1; 
}


.luxury-form{
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 40px;
}
.form-group{
    position: relative;
    width: 100%;
}
.luxury-form input, .luxury-form textarea{
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}
.luxury-form input:focus,
.luxury-form textarea:focus {
    border-bottom: 1px solid #ebd197;
}
.form-group label{
    position: absolute;
    left: 0;
    top: 12px;
    color: #999999;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    pointer-events: none;
    transition: all 0.3s ease;
}

.luxury-form input:focus ~ label,
.luxury-form input:not(:placeholder-shown) ~ label,
.luxury-form textarea:focus ~ label,
.luxury-form textarea:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 12px;
    color: #ebd197;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.luxury-form textarea {
    resize: vertical; /* Allows vertical resizing only */
}
.submit-btn {
    border: none;
    cursor: pointer;
    align-self: center; /* Centers the button */
    margin-top: 15px;
}

/* --- TJENESTER / SERVICES GRID --- */
.services-section, 
.process-section, 
.portfolio-section {
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    /* This automatically creates columns that fit the screen, down to 250px wide */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: rgba(255, 255, 255, 0.02); /* Very subtle transparent grey/white box */
    border: 1px solid rgba(235, 209, 151, 0.1); /* Faint gold border */
    padding: 40px 30px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.4s ease;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(235, 209, 151, 0.5); /* Border glows gold on hover */
    transform: translateY(-5px); /* Floating effect */
}

.service-box i {
    color: #ebd197; /* Gold icons */
    font-size: 36px;
    margin-bottom: 20px;
}

.service-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #aaaaaa;
}

/* --- PROSESSEN / PROCESS STEPS --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    text-align: left; /* Left align looks more like a structured process */
}

.step {
    flex: 1;
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    padding: 35px 30px;
    border-top: 2px solid #ebd197; /* Gold line on top representing the timeline */
    overflow: hidden;
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    color: rgba(235, 209, 151, 0.15); /* Large, faded gold number in the background */
    position: absolute;
    top: -10px;
    right: 5px;
    font-weight: 600;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    padding-top: 5px;
}

.step h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2; /* Keeps text above the faded number */
    padding-right: 50px;
    
}

.step p {
    font-size: 15px;
    line-height: 1.7;
    color: #aaaaaa;
    position: relative;
    z-index: 2;
    padding-right: 50px;
}

/* --- PORTFOLIO / PREVIOUS WORK --- */
.portfolio-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-left: 3px solid #ebd197;
    padding: 40px;
    text-align: left;
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateX(5px); /* Slides slightly to the right on hover */
}

.portfolio-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.portfolio-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin: 0;
}

/* --- MOBILSTYLING (OPPDATERING FOR NYE ELEMENTER) --- */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column; /* Stacks the process steps on mobile */
        gap: 20px;
    }
    
    .step {
        border-top: none;
        border-left: 2px solid #ebd197; /* Changes timeline line to the left side on mobile */
        padding: 25px 20px;
    }
    
    .portfolio-item {
        padding: 25px 20px;
    }
}

/* --- MOBILSTYLING (TRANSPARENT OG MØRK) --- */
@media (max-width: 768px) {
    .header-element {
        height: 80px; 
        padding: 0 20px;
    }

    .logo img { height: 55px; }
    .logo h1 { font-size: 14px; letter-spacing: 1px; }

    .contact-mobile-visible {
        display: block;
        font-size: 12px;
        color: #ebd197; /* Gullkantet knapp på mobil */
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        border: 1px solid #ebd197; 
        padding: 6px 12px;
        border-radius: 4px;
    }

    

    .hero-section { height: 80vh; }
    .hero-content h2 { font-size: 36px; }
    .hero-content p { font-size: 15px; }
    .hero-btn { padding: 14px 30px; }
}