/* ============================================================
   AKVEST - components the pre-compiled Tailwind build does not
   cover. Written against the same design tokens as style.css
   (--gold, --champagne, --charcoal, --font-heading, ...).
   Loaded after style.css.
   ============================================================ */

/* ---- generic constrained prose (legal pages) ---- */
.ak-prose{max-width:48rem;margin:0 auto;font-family:var(--font-body);
  color:hsl(var(--muted-foreground));line-height:1.8}
.ak-prose h2{font-family:var(--font-heading);font-size:clamp(1.4rem,2.6vw,1.9rem);
  line-height:1.25;color:hsl(var(--charcoal));margin:2.75rem 0 1rem}
.ak-prose h2:first-child{margin-top:0}
.ak-prose h3{font-family:var(--font-heading);font-size:1.3rem;color:hsl(var(--charcoal));
  margin:2rem 0 .75rem}
.ak-prose p{margin:0 0 1.1rem}
.ak-prose ul{margin:0 0 1.1rem;padding-left:1.1rem;list-style:none}
.ak-prose li{position:relative;padding-left:1rem;margin-bottom:.5rem}
.ak-prose li::before{content:"";position:absolute;left:0;top:.75em;width:.4rem;height:1px;
  background:hsl(var(--gold))}
.ak-prose a{color:hsl(var(--gold-dark));text-decoration:underline;text-underline-offset:.2em}
.ak-prose a:hover{color:hsl(var(--gold))}
.ak-prose strong{color:hsl(var(--charcoal));font-weight:600}
.ak-prose__box{margin:1.75rem 0;padding:1.5rem 1.75rem;background:hsl(var(--champagne)/.45);
  border-left:2px solid hsl(var(--gold))}
.ak-prose__box p{margin:0 0 .35rem}
.ak-prose__box p:last-child{margin:0}

/* ---- photo gallery (lightbox triggers) ---- */
.ak-gallery{display:grid;gap:1rem;grid-template-columns:repeat(4,1fr)}
@media (max-width:1100px){.ak-gallery{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.ak-gallery{grid-template-columns:repeat(2,1fr)}}
@media (max-width:460px){.ak-gallery{grid-template-columns:1fr}}

.ak-shot{position:relative;display:block;padding:0;border:1px solid hsl(var(--gold)/.18);
  background:hsl(var(--charcoal));overflow:hidden;cursor:zoom-in;aspect-ratio:4/3;
  transition:border-color .45s ease,transform .5s cubic-bezier(.22,1,.36,1),box-shadow .5s ease}
.ak-shot img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .8s cubic-bezier(.22,1,.36,1),filter .5s ease;filter:saturate(.92)}
.ak-shot:hover{transform:translateY(-4px);border-color:hsl(var(--gold)/.55);
  box-shadow:0 20px 44px hsl(var(--charcoal)/.2)}
.ak-shot:hover img{transform:scale(1.07);filter:saturate(1.04)}
.ak-shot:focus-visible{outline:2px solid hsl(var(--gold));outline-offset:3px}
.ak-shot::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 55%,hsl(var(--charcoal)/.55));
  opacity:0;transition:opacity .45s ease;pointer-events:none}
.ak-shot:hover::after{opacity:1}

/* ---- partner logo grid ---- */
.ak-partners{display:grid;gap:1.25rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.ak-partner{display:flex;flex-direction:column;background:hsl(var(--background));
  border:1px solid hsl(var(--gold)/.18);overflow:hidden;
  transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .5s ease}
.ak-partner:hover{transform:translateY(-5px);border-color:hsl(var(--gold)/.5);
  box-shadow:0 20px 44px hsl(var(--charcoal)/.14)}
.ak-partner__media{display:flex;align-items:center;justify-content:center;
  aspect-ratio:3/2;padding:1.5rem;background:#fff}
.ak-partner__media img{max-width:100%;max-height:100%;width:auto;height:auto;display:block}
.ak-partner__name{padding:.9rem 1.1rem;text-align:center;font-family:var(--font-body);
  font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;
  color:hsl(var(--muted-foreground));border-top:1px solid hsl(var(--gold)/.15)}

/* ---- project entry (image + spec list + status pill) ---- */
.ak-projects{display:grid;gap:2rem;grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.ak-projects{grid-template-columns:1fr}}

.ak-project{display:flex;flex-direction:column;background:hsl(var(--background));
  border:1px solid hsl(var(--gold)/.18);overflow:hidden;
  transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .5s ease}
.ak-project:hover{transform:translateY(-6px);border-color:hsl(var(--gold)/.45);
  box-shadow:0 24px 55px hsl(var(--charcoal)/.16)}
.ak-project__media{display:block;overflow:hidden;aspect-ratio:16/9;background:hsl(var(--charcoal))}
.ak-project__media img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .8s cubic-bezier(.22,1,.36,1)}
.ak-project:hover .ak-project__media img{transform:scale(1.05)}
.ak-project__body{display:flex;flex-direction:column;flex:1;padding:2rem 1.9rem 1.9rem}
.ak-project__kicker{font-family:var(--font-body);font-size:.66rem;letter-spacing:.3em;
  text-transform:uppercase;color:hsl(var(--gold-dark));margin-bottom:.6rem}
.ak-project__title{font-family:var(--font-heading);font-size:1.9rem;line-height:1.15;
  color:hsl(var(--charcoal));margin:0 0 .35rem}
.ak-project__type{font-family:var(--font-body);font-size:.85rem;
  color:hsl(var(--muted-foreground));margin:0 0 1.4rem}
.ak-project__list{display:grid;gap:.55rem;margin:0 0 1.75rem;padding:1.25rem 0 0;
  grid-template-columns:repeat(2,1fr);list-style:none;
  border-top:1px solid hsl(var(--gold)/.15)}
@media (max-width:420px){.ak-project__list{grid-template-columns:1fr}}
.ak-project__list li{position:relative;padding-left:1rem;font-family:var(--font-body);
  font-size:.85rem;line-height:1.5;color:hsl(var(--muted-foreground))}
.ak-project__list li::before{content:"";position:absolute;left:0;top:.65em;width:.4rem;
  height:1px;background:hsl(var(--gold))}

/* ---- review screenshots ---- */
.ak-reviews{display:grid;gap:1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.ak-review{border:1px solid hsl(var(--gold)/.2);background:hsl(var(--background));overflow:hidden;
  transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .5s ease}
.ak-review:hover{transform:translateY(-5px);border-color:hsl(var(--gold)/.5);
  box-shadow:0 22px 48px hsl(var(--charcoal)/.14)}
.ak-review img{width:100%;height:auto;display:block}

/* ---- map embed ---- */
.ak-map{position:relative;width:100%;aspect-ratio:16/9;max-height:30rem;overflow:hidden;
  border:1px solid hsl(var(--gold)/.25);background:hsl(var(--charcoal))}
@media (max-width:640px){.ak-map{aspect-ratio:4/3}}
.ak-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;
  filter:grayscale(.35) contrast(1.05)}

/* ---- inline logo mark in the dark header/footer ---- */
.ak-mark{display:block;height:2.1rem;width:auto;filter:invert(1) brightness(1.9)}
.ak-mark--sm{height:1.6rem}

/* ---- centred intro block above a non-pg section ---- */
.ak-lead{max-width:46rem;margin:0 auto 3rem;text-align:center;font-family:var(--font-body);
  line-height:1.8;color:hsl(var(--muted-foreground))}
.ak-section--dark .ak-lead{color:hsl(var(--champagne)/.72)}

/* ---- the five AKVEST values sit on one row on wide screens ---- */
@media (min-width:1180px){
  .pg-pillars.ak-pillars--5{grid-template-columns:repeat(5,1fr)}
  .pg-pillars.ak-pillars--5 .pg-pillar{padding:2.25rem 1.5rem 1.9rem}
  .pg-pillars.ak-pillars--5 .pg-pillar__title{font-size:1.3rem}
  .pg-pillars.ak-pillars--5 .pg-pillar::after{font-size:5rem}
}

/* ---- partners: 7 per row on wide screens (13 logos -> 7 + 6) ---- */
@media (min-width:1180px){ .ak-partners{grid-template-columns:repeat(7,1fr)} }

/* ---- three-step flow: recentre the connector line ---- */
@media (min-width:900px){
  .pg-flow.ak-flow--3{grid-template-columns:repeat(3,1fr)}
  .pg-flow.ak-flow--3::before{left:16.666%;right:16.666%}
}

/* ---- footer: four columns instead of the template's three ---- */
.ak-foot{display:grid;gap:3rem;grid-template-columns:1fr}
@media (min-width:720px){.ak-foot{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1080px){.ak-foot{grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem}}

/* ---- location panel (branded map image + details card) ---- */
.ak-locate{display:grid;gap:2rem;grid-template-columns:1fr}
@media (min-width:860px){.ak-locate{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:stretch}}

.ak-locate__map{position:relative;display:block;overflow:hidden;aspect-ratio:4/3;max-height:21rem;
  border:1px solid hsl(var(--gold)/.25);background:hsl(var(--background));
  transition:border-color .45s ease,box-shadow .45s ease}
.ak-locate__map img{width:100%;height:100%;object-fit:cover;object-position:center 54%;display:block}
.ak-locate__map:hover{border-color:hsl(var(--gold)/.6);box-shadow:0 22px 48px hsl(var(--charcoal)/.15)}
.ak-locate__tag{position:absolute;left:1.25rem;bottom:1.25rem;display:inline-flex;align-items:center;
  gap:.55rem;padding:.65rem 1.1rem;font-family:var(--font-body);font-size:.7rem;letter-spacing:.18em;
  text-transform:uppercase;color:#fff;
  background:linear-gradient(90deg,hsl(38 55% 48%),hsl(40 50% 60%))}

.ak-locate__card{display:flex;flex-direction:column;justify-content:center;gap:1.5rem;
  padding:2.75rem 2.5rem;background:hsl(var(--background));border:1px solid hsl(var(--gold)/.2)}
@media (max-width:520px){.ak-locate__card{padding:2rem 1.5rem}}
.ak-locate__row{display:flex;gap:1.1rem;align-items:flex-start}
.ak-locate__mark{flex:0 0 auto;width:2.5rem;height:2.5rem;display:flex;align-items:center;
  justify-content:center;border:1px solid hsl(var(--gold)/.45);color:hsl(var(--gold-dark))}
.ak-locate__label{display:block;font-family:var(--font-body);font-size:.65rem;letter-spacing:.25em;
  text-transform:uppercase;color:hsl(var(--gold-dark));margin-bottom:.3rem}
.ak-locate__value{font-family:var(--font-heading);font-size:1.2rem;line-height:1.35;
  color:hsl(var(--charcoal));text-decoration:none}
a.ak-locate__value:hover{color:hsl(var(--gold-dark))}

/* ---- overlays (mobile drawer, lightbox) sit above the fixed chrome ---- */
.lightbox{z-index:200}
body.nav-open #site-header,
body.nav-open > div > a[aria-label="Contactează-ne pe WhatsApp"]{opacity:0;pointer-events:none}

/* ---- bento: keep text clear of the absolutely-positioned icon ---- */
.pg-bento__cell{padding-top:5rem}
.pg-bento__cell--lg{padding-top:5.6rem}

/* ---- testimonials (Google reviews) ---- */
.ak-quotes{display:grid;gap:1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}
.ak-quote{display:flex;flex-direction:column;gap:1rem;padding:2.25rem 2rem;position:relative;
  background:hsl(var(--background));border:1px solid hsl(var(--gold)/.18);
  transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .5s ease}
.ak-quote:hover{transform:translateY(-5px);border-color:hsl(var(--gold)/.45);
  box-shadow:0 22px 48px hsl(var(--charcoal)/.14)}
.ak-quote::after{content:"”";position:absolute;top:.4rem;right:1.1rem;font-family:var(--font-heading);
  font-size:5.5rem;line-height:1;color:hsl(var(--gold)/.12);pointer-events:none}
.ak-quote__stars{display:flex;gap:.2rem;color:hsl(var(--gold))}
.ak-quote__stars svg{width:1rem;height:1rem;fill:currentColor;stroke:none}
.ak-quote__text{font-family:var(--font-body);font-size:.92rem;line-height:1.75;
  color:hsl(var(--muted-foreground));margin:0;flex:1}
.ak-quote__who{display:flex;flex-direction:column;gap:.15rem;padding-top:1rem;
  border-top:1px solid hsl(var(--gold)/.15)}
.ak-quote__name{font-family:var(--font-heading);font-size:1.2rem;color:hsl(var(--charcoal))}
.ak-quote__src{font-family:var(--font-body);font-size:.68rem;letter-spacing:.18em;
  text-transform:uppercase;color:hsl(var(--gold-dark))}

/* ---- compact list of rating-only reviewers ---- */
.ak-names{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin:2.5rem auto 0;
  max-width:52rem}
.ak-names span{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem 1rem;
  font-family:var(--font-body);font-size:.78rem;color:hsl(var(--muted-foreground));
  border:1px solid hsl(var(--gold)/.22);background:hsl(var(--background))}
.ak-names span::before{content:"★";color:hsl(var(--gold));font-size:.8rem}

/* ---- beneficii: 6 carduri pe 3 randuri (2 pe rand) ---- */
@media (min-width:860px){ .pg-list.ak-list--3rows{grid-template-columns:repeat(2,1fr)} }

/* ============================================================
   Mobil: grid/flex items nu au voie sa iasa din container.
   Implicit min-width:auto le lasa sa creasca pana la min-content
   (un <select> cu optiuni lungi, un titlu lung), ceea ce impinge
   textul in afara containerului pe ecrane inguste.
   ============================================================ */
main .grid > *,
main .pg-split > *,
main .pg-grid > *,
main .pg-list > *,
main .ak-locate > *{min-width:0}

#contact-form input,
#contact-form select,
#contact-form textarea{max-width:100%;min-width:0}

/* titluri lungi nu trebuie sa latească coloana pe telefon */
@media (max-width:640px){
  .pg-banner__title,
  .pg-head__title,
  .pg-split__title,
  .ak-project__title,
  .pg-statement__text{overflow-wrap:break-word;hyphens:auto}
}

/* ---- bula WhatsApp (animate-ping) nu trebuie sa creeze scroll orizontal ---- */
html,body{overflow-x:hidden}
@supports (overflow:clip){ html,body{overflow-x:clip} }

/* ---- logo AKVEST (varianta alba, pe fundal inchis) ---- */
.ak-logo{display:block;height:3.1rem;width:auto}
@media (max-width:480px){ .ak-logo{height:2.5rem} }
#site-header a:hover .ak-logo{opacity:.85}
.ak-logo,.ak-logo--stack{transition:opacity .3s ease}
.ak-logo--stack{display:block;height:7.5rem;width:auto}

/* ---- formular de contact: checkbox GDPR + mesaje de eroare pe camp ---- */
.ak-check label{display:flex;align-items:flex-start;gap:.7rem;cursor:pointer;
  font-family:var(--font-body);font-size:.82rem;line-height:1.6;color:hsl(var(--champagne)/.75)}
.ak-check input[type="checkbox"]{flex:0 0 auto;width:1.05rem;height:1.05rem;margin-top:.18rem;
  accent-color:hsl(var(--gold));cursor:pointer}
.ak-check a{color:hsl(var(--gold-light));text-decoration:underline;text-underline-offset:.15em}
.ak-check a:hover{color:hsl(var(--gold))}

.ak-err{display:none;margin-top:.45rem;font-family:var(--font-body);font-size:.78rem;
  line-height:1.5;color:#f87171}
.ak-err.is-on{display:block}

#contact-form textarea{min-height:7rem;resize:vertical}
