:root {
  --accent: #041422;
  --page-text: #003463;
  --hero-title: #003463;
  --topbar-text: #0099DC;
  --panel-bg: rgba(255, 255, 255, 0.90);
  --panel-shadow: rgba(4, 20, 34, 0.6);
  --copyright-text: rgba(255, 255, 255, 0.4);
  --overlay-bg: rgba(0, 0, 0, 0.45);
  /* Central control for body/hero text */
  --base-font-size: 16px;
}

/* Rom font (woff2 files available in fonts/) */
@font-face {
  font-family: 'Rom';
  src: url('fonts/Rom-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rom';
  src: url('fonts/Rom-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box
}

html, body {
  margin: 0;
  font-family: 'Rom', "Segoe UI", sans-serif;
  color: var(--page-text);
  background-color: var(--accent)
}

/* Links: no underline by default, underline on hover */
a { text-decoration: none; color: inherit; }
a:hover, a:focus { text-decoration: underline; }

/* Hero and background placement */
body {
  background-color: var(--accent);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 154px;
  width: 100%;
  height: calc(100vw * 1820 / 2558);
  background-image: url('images/ruemue-background.webp');
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

body::after {
  content: "";
  display: block;
  height: 0;
}

.hero {
  position: relative;
  display: block
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  transform: translateY(0);
  background: var(--panel-bg);
  backdrop-filter: blur(2px);
  padding: 36px 48px;
  border-radius: 6px;
  box-shadow: 0 10px 30px var(--panel-shadow);
  /* push the white panel further down so background is visible above it */
  margin-top: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* ensure all direct children are centered */
}

.hero-title {
  font-weight: 700;
  color: var(--hero-title);
  font-size: 21px; /* headline size adjusted per request */
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.hero-text {
  color: var(--hero-title);
  margin: 6px 0;
  max-width: 780px;
  font-size: var(--base-font-size); /* unified size controlled centrally */
  line-height: 1.5;
  text-align: center;
}

.hero-text strong {
  font-weight: 700;
}

.contact-icon {
  width: 2em;
  height: 2em;
  vertical-align: -0.65em;
  margin-right: 0.35em;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  width: 100%;
}

.hero-logo img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto; /* ensure horizontal centering */
}

.hero-copy {
  margin-top: 14px;
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy a {
  color: var(--hero-title);
  text-decoration: none; /* underline only on hover via global rule */
}

.hero-copy a:hover,
.hero-copy a:focus {
  text-decoration: underline;
}

/* top blue header — occupies the 134px gap above the background */
.topbar {
  width: 100%;
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--topbar-text);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.03em;
  background: transparent
}

.topbar-accent {
  /* color: #24a2d9; */
  padding-left: 0.5em;
  font-weight: 700;
}

/* .overlay{
  position:fixed;inset:0;background:var(--overlay-bg);z-index:0;
} */

.copyright {
  position: fixed;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--copyright-text);
  z-index: 3;
  text-align: right;
  max-width: 300px
}

@media (max-width:900px) {
  .hero-card {
    padding: 22px;
    margin: 0 18px;
  }

  .hero-logo img {
    max-width: 180px
  }
}

@media (max-width:600px) {
  .topbar {
    height: 90px;
    font-size: 24px
  }

  .hero-card {
    margin-top: 80px;
    padding: 18px;
  }

  body::before {
    top: 154px;
    height: calc(100vw * 1820 / 2558);
  }
}

@media (max-width:306px) {
  .topbar {
    display: block;
    height: auto;
    padding: 10px 8px;
    font-size: 18px;
    line-height: 1.15;
    text-align: center;
  }

  .topbar-accent {
    display: block;
    padding-left: 0;
  }
}
