/*
Theme Name: Teakservice
Description: Enkelt, skreddersydd tema for Teakservice — spesialister på rens og restaurering av teakdekk.
Author: Teakservice
Version: 1.0
*/

:root{
  --navy: #101f38;
  --navy-dark: #0a1526;
  --navy-mid: #16294a;
  --gold: #c9a35c;
  --gold-light: #e0c48a;
  --btn-green: #3f7554;
  --btn-green-light: #5b9873;
  --cream: #f4efe4;
  --white: #ffffff;
  --text: #1c2530;
  --text-light: #5a6472;
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3{ font-weight: 800; letter-spacing: -0.01em; margin: 0 0 16px; }
p{ margin: 0 0 16px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-gold{
  background: var(--btn-green);
  color: var(--white);
}
.btn-gold:hover{ background: var(--btn-green-light); transform: translateY(-2px); }
.btn-outline{
  background: transparent;
  border-color: var(--btn-green);
  color: var(--btn-green-light);
}
.btn-outline:hover{ background: rgba(63,117,84,0.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.avdelinger-bar{
  background: var(--navy);
  border-bottom: 1px solid rgba(201,163,92,0.15);
}
.avdelinger-bar .container{
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
  padding-bottom: 6px;
}
.avdelinger-bar .avdelinger-velger{
  color: var(--white);
  font-size: 0.85rem;
}
.avdelinger-bar .avdelinger-velger select,
.avdelinger-bar .avdelinger-velger button{
  padding: 4px 10px;
  font-size: 0.85rem;
}

.site-header{
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201,163,92,0.2);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo svg{ flex-shrink: 0; }
.logo .accent{ color: var(--gold); }
.logo .avdelinger-logo{ height: auto; max-height: 40px; width: auto; max-width: 220px; }

.primary-nav ul{
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.primary-nav a{
  display: inline-block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a{
  background: rgba(201,163,92,0.15);
  color: var(--gold-light);
}

.nav-toggle{ display: none; }
.nav-toggle-label{
  display: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px){
  .nav-toggle-label{ display: block; }
  .primary-nav{
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav ul{ flex-direction: column; padding: 8px 24px 16px; gap: 4px; }
  .nav-toggle:checked ~ .primary-nav{ max-height: 300px; }
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow{
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1{
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
}
.hero p.lead{
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}
.hero-actions{ display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(201,163,92,0.25);
}
.hero-visual img{ width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 420px; margin: 0 auto; }
}

/* ---------- Page header band (inner pages) ---------- */
.page-band{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-band h1{ color: var(--white); margin-bottom: 8px; }
.page-band p{ color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- Sections ---------- */
section{ padding: 80px 0; }
.section-cream{ background: var(--cream); }
.section-navy{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.section-navy h2{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,0.75); }

.section-head{ text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker{
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- USP grid ---------- */
.usp-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.usp-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(16,31,56,0.06);
  border: 1px solid rgba(16,31,56,0.06);
}
.usp-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(201,163,92,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.usp-card h3{ font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.usp-card p{ font-size: 0.92rem; color: var(--text-light); margin: 0; }

@media (max-width: 900px){ .usp-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .usp-grid{ grid-template-columns: 1fr; } }

/* ---------- Before/After ---------- */
.before-after{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.before-after img{
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(16,31,56,0.15);
}
.before-after p{ max-width: 60ch; margin-top: 28px; color: var(--text-light); }

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gallery-item{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(16,31,56,0.1);
  position: relative;
}
.gallery-item img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-caption{
  padding: 16px 18px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
@media (max-width: 700px){ .gallery-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  text-align: center;
}
.cta-band h2{ color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p{ color: rgba(255,255,255,0.75); max-width: 50ch; margin: 0 auto 28px; }

/* ---------- Content page (Om oss) ---------- */
.content-page{ padding: 72px 0; }
.content-page .container{
  max-width: 780px;
}
.content-page h2{ color: var(--navy); margin-top: 40px; }
.content-page p{ color: var(--text); font-size: 1.02rem; }
.content-page ul{ padding-left: 1.3em; margin: 0 0 20px; color: var(--text); font-size: 1.02rem; }
.content-page ul li{ margin-bottom: 10px; }
.content-page ul li::marker{ color: var(--gold); }
.pull-card{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(16,31,56,0.15);
  max-width: 360px;
  margin: 0 auto 40px;
}
.about-photo{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(16,31,56,0.1);
  margin: 28px 0;
  max-width: 420px;
}
.check-list{ list-style: none; margin: 24px 0; padding: 0; }
.check-list li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 1.02rem;
}
.check-list svg{ flex-shrink: 0; margin-top: 3px; color: var(--gold); }

/* ---------- Contact form ---------- */
.contact-wrap{
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  gap: 32px;
}
.form-notice{
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 600;
}
.form-notice.success{ background: #e3f3e6; color: #256b35; }
.form-notice.error{ background: #fbe6e6; color: #a52a2a; }

.contact-form label{
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #dcd6c9;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 20px;
  background: var(--white);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea{ min-height: 140px; resize: vertical; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 28px;
  text-align: center;
}
.site-footer .logo{ justify-content: center; margin-bottom: 14px; }
.footer-nav{ display: flex; justify-content: center; gap: 20px; margin: 18px 0; flex-wrap: wrap; }
.footer-nav a{ color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-nav a:hover{ color: var(--gold-light); }
.footer-tag{ font-size: 0.9rem; margin-bottom: 4px; }
.footer-copy{ font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 18px; }
