/* DFS Sofia — temporary under-construction landing */

@font-face {
  font-family: "Sofia Sans";
  src: url("assets/SofiaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans";
  src: url("assets/SofiaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans";
  src: url("assets/SofiaSans-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --dfs-navy: #08374B;
  --dfs-orange: #F05223;
  --dfs-dark: #07374E;
  --white: #FFFFFF;

  --ink: var(--dfs-navy);
  --muted: #4A6672;
  --line: rgba(8, 55, 75, 0.16);

  --font: "Sofia Sans", system-ui, -apple-system, sans-serif;
  --font-regular: 400;
  --font-bold: 700;
  --font-black: 900;

  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.6vw, 1.125rem);
  --space-md: clamp(1rem, 0.8rem + 0.9vw, 1.75rem);
  --space-lg: clamp(1.5rem, 1.1rem + 1.4vw, 2.75rem);
  --space-xl: clamp(2rem, 1.4rem + 2vw, 4rem);

  --page-pad-x: clamp(1.1rem, 4vw, 4.5rem);
  --page-pad-y: clamp(0.85rem, 2.2vh, 2rem);
  --header-h: clamp(3.75rem, 8vh, 5.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 55, 75, 0.03) 0%, transparent 28%),
    var(--white);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  font-weight: var(--font-regular);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: var(--page-pad-x);
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--dfs-navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--dfs-orange);
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--dfs-orange);
  outline-offset: 3px;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 92rem);
  margin-inline: auto;
  padding: var(--page-pad-y) var(--page-pad-x);
  gap: clamp(0.85rem, 2.2vh, 2rem);
}

/* ——— Header ——— */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease-out) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  min-width: 0;
}

.brand__logo {
  width: clamp(3rem, 6vw, 4.5rem);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__name {
  display: none;
  margin: 0;
  color: var(--dfs-dark);
  font-family: var(--font);
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 0.95rem);
  font-weight: var(--font-black);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__name span {
  display: block;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 12rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(0.62rem, 0.55rem + 0.25vw, 0.72rem);
  font-weight: var(--font-bold);
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: right;
}

.status-label__dot {
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  background: var(--dfs-orange);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-label__short {
  display: none;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 0;
}

.hero__copy {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-left: clamp(0.85rem, 1.5vw, 1.25rem);
  container-type: inline-size;
  container-name: hero-copy;
  animation: rise 0.8s var(--ease-out) 0.08s both;
}

.hero__copy::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: 0;
  width: 3px;
  background: var(--dfs-navy);
}

.hero__copy::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--dfs-orange);
  animation: bar-grow 0.8s var(--ease-out) 0.45s forwards;
}

.hero__eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
  font-weight: var(--font-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 var(--space-md);
  color: var(--dfs-dark);
  font-family: var(--font);
  font-size: clamp(2.05rem, 8.8vw, 2.75rem);
  font-weight: var(--font-black);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero__title-line {
  display: block;
  max-width: 100%;
}

.accent {
  color: var(--dfs-orange);
  animation: accent-in 0.85s var(--ease-out) 0.35s both;
}

.hero__body {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  font-weight: var(--font-regular);
  line-height: 1.6;
}

.hero__body p {
  margin: 0;
  text-align: left;
  text-wrap: pretty;
}

/* ——— Hero visual ——— */

.hero__visual {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.9s var(--ease-out) 0.16s both;
}

.hero__visual-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ——— Footer ——— */

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  animation: rise 0.7s var(--ease-out) 0.22s both;
}

.site-footer__identity {
  min-width: 0;
}

.site-footer__municipality {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer__municipality-logo {
  width: clamp(1.75rem, 2.4vw, 2.25rem);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.site-footer__meta,
.site-footer__note {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__meta {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.72rem, 0.66rem + 0.2vw, 0.82rem);
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__note {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.site-footer__copy {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ——— Motion ——— */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accent-in {
  from {
    opacity: 0.15;
    color: var(--dfs-dark);
  }
  to {
    opacity: 1;
    color: var(--dfs-orange);
  }
}

@keyframes bar-grow {
  from { height: 0; }
  to { height: 18%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .accent,
  .hero__copy::after {
    opacity: 1;
  }

  .hero__copy::after {
    height: 18%;
  }

  .status-label__dot {
    opacity: 1;
  }
}

/* ——— Breakpoints ——— */

/* Small phones: stacked header, compact spacing */
@media (max-width: 639px) {
  .page {
    gap: 0.85rem;
    padding-block: 0.75rem 1rem;
  }

  .site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    padding-bottom: 0.7rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .status-label {
    flex: 0 1 auto;
    max-width: 9.5rem;
    justify-content: flex-end;
    text-align: right;
    letter-spacing: 0.08em;
  }

  .status-label__full {
    display: none;
  }

  .status-label__short {
    display: inline;
  }

  .hero {
    gap: 1rem;
  }

  .hero__title {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: 0.98;
  }

  .hero__visual-image {
    width: 100%;
    max-width: 100%;
  }

  .site-footer {
    gap: 0.65rem;
    padding-top: 0.7rem;
  }

  .site-footer__note {
    text-align: left;
  }
}

@media (min-width: 640px) {
  .brand__name {
    display: block;
  }

  .status-label {
    max-width: none;
  }

  .hero {
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
  }

  .hero__title {
    font-size: clamp(2.35rem, 5.2vw, 3.4rem);
    line-height: 0.95;
  }

  .hero__visual-image {
    width: min(100%, 32rem);
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .site-footer__note {
    text-align: right;
  }
}

/* Desktop two-column */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 4.5vw, 4rem);
    align-items: center;
  }

  .hero__title {
    font-size: clamp(2.5rem, 10.5cqi, 4.35rem);
    line-height: 0.94;
  }

  .hero__visual-image {
    width: 100%;
    max-width: none;
    max-height: min(64vh, 40rem);
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 1fr);
  }

  .hero__title {
    font-size: clamp(2.6rem, 10.2cqi, 4.5rem);
  }

  .hero__visual-image {
    max-height: min(66vh, 42rem);
  }
}

/* Short laptop screens */
@media (max-height: 760px) and (min-width: 900px) {
  .page {
    padding-block: 0.75rem;
    gap: 0.75rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 9cqi, 3.5rem);
  }

  .hero__visual-image {
    max-height: min(52vh, 28rem);
  }

  .hero__body {
    font-size: 0.95rem;
  }
}

/* Fallback when container units are unavailable */
@supports not (font-size: 1cqi) {
  @media (min-width: 900px) {
    .hero__title {
      font-size: clamp(2.35rem, 1.1rem + 3.2vw, 4.1rem);
    }
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .page {
    padding-inline: 0.95rem;
  }

  .brand__logo {
    width: 2.85rem;
  }

  .hero__copy {
    padding-left: 0.75rem;
  }

  .site-footer__copy {
    font-size: 0.75rem;
  }
}
