/* =============================================
   DØVIKEN HAGE & VANN — style.css
   Hovedstil for nettsiden
   ============================================= */

@import url('fonts.css');
@import url('graphics.css');

:root {
  --green-deep: var(--color-green-dark);
  --green-dark: var(--color-green-dark);
  --green-mid: var(--color-green-mid);
  --green-bright: var(--color-green-mid);
  --green-pale: var(--color-green-pale);
  --water: var(--color-water);
  --water-light: var(--color-water-light);
  --earth: var(--color-earth-mid);
  --earth-light: var(--color-earth-light);
  --cream: var(--color-off-white);
  --white: var(--color-white);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --border: var(--color-border);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(30, 58, 30, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span { color: #7ecb83; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: #7ecb83; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  background: transparent;
  border: 0;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.nav-cta {
  background: var(--green-bright);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #4a8e4f !important; color: var(--white) !important; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg { width: 100%; height: 100%; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,40,20,0.82) 40%, rgba(20,40,20,0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 5% 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7ecb83;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: #7ecb83;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--green-bright);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: #4a8e4f; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  padding: 0.88rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: #7ecb83; background: rgba(126,203,131,0.12); }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: flex-end;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #7ecb83;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

section { padding: 6rem 5%; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

#tjenester { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}

.service-card.green::before  { background: var(--green-bright); }
.service-card.water::before  { background: var(--water); }
.service-card.earth::before  { background: var(--earth); }
.service-card.bright::before { background: #7ecb83; }

.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(44,74,46,0.12); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
}

.service-icon.green  { background: var(--green-pale); }
.service-icon.water  { background: var(--water-light); }
.service-icon.earth  { background: var(--earth-light); }
.service-icon.bright { background: #e8f5e9; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

#om-oss { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-pale);
}

.about-visual svg { width: 100%; height: 100%; }

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  text-align: center;
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #7ecb83;
  line-height: 1;
}

.about-badge span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

.about-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-bright);
  margin-top: 2px;
  position: relative;
}

.about-list li::after {
  content: '✓';
  position: absolute;
  margin-left: 0.15rem;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--green-mid);
  font-weight: 700;
}

#galleri { background: var(--green-deep); }
#galleri .section-eyebrow { color: #7ecb83; }
#galleri .section-title { color: var(--white); }
#galleri .section-desc { color: rgba(255,255,255,0.65); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.featured { grid-column: span 2; }
.gallery-item svg { width: 100%; height: 100%; }

.gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem 0.9rem;
  background: linear-gradient(0deg, rgba(20,40,20,0.85) 0%, transparent 100%);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

#kontakt { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item-text a, .contact-item-text span {
  font-size: 1.05rem;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
}

.contact-item-text a:hover { color: var(--green-bright); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 1.8rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green-bright); }
.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.btn-submit:hover { background: var(--green-dark); transform: translateY(-2px); }

footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2.5rem 5%;
  font-size: 0.88rem;
}

footer strong { color: rgba(255,255,255,0.9); }

.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }
.wave-divider.wave-dark svg { background: #1e3a1e; }
.wave-divider.wave-cream svg { background: #f5f2ec; }
.wave-divider.wave-white svg { background: #ffffff; }

.about-copy {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-copy--spaced {
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.footer-note {
  margin-top: 0.4rem;
}

@media (max-width: 860px) {
  section { padding: 5rem 5%; }
  .hero-content { grid-template-columns: 1fr; padding-top: 7rem; gap: 2rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 140px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.featured { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 1rem 5%; }
  .nav-links { gap: 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 5% 1.4rem;
    background: rgba(30, 58, 30, 0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
  }
  .nav-cta { display: inline-block; width: fit-content; margin-top: 0.25rem; }
  .hero { min-height: auto; }
  .hero-content { padding: 7rem 5% 3rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .hero-stats { flex-direction: column; align-self: stretch; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
  .contact-form { padding: 1.4rem; }
  .contact-item { flex-direction: column; gap: 0.6rem; }
  .contact-item-text a, .contact-item-text span { font-size: 0.98rem; }
  footer { padding: 2rem 5%; }
}

@media (max-width: 540px) {
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-desc { font-size: 1rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section-desc { font-size: 0.98rem; margin-bottom: 2rem; }
  .stat-card { min-width: 100%; }
}
