/* =============================================
   GULLSMED METTE HØINES HARBO — STILARK
   ============================================= */

:root {
    --gold:        #C4974A;
    --gold-light:  #D9B97A;
    --gold-dark:   #8B6520;
    --dark:        #1A1612;
    --dark-warm:   #2A2319;
    --cream:       #F8F4EC;
    --cream-dark:  #EDE6D6;
    --text:        #3A3128;
    --text-light:  #6B5E4E;
    --white:       #FFFFFF;

    --font-script:  'Pinyon Script', 'Cochin', cursive;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

    --header-h: 80px;
    --max-w:    1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(26, 22, 18, 0.97);
    border-bottom: 1px solid rgba(196, 151, 74, 0.3);
    backdrop-filter: blur(6px);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-wrap { flex-shrink: 0; }

.logo-img {
    height: 58px;
    width: auto;
    /* mix-blend-mode: screen gjør de mørke delene gjennomsiktige mot mørk header,
       og lar gullmonogrammet lyse gjennom. For perfekt resultat: bruk PNG med
       gjennomsiktig bakgrunn. */
    mix-blend-mode: screen;
    filter: brightness(1.15);
}

.main-nav ul { list-style: none; display: flex; gap: 2.2rem; }
.main-nav a {
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('bilder/IMG_1109.JPG');
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 8, 6, 0.60) 0%,
        rgba(10, 8, 6, 0.50) 50%,
        rgba(10, 8, 6, 0.72) 100%
    );
}

/* NGF-logo i øvre høyre hjørne */
.hero-ngf {
    position: absolute;
    top: calc(var(--header-h) + 1.5rem);
    right: 2.5rem;
    z-index: 2;
    width: 140px;
}
.hero-ngf img {
    width: 100%;
    /* Konverterer den svarte/hvite logoen til gulltoner */
    filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.4);
    mix-blend-mode: screen;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 3rem) 2rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    max-width: 760px;
}

/* Stor logo i hero */
.hero-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    /* Screen-blend gjør svart gjennomsiktig, gull lyser gjennom */
    mix-blend-mode: screen;
    filter: brightness(1.2);
    margin-bottom: 0.4rem;
}

/* Navn med script-font */
.hero-name {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    max-width: 520px;
    line-height: 1.7;
}

/* Delikat ornamentert skillelinje */
.hero-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    margin: 0.2rem 0;
}
.div-line {
    display: block;
    width: 70px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.div-ornament {
    font-size: 0.55rem;
    color: var(--gold-light);
    transform: rotate(45deg);
    display: block;
}

.hero-sub {
    color: var(--cream-dark);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* --- KNAPPER --- */
.btn-gold {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.85rem 2.4rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.btn-gold:hover { background: var(--gold); color: var(--dark); }
.btn-gold.full-width { width: 100%; text-align: center; }

/* --- HÅNDVERKSBANNER --- */
.craft-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.craft-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    display: block;
}
.craft-banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2.5rem;
    background: linear-gradient(to top, rgba(10,8,6,0.55) 0%, transparent 60%);
}
.craft-banner-text span {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* --- SEKSJONER --- */
.section { padding: 6rem 0; }
.section-dark { background: var(--dark-warm); }
.section-cream { background: var(--cream-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.section-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.section-label.light { color: var(--gold-light); }

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}
h2.light { color: var(--cream); }

h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.7rem;
}

.gold-line {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 1.2rem 0 1.8rem;
}
.gold-line.center { margin: 1.2rem auto 2.5rem; }

p { color: var(--text); margin-bottom: 1rem; font-size: 0.97rem; }
.section-dark p { color: rgba(248, 244, 236, 0.8); }
.section-dark h3 { color: var(--cream); }

.intro-text {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
}

/* --- OM MEG --- */
.col-text p strong { color: var(--gold-dark); }

.om-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    margin-bottom: 1rem;
}
.om-intro p { margin: 0; flex: 1; }

.portrait-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.craft-photo {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: 580px;
}

/* --- TJENESTER --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(196,151,74,0.25);
    transition: border-color 0.25s, background 0.25s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    border-color: rgba(196,151,74,0.6);
    background: rgba(255,255,255,0.07);
}

/* Taksering-kortet med bilde øverst */
.service-card--featured {
    grid-row: span 1;
}
.service-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.service-card--featured:hover .service-card-img img {
    transform: scale(1.03);
}
.service-card-body {
    padding: 2rem 2rem 2.5rem;
    flex: 1;
}

/* Kort uten bilde har standard padding */
.service-card:not(.service-card--featured) {
    padding: 2.5rem 2rem;
}

.service-icon {
    font-size: 0.6rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.3em;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(196,151,74,0.2);
}
.service-card ul li {
    font-size: 0.85rem;
    color: rgba(248, 244, 236, 0.6);
    padding: 0.25rem 0;
}
.service-card ul li::before {
    content: '— ';
    color: var(--gold);
    opacity: 0.7;
}

/* --- SERTIFISERINGER --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.cert-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(196,151,74,0.1);
}

.cert-card img {
    height: 90px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 1rem;
    object-fit: contain;
    /* multiply gjør hvit bakgrunn gjennomsiktig på lys bakgrunn */
    mix-blend-mode: multiply;
}

.cert-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
}

/* Sentrer ensomt kort på siste rad i 3-kolonners grid */
.cert-grid .cert-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

/* --- SITATBOKS --- */
.quote-section {
    background: var(--gold-dark);
    padding: 5rem 0;
    text-align: center;
}

blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-style: italic;
    font-weight: 300;
    color: var(--cream);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

.quote-mark {
    font-size: 4rem;
    color: rgba(248,244,236,0.2);
    font-style: normal;
    line-height: 0;
    vertical-align: -0.5rem;
    margin-right: 0.2rem;
}

.quote-attr {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(248,244,236,0.6);
    margin-top: 1.8rem;
}

/* --- KONTAKT --- */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.contact-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 0.92rem;
    flex-wrap: wrap;
}
.contact-icon { color: var(--gold); font-size: 0.85rem; flex-shrink: 0; }
.contact-item em {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    width: 100%;
    padding-left: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid rgba(196,151,74,0.2);
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(196,151,74,0.3);
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(196,151,74,0.2);
}
.footer-inner { display: flex; align-items: center; gap: 2rem; }

.footer-monogram {
    height: 80px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);
    opacity: 0.8;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 0.2rem;
}
.footer-text p {
    color: rgba(248,244,236,0.5);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.9;
}
.footer-small { margin-top: 0.5rem !important; font-size: 0.72rem !important; opacity: 0.6; }

/* =============================================
   RESPONSIV
   ============================================= */

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .two-col.reverse { direction: ltr; }
    .hero-ngf { width: 110px; right: 1.5rem; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(26,22,18,0.98);
        padding: 1.5rem 2rem 2rem;
        border-bottom: 1px solid rgba(196,151,74,0.3);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.2rem; }
    .main-nav a { font-size: 1rem; }
    .nav-toggle { display: block; }

    .logo-img { height: 44px; }
    .hero-logo { width: 220px; height: 220px; }
    .hero-name { font-size: 2.2rem; }
    .hero-ngf { width: 80px; top: calc(var(--header-h) + 1rem); right: 1rem; }

    .section { padding: 4rem 0; }
    .craft-banner { height: 260px; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form { padding: 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-monogram { height: 60px; }
}
