/* =========================================================
   Finansavimo Partneriai — website styles
   Brand palette (per company Brand Book v1.0):
   Pagrindinė (Primary navy) #0A2540 · Akcentas (Accent blue) #0066FF
   Foninė (Background) #F4F7FB · Tekstui (Text) #1F2937 · Papildoma (Border) #CBD5E1
   Font: Inter
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-2: #203951;
  --navy-border: #45596E;
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --white: #FFFFFF;
  --light-gray: #F4F7FB;
  --border: #CBD5E1;
  --ink: #1F2937;          /* primary body text (brand "Tekstui") */
  --text-gray: #626973;    /* secondary text on white or light-gray bg (contrast-tuned) */
  --text-gray-alt: #626973;
  --muted-on-navy: #A2ACB6;/* secondary text on navy bg */
  --blue-on-navy: #73ABFF; /* accent tint readable on navy (raw accent fails AA there) */

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gap: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-card: 0 1px 2px rgba(10, 37, 64, 0.04), 0 8px 24px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 20px 60px rgba(10, 37, 64, 0.35);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; margin: 0; color: var(--navy); letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
/* Links inline within prose (not nav/footer lists) need a non-color cue too (WCAG 1.4.1) */
.policy p a, .policy li a, .cta-email a, .problem-solution a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 1000; transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--light-gray); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.eyebrow-on-navy { color: var(--blue-on-navy); }

.grid { display: grid; gap: var(--gap); }
.grid-4 { grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9.25px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
}
.brand-mark img { width: 21px; height: auto; display: block; }
.footer-brand .brand-mark,
.footer-bottom-mark { background: var(--navy); border: 1px solid var(--navy-border); }
.brand-name-full { display: inline; }
.brand-name-short { display: none; }
.brand-name { font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }

.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform 0.2s var(--ease), opacity 0.2s var(--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); }

@media (max-width: 899px) {
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { padding: 0 12px; font-size: 13px; min-height: 38px; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 8px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
}
@media (min-width: 900px) {
  .header-inner { height: 84px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero, .cta-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; opacity: 0.7; pointer-events: none; }
.hero-grid { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: clamp(48px, 8vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(26px, 5.2vw, 50px);
  max-width: 21ch;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .hero-copy h1 { max-width: 26ch; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.2; }
}
@media (min-width: 1024px) {
  .hero-copy h1 { max-width: 26ch; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.15; }
}
.hero-lead {
  margin-top: 20px;
  color: var(--muted-on-navy);
  font-size: clamp(16px, 2vw, 18.5px);
  max-width: 46ch;
  line-height: 1.6;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { display: block; width: 100%; margin-top: 8px; }
.visual-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 900 / 549;
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; }

/* CTA section full-bleed background photo, darkened for text contrast */
.cta-bg-photo { position: absolute; inset: 0; z-index: 0; }
.cta-bg-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta-bg-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,23,42,0.94) 0%, rgba(11,23,42,0.88) 45%, rgba(11,23,42,0.97) 100%);
}
.cta-section .hero-bg { z-index: 1; }
.cta-section .cta-inner { z-index: 2; }

@media (min-width: 640px) {
  .hero-inner { padding-top: 64px; padding-bottom: 56px; }
}
@media (min-width: 1024px) {
  .hero { min-height: clamp(560px, 64vh, 700px); display: flex; align-items: center; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-copy { flex: 1 1 52%; }
  .hero-visual { flex: 1 1 40%; margin-top: 0; }
}

/* ---------- Problem / transition section ---------- */
.problem-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.problem-copy { max-width: 66ch; }
.problem h2 { font-size: clamp(26px, 3.4vw, 38px); }
.problem p { margin-top: 18px; color: var(--text-gray); font-size: 17px; line-height: 1.7; }
.problem-solution { color: var(--ink) !important; }
.problem-solution strong { color: var(--navy); }

.problem-visual {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 900 / 461;
}
.problem-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }

@media (min-width: 1024px) {
  .problem-inner { flex-direction: row; align-items: center; gap: 56px; }
  .problem-copy { flex: 1 1 50%; min-width: 0; }
  .problem-visual { flex: 0 1 46%; min-width: 0; max-width: 480px; }
}

/* ---------- Sections shared heading ---------- */
.section h2 { font-size: clamp(24px, 3.2vw, 36px); max-width: 30ch; }

/* ---------- Cards (Finansavimo sprendimai) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,102,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 18px; }
.card p { color: var(--text-gray-alt); font-size: 14.5px; line-height: 1.6; }

/* ---------- Value strip ---------- */
.value-strip { background: var(--navy-2); }
.value-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 36px;
  align-items: center;
}
.value-visual { width: 100%; max-width: 480px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 900 / 550; }
.value-visual img { width: 100%; height: 100%; object-fit: cover; }
.value-copy h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 38px); }
.value-copy p { color: var(--muted-on-navy); margin-top: 16px; font-size: 16.5px; line-height: 1.7; max-width: 44ch; }
.value-emphasis { color: var(--white) !important; font-weight: 600; font-size: 18px !important; margin-top: 22px !important; }

@media (min-width: 1024px) {
  .value-inner { flex-direction: row; align-items: center; gap: 64px; }
  .value-visual, .value-copy { flex: 1 1 50%; }
}

/* ---------- Steps (Kaip dirbame) ---------- */
.steps { }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1; }
.step h3 { font-size: 17.5px; }
.step p { color: var(--text-gray-alt); font-size: 14.5px; line-height: 1.6; }

/* ---------- Benefits (Kodėl mes) ---------- */
.benefit { display: flex; flex-direction: column; gap: 12px; }
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.benefit h3 { font-size: 17px; }
.benefit p { color: var(--text-gray-alt); font-size: 14.5px; line-height: 1.6; }

/* =========================================================
   CTA + FORM
   ========================================================= */
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "form"
    "phone";
  gap: 44px;
}
.cta-copy { grid-area: copy; min-width: 0; }
.contact-form { grid-area: form; min-width: 0; }
.cta-copy h2 { color: var(--white); font-size: clamp(24px, 3.1vw, 34px); line-height: 1.2; }
.cta-copy p { color: var(--muted-on-navy); margin-top: 12px; font-size: 16.5px; max-width: 42ch; line-height: 1.6; }
.cta-micro { font-size: 13.5px !important; margin-top: 10px !important; }
.cta-email { margin-top: 18px !important; }
.cta-email a { color: var(--blue-on-navy); font-weight: 600; }

.contact-form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.form-row:nth-of-type(3) .field { margin-bottom: 12px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  min-height: 40px;
  transition: border-color 0.15s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9D3E0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,102,255,0.12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #DC2626;
}
.field-error {
  color: #DC2626;
  font-size: 13px;
  min-height: 0.7em;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-gray-alt); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.checkbox input:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}
.field-consent { margin-bottom: 16px; }

.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 0; }
.form-actions .btn { width: 100%; }
.form-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-note {
  font-size: 14px;
  color: var(--text-gray-alt);
  min-height: 1.2em;
  animation: fadeIn 0.2s var(--ease);
}
.form-note.is-success {
  color: #15803D;
  font-weight: 600;
}
.form-note.is-error {
  color: #DC2626;
  font-weight: 600;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consent-text {
  font-size: 12.5px;
  color: var(--text-gray);
  line-height: 1.4;
  margin: 0;
}
.consent-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover {
  color: var(--blue-dark);
}

.cta-phone-contact {
  grid-area: phone;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-phone-label {
  color: var(--muted-on-navy);
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.contact-phone-link {
  color: var(--blue-on-navy);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.contact-phone-link:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    grid-template-areas:
      "copy form"
      "phone form";
    align-items: start;
    gap: 56px;
  }
  .cta-phone-contact {
    align-items: flex-start;
  }
}

/* Header phone number */
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
  flex-shrink: 0;
}
.header-phone:hover {
  color: var(--blue);
}
.phone-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-label {
  display: inline;
}
.phone-number {
  display: none;
}

@media (min-width: 768px) {
  .header-phone {
    gap: 8px;
    font-size: 14px;
  }
  .phone-label {
    display: none;
  }
  .phone-number {
    display: inline;
  }
}

@media (min-width: 640px) {
  .form-actions .btn { width: auto; }
}
@media (max-width: 1023px) {
  .cta-inner { padding-top: 56px; padding-bottom: 56px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: var(--muted-on-navy); }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: 56px 40px;
  border-bottom: 1px solid var(--navy-border);
}
.footer-brand .brand-name { color: var(--white); }
.footer-tagline-label {
  margin-top: 16px;
  color: var(--blue-on-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-tagline { margin-top: 8px; color: var(--muted-on-navy); font-size: 14.5px; line-height: 1.6; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--muted-on-navy); font-size: 14.5px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact p { margin-bottom: 8px; font-size: 14.5px; }
.footer-company { color: var(--white); font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px;
  font-size: 13px;
}
.footer-bottom a { color: var(--muted-on-navy); }
.footer-bottom a:hover { color: var(--white); }

@media (min-width: 720px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-brand { max-width: 320px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 800;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner-inner { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.cookie-banner p { font-size: 14px; color: var(--muted-on-navy); line-height: 1.6; }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; }
@media (max-width: 480px) {
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .btn { width: 100%; }
}

/* =========================================================
   SCROLL-REVEAL (progressive enhancement; content visible without JS)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
