/* =========================================================
   Nebeskauda.lt — "svetainė kuriama" landing
   ========================================================= */

:root {
  --navy:        #2d2a6e;
  --brand-blue:  #1e3f7d;
  --navy-deep:   #3a3573;
  --navy-soft:   #5a5691;
  --gold:        #b9a288;
  --red:         #e0242e;
  --cream:       #faf6f2;
  --cream-2:     #f4ece6;
  --ink:         #4a4a5a;
  --line:        #e6e0e6;
  --white:       #fff;
  --radius:      26px;
  --shadow:      0 18px 50px rgba(45, 42, 110, .08);
  --font:        "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: 0 0 28px; }

/* ---------------- Header ---------------- */

.site-header {
  position: relative;
  z-index: 3;
  padding: 26px 0 6px;
}

.logo { display: inline-flex; align-items: center; }

.logo-img {
  height: 46px;
  width: auto;
}

/* the logo is dark blue, so on the navy footer it sits on a light badge */
.logo--badge {
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--white);
}

.logo--badge .logo-img { height: 40px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 0%, #ffffff 0%, rgba(255,255,255,0) 55%),
    linear-gradient(150deg, #fdfaf7 0%, var(--cream-2) 100%);
  padding-bottom: 40px;
  margin-top: -78px;
  padding-top: 78px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 520px;
}

.hero-copy { padding: 40px 0 70px; max-width: 470px; }

.hero-eyebrow {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(52px, 7.4vw, 90px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 2px;
}

.hero-rule {
  display: block;
  width: 66px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin: 26px 0 24px;
}

.hero-lead {
  font-size: 17px;
  color: #55556a;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

/* photo */

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
}

.hero-photo-frame {
  position: relative;
  width: min(560px, 46vw);
  margin-right: calc((100vw - min(1160px, 100vw - 48px)) / -2);
  margin-top: -85px; /* nuotrauka siekia viršutinį puslapio kraštą */
  align-self: stretch;
  min-height: 560px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%),
                      linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 26%),
              linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* decorative dot grids */

.dots {
  position: absolute;
  background-image: radial-gradient(var(--gold) 42%, transparent 43%);
  background-size: 22px 22px;
  opacity: .55;
  pointer-events: none;
}

.dots--left  { left: 4px; top: 200px; width: 46px; height: 200px; }
.dots--right { right: 3vw; bottom: -140px; width: 100px; height: 210px; opacity: .5; }

/* ---------------- Cards ---------------- */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px clamp(24px, 4vw, 56px);
}

.card--features { margin-top: -12px; }

.card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 40px;
}

.title-line {
  width: clamp(40px, 8vw, 96px);
  height: 2px;
  background: var(--gold);
  opacity: .7;
}

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  text-align: center;
  padding: 6px 22px;
  border-left: 1px solid var(--line);
}

.feature:first-child { border-left: 0; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f3eff4;
}

.feature-icon svg { width: 46px; height: 46px; }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 15px;
  color: #63637a;
  line-height: 1.55;
}

.ico { width: 20px; height: 20px; flex: none; color: var(--navy); }

/* ---------------- Thanks ---------------- */

.thanks {
  text-align: center;
  padding: 46px 0 28px;
}

.thanks-title {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.thanks-heart {
  width: 34px;
  height: 32px;
  margin: 0 auto;
  animation: beat 2.4s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.14); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.09); }
  48%      { transform: scale(1); }
}

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  margin-top: 30px;
  padding-top: 40px;
  background: var(--navy-deep);
  color: #d8d5ea;
}

.footer-wave {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 130px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px clamp(40px, 8vw, 120px);
  padding: 30px 0 46px;
}

.footer-tagline {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #c4c0dd;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col li { margin-bottom: 11px; font-size: 14.5px; }

.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.55;
  margin-bottom: 15px;
}

.footer-contacts .ico { margin-top: 3px; color: #cfcbe6; }

.footer-contacts a { color: var(--white); }
.footer-contacts a:hover { text-decoration: underline; }

.copyright {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  font-size: 13.5px;
  color: #b3aed2;
}

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

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .feature { padding-inline: 12px; }
}

@media (max-width: 900px) {
  .hero { padding-bottom: 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    order: 2;
    padding: 24px 0 54px;
    max-width: none;
  }

  .hero-visual { order: 1; justify-content: center; }

  .hero-photo-frame {
    width: min(460px, 100%);
    min-height: 380px;
    margin-right: 0;
    margin-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  }

  .dots--left { top: auto; bottom: 40px; }
  .dots--right { display: none; }

  .features { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .feature { border-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid var(--line); }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .card { padding: 34px 22px; border-radius: 20px; }
  .card-title { gap: 12px; }
  .title-line { width: 30px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .footer-wave { height: 80px; }
}
