/* ==========================================================================
   MB AutoZorgas - custom stylesheet
   No framework. Mobile-first: base rules target phones, media queries add
   layout for wider screens. Brand values live in the :root variables below,
   so colours and spacing can be adjusted in one place.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:        #1B3A8C;
  --navy-dark:   #152E70;
  --blue:        #2E7BD6;
  --blue-light:  #EAF2FC;
  --orange:      #F7901E;
  --orange-dark: #DE7C0C;

  /* Neutrals */
  --white:       #FFFFFF;
  --grey-bg:     #F2F4F8;
  --grey-line:   #DDE3ED;
  --text:        #1F2633;
  --text-muted:  #5A6577;

  /* Type */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Type scale: 44 / 32 / 24 / 18 / 16 on desktop (hero is a display size) */
  --fs-display:  56px;
  --fs-h1:       44px;
  --fs-h2:       32px;
  --fs-h3:       24px;
  --fs-lead:     18px;
  --fs-body:     16px;

  /* Spacing scale */
  --space:       1rem;     /* 16px */
  --space-lg:    2rem;     /* 32px */
  --space-xl:    3rem;     /* 48px - heading to content */
  --section-y:   64px;     /* section padding, mobile */
  --card-pad:    24px;
  --radius:      10px;
  --radius-lg:   16px;     /* cards */
  --radius-pill: 999px;
  --shadow:      0 2px 8px rgba(27, 58, 140, .08);
  --shadow-lift: 0 12px 30px rgba(27, 58, 140, .18);
  --blue-tint:   #E8F0FB;   /* icon circles */

  /* Motion */
  --reveal-dur:  500ms;
  --reveal-ease: cubic-bezier(.22, .61, .36, 1);
  --container:   1200px;   /* main content width */
  --column:       680px;   /* narrow reading column: works feed */
  --column-wide:  960px;   /* contacts page */
  --gutter:      1.5rem;   /* 24px side padding on mobile */
  --header-h:      80px;
  --transition:  .18s ease;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

h1, h2, h3 { line-height: 1.22; margin: 0 0 .6em; font-weight: 700; color: var(--navy); }
h1 { font-size: 32px; letter-spacing: -.02em; }
h2 { font-size: 26px; letter-spacing: -.01em; }
h3 { font-size: 20px; }
.h3 { font-size: 20px; color: var(--navy); margin: 0 0 .8em; font-weight: 700; }

/* One type scale from 768px up: 44 / 32 / 24 / 18 / 16. */
@media (min-width: 768px) {
  h1  { font-size: var(--fs-h1); }
  h2  { font-size: var(--fs-h2); }
  h3  { font-size: var(--fs-h3); }
  .h3 { font-size: var(--fs-h3); }
  .section__lead { font-size: var(--fs-lead); }
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

/* Keyboard users can jump straight to the content. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: .7rem 1.1rem; text-decoration: none; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* One container for the header, every section and the footer. */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Narrower centred columns. Text inside them is always left-aligned. */
.column      { max-width: calc(var(--column) + 2 * var(--gutter)); }
.column--wide { max-width: calc(var(--column-wide) + 2 * var(--gutter)); margin-inline: auto; }

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

/* Wider shell on very large screens so the content is not stranded mid-page. */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

/* ---------------------------------------------------------------------------
   One alignment rule
   - home page: section headings and leads are centred
   - works feed / contacts: narrow centred column, text left-aligned inside
   No section mixes the two.
   --------------------------------------------------------------------------- */
.page-home .section__title,
.page-home .section__lead,
.section--centered .section__title,
.section--centered .section__lead,
.section--centered p {
  text-align: center;
}
.page-home .section__lead,
.section--centered .section__lead {
  margin-left: auto;
  margin-right: auto;
}
.page-home .section__action { justify-content: center; }
/* The map's "open in Google Maps" link sits in a centred home-page section,
   so it must be centred too - otherwise that one section mixes alignments. */
.page-home .map__link { text-align: center; }

/* The feed and contacts columns stay left-aligned even on the home page rule. */
.column .section__title,
.column .section__lead,
.column--wide .section__title,
.column--wide .section__lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.section--centered .column .section__title,
.section--centered .column .section__lead,
.section--centered .column p { text-align: center; }

.center { text-align: center; }

/* Present for screen readers and the document outline, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon { width: 1.15em; height: 1.15em; fill: none; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--pill { border-radius: var(--radius-pill); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); color: var(--white); }

/* The tap-to-call button is the site's main conversion point: orange, biggest. */
.btn--call {
  background: var(--orange);
  color: #3A2200;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  gap: 10px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.btn--call:hover { background: var(--orange-dark); color: #3A2200; box-shadow: var(--shadow-lift); }
.btn--call span { letter-spacing: .2px; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--lg { padding: .95rem 1.7rem; font-size: 1.08rem; }
.btn--sm { padding: .45rem .9rem; font-size: .92rem; }

/* --------------------------------------------------------------------------
   Header - single row: logo left, nav right, phone pill far right
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* main.js adds this once the page is scrolled. */
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(27, 58, 140, .13);
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space);
  min-height: var(--header-h);
}

.site-header__logo { display: block; line-height: 0; flex: 0 0 auto; }
.site-header__logo img { width: auto; height: 40px; max-height: 52px; }

/* Pushes the nav + actions to the right of the logo. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Orange pill: full number on wider screens, icon-only on phones. */
.site-header__phone {
  display: none;
  height: 48px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
}
.site-header__phone .icon { width: 22px; height: 22px; stroke-width: 2.25; }

.site-header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #3A2200;
  text-decoration: none;
  transition: background-color var(--transition);
}
.site-header__phone-icon:hover { background: var(--orange-dark); color: #3A2200; }
.site-header__phone-icon svg { width: 22px; height: 22px; fill: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Navigation - dropdown panel on phones, inline row from 860px up
   -------------------------------------------------------------------------- */
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--grey-line);
  box-shadow: 0 10px 24px rgba(27, 58, 140, .10);
  padding: .4rem var(--gutter) .8rem;
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; display: flex; flex-direction: column; }
.site-nav__list > li { border-bottom: 1px solid var(--grey-line); }
.site-nav__list > li:last-child { border-bottom: 0; }

.site-nav__link {
  display: block;
  padding: .85rem .2rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.site-nav__link:hover,
.site-nav__link.is-current { color: var(--blue); }

@media (min-width: 860px) {
  .nav-toggle,
  .site-header__phone-icon { display: none; }

  .site-header__phone { display: inline-flex; }

  .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    border-top: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 32px; }
  .site-nav__list > li { border-bottom: 0; }

  .site-nav__link {
    padding: .55rem 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .site-nav__link:hover { color: var(--blue); }

  /* The nav already sits right of the logo, so the actions need no auto margin. */
  .site-header__actions { margin-left: 0; }
  .site-header__logo img { height: 52px; }
}

/* --------------------------------------------------------------------------
   Hero - full-width collage photo behind a navy overlay
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;          /* keeps ::before behind the text, not the page */
  display: flex;
  align-items: center;
  min-height: 520px;           /* mobile */
  overflow: hidden;
  background: var(--navy-dark); /* shows while the photo loads */
  color: var(--white);
}

/*
  The photo, the navy overlay and the slight blur all live here. The element is
  inset by -2% and scaled 1.03 so the blurred edges stay outside the hero box.
*/
.hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -1;
  /* Phones get the 1600px crop; the full 3600px file is only fetched on
     screens wide enough to show it. */
  background-image:
    linear-gradient(rgba(16, 30, 80, .62), rgba(16, 30, 80, .62)),
    url("../img/collage-1600.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;   /* no parallax on touch devices */
  filter: blur(2px);
  transform: scale(1.03);
}

.hero__inner {
  position: relative;
  text-align: center;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hero__title {
  font-size: 34px;             /* mobile */
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 .5em;
  text-shadow: 0 2px 18px rgba(8, 16, 44, .45);
}

.hero__intro {
  max-width: 52ch;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
  color: #E8EEFA;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  margin-bottom: 1.4rem;
}

/* White outline button, for use on the photo. */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .85);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.hero__note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem .9rem;
  font-size: .94rem;
  font-weight: 500;
  color: #EAF0FB;
  background: rgba(10, 20, 56, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  /* Wraps to several lines on a narrow phone, where a full pill radius looks
     wrong; it becomes a true pill once it fits on one line. */
  border-radius: var(--radius-lg);
  text-align: left;
}
.hero__note-icon { width: 18px; height: 18px; color: var(--orange); flex: 0 0 auto; }

/* Hero call button gets the same treatment as the header phone pill, just taller. */
.hero__actions .btn--call {
  height: 56px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
}
.hero__actions .btn--call .icon { width: 24px; height: 24px; stroke-width: 2.25; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; justify-content: center; align-items: center; }
  .hero__note { border-radius: 999px; }
}

@media (min-width: 768px) {
  .hero__inner { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
}

@media (min-width: 860px) {
  .hero { min-height: 560px; }          /* desktop */
  .hero__title { font-size: 56px; }
  .hero__intro { font-size: 1.15rem; margin-bottom: 2rem; }
  .hero__note { font-size: 1rem; }
}

@media (min-width: 1100px) {
  .hero::before {
    background-image:
      linear-gradient(rgba(16, 30, 80, .62), rgba(16, 30, 80, .62)),
      url("../img/collage.jpg");
  }
}

/* Gentle parallax only where there is a real pointer; never on touch. */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .hero::before { background-attachment: fixed; }
}

/* --------------------------------------------------------------------------
   Partner marquee - white band under the hero
   -------------------------------------------------------------------------- */
.partners {
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  padding: 1rem 0 .9rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.partners__label {
  margin: 0 0 16px;   /* 16px between the label and the logo row */
  text-align: center;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/*
  Viewport for the moving track. The edges are faded with mask-image where it is
  supported; the ::before/::after gradient overlays below are the fallback for
  browsers without mask support, so the logos never cut off hard.
*/
.marquee {
  position: relative;
  overflow: hidden;
}

/* Fallback fade: white-to-transparent overlays pinned to both edges. */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  max-width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--white), rgba(255, 255, 255, 0)); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--white), rgba(255, 255, 255, 0)); }

/* Where masks work, use the mask and drop the overlays. */
@supports (mask-image: linear-gradient(to right, transparent, black)) or
          (-webkit-mask-image: linear-gradient(to right, transparent, black)) {
  .marquee {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }
  .marquee::before,
  .marquee::after { display: none; }
}

/*
  The track holds two identical halves, so animating it to -50% returns it to a
  visually identical position - a seamless loop with no snap.
*/
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__set {
  display: flex;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0 32px;              /* half the gap, so sets join evenly */
  list-style: none;
  flex: 0 0 auto;
}

.marquee__set a { display: block; line-height: 0; }

.marquee__set img {
  height: 40px;           /* default; config.php can override per partner */
  width: auto;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter var(--transition), opacity var(--transition);
}
.marquee__set a:hover img { filter: grayscale(0); opacity: 1; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* No motion: show one static, centred set. */
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee::before, .marquee::after { display: none; }
  .marquee__track { animation: none; width: 100%; justify-content: center; }
  .marquee__set { flex-wrap: wrap; justify-content: center; gap: 40px; }
  .marquee__set:not(:first-child) { display: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--grey-bg); }
/* Two classes, so the `padding` shorthand in the >=768px block below cannot
   silently restore the bottom padding. */
.section.section--page-head { padding-bottom: 0; }
/* A page heading already provides separation, so the section that follows it
   does not need its full top padding as well. */
.section--page-head + .section { padding-top: var(--space-lg); }

.section__title { margin-bottom: .4em; }

/* A section heading (or heading + lead) is always followed by 48px of space. */
.section__title:last-child,
.section__lead {
  margin-bottom: var(--space-xl);
}
.section__lead {
  max-width: 62ch;
  color: var(--text-muted);
}
/* When there is no lead, the title itself owns the 48px gap. */
.section__title + .service-grid,
.section__title + .advantage-grid,
.section__title + .work-preview-grid,
.section__title + .locate,
.section__title + .feed { margin-top: var(--space-xl); }
.section__action { margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.section__action--center { justify-content: center; }

@media (min-width: 768px) {
  :root { --section-y: 96px; }   /* 96px desktop / 64px mobile */
}

/* --------------------------------------------------------------------------
   Service cards - 2 columns on mobile, a clean 3x2 from 900px up
   -------------------------------------------------------------------------- */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

/* 36px icon centred in a 72px light-blue circle. */
.service-card__icon-wrap,
.advantage__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 1rem;
}
.service-card__icon-wrap,
.advantage__icon-wrap { width: 72px; height: 72px; }
.service-card__icon,
.advantage__icon { width: 36px; height: 36px; stroke-width: 1.5; }

.service-card__title { font-size: 18px; margin-bottom: .4em; overflow-wrap: break-word; }
.service-card__text { margin: 0; color: var(--text-muted); font-size: .96rem; overflow-wrap: break-word; }



@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); } }

/* --------------------------------------------------------------------------
   "Why us" - four equal cards
   -------------------------------------------------------------------------- */
.advantage-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 2x2 on mobile */
  gap: var(--space);
  align-items: stretch;                   /* cards fill their row */
  grid-auto-rows: 1fr;                    /* ...and every row is the same height */
}

.advantage {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.advantage:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }

.advantage__title { font-size: 18px; margin-bottom: .4em; overflow-wrap: break-word; }
.advantage__text { margin: 0; color: var(--text-muted); font-size: .95rem; overflow-wrap: break-word; }

@media (min-width: 1000px) { .advantage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); } }

/* --------------------------------------------------------------------------
   Works preview on the home page
   -------------------------------------------------------------------------- */
.work-preview-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.work-preview {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  overflow: hidden;                       /* clips the image zoom */
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.work-preview:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-4px); }

.work-preview__link { display: block; text-decoration: none; color: inherit; }

/* Fixed-ratio frame; the image scales inside it so nothing reflows. */
.work-preview__frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--grey-bg);
}

.work-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--reveal-ease);
}
.work-preview:hover .work-preview__image { transform: scale(1.04); }

/* 20px padding all round, 8px between title and meta. */
.work-preview__body { display: block; padding: 20px; }
.work-preview__title { display: block; font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.35; }
.work-preview__meta { display: block; margin-top: 8px; font-size: .88rem; color: var(--text-muted); }

@media (min-width: 600px) { .work-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Text link with a chevron that nudges on hover. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow:hover { color: var(--blue); }
.link-arrow__chevron { transition: transform var(--transition); }
.link-arrow:hover .link-arrow__chevron { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   "Kaip mus rasti" - map on one side, address card on the other
   -------------------------------------------------------------------------- */
.locate {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.locate__map { min-height: 280px; }
.locate__map .map { height: 100%; }
.locate__map .map iframe { height: 100%; min-height: 280px; }
.locate__map .map__link { display: none; }   /* the card has its own CTA */

.locate__card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.locate__heading { font-size: var(--fs-h3); margin-bottom: .5em; }

.locate__address {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--text);
}
.locate__address svg { width: 20px; height: 20px; fill: var(--orange); flex: 0 0 auto; margin-top: 2px; }

.locate__details { margin: 0 0 1.2rem; }
.locate__details dt {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); margin-top: .7rem;
}
.locate__details dd { margin: .1rem 0 0; font-weight: 600; }
.locate__details a { text-decoration: none; }
.locate__details a:hover { text-decoration: underline; }

.locate__cta { margin-bottom: 1.3rem; }

.locate__social-label,
.contacts-social-label {
  margin: 0 0 .6rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .locate { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   Round social / external link buttons
   -------------------------------------------------------------------------- */
.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--navy);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.social-btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.social-btn__icon { width: 20px; height: 20px; fill: none; }

/* On dark grounds (the navy footer band, if ever used there). */
.social-list--light .social-btn { background: rgba(255, 255, 255, .14); color: var(--white); }
.social-list--light .social-btn:hover { background: var(--white); color: var(--navy); }

.contacts-social-label { margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   Works feed - "post cards" (/darbai)

   The works come from the business's Facebook Page, so each entry is presented
   as a post: brand mark + name + date, the text, a photo mosaic, and a link
   back to the original. Brand colours only - no imitation of Facebook's blue,
   icons or logo.
   -------------------------------------------------------------------------- */
.section--feed { padding-top: var(--space-lg); }

.feed-head { margin-bottom: 2rem; }   /* ~32px between the intro and the first card */
.feed-head .section__title { margin-bottom: .4em; }
.feed-head__lead { margin: 0; color: var(--text-muted); }

.feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.post {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- header row --- */
.post__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem .75rem;
}

.post__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--grey-line);
  object-fit: contain;       /* the logo is letterboxed, never cropped */
  padding: 1px;
}

.post__head-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }

.post__author { font-weight: 600; color: var(--navy); font-size: 1rem; }
.post__date { font-size: .84rem; color: var(--text-muted); }

/* --- post text --- */
.post__body { padding: 0 1rem .9rem; }

.post__text {
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
}

/* Collapsed state for long posts; expanded by the "Rodyti daugiau" button.
   A fade at the bottom hints that there is more to read. */
.post__text--clamped {
  position: relative;
  max-height: 7.8em;
  overflow: hidden;
}
.post__text--clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

.post__more {
  margin-top: .45rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post__more:hover { color: var(--blue); }

/* --- photo mosaic ---
   One grid per photo count. Tiles are cropped with object-fit: cover and have
   fixed aspect ratios, so the card height never depends on the photos. */
.mosaic {
  display: grid;
  gap: 3px;
  background: var(--grey-line);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mosaic__tile {
  position: relative;
  display: block;
  grid-column: span 6;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--grey-bg);
  cursor: pointer;
  overflow: hidden;
}

.mosaic__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
}
.mosaic__tile:hover .mosaic__image { transform: scale(1.03); opacity: .94; }

/* "+N" overlay on the last tile when there are more photos than tiles. */
.mosaic__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 46, 112, .62);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* 1 photo: full width */
.mosaic--1 .mosaic__tile { aspect-ratio: 4 / 3; }

/* 2 photos: side by side */
.mosaic--2 .mosaic__tile { grid-column: span 3; aspect-ratio: 1 / 1; }

/* 3 photos: one large on top, two below */
.mosaic--3 .mosaic__tile:nth-child(1) { grid-column: span 6; aspect-ratio: 16 / 9; }
.mosaic--3 .mosaic__tile:nth-child(2),
.mosaic--3 .mosaic__tile:nth-child(3) { grid-column: span 3; aspect-ratio: 1 / 1; }

/* 4 photos: 2x2 */
.mosaic--4 .mosaic__tile { grid-column: span 3; aspect-ratio: 1 / 1; }

/* 5 or more: two on top, three below (the last one carries the "+N") */
.mosaic--5 .mosaic__tile:nth-child(1),
.mosaic--5 .mosaic__tile:nth-child(2) { grid-column: span 3; aspect-ratio: 3 / 2; }
.mosaic--5 .mosaic__tile:nth-child(3),
.mosaic--5 .mosaic__tile:nth-child(4),
.mosaic--5 .mosaic__tile:nth-child(5) { grid-column: span 2; aspect-ratio: 1 / 1; }

/* On a narrow phone the three-across row gets short, so soften the crop. */
@media (max-width: 420px) {
  .mosaic--5 .mosaic__tile:nth-child(3),
  .mosaic--5 .mosaic__tile:nth-child(4),
  .mosaic--5 .mosaic__tile:nth-child(5) { aspect-ratio: 3 / 4; }
  .mosaic__more { font-size: 1.3rem; }
}

/* --- footer row --- */
.post__foot { padding: .8rem 1rem .9rem; border-top: 1px solid var(--grey-line); }

.post__source {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.post__source:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.post__source-icon { width: 1em; height: 1em; fill: none; flex: 0 0 auto; }

.post__fallback { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: .9rem 1rem; }

.empty-state {
  background: var(--grey-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.empty-state .hero__note { text-align: left; }

/* --------------------------------------------------------------------------
   Lightbox: plain JS, no library. Hidden until a photo is clicked.
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  background: rgba(14, 22, 40, .93);
}
.lightbox[hidden] { display: none; }

.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__image {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--navy-dark);
}
.lightbox__caption { color: #E6ECF7; font-size: .92rem; padding-top: .7rem; }

.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  transition: background-color var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .26); }

.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__nav--prev { order: -1; }

/* On phones the arrows sit at the bottom so they are reachable with a thumb. */
@media (max-width: 600px) {
  .lightbox { flex-wrap: wrap; align-content: center; }
  .lightbox__figure { flex: 1 0 100%; order: 1; }
  .lightbox__nav { order: 2; margin-top: .8rem; }
  .lightbox__nav--prev { order: 2; }
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-line);
  background: var(--grey-bg);
  line-height: 0;
}
.map iframe { width: 100%; height: 300px; border: 0; }
.map__link { margin: .7rem 0 0; font-size: .93rem; }

@media (min-width: 768px) { .map iframe { height: 380px; } }

/* --------------------------------------------------------------------------
   Contact strip (home page) - one compact navy band: a single line and the
   call button. The full contact details are in the footer only.
   -------------------------------------------------------------------------- */
.contact-strip { background: var(--navy); color: var(--white); padding: var(--space-lg) 0; }

.contact-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space);
}

.contact-strip__text {
  margin: 0;
  max-width: 52ch;
  font-size: 1.02rem;
  color: #E3EAF8;
}

@media (min-width: 760px) {
  .contact-strip__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }
  .contact-strip__text { font-size: 1.08rem; }
}

/* --------------------------------------------------------------------------
   Contacts page
   -------------------------------------------------------------------------- */
.contacts-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }

@media (min-width: 900px) {
  .contacts-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-xl); align-items: start; }
}

.detail-list { margin: 0 0 var(--space-lg); }
.detail-list dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-top: .9rem;
}
.detail-list dd { margin: .1rem 0 0; font-size: 1.05rem; }
.detail-list__strong { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.detail-list__note { font-size: .97rem; color: var(--navy); font-weight: 500; }

.contacts-details .map { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { background: var(--grey-bg); border-radius: var(--radius-lg); padding: 1.25rem; }

.form__row { margin-bottom: 1rem; }

.form__label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .3rem; color: var(--navy); }
.req { color: var(--orange-dark); }
.opt { font-weight: 400; color: var(--text-muted); font-size: .88rem; }

.form__input {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 123, 214, .16);
  outline: none;
}
.form__input.has-error { border-color: #C62828; background: #FFF7F7; }
.form__textarea { resize: vertical; min-height: 140px; }

.form__error { margin: .35rem 0 0; color: #C62828; font-size: .88rem; font-weight: 500; }
.form__note { margin: 1rem 0 0; font-size: .85rem; color: var(--text-muted); }

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: .9rem 1.05rem;
  margin-bottom: var(--space);
  font-size: .96rem;
}
.alert--success { background: #E8F6EC; border-left: 4px solid #2E7D32; color: #1B5E20; }
.alert--error   { background: #FDECEC; border-left: 4px solid #C62828; color: #8E1C1C; }
.alert a { color: inherit; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-code {
  font-size: clamp(3.5rem, 16vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-light);
  margin: 0 0 .1em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--grey-bg); border-top: 1px solid var(--grey-line); padding-top: var(--section-y); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--section-y);
}
.site-footer__col { min-width: 0; }

.site-footer__logo { width: auto; height: 54px; }
.site-footer__tagline { margin: .6rem 0 0; color: var(--text-muted); font-size: .95rem; }

.site-footer__heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: .6em; }

.site-footer__list { list-style: none; }
.site-footer__list li { margin-bottom: .35rem; text-wrap: pretty; }
.site-footer__list a { font-weight: 600; text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }

.site-footer__links { list-style: none; margin-bottom: 1rem; }
.site-footer__links li { margin-bottom: .3rem; }
.site-footer__links a { font-weight: 500; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__legal {
  border-top: 1px solid var(--grey-line);
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem;
  font-size: .87rem;
  color: var(--text-muted);
}
.site-footer__legal p { margin: 0; }

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  /* logo + one-liner, Nuorodos, Kontaktai, Sekite mus */
  .site-footer__grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr); gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   Motion - reveal on scroll, hero load, phone pulse
   All of it is opt-out under prefers-reduced-motion (see the block below).
   -------------------------------------------------------------------------- */

/*
  Reveal on scroll. Elements start 16px low and transparent; main.js adds
  .is-visible when they enter the viewport. --reveal-delay is set per card by
  JS to stagger grid items by 60ms.
*/
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/*
  If JS never runs, nothing should stay invisible. .js is set on <html> by
  main.js, so without it the reveal styles simply do not apply.
*/
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* Hero text and buttons fade up once on load. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero__inner > * {
  animation: hero-in 600ms var(--reveal-ease) both;
}
.hero__title   { animation-delay: 60ms; }
.hero__intro   { animation-delay: 140ms; }
.hero__actions { animation-delay: 220ms; }
.hero__note    { animation-delay: 300ms; }

/* Soft slow pulse ring on the phone icon button, every 3s. */
@keyframes phone-pulse {
  0%      { box-shadow: 0 0 0 0 rgba(247, 144, 30, .55); }
  18%     { box-shadow: 0 0 0 12px rgba(247, 144, 30, 0); }
  100%    { box-shadow: 0 0 0 0 rgba(247, 144, 30, 0); }
}
.site-header__phone-icon { animation: phone-pulse 3s ease-out infinite; }

/* Active nav underline slides in rather than appearing. */
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--reveal-ease);
}
.site-nav__link.is-current::after,
.site-nav__link:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* Nothing may stay hidden or offset when motion is switched off. */
  [data-reveal],
  [data-reveal].is-visible,
  .hero__inner > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .site-header__phone-icon { animation: none !important; }
  .site-nav__link.is-current::after { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Narrow-phone card overrides

   Kept at the end of the file on purpose: these must override the base card
   rules above, and all of them have the same specificity.
   -------------------------------------------------------------------------- */
/*
  Two columns on a 375px phone leave ~120px of text width per card. Long
  Lithuanian compounds ("Akumuliatoriai") only fit if the card padding and
  title size come down, so both are reduced below 560px - otherwise the words
  break mid-syllable, which looks broken.
*/
@media (max-width: 559px) {
  .service-card,
  .advantage { padding: 16px; }
  .service-card__title,
  .advantage__title { font-size: 16px; }
  .service-card__text,
  .advantage__text { font-size: .9rem; }
  .service-card__icon-wrap,
  .advantage__icon-wrap { width: 60px; height: 60px; }
  .service-card__icon,
  .advantage__icon { width: 32px; height: 32px; }
}

/* "Akumuliatoriai" is the longest title and still misses by ~2px at 375px, so
   between 361px and 420px the gap and title size come down a notch. */
@media (max-width: 420px) {
  .service-grid,
  .advantage-grid { gap: 12px; }
  .service-card__title,
  .advantage__title { font-size: 15px; }
}

/* Below 360px even that is too tight, so the grids drop to one column. */
@media (max-width: 360px) {
  .service-grid,
  .advantage-grid { grid-template-columns: minmax(0, 1fr); }
}
