/* ============================================================
   Sport Field Praha — one-page landing
   Brand system per Brand Identity V2 (logomanual), refined for
   a lighter, more premium, single-accent-color composition.
   ============================================================ */

/* ---------- Brand typeface: Manrope ----------
   Self-hosted per brand manual (font file not redistributed
   with the package — see assets/fonts/README.txt for how to
   add it). The page works with the system fallback below even
   before the files are added, so nothing breaks either way. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Display typeface: Fraunces ----------
   Used only for the hero claim, to give that one line a
   distinct, premium, editorial character against the brand's
   plain-spoken Manrope everywhere else. Same self-host pattern
   as Manrope — see assets/fonts/README.txt. Falls back to a
   confident system serif in the meantime. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette — Brand Identity V2. Sport Field Navy is used
     for the top bar (drawn straight from the logo); Field Blue
     remains the single accent colour for everything else. */
  --color-white: #ffffff;
  --color-navy: #101a2c;
  --color-field-blue: #607d96;

  --color-bg: var(--color-white);
  --color-claim: rgba(16, 26, 44, 0.5);      /* top-bar navy, 50% transparent */
  --color-body: #5e7481;                     /* contact + footer text */

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman",
    "Noto Serif", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ----------
   Full-bleed navy strip. Holds the logo and, on the right, the
   menu toggle that will open the main navigation later. */

.topbar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.9rem, 2.2vh, 1.3rem) 7vw;
}

.topbar-logo {
  height: clamp(28px, 3.4vw, 40px);
  width: auto;
  display: block;
}

/* ---------- Menu toggle ----------
   Visual + accessibility groundwork for the future navigation.
   Not wired up to an actual menu yet — see #main-menu below. */

.menu-toggle {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  padding: 8px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--color-white);
  transition: opacity 0.2s ease, transform 0.25s ease, width 0.2s ease;
}

.menu-toggle:hover .menu-toggle-bar {
  opacity: 0.8;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Active/open state (ready for when the menu becomes functional) */
.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-menu[hidden] {
  display: none;
}


@media (prefers-reduced-motion: no-preference) {
  .claim-line,
  .contact-link {
    animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .claim-line:nth-of-type(1) { animation-delay: 0.1s; }
  .claim-line:nth-of-type(2) { animation-delay: 0.7s; }
  .contact-link { animation-delay: 1.35s; }

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

.page {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 7vw 4vh;
}

.content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Claim ---------- */

.claim {
  margin: 0 0 clamp(2rem, 6vh, 3.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 8.5vw, 6rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--color-claim);
}

.claim-line {
  display: block;
}

/* ---------- Contact ---------- */

.contact-link {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-body);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 0.7;
}

.contact-link:focus-visible {
  outline: 2px solid var(--color-body);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ---------- Footer ----------
   Just the company address block (including the registration
   line), centered and as low on the page as possible. */

.footer-area {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.footer-address {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--color-body);
  font-weight: 400;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .page {
    padding: 5vh 7vw 4vh;
  }

  .claim {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
    line-height: 1.35;
  }

  .footer-address {
    font-size: 0.68rem;
  }
}
