/* ==========================================================================
   BENO gitaros kursai — design system
   Rebuilt from the WordPress/Elementor original.
   Palette + type extracted from the old site's rendered CSS.
   ========================================================================== */

:root {
  --amber: #ffab00;
  --amber-dark: #e09600;
  --magenta: #ef15c4;
  --dark: #14161f;
  --dark-2: #1e2130;
  --bg: #f5f7fa;
  --white: #fff;
  --text: #333;
  --muted: #666;
  --line: #e6e8ee;
  --ok: #22a06b;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .07);
  --wrap: 1140px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.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;
}

/* ---------- header ---------- */
.site-header {
  background: var(--dark);
  color: #fff;
  position: relative;
  z-index: 50;
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

/* Logo is sized to sit on the same optical line as the nav — not bigger than
   the rest of the bar. */
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 112px; height: auto; display: block; }

/* social icons in the desktop bar (mirrored inside the drawer on mobile) */
.head-socials { display: flex; gap: 8px; flex: 0 0 auto; }
.head-socials a {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
}
.head-socials .fb { background: #1877f2; }
.head-socials .yt { background: #ff0000; }
.head-socials svg { width: 15px; height: 15px; fill: #fff; }


.head-contact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 18px;
  margin-left: 2px;
  border-left: 1px solid #2a2e40;
  font-size: 12.5px;
  line-height: 1.35;
}
.head-contact a { color: #aab0c2; }
.head-contact a:first-child { color: #fff; font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__link { color: #fff; font-size: 15px; font-weight: 500; }
.nav__link:hover { color: var(--amber); text-decoration: none; }

/* drawer-only pieces — hidden on desktop */
.nav__socials,
.nav__contact,
.nav__link--more { display: none; }

.lang { display: flex; gap: 6px; font-size: 13px; }
.lang a { color: #9aa0b5; }
.lang a.on { color: #fff; font-weight: 600; }

/* ---------- hamburger ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid #333850;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 21px; height: 2px;
  margin: 2.5px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .16s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 14, .55);
  z-index: 55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 30px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease;
}
.btn:hover { background: var(--amber-dark); text-decoration: none; }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  border-radius: 30px;
  padding: 13px 34px;
}
.btn--ghost:hover { background: var(--amber); color: #1a1a1a; }
.btn--block { display: block; width: 100%; font-size: 17px; padding: 18px 30px; }

/* On touch devices :hover sticks after a tap and leaves the element greyed out.
   Kill the UA tap highlight and give a short, self-clearing :active instead. */
.btn, .county__trigger, .city, .nav-toggle, .modal__close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.county__trigger:active, .city:active { background: #eceff5; }
/* ---------- hero ---------- */
.hero {
  position: relative;
  background: #0d0f16 center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 96px 20px 104px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,.72), rgba(10,12,18,.86));
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker {
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.hero .sub { font-size: clamp(17px, 2.4vw, 22px); color: rgba(255,255,255,.86); margin: 0 0 30px; }

/* ---------- generic sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg); }
.section__title {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section__lead { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 640px; }

.quote-strip {
  border-left: 3px solid var(--line);
  padding-left: 18px;
  font-style: italic;
  color: var(--muted);
  margin: 34px 0;
}

/* Grids are mobile-first with explicit breakpoints. Deliberately NOT using
   minmax(min(...px, 100%), 1fr) — percentage tracks can resolve against the
   viewport and overflow the container on narrow phones. */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid--3, .grid--2 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- group cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.card .meta { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.card .when { color: var(--amber-dark); font-weight: 700; }
.card .spots { font-size: 14px; color: var(--muted); }

/* ---------- carousel ---------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel__track { display: flex; transition: transform .4s ease; }
.carousel__track img { min-width: 100%; }
.carousel__nav { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: #c9ced9; cursor: pointer;
}
.carousel__dot.on { background: var(--amber); }

/* ---------- before-you-start list ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--magenta); font-weight: 700; }
.checks li.star::before { content: "★"; color: var(--amber); }

.note {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--muted);
  font-style: italic;
  margin: 22px 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 26px;
}
.price { font-size: 22px; font-weight: 700; }
.price b { color: var(--amber-dark); font-size: 30px; }
.contact-mini { font-size: 15px; color: var(--muted); text-align: right; }
.contact-mini b { color: var(--text); }

/* ---------- form ---------- */
.form { max-width: 680px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.field .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #cfd4e0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }

.form__status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
}
.form__status.ok { display: block; background: #e8f7f0; color: #14624a; }
.form__status.err { display: block; background: #fdecec; color: #a01f1f; }

/* ---------- steps ---------- */
.step-card { text-align: center; }
.step-card .num {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; margin: 0 auto 14px;
  font-weight: 700; font-size: 20px;
}
.step-card:nth-child(1) .num { background: #4a7cf7; }
.step-card:nth-child(2) .num { background: var(--amber); }
.step-card:nth-child(3) .num { background: var(--ok); }

.guarantee {
  border: 2px solid var(--ok);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 34px auto 0;
  max-width: 680px;
  text-align: center;
}
.guarantee h3 { margin: 0 0 8px; color: #14624a; }

/* ---------- city directory ----------
   Buttons size to their text rather than stretching: a short county name gets
   a short button, "Marijampolės apskritis" gets a longer one. */
.directory {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.county {
  width: fit-content;
  min-width: min(260px, 100%);
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.county__trigger {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (hover: hover) {
  .county__trigger:hover { background: var(--bg); }
}
.county__trigger .plus { color: var(--amber-dark); font-weight: 700; transition: transform .2s; }
.county.open .county__trigger .plus { transform: rotate(45deg); }
.county__body { display: none; padding: 0 26px 18px; }
.county.open .county__body { display: block; }

.city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: auto;                 /* hug the city name */
  min-width: 150px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: #fff;
  padding: 13px 20px;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) {
  .city:hover { background: var(--bg); }
}
.city.full { border-left-color: #c9ced9; color: var(--muted); }
.city .plus { color: var(--amber-dark); }
.city.full .plus { color: #b9bec9; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 3px 10px; }
.badge.open { background: #e8f7f0; color: #14624a; }
.badge.few  { background: #fff5e0; color: #8a5a00; }
.badge.full { background: #f0f1f5; color: #6b7280; }

.dir-notes { margin-top: 28px; font-size: 14px; color: var(--muted); }
.dir-notes li { margin-bottom: 6px; }

/* modal */
.modal {
  position: fixed; inset: 0; background: rgba(10,12,18,.6);
  display: none; place-items: center; padding: 20px; z-index: 100;
}
.modal.on { display: grid; }
.modal__panel {
  background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%;
  padding: 30px 32px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal__close {
  position: absolute; top: 10px; right: 14px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal h3 { margin: 0 0 16px; font-size: 24px; }
.modal dl { margin: 0; font-size: 15px; }
.modal dt { font-weight: 600; margin-top: 12px; }
.modal dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #9aa0b5; padding: 46px 0 30px; font-size: 14.5px; }
.site-footer a { color: #cfd3e0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid #2a2e40; margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px;
}

/* ============================================================
   Responsive — tuned from 320px (iPhone SE / older Androids)
   up through current iPhones and tablets.
   ============================================================ */

/* ============================================================
   Header switches to a slide-out drawer on tablet and below.
   The bar itself keeps only the logo and the hamburger.
   ============================================================ */
@media (max-width: 900px) {
  .site-header__bar { gap: 12px; padding: 12px 0; }
  .head-contact { display: none; }              /* lives in the drawer */
  .nav-toggle { display: grid; }
  .head-socials { display: none; }             /* the drawer carries them */

  .brand img { width: 118px; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 330px);
    margin: 0;
    padding: 76px 22px 34px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark-2);
    box-shadow: -14px 0 40px rgba(0, 0, 0, .35);
    transform: translateX(102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 60;
  }
  .nav.open { transform: none; }

  .nav__socials { display: flex; gap: 10px; margin: 0 0 20px; }
  .nav__socials a {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
  }
  .nav__socials .fb { background: #1877f2; }
  .nav__socials .yt { background: #ff0000; }
  .nav__socials svg { width: 18px; height: 18px; fill: #fff; }

  .nav__link,
  .nav__link--more {
    display: block;
    padding: 15px 2px;
    font-size: 17px;
    border-bottom: 1px solid #2c3145;
  }
  .nav__link--more { font-size: 16px; color: #c3c8d8; }

  .nav__contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    font-size: 15px;
  }
  .nav__contact a { color: #cfd3e0; }

  .nav__cta { margin-top: 24px; text-align: center; }
  .lang { margin-top: 20px; font-size: 14px; }

  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .field--row { grid-template-columns: 1fr; }
  .contact-mini { text-align: left; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  body.nav-open { overflow: hidden; }
  .wrap { padding: 0 16px; }
  .section { padding: 46px 0; }
  .section__lead { margin-bottom: 30px; }

  .brand img { width: 110px; }
  .nav-toggle { width: 44px; height: 44px; }

  .hero { padding: 62px 18px 68px; }
  .hero h1 { letter-spacing: -.01em; }
  .section__title { margin-bottom: 8px; }

  .card { padding: 18px 18px; }
  .btn { padding: 14px 24px; }

  /* Directory fills ~80% of the viewport on phones instead of hugging text */
  .directory { max-width: none; }
  .county { min-width: 80vw; }
  .county__trigger { padding: 17px 22px; font-size: 17px; }
  .county__body { padding: 0 16px 16px; }
  .city-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .city { flex: 1 1 130px; min-width: 0; padding: 13px 16px; }
  .modal__panel { padding: 24px 20px; }

  /* Footer: centred, two columns instead of a ragged left stack */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
    text-align: center;
  }
  .site-footer h4 { margin-bottom: 8px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* very small / low-res (≈4") */
@media (max-width: 380px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 13px; }
  .brand img { width: 100px; }
  .hero { padding: 52px 14px 58px; }
  .hero h1 { font-size: clamp(26px, 9vw, 38px); }
  .btn { width: 100%; text-align: center; }
  .btn--ghost { width: auto; }
  .city { font-size: 14.5px; }
  .footer-grid { gap: 20px; }
}

/* landscape phones — don't waste vertical space */
@media (max-height: 460px) and (orientation: landscape) {
  .hero { padding: 44px 18px 50px; }
  .hero h1 { font-size: clamp(24px, 6vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { transition: none; }
}

@media print {
  .site-header, .site-footer, .carousel__nav, .btn { display: none !important; }
  body { font-size: 12pt; }
}

/* closing CTA block (registration page) */
.cta-box {
  max-width: 680px;
  margin: 42px auto 0;
  padding: 32px 30px;
  text-align: center;
  border: 2px solid var(--ok);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f1fbf6 0%, #ffffff 70%);
}
.cta-box h3 {
  margin: 0 0 12px;
  color: #14624a;
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.25;
}
.cta-box p { margin: 0 0 16px; }
.cta-points {
  list-style: none;
  margin: 0 auto 22px;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.cta-points li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.cta-points li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--ok); font-weight: 700;
}
.cta-box .hint { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 600px) {
  .cta-box { padding: 24px 18px; }
  .cta-points { display: block; }
}
