:root {
  --bg-grey: #dde1e4;
  --bg-light: #f7f8f9;
  --bg-dark: #121212;

  --border-grey: #c3c8cc;
  --text-main: #111111;
  --text-muted: #555b60;
  --accent: #3a4e61;
  --accent-soft: #e0e6ec;

  --radius: 8px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-grey);
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  backdrop-filter: blur(12px);
  background: rgba(221, 225, 228, 0.9);
  border-bottom: 1px solid rgba(195, 200, 204, 0.6);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 1.8rem;
}

.nav a {
  margin-left: 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-main);
}
.nav a:hover {
  color: var(--text-main);
}

/* Hero */

  .hero {
  position: relative;
  background: url("brushed-metal.png") center/cover no-repeat;
  padding: 4rem 6vw 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 242, 244, 0.55); /* justér lysstyrken her */
  backdrop-filter: blur(2px); /* gjør bakgrunnen mer elegant */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #fafafa;
  border-radius: var(--radius);
  border: 1px solid var(--border-grey);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.75rem;
  max-width: 26rem;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.hero-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #2c3e4f;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-grey);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 3.5rem 6vw;
}

.section-light {
  background: var(--bg-light);
}

.section-grey {
  background: #e4e7ea;
}

.section-header h2 {
  margin: 0 0 0.25rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards grid */
.cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fafafa;
  border-radius: var(--radius);
  border: 1px solid var(--border-grey);
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-grey);
  background: white;
}

/* Footer */
.footer {
  padding: 1.5rem 6vw 2rem;
  background: var(--bg-dark);
  color: #d3d5d7;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Responsiv */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-inline: 4vw;
  }

  .hero,
  .section,
  .footer {
    padding-inline: 4vw;
  }
}
form label {
    display: block;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    font-size: 0.95rem;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #f97316;
}

button.cta {
    cursor: pointer;
}
/* Light section */
.section-light {
  padding: 80px 0;
  background: #eef1f4;
}

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact form */
.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #cdd3d9;
  background: white;
  font-size: 1rem;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f6df5;
  box-shadow: 0 0 0 3px rgba(79,109,245,0.2);
}

/* Primary button */
.btn-primary {
  background: #4f6df5;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #3f58c9;
}
/* Felles layout for alle seksjoner med header + cards */
.section {
  padding: 80px 0;
}

/* Sørger for at "What we do" og "Why Brawn" har lik venstremarg */
.section .section-header,
.section .cards-grid {
  max-width: 1100px;      /* juster hvis du vil ha smalere/bredere innhold */
  margin: 0 auto;         /* sentrerer blokken */
  padding: 0 24px;        /* innvendig side-marg (venstre/høyre) */
}

/* Litt luft under overskriften før kortene */
.section .section-header {
  margin-bottom: 24px;
}
/* Sticky bottom footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0a0a0a;
  color: #d1d5db;
  border-top: 1px solid #1f2937;
  z-index: 100;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-left,
.footer-right {
  white-space: nowrap;
}

.footer-mail {
  color: #93c5fd;
  text-decoration: none;
}

.footer-mail:hover {
  text-decoration: underline;
}

/* sørg for at innholdet ikke havner bak footeren */
body {
  padding-bottom: 56px;
}

/* Mobil-tilpasning */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
  }
}
.btn-primary {
  background: #4D5566;
  color: white;
}

.btn-primary:hover {
  background: #5A6477;
}
