*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f3f4f6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1360px;     /* mer space = mindre radbrytning i menyn */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 720px;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  flex-wrap: nowrap;      /* försök hålla allt på en rad på stora skärmar */
}

.logo {
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  white-space: nowrap;    /* undvik radbrytning i logon */
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  margin-left: 1.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  white-space: nowrap;    /* undvik att bryta enskilda länkar */
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #f59e0b;
  transition: width 0.18s ease-out;
}

nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  color: #f9fafb;

  /* Bakgrundsbild + parallax */
  background-image: url("project-collaboration-header-image-1.png");
  background-size: cover;
  background-position: center center; /* snyggt centrerad */
  background-repeat: no-repeat;
  background-attachment: fixed;       /* parallax: innehåll scrollar, bilden “stannar” */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.9)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 820px;      /* bredare hero = snygg två-raders rubrik */
  margin: 5rem 0 3rem;
}

/* Rubrik + text */

.hero h1 {
  font-size: 3.0rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 300;
  line-height: 1.3;
}

.hero-text {
  margin: 0 0 0.85rem;
  opacity: 0.96;
  font-weight: 300;
  font-size: 1.5rem;
}

.hero-quote {
  margin-top: 1.35rem;
  font-style: normal;
  font-weight: 400;
  opacity: 1;
}

.hero-tags {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.65);
  background: rgba(15, 23, 42, 0.4);
}

/* SECTIONS */

.section {
  padding: 4rem 0;
}

.section-white {
  background: #f9fafb;
}

.section-soft {
  background: #e5e7eb;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #4b5563;
  font-weight: 300;
}

/* GRID / CARDS – FOCUS AREAS */

.grid {
  display: grid;
  gap: 1.75rem;
}

.focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.focus-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  text-align: center;
}

.focus-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #111827;
}

.focus-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Ikoner / figursymboler */

.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(to bottom right, #f9fafb, #e5e7eb);
}

.icon-svg {
  width: 65%;
  height: 65%;
  fill: #111827;
}

/* CONTACT */

.contact-box {
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  max-width: 440px;
}

/* Form-styles */

.hidden {
  display: none;
}

.contact-box form {
  margin: 0;
}

.form-row {
  margin-bottom: 0.9rem;
  text-align: left;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.form-actions {
  margin-top: 1rem;
  text-align: right;
}

.form-actions button {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: #f59e0b;
  color: #111827;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.form-actions button:hover {
  filter: brightness(0.95);
}

/* FOOTER */

.site-footer {
  padding: 1.5rem 0 2rem;
  background: #020617;
  color: #9ca3af;
  font-size: 0.8rem;
  text-align: center;
}

/* MAP SECTION */

.section-map {
  padding: 4rem 0;
  background: #e5e7eb;
}

/* gör kartdelen lika bred som .container */
.map-wrapper {
  max-width: 1360px;          /* samma som .container */
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* större och centrerad karta */
.map-frame {
  margin-top: 1.5rem;
  width: 100%;
  height: 520px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);    /* svartvit karta */
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
    font-size: 1.2rem;
  }

  .hero-content {
    margin-top: 4.5rem;
  }

  /* Mobiler brukar strula med background-attachment: fixed,
     så vi stänger av parallax på små skärmar för stabilitet. */
  .hero {
    background-attachment: scroll;
  }

  .map-frame {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
  }

  .hero-tags span {
    letter-spacing: 0.16em;
    padding-inline: 0.7rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  nav a {
    font-size: 1.05rem;
  }
}
