:root {
  --navy: #102d35;
  --navy-light: #1c4b54;
  --green: #a9c3a4;
  --cream: #f7f5ef;
  --white: #ffffff;
  --text: #263538;
  --muted: #687777;
  --border: #dfe6e1;
  --accent: #d77b5d;
  --shadow: 0 18px 45px rgba(16, 45, 53, 0.1);
  --radius: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  background: #bd644b;
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 650px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
}

/* Header */

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}

.main-nav a {
  opacity: 0.9;
  transition: 0.2s ease;
}

.main-nav a:hover {
  color: var(--green);
  opacity: 1;
}

.header-button {
  background: var(--white);
  color: var(--navy);
}

.header-button:hover {
  background: var(--green);
  color: var(--navy);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 45, 53, 0.95), rgba(16, 45, 53, 0.66)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=2000&q=85")
    center / cover;
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 130px 0 80px;
}

.hero .eyebrow {
  color: var(--green);
}

.hero h1 {
  color: var(--white);
}

.hero-text {
  max-width: 590px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .button.secondary:hover {
  background: var(--white);
  color: var(--navy);
}

/* Trust strip */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */

.section {
  padding: 110px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-heading p {
  max-width: 430px;
  color: var(--muted);
}

/* Services */

.services {
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.25s ease;
}

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

.service-number {
  margin-bottom: 45px;
  color: var(--accent);
  font-weight: 700;
}

.service-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
}

.service-link::after {
  margin-left: 8px;
  color: var(--accent);
  content: "→";
}

/* About */

.about {
  background: var(--white);
}

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

.about-image {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(16, 45, 53, 0.08), rgba(16, 45, 53, 0.08)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=85")
    center / cover;
}

.about-content p {
  margin: 22px 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 600;
}

.check-list li::before {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  content: "✓";
  font-size: 0.8rem;
  font-weight: 700;
}

/* Quote */

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

.quote {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
}

.quote p {
  margin: 30px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.quote span {
  color: rgba(255, 255, 255, 0.65);
}

/* Contact */

.contact {
  background: var(--green);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.contact-text {
  max-width: 470px;
  margin-top: 20px;
  color: var(--navy-light);
}

.contact-details {
  display: grid;
  gap: 15px;
  margin-top: 30px;
  color: var(--navy);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 125px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--navy);
}

/* Footer */

.site-footer {
  padding: 50px 0 25px;
  background: #0b2228;
  color: rgba(255, 255, 255, 0.72);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--green);
}

.footer-description {
  max-width: 300px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsiv design */

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }

  .trust-inner,
  .service-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    gap: 18px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 18px;
  }

  .about-image {
    min-height: 380px;
  }

  .contact-box {
    gap: 40px;
  }

  .footer-top,
  .footer-bottom {
    display: block;
  }

  .footer-links {
    flex-wrap: wrap;
    margin-top: 25px;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .header-button {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 75px 0;
  }
}
  .contact-form {
    padding: 20px;
  }

  .contact-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(16, 45, 53, 0.1);
  }

  .contact-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
  }

  .logo {
    display: inline-flex;
    align-items: center;
  }

  .logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 48px;
    object-fit: contain;
  }

  .footer-logo {
    display: inline-flex;
    align-items: center;
  }

  .footer-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 48px;
    object-fit: contain;
  }

  .site-header .logo img {
    filter: brightness(0) invert(1);
  }

  .site-footer .footer-logo img {
    filter: brightness(0) invert(1);
  }
/* Vändbara tjänstekort */

.flip-card {
  min-height: 300px;
  padding: 0;
  perspective: 1000px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.flip-card:hover {
  box-shadow: none;
  transform: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  justify-content: center;
  transform: rotateY(180deg);
  background: var(--navy);
  color: var(--white);
}

.flip-card-back h3 {
  color: var(--white);
}

.flip-card-back p {
  color: rgba(255, 255, 255, 0.78);
}

.flip-card-back .service-number {
  position: absolute;
  top: 30px;
  left: 30px;
}

.flip-card-front .service-number {
  margin-bottom: 45px;
}

.flip-card-back .service-number {
  margin: 0;
}

.flip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.flip-button span {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.flip-button:hover span {
  transform: translateX(4px);
}

.back-button {
  margin-top: 25px;
  color: var(--white);
}

.back-button span {
  color: var(--green);
}

@media (max-width: 850px) {
  .flip-card,
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    min-height: 280px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 25px;
  }
}

