/* ===========================
   SYNCARA GLOBAL THEME
=========================== */
:root {
  --syncara-primary-accent: #10394F;
  --syncara-secondary-accent: #0D2B3B;
  --syncara-secondary-grey: #F3F4F6;
  --syncara-background: #FAFAFA;

  --syncara-positive: #4CAF50;
  --syncara-neutral: #5B7D9D;
  --syncara-improvement: #F15A29;

  --syncara-text-dark: #2B2B2B;
  --syncara-text-light: #6B7280;

  --syncara-font-primary: 'Inter', 'Poppins', system-ui, sans-serif;
  --syncara-border-color: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--syncara-font-primary);
  background: var(--syncara-background);
  color: var(--syncara-text-light);
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: block;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   HEADER
=========================== */
.main-header {
  background: var(--syncara-background);
  border-bottom: 1px solid var(--syncara-border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
}

.shell-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- LOGO --- */
.logo-link {
  text-decoration: none;
}
.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--syncara-primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}
.logo:hover {
  color: var(--syncara-secondary-accent);
}

/* --- NAVIGATION --- */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--syncara-text-dark);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.main-nav a:hover {
  color: var(--syncara-primary-accent);
}
.main-nav a.active {
  color: var(--syncara-primary-accent);
  border-bottom-color: var(--syncara-primary-accent);
}

/* --- Admin link --- */
.main-nav a.admin-link,
.footer-links a.admin-link {
  color: var(--syncara-positive);
}
.main-nav a.admin-link:hover,
.footer-links a.admin-link:hover {
  color: var(--syncara-secondary-accent);
}

/* --- CTA BUTTON --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn.loading {
  opacity: 0.7;
  cursor: wait;
}
.btn-primary {
  background: var(--syncara-primary-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--syncara-secondary-accent);
  transform: translateY(-2px);
}

/* --- BURGER MENU --- */
.burger {
  display: none;
  width: 34px;
  height: 26px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--syncara-text-dark);
  border-radius: 2px;
  transition: 0.3s;
}
.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 12px; }
.burger span:nth-child(3) { top: 18px; }

/* ===========================
   FOOTER
=========================== */
.main-footer {
  background: var(--syncara-text-dark);
  color: var(--syncara-secondary-grey);
  padding: 60px 0;
  text-align: center;
  margin-top: auto;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 20px;
  padding: 0;
}
.footer-links a {
  text-decoration: none;
  color: var(--syncara-secondary-grey);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
}

.footer-social ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 0 0 20px;
  padding: 0;
}
.footer-social a {
  color: var(--syncara-secondary-grey);
  font-size: 20px;
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 14px;
  color: #A0AEC0;
}

/* ===========================
   MAIN PAGE SPACING
=========================== */
main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  background: #fff;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--syncara-border-color);
    border-bottom: 1px solid var(--syncara-border-color);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 12px;
  }

  .btn#header-get-started {
    display: none;
  }

  .burger {
    display: inline-block;
  }
}
/* ===== RESPONSIVE FOOTER FIX ===== */
@media (max-width: 768px) {
  .main-footer {
    padding: 40px 16px;
    text-align: center;
  }

  .footer-logo {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .footer-links ul {
    flex-direction: column;       /* iš vertikalios į vieną stulpelį */
    gap: 10px;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;              /* leidžia automatiškai užsilenkti */
  }

  .footer-links a {
    font-size: 14px;
    word-break: break-word;       /* jei koks ilgas tekstas */
  }

  .footer-social ul {
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .footer-social a {
    font-size: 18px;
  }

  .footer-copy {
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
  }
}
