/* =============================================
   MBR Regnskab — Main Stylesheet
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --navy:      #0f2644;
  --blue:      #1a4d8f;
  --blue-mid:  #2a6abf;
  --blue-light:#e8f0fb;
  --gold:      #d4a017;
  --gold-light:#fef8e7;
  --white:     #ffffff;
  --gray-50:   #f8f9fc;
  --gray-100:  #f0f2f7;
  --gray-300:  #c8cdd8;
  --gray-500:  #7a8399;
  --gray-700:  #3d4460;
  --text:      #1a1f36;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(15,38,68,.08);
  --shadow:    0 4px 20px rgba(15,38,68,.10);
  --shadow-lg: 0 12px 40px rgba(15,38,68,.14);
  --transition: 0.25s ease;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:     140px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* --- Section base --- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: .6rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__lead {
  color: var(--gray-500);
  font-size: 1.0625rem;
}

/* --- Typography --- */
h1, h2, h3 { line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; }

/* =============================================
   NAVIGATION
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-left: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.footer .nav__logo-img {
  height: 108px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}

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

.scrolled .nav__link { color: var(--navy); }
.scrolled .nav__link:hover { color: var(--blue); }

.nav__link--cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .875rem;
  transition: background var(--transition), transform var(--transition);
}

.nav__link--cta:hover {
  background: #e8b620;
  transform: translateY(-1px);
}

.lang-btn {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .2rem .5rem;
  transition: all var(--transition);
}

.lang-btn:hover,
.lang-btn.active { color: var(--white); border-color: var(--white); }

.scrolled .lang-btn { color: var(--navy); border-color: var(--gray-300); }
.scrolled .lang-btn:hover { color: var(--blue); border-color: var(--blue); }

/* hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.scrolled .nav__toggle span { background: var(--navy); }

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff 0%, #dce9f8 30%, #1a4d8f 65%, #0f2644 100%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  max-width: 52%;
}

.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 10%;
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 2px;
  animation: scrollBob 1.8s infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  70%       { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8125rem 1.75rem;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: #e8b620; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,160,23,.35); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(15,38,68,.35);
}
.btn--outline:hover { border-color: var(--navy); background: rgba(15,38,68,.07); }

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

/* =============================================
   TRUST BAR
   ============================================= */
.trustbar {
  background: var(--navy);
  padding-block: 1.5rem;
}

.trustbar__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trustbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  color: var(--white);
  text-align: center;
}

.trustbar__item strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.trustbar__item span {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .02em;
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--gray-50); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-light);
}

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 24px; height: 24px;
  stroke: var(--blue);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: .625rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: .9375rem;
  line-height: 1.65;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__visual {
  position: relative;
  min-height: 380px;
}

.about__shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__shape::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -80px; right: -60px;
}

.about__shape::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -40px; left: -40px;
}

.about__numbers {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat span {
  font-size: .75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: .25rem;
}

.about__content .section__eyebrow { text-align: left; }
.about__content h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about__content p {
  color: var(--gray-500);
  font-size: 1.0rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about__list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--gray-700);
}

.about__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--blue-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232a6abf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--gray-50); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.contact__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.contact__card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}

.contact__card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--blue);
}

.contact__card strong {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
}

.contact__card a {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
.contact__card a:hover { color: var(--blue-mid); }
.contact__card span { color: var(--gray-700); font-size: .9375rem; line-height: 1.5; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.125rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(42,106,191,.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form__note {
  font-size: .8125rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: .875rem;
}

.form__success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
}

.form__success svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  stroke: #16a34a;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}

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

.footer__brand .nav__logo { margin-bottom: 1rem; }
.footer__brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }

.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.footer__links a,
.footer__contact a {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--white); }

.footer__contact p { margin-bottom: .5rem; font-size: .9375rem; }

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

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer__bottom p { font-size: .8125rem; }
.footer__bottom a { color: rgba(255,255,255,.5); }
.footer__bottom a:hover { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { min-height: 260px; margin-bottom: 3rem; }
  .about__numbers { right: 1rem; bottom: -1rem; }
  .contact__cards { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav__links.open { transform: none; }
  .nav__link { font-size: 1.125rem; }
  .nav__toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero__content { max-width: 100%; }
}

@media (max-width: 480px) {
  .contact__form { padding: 1.5rem; }
  .trustbar__item strong { font-size: 1.25rem; }
}
