/* =============================================
   N&M Vaktmesterservice AS – Design A
   ============================================= */

:root {
  --green: #2d6a3f;
  --green-light: #3d8b52;
  --green-pale: #e8f2eb;
  --green-dark: #1e4a2c;
  --black: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-300: #d4d0cb;
  --gray-100: #f5f3f0;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-light);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--black);
  flex-shrink: 0;
}

.header__logo:hover {
  color: var(--black);
}

.header__logo-mark {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translateY(-2px);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 54px;
  line-height: 1.1;
  gap: 0.15rem;
}

.header__logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header__logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.header__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.header__links a {
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
}

.header__links a:hover {
  color: var(--green);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--green-light);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--gray-100) 55%, var(--white) 100%);
  padding: 4rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232d6a3f' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M0 90 Q30 70 60 90 T120 90'/%3E%3Cpath d='M0 105 Q30 85 60 105 T120 105'/%3E%3Cpath d='M20 40h15v35H20zM55 25h20v50H55zM85 35h15v40H85z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1rem;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}

.hero__trust svg {
  flex-shrink: 0;
  color: var(--green);
}

.hero__highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(45, 106, 63, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  color: var(--green);
}

.hero-card__stat {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.hero-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.hero-card__text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
}

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

.section--alt {
  background: var(--gray-100);
}

.section__header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.section__intro {
  font-size: 1.1rem;
  color: var(--gray-700);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.service-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--green-light);
  transform: translateY(-2px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  color: var(--green);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.about__list {
  list-style: none;
  margin-top: 1.5rem;
}

.about__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.timeline {
  position: relative;
  padding-left: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--green-light));
  opacity: 0.35;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 3.05rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 50%;
  z-index: 1;
}

.timeline__item--current::before {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-pale);
}

.timeline__year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.3;
  padding-top: 0.15rem;
}

.timeline__content {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.timeline__item--current .timeline__content {
  border-color: rgba(45, 106, 63, 0.35);
  box-shadow: var(--shadow);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.timeline__content p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Area */
.area-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--green-pale);
  border: 1px solid rgba(45, 106, 63, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  color: var(--green-dark);
}

.area-box p {
  font-size: 1.1rem;
}

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

.contact__intro {
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--black);
  font-weight: 500;
}

.contact__item:hover {
  color: var(--green);
}

.contact__item svg {
  flex-shrink: 0;
  color: var(--green);
}

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 63, 0.15);
}

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

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

.form-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
}

.form-note--success {
  color: var(--green);
  font-weight: 600;
}

.form-note--error {
  color: #b42318;
  font-weight: 600;
}

.form-consent {
  margin-bottom: 1.25rem;
}

.form-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
  cursor: pointer;
}

.form-consent__label input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--green);
}

.form-consent__label a {
  font-weight: 600;
}

/* Legal pages */
.legal {
  padding: 3rem 0 5rem;
}

.legal__inner {
  max-width: 720px;
}

.legal__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal__section {
  margin-bottom: 2rem;
}

.legal__section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.legal__section p {
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.legal__list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.legal__list li {
  margin-bottom: 0.35rem;
}

.legal__back {
  margin-top: 2.5rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 1.25rem;
}

.footer__logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.footer__logo-tagline {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer__info p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  opacity: 0.75;
}

.footer__legal-note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
}

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

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

/* Mobile menu open state */
.header--open .header__menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header--open .header__menu-btn span:nth-child(2) {
  opacity: 0;
}

.header--open .header__menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__highlights {
    max-width: 420px;
    margin: 0 auto;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline::before {
    left: 2.85rem;
  }

  .timeline__item {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
  }

  .timeline__item::before {
    left: 2.65rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .header__menu-btn {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .header--open .header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .header__phone {
    font-size: 1.1rem;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
