/* Atitikties Ekspertai – shared stylesheet for all pages.
   Bump ?v=N in the <link> tags whenever this file changes. */

/* Base: typography, buttons, cards, navigation, mobile menu, forms */
body{ margin:0; background:#FFFFFF; color:#0D1117; font-family:'Inter', system-ui, sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-family:'Inter', system-ui, sans-serif; letter-spacing:-0.02em; }
a{ color:inherit; text-decoration:none; }
a.link{ color:var(--accent); font-weight:600; }
a.link:hover{ text-decoration:underline; text-underline-offset:3px; }
details > summary{ cursor:pointer; }
.eyebrow{ font-family:'Inter', system-ui, sans-serif; font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:14px; font-weight:600; }
.tag{ display:inline-flex; align-items:center; gap:6px; font-family:'Inter', system-ui, sans-serif; font-size:11.5px; letter-spacing:0.04em; padding:5px 12px; border-radius:100px; background:rgba(15,92,92,0.08); border:1px solid rgba(15,92,92,0.28); color:var(--accent); }
.navlink{ font-size:14px; font-weight:500; color:#4B5563; padding:6px 0; }
.navlink:hover{ color:#0D1117; }
.navlink.active{ color:var(--accent); }
.btn-primary{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--accent); color:#FFFFFF; font-weight:600; font-size:15px; padding:13px 28px; border-radius:8px; border:1px solid var(--accent); box-shadow:0 0 24px rgba(15,92,92,0.18); letter-spacing:0.01em; appearance:none; -webkit-appearance:none; -moz-appearance:none; font-family:inherit; cursor:pointer; margin:0; }
.btn-primary:hover{ background:#0B4545; box-shadow:0 0 36px rgba(15,92,92,0.18); }
.btn-secondary{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#FFFFFF; color:#0D1117; font-weight:600; font-size:15px; padding:13px 28px; border-radius:8px; border:1px solid rgba(0,0,0,0.14); }
.btn-secondary:hover{ border-color:rgba(0,0,0,0.28); }
/* Lighter variant used by the homepage hero */
.btn-secondary--subtle{ background:transparent; padding:12px 27px; border-color:rgba(0,0,0,0.08); }
.btn-secondary--subtle:hover{ border-color:rgba(15,92,92,0.28); color:var(--accent); }
.card{ background:#FFFFFF; border:1px solid rgba(0,0,0,0.08); border-radius:8px; }
.has-mega{ position:relative; padding-bottom:18px; margin-bottom:-18px; }
.mega-panel{ position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px); width:640px; background:#FFFFFF; border:1px solid rgba(0,0,0,0.08); border-radius:14px; box-shadow:0 28px 56px -18px rgba(13,17,23,0.2); padding:28px; opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease; z-index:50; display:grid; grid-template-columns:200px 200px 180px; gap:28px; }
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mega-parent{ display:block; font-size:14px; font-weight:700; color:#0D1117; margin-bottom:12px; }
.mega-parent:hover{ color:var(--accent); }
.mega-child{ display:block; font-size:13.5px; color:#4B5563; padding:5px 0; }
.mega-child:hover{ color:var(--accent); }
.mega-label{ font-size:11.5px; font-family:'Inter', system-ui, sans-serif; text-transform:uppercase; letter-spacing:0.08em; color:#9CA3AF; margin-bottom:12px; }
/* Below 1400px a panel centred under "Paslaugos" would stick out past the right edge
   (clipped menu + sideways page scroll), so align it with the right end of the nav instead */
@media (max-width:1400px){
  .desktop-nav{ position:relative; }
  .has-mega{ position:static; }
  .mega-panel{ left:auto; right:0; transform:translateY(6px); }
  .has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel{ transform:translateY(0); }
}
.check-item{ display:flex; align-items:flex-start; gap:12px; }
.check-icon{ width:22px; height:22px; border-radius:6px; background:rgba(15,92,92,0.08); display:flex; align-items:center; justify-content:center; flex:none; margin-top:1px; }
.faq-item{ border-bottom:1px solid rgba(0,0,0,0.08); }
.faq-q{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 0; cursor:pointer; }
html{ scroll-behavior:smooth; }
[id]{ scroll-margin-top:88px; }
.mobile-nav{ display:none; }
.mobile-nav summary{ list-style:none; cursor:pointer; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:8px; }
.mobile-nav summary::-webkit-details-marker{ display:none; }
.mobile-nav[open] summary{ background:rgba(0,0,0,0.05); }
.mobile-panel{ position:fixed; top:72px; left:0; right:0; bottom:0; background:#FFFFFF; overflow-y:auto; padding:8px clamp(20px,6vw,32px) 48px; border-top:1px solid rgba(0,0,0,0.08); z-index:40; }
.mobile-link{ display:flex; align-items:center; justify-content:space-between; font-size:16px; font-weight:600; color:#0D1117; padding:16px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
.mobile-link--separated{ margin-top:8px; }
.mobile-sublink{ display:block; font-size:14.5px; color:#4B5563; padding:11px 0 11px 14px; border-bottom:1px solid rgba(0,0,0,0.04); }
.mobile-group-label{ font-family:'Inter', system-ui, sans-serif; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9CA3AF; padding:22px 0 8px; }

/* Homepage */
.icon{ width:22px; height:22px; flex:none; }
.hero-grid{ position:relative; overflow:hidden; }
.hero-grid::before{ content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(15,92,92,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,92,92,0.06) 1px, transparent 1px); background-size:60px 60px; -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%); mask-image:radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%); pointer-events:none; }
.hero-grid::after{ content:''; position:absolute; top:-120px; left:50%; transform:translateX(-50%); width:800px; height:800px; background:radial-gradient(circle, rgba(15,92,92,0.09) 0%, transparent 65%); pointer-events:none; }
.form-input{ width:100%; background:#F6F4EE; border:1px solid rgba(0,0,0,0.08); border-radius:6px; padding:12px 16px; font-size:14.5px; color:#0D1117; font-family:'Inter',sans-serif; outline:none; box-sizing:border-box; }
.form-input:focus{ border-color:var(--accent); }
.form-label{ display:block; font-size:13px; font-weight:500; color:#4B5563; margin-bottom:8px; }

@media (max-width:900px){
  .desktop-nav, .desktop-cta{ display:none !important; }
  .mobile-nav{ display:block !important; }
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(3,minmax(0,1fr))"]{ grid-template-columns:1fr !important; }
  [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(4,1fr)"]{ grid-template-columns:repeat(2,1fr) !important; }
}

/* Refinements and motion */

:root{ interpolate-size:allow-keywords; }

/* Section labels and tags */
.eyebrow{ font-size:13px; letter-spacing:0; text-transform:none; font-weight:600; }
.tag{ letter-spacing:0; }

/* Flat primary button, plain hero background */
.btn-primary, .btn-primary:hover{ box-shadow:none; }
.hero-grid::before, .hero-grid::after{ display:none; }

/* Process step numbers */
.step-num{ width:30px; height:30px; border-radius:999px; border:1.5px solid rgba(15,92,92,0.35); color:#0F5C5C; font-size:13px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; flex:none; }

/* FAQ accordions (<details>) */
summary{ list-style:none; }
summary::-webkit-details-marker{ display:none; }
.faq-icon{ display:inline-block; transition:transform .25s ease; }
details[open] > summary .faq-icon{ transform:rotate(45deg); }
main details::details-content{ height:0; overflow:clip; transition:height .3s ease, content-visibility .3s allow-discrete; }
main details[open]::details-content{ height:auto; }

/* Header gets a soft shadow once the page is scrolled */
header{ transition:box-shadow .25s ease; }
header.is-scrolled{ box-shadow:0 8px 24px -16px rgba(13,17,23,0.28); }

/* Cards with a single link are clickable as a whole: the link's ::after covers the card */
.card--link{ position:relative; }
.card--link a.link::after{ content:''; position:absolute; inset:0; border-radius:inherit; }

/* Cards lift slightly on hover */
main .card{ transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
main [style*="display:grid"] > .card:hover,
main .grid > .card:hover,
main .card:has(a.link):hover{ transform:translateY(-3px); box-shadow:0 16px 32px -20px rgba(13,17,23,0.3); border-color:rgba(15,92,92,0.28); }

/* Scroll reveal (classes are added by site.js, so content stays visible without JS) */
.js-reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; transition-delay:var(--d, 0ms); }
.js-reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after, ::details-content{ transition:none !important; animation:none !important; }
  .js-reveal{ opacity:1; transform:none; }
}

/* Homepage hero: step timeline (animated once on load) */
.hero-steps__title{ margin:0 0 22px; font-size:15px; font-weight:700; color:#0D1117; }
.hero-steps__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px; }
.hero-steps__list li{ position:relative; display:flex; gap:14px; align-items:flex-start; }
.hero-steps__list li strong{ display:block; font-size:14.5px; font-weight:600; color:#0D1117; line-height:1.35; }
.hero-steps__list li div span{ display:block; margin-top:2px; font-size:13px; color:#4B5563; line-height:1.45; }
.hero-steps__dot{ position:relative; z-index:1; width:32px; height:32px; border-radius:999px; flex:none; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; background:#FFFFFF; color:#0F5C5C; border:1.5px solid rgba(15,92,92,0.3);
  animation:heroDot .45s ease forwards; animation-delay:calc(var(--i) * .6s + .4s); }
.hero-steps__list li:not(:last-child)::before,
.hero-steps__list li:not(:last-child)::after{ content:''; position:absolute; left:15px; top:34px; width:2px; height:calc(100% - 14px); }
.hero-steps__list li:not(:last-child)::before{ background:rgba(15,92,92,0.14); }
.hero-steps__list li:not(:last-child)::after{ background:#0F5C5C; transform-origin:top; transform:scaleY(0);
  animation:heroLine .5s ease forwards; animation-delay:calc(var(--i) * .6s + .7s); }
@keyframes heroDot{ to{ background:#0F5C5C; color:#FFFFFF; border-color:#0F5C5C; } }
@keyframes heroLine{ to{ transform:scaleY(1); } }
@media (prefers-reduced-motion: reduce){
  .hero-steps__dot{ background:#0F5C5C; color:#FFFFFF; border-color:#0F5C5C; }
  .hero-steps__list li:not(:last-child)::after{ transform:none; }
}

/* Cookie consent banner (assets/consent.js) */
.cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:60; max-width:760px; margin:0 auto; box-sizing:border-box;
  background:#FFFFFF; border:1px solid rgba(0,0,0,0.1); border-radius:12px; box-shadow:0 20px 48px -20px rgba(13,17,23,0.35);
  padding:20px 22px; display:flex; gap:18px 24px; align-items:center; flex-wrap:wrap; font-family:'Inter', system-ui, sans-serif; }
.cookie-banner[hidden]{ display:none; }
.cookie-banner__text{ flex:1 1 380px; margin:0; font-size:14px; line-height:1.6; color:#4B5563; }
.cookie-banner__text strong{ color:#0D1117; }
.cookie-banner__actions{ display:flex; gap:10px; flex:0 0 auto; }
.cookie-banner__btn{ min-width:120px; padding:11px 20px; border-radius:8px; font:600 14.5px 'Inter', system-ui, sans-serif; cursor:pointer;
  background:#FFFFFF; color:#0D1117; border:1px solid rgba(0,0,0,0.22); }
.cookie-banner__btn:hover{ border-color:#0F5C5C; color:#0F5C5C; }
.cookie-banner__btn--accept{ background:#0F5C5C; color:#FFFFFF; border-color:#0F5C5C; }
.cookie-banner__btn--accept:hover{ background:#0B4545; color:#FFFFFF; }
.cookie-banner__btn:focus-visible, .cookie-settings-link:focus-visible{ outline:2px solid #0F5C5C; outline-offset:2px; }
@media (max-width:520px){ .cookie-banner__actions{ width:100%; } .cookie-banner__btn{ flex:1; min-width:0; } }
.cookie-settings-link{ background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }
.cookie-settings-link:hover{ color:#0F5C5C; text-decoration:underline; text-underline-offset:3px; }

/* Inter, self-hosted (SIL Open Font License, see assets/fonts/OFL.txt): no request to Google Fonts.
   Variable font, weights 400-800; latin-ext covers Lithuanian letters. */
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400 800; font-display:swap;
  src:url('fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Narrow phones: one column for 4-column grids (two columns are too narrow for long Lithuanian words) */
@media (max-width:560px){
  [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
  [style*="grid-template-columns:repeat(4,1fr)"]{ grid-template-columns:1fr !important; }
}

/* Layout and component classes */
/* .container: content up to 1160px wide with responsive side gutters */
.container{ width:min(100% - clamp(40px,8vw,64px), 1160px); margin-inline:auto; }

.section{ padding-block:clamp(56px,6vw,80px); }
.section--compact-top{ padding-top:clamp(40px,6vw,72px); }
.section--compact-bottom{ padding-bottom:clamp(32px,5vw,56px); }
.section--hero{ padding-block:clamp(48px,7vw,80px); }
.section--muted{ background:#F6F4EE; }
.section--bordered{ border-top:1px solid rgba(0,0,0,0.08); border-bottom:1px solid rgba(0,0,0,0.08); }

.breadcrumb{ margin-bottom:20px; font-size:12px; color:#9CA3AF; }
.breadcrumb a{ color:#9CA3AF; }
.breadcrumb__current{ color:#0F5C5C; }

.page-title{ margin:0 0 20px; max-width:20ch; font-size:clamp(32px,4vw,46px); font-weight:800; letter-spacing:-0.03em; line-height:1.1; color:#0D1117; }
.page-title--wide{ max-width:24ch; }
.page-intro{ margin:0; max-width:64ch; font-size:17px; line-height:1.65; color:#4B5563; }

.section-title{ margin:0 0 36px; font-size:clamp(24px,2.8vw,32px); font-weight:700; color:#0D1117; }

.grid{ display:grid; gap:24px; }
.grid--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid--4{ grid-template-columns:repeat(4,minmax(0,1fr)); }

.card-stack{ padding:28px; display:flex; flex-direction:column; gap:14px; }
.card-stack--tight{ gap:12px; }
.card--accent{ border-color:rgba(15,92,92,0.28); background:rgba(15,92,92,0.04); }
.card-title{ margin:0; font-size:19px; font-weight:700; color:#0D1117; }
.card-title--small{ font-size:16px; font-weight:600; }
.card-copy{ margin:0; font-size:14.5px; line-height:1.65; color:#4B5563; }
.card-copy--small{ font-size:13.5px; line-height:1.6; }

.cta-section{ padding-block:clamp(56px,6vw,80px); }
.cta-panel{ border-radius:12px; padding:clamp(32px,4vw,44px); background:#F6F4EE; display:flex; gap:24px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.cta-panel h2{ margin:0 0 8px; font-size:22px; font-weight:700; color:#0D1117; }
.cta-panel p{ margin:0; font-size:14.5px; color:#4B5563; }

@media (max-width:900px){
  .grid--2, .grid--3{ grid-template-columns:1fr; }
  .grid--4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .grid--4{ grid-template-columns:1fr; }
}

/* Header and footer (same markup on every page) */
.site-header{ position:sticky; top:0; z-index:30; background:rgba(255,255,255,0.92); backdrop-filter:blur(18px); border-bottom:1px solid rgba(0,0,0,0.08); }
/* backdrop-filter turns the header into the containing block of the fixed mobile panel (it would shrink to the
   header's height), so drop it while the mobile menu is open; the panel covers the page then anyway */
.site-header:has(.mobile-nav[open]){ backdrop-filter:none; background:#FFFFFF; }
.site-header__inner{ height:72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.desktop-nav{ display:flex; align-items:center; gap:36px; }   /* hidden below 900px (see the responsive block in Base) */
.brand{ display:flex; align-items:center; gap:10px; }
.brand__mark{ width:36px; height:36px; border-radius:8px; flex:none; display:block; }
.brand__mark--small{ width:32px; height:32px; border-radius:7px; }
.brand__name{ font-size:16px; font-weight:700; color:#0D1117; letter-spacing:0.04em; text-transform:uppercase; }
.brand__name--small{ font-size:15px; }

.site-footer{ background:#F6F4EE; border-top:1px solid rgba(0,0,0,0.08); }
.site-footer__main{ padding-block:clamp(48px,6vw,64px) 28px; display:flex; gap:40px; flex-wrap:wrap; justify-content:space-between; }
.site-footer__about{ flex:1 1 220px; display:flex; flex-direction:column; gap:12px; }
.site-footer__tagline{ margin:0; font-size:14.5px; line-height:1.7; color:#4B5563; max-width:260px; }
.site-footer__heading{ font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; color:#0D1117; margin-bottom:20px; }
.site-footer__col--wide{ flex:1 1 220px; }
.site-footer__col--medium{ flex:1 1 200px; }
.site-footer__col--narrow{ flex:1 1 160px; }
.site-footer__col--compact{ flex:1 1 100px; }
.site-footer__links{ display:flex; flex-direction:column; gap:12px; font-size:14.5px; }
.site-footer__links a{ color:#4B5563; }
.site-footer__bottom{ border-top:1px solid rgba(0,0,0,0.08); }
.site-footer__bottom-inner{ padding-block:22px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:13px; color:#9CA3AF; }
.site-footer__legal{ display:flex; flex-wrap:wrap; gap:20px; }

/* Homepage hero */
.home-hero__inner{ padding-top:clamp(56px,8vw,96px); padding-bottom:clamp(48px,6vw,72px); display:flex; gap:clamp(32px,4vw,64px); align-items:center; flex-wrap:wrap; position:relative; z-index:1; }
.home-hero__content{ flex:1 1 460px; display:flex; flex-direction:column; gap:22px; }
.home-hero__title{ margin:0; font-size:clamp(36px,4.6vw,54px); line-height:1.08; font-weight:800; letter-spacing:-0.03em; color:#0D1117; }
.home-hero__intro{ margin:0; font-size:17px; line-height:1.65; color:#4B5563; max-width:50ch; }
.home-hero__visual{ flex:1 1 400px; min-width:300px; }

/* About page: hero with credentials panel */
.about-hero{ padding-top:clamp(56px,8vw,96px); padding-bottom:clamp(48px,6vw,72px); display:grid; grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr); gap:clamp(40px,6vw,72px); align-items:center; }
.about-hero__content{ min-width:0; }
.about-credentials{ padding:28px; border-radius:12px; background:#F6F4EE; }
.about-credentials .eyebrow{ margin-bottom:8px; }
.about-credentials__title{ margin:0 0 24px; font-size:20px; font-weight:700; color:#0D1117; }
.about-credentials__grid{ display:grid; gap:16px; }
.about-credential{ display:flex; align-items:center; gap:14px; min-width:0; }
.about-credential img{ width:56px; height:56px; object-fit:contain; flex:none; display:block; }
.about-credential span{ font-size:13px; font-weight:600; line-height:1.4; color:#0D1117; }

@media (max-width:900px){
  .about-hero{ grid-template-columns:1fr; }
  .about-credentials{ max-width:520px; }
}
