/* BB Elektrik ApS — styles */

:root {
  --color-text: #0f1e3d;
  --color-muted: #5a6478;
  --color-accent: #c8102e;
  --color-bg: #ffffff;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-content: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Header ---------- */
.site-header {
  padding: 1.75rem 3rem;
  text-align: left;
  background: var(--color-bg);
}

.logo {
  display: inline-block;
  max-width: 276px;
}

/* ---------- Hero med slow-zoom baggrund ---------- */
.hero {
  position: relative;
  min-height: 55vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  background-color: #2a3a55;        /* fallback indtil hero-bg.jpg er på plads */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  /* Lille buffer så ingen synlige kanter når den zoomer */
  margin: -2%;
  width: 104%;
  height: 104%;
}

.hero__panel {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: 4rem 3.5rem 4.5rem;
  max-width: 620px;
  width: 65%;
  margin-left: 8%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hero__panel h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 2rem;
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  margin: 0 0 3rem;
}

.hero__thanks {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  margin: 0 0 3.5rem;
}

.hero__signature {
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  margin: 0;
}

.hero__signature span {
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  padding: 4rem 1.5rem 3rem;
}

/* Desktop: 3-column grid med navngivne områder */
.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "kontakt logo    cvr"
    "phone   address .";
  gap: 1.5rem 2rem;
  align-items: start;
}

.footer__logo {
  grid-area: logo;
  justify-self: center;
  max-width: 110px;
  margin-bottom: 0.5rem;
}

.footer__kontakt { grid-area: kontakt; }
.footer__kontakt h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
}

.footer__address {
  grid-area: address;
  justify-self: center;
  text-align: center;
  font-style: normal;
  line-height: 1.6;
}

.footer__cvr {
  grid-area: cvr;
  justify-self: end;
  text-align: right;
  line-height: 1.6;
}

.footer__phone {
  grid-area: phone;
  margin: 0;
  font-size: 1.125rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .site-header { padding: 1.25rem 1.5rem; }
  .logo { max-width: 95px; }

  .hero {
    padding: 2rem 1rem;
    align-items: flex-start;
    min-height: 75vh;
  }

  .hero__panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3rem 2rem;
    text-align: center;
  }

  .hero__panel h1 {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }

  .hero__lead { margin-bottom: 2.5rem; }
  .hero__thanks { margin-bottom: 2.5rem; }
  .hero__signature { line-height: 1.8; }

  /* Footer staket i mobile-rækkefølge:
     logo ? KONTAKT ? adresse ? CVR ? telefon */
  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__logo,
  .footer__kontakt,
  .footer__address,
  .footer__cvr,
  .footer__phone {
    justify-self: center;
    text-align: center;
  }

  .footer__phone {
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }
}