/* ============================================
   GULVSLIPEREN.NO – Main CSS
   Fargeskjema: Antrasitt + Eikebrun + Off-white
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #2C2C2C;
  --color-accent: #5A7A5E;
  --color-accent-light: #6E9472;
  --color-accent-dark: #445D47;
  --color-bg: #F8F6F2;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-white: #FFFFFF;
  --color-card: #FFFFFF;
  --color-border: #E5E1D8;

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --max-width: 1200px;
  --padding-x: 1.5rem;
  --padding-x-lg: 2rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background: #3d3d3d;
  border-color: #3d3d3d;
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--color-white);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
}

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

.header__cta {
  display: none;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.header__mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.header__mobile-nav.open {
  display: flex;
}

.header__mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  transition: color var(--transition);
}

.header__mobile-nav-link:hover {
  color: var(--color-accent-light);
}

.header__mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Hero Section --- */
.hero {
  background: var(--color-white);
  padding: 7rem 0 3rem;
}

.hero__text {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero__title {
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: none;
  padding-left: 0;
  font-weight: 500;
  font-size: 1rem;
}

.btn--ghost:hover {
  color: var(--color-accent);
}

.hero__image-wrap {
  width: 100%;
}

.hero__image {
  width: 100%;
  height: 55vh;
  min-height: 340px;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
}

/* --- Section --- */
.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2, .section--dark h3 {
  color: var(--color-white);
}

.section--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.section--accent h2, .section--accent h3 {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section--dark .section__label {
  color: var(--color-accent-light);
}

.section__title {
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section__desc {
  color: rgba(255,255,255,0.75);
}

/* --- Trust Badges --- */
.badges {
  background: var(--color-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.badges__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge__icon {
  font-size: 1.75rem;
}

.badge__text {
  display: flex;
  flex-direction: column;
}

.badge__number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.badge__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Services Grid --- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card__title {
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.service-card__link:hover {
  gap: 0.6rem;
}

/* --- Process Steps --- */
.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.process-step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__content {}

.process-step__title {
  margin-bottom: 0.5rem;
}

.process-step__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Gallery / Before-After --- */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8b89a, #a08060);
  color: white;
  gap: 0.5rem;
}

.gallery-placeholder__icon {
  font-size: 3rem;
  opacity: 0.6;
}

.gallery-placeholder__text {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- Testimonials --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial__text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial__location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonial__stars {
  color: #f0a500;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d3530 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner__title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-banner__contact {
  margin-top: 1.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.cta-banner__contact a {
  color: var(--color-accent-light);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: #111111;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer__brand-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer__contact-icon {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer__contact-link {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

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

.footer__cert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.footer__cert-icon {
  font-size: 1.5rem;
}

.footer__cert-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.6);
}

.footer__cert-text strong {
  color: rgba(255,255,255,0.85);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-link {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer__bottom-link:hover {
  color: rgba(255,255,255,0.7);
}

/* --- Mobile Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}

.sticky-cta:hover {
  background: var(--color-accent-dark);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }
.fade-in--delay-4 { transition-delay: 0.4s; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d3530 100%);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero__label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.page-hero__title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: #c0392b;
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #2e7d32;
  display: none;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb__link {
  color: var(--color-accent);
  transition: color var(--transition);
}

.breadcrumb__link:hover {
  color: var(--color-accent-dark);
}

.breadcrumb__sep {
  opacity: 0.4;
}

/* --- Tag/Badge chips --- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.tag--accent {
  background: rgba(139, 105, 20, 0.12);
  color: var(--color-accent-dark);
  border-color: rgba(139, 105, 20, 0.25);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
