/* ==========================================================================
   LSVVT — styles.css
   Brand colors are defined once as CSS variables below.
   Edit values here to re-theme the entire site.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #122B43;
  --green: #08783E;
  --yellow: #F5B719;
  --red: #C92535;
  --white: #FFFFFF;
  --light: #F5F7F9;
  --muted: #5C6975;

  /* Lithuanian flag strip */
  --flag-yellow: #FDB913;
  --flag-green: #006A44;
  --flag-red: #C1272D;

  /* Layout */
  --container-max: 1120px;
  --header-height: 76px;
  --flag-strip-height: 4px;
  --radius: 8px;

  /* System font stack — no external fonts required */
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep section headings clear of the sticky header when using anchors */
  scroll-padding-top: calc(var(--header-height) + var(--flag-strip-height) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Author display rules (e.g. .btn) must not defeat the hidden attribute */
[hidden] {
  display: none !important;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--navy);
}

/* Visible focus states for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #E3E8ED;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
  margin-right: auto;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.brand-short {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* Flag strip below the menu */
.flag-strip {
  display: flex;
  height: var(--flag-strip-height);
}

.flag-strip span {
  flex: 1;
}

.flag-yellow { background: var(--flag-yellow); }
.flag-green  { background: var(--flag-green); }
.flag-red    { background: var(--flag-red); }

/* ---------- Navigation ---------- */
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: var(--radius);
}

.nav-link:hover {
  background: var(--light);
  color: var(--navy);
}

.nav-link[aria-current="true"] {
  color: var(--green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid #D7DEE4;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 4px;
  border-radius: var(--radius);
}

.lang-switch a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.lang-switch [aria-current="page"] {
  color: var(--navy);
  padding: 6px 4px;
}

.lang-sep {
  color: #C6CFD6;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    var(--light);
  border-bottom: 1px solid #E3E8ED;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  max-width: 21ch;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: #06612F;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-light {
  background: var(--light);
}

.section-title {
  margin: 0 0 32px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ---------- News (Aktualijos) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.news-status {
  color: var(--muted);
  margin: 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #E3E8ED;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light);
}

.news-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.news-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.news-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-full {
  margin: 0;
  font-size: 0.95rem;
}

.news-toggle {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.news-toggle:hover {
  color: var(--navy);
}

.news-more-wrap {
  margin-top: 28px;
  text-align: center;
}

/* ---------- Notice ---------- */
.notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice p {
  margin: 0;
}

/* ---------- Goal cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #E3E8ED;
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Activities ---------- */
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.activity-list li {
  padding: 14px 18px 14px 44px;
  background: var(--light);
  border-radius: var(--radius);
  position: relative;
}

.activity-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Membership ---------- */
.membership-lead {
  font-weight: 600;
}

.membership-list {
  margin: 0 0 24px;
  padding-left: 22px;
}

.membership-list li {
  margin-bottom: 6px;
}

.membership-actions {
  margin-top: 8px;
}

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-subtitle {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.contact-address {
  font-style: normal;
}

.contact-address p {
  margin: 0 0 8px;
}

.contact-social {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}

.social-link:hover span {
  text-decoration: underline;
}

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #C6CFD6;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
}

.req {
  color: var(--red);
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

/* Honeypot: visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-consent label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.4em;
  margin: 0 0 14px;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--red);
}

.form-note {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Legal pages (privacy policy) ---------- */
.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #C9D3DC;
}

.footer-col a {
  color: var(--white);
}

.footer-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #C9D3DC;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  margin-top: 6px;
}

.footer-social img {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  padding: 7px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #8FA0AE;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .brand-name {
    display: none;
  }

  .brand-short {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: flex;
    order: 10;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #E3E8ED;
    box-shadow: 0 12px 24px rgba(18, 43, 67, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 16px;
  }

  .nav-link {
    padding: 14px 12px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}
