:root {
  --fs-navy: #0e2745;
  --fs-blue: #0072ce;
  --fs-red: #e30613;
  --fs-gold: #f0b429;
  --fs-text: #0b1f35;
  --fs-muted: #69727d;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body.fs-estonia-template {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", Inter, Arial, sans-serif;
  color: var(--fs-text);
  background: #fff;
}
body.fs-menu-open { overflow: hidden; }
body.fs-estonia-template .wp-site-blocks,
body.fs-estonia-template main { margin: 0; padding: 0; }
.fs-site-main { width: 100%; min-height: 40vh; }
.fs-site-main > .elementor { width: 100%; }

/* Header */
.fs-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 0 44px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.admin-bar .fs-header { top: 32px; }
.fs-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--fs-navy);
  text-decoration: none;
}
.fs-logo img { display: block; width: 58px; height: 58px; object-fit: contain; }
.fs-logo span { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.fs-nav { margin-left: auto; display: flex; align-items: center; gap: 46px; }
.fs-nav-list { display: flex; align-items: center; gap: 46px; margin: 0; padding: 0; list-style: none; }
.fs-nav a,
.fs-nav-list a {
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease;
}
.fs-nav a:hover,
.fs-nav-list a:hover,
.fs-nav .current-menu-item > a { color: var(--fs-blue); }
.fs-lang-toggle,
.fs-nav-list > li:last-child > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--fs-navy);
  color: var(--fs-navy) !important;
  line-height: 1;
  transition: background .25s ease, color .25s ease;
}
.fs-lang-toggle:hover,
.fs-nav-list > li:last-child > a:hover { background: var(--fs-navy); color: #fff !important; }
.fs-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.fs-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--fs-navy);
  transition: transform .25s ease, opacity .25s ease;
}
body.fs-menu-open .fs-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.fs-menu-open .fs-menu-toggle span:nth-child(2) { opacity: 0; }
body.fs-menu-open .fs-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.fs-footer { width: 100%; padding: 80px 44px 30px; border-top: 1px solid #eceff3; background: #fff; }
.fs-footer-top { max-width: 1450px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 70px; align-items: start; }
.fs-footer-brand { max-width: 380px; }
.fs-footer-brand img { display: block; width: 115px; height: auto; margin-bottom: 20px; }
.fs-footer-brand h3 { margin: 0; color: var(--fs-navy); font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -1.5px; text-transform: uppercase; }
.fs-footer-brand span { display: block; margin: 10px 0 22px; color: var(--fs-blue); font-size: 16px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.fs-footer-brand p,
.fs-footer-column p { margin: 0; color: var(--fs-muted); font-size: 16px; line-height: 1.75; }
.fs-footer-column h4 { margin: 0 0 22px; color: var(--fs-navy); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.fs-footer-column a { display: block; margin-bottom: 15px; color: #4d5967; font-size: 16px; font-weight: 500; text-decoration: none; transition: color .25s ease, transform .25s ease; }
.fs-footer-column a:hover { color: var(--fs-blue); transform: translateX(4px); }
.fs-footer-column p { margin-top: 8px; }
.fs-footer-bottom { max-width: 1450px; margin: 70px auto 0; padding-top: 24px; border-top: 1px solid #eceff3; display: flex; justify-content: space-between; align-items: center; }
.fs-footer-bottom span { color: #7a828c; font-size: 15px; }
.fs-footer-social { display: flex; gap: 28px; }
.fs-footer-social a { color: var(--fs-navy); font-size: 15px; font-weight: 500; text-decoration: none; }
.fs-footer-social a:hover { color: var(--fs-blue); }

/* Shared animation used by page HTML */
.fs-reveal { opacity: 0; transform: translateY(45px); transition: opacity .75s ease, transform .75s ease; }
.fs-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .fs-menu-toggle { display: block; }
  .fs-nav {
    position: fixed;
    inset: 0;
    z-index: 9998;
    margin: 0;
    padding: 110px 28px 40px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: rgba(255,255,255,.99);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
  }
  body.fs-menu-open .fs-nav { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .fs-nav-list { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .fs-nav a,
  .fs-nav-list li,
  .fs-nav-list a { width: 100%; }
  .fs-nav a,
  .fs-nav-list a { display: block; padding: 18px 0; border-bottom: 1px solid #edf0f3; color: var(--fs-navy); font-size: 22px; line-height: 1.1; font-weight: 700; }
  .fs-lang-toggle,
  .fs-nav-list > li:last-child > a { width: auto !important; margin-top: 24px; padding: 12px 18px !important; border: 1px solid var(--fs-navy) !important; font-size: 14px !important; }
  .fs-footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 782px) { .admin-bar .fs-header { top: 46px; } }
@media (max-width: 767px) {
  .fs-header { height: 64px; padding: 0 20px; }
  .fs-logo img { width: 42px; height: 42px; }
  .fs-logo span { font-size: 18px; }
  .fs-footer { padding: 64px 24px 28px; }
  .fs-footer-brand img { width: 92px; }
  .fs-footer-brand h3 { font-size: 30px; }
  .fs-footer-bottom { margin-top: 44px; flex-direction: column; gap: 18px; align-items: flex-start; }
}
