/* =========================================================
   Legal Assistance Group — landing built from client mockup
   (ref/macket.jpg): dark navy + gold, clean sans typography
========================================================= */

:root{
  --navy-950:#0c0f14;
  --navy-900:#12161d;
  --navy-800:#1b212b;
  --navy-700:#262e3a;

  --gold-700:#a9843f;
  --gold-500:#c9a668;
  --gold-300:#e3cda0;
  --gold-100:#f3e9d5;

  --cream:#f5f2ec;
  --ink:#1c1c1c;
  --muted:#6b6f76;
  --muted-light:#a9adb8;

  --font-head:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:0;
}

/* трохи ширше за стандартний Bootstrap-контейнер на великих екранах */
@media (min-width: 1200px){
  .container{max-width:1290px;}
}
@media (min-width: 1400px){
  .container{max-width:1400px; padding-left:2rem; padding-right:2rem;}
}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:#fff;
  font-size:1.05rem;
  line-height:1.75;
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  font-weight:700;
  color:var(--navy-950);
}

a{color:var(--gold-700); transition:color .2s ease;}
a:hover{color:var(--gold-500); text-decoration:none;}

.section-py{padding-top:6.5rem; padding-bottom:6.5rem;}
.bg-cream{background:var(--cream);}
.section-dark{background:var(--navy-900);}

.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-weight:800;
  font-size:.8rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold-700);
  margin-bottom:.9rem;
  padding-right:1.6rem;
  position:relative;
}
.eyebrow::after{
  content:"";
  position:absolute;
  right:0; top:50%;
  width:1.2rem; height:2px;
  background:var(--gold-700);
  transform:translateY(-50%);
}
.eyebrow-light{color:var(--gold-300);}
.eyebrow-light::after{background:var(--gold-300);}

.section-title{
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom:1rem;
}

.section-sub{
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
  color:var(--muted);
  font-size:1.1rem;
}

/* ===== Buttons ===== */
.btn{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-radius:0;
  padding:.85rem 1.8rem;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg{padding:1.05rem 2.4rem; font-size:.9rem;}
.btn-sm{padding:.55rem 1.3rem; font-size:.75rem;}
.btn:focus{box-shadow:0 0 0 .2rem rgba(201,166,104,.35);}

.btn-gold{
  background:var(--gold-500);
  border:1px solid var(--gold-500);
  color:var(--navy-950);
}
.btn-gold:hover{
  background:var(--gold-300);
  border-color:var(--gold-300);
  color:var(--navy-950);
  transform:translateY(-2px);
}

.btn-outline-gold{
  border:1px solid var(--gold-700);
  color:var(--gold-700);
  background:transparent;
}
.btn-outline-gold:hover{
  background:var(--gold-700);
  color:#fff;
}

.btn-outline-light{
  border:1px solid rgba(255,255,255,.5);
  color:#fff;
}
.btn-outline-light:hover{
  background:#fff;
  color:var(--navy-950);
}

/* ===== Navbar ===== */
#mainNav{
  background:transparent;
  backdrop-filter:none;
  padding-top:1.3rem;
  padding-bottom:1.3rem;
  border-bottom:1px solid transparent;
  transition:background-color .3s ease, padding .25s ease, box-shadow .25s ease, border-color .3s ease;
}
#mainNav.scrolled{
  background:rgba(12,15,20,.92);
  backdrop-filter:blur(6px);
  padding-top:.6rem;
  padding-bottom:.6rem;
  border-bottom-color:rgba(255,255,255,.06);
  box-shadow:0 10px 30px -14px rgba(0,0,0,.6);
}
.navbar-brand{
  display:flex;
  align-items:center;
  color:#fff !important;
}
.brand-icon{
  color:var(--gold-500);
  margin-right:.7rem;
  display:inline-flex;
}
.brand-word{
  display:flex;
  align-items:center;
  font-family:var(--font-head);
}
.brand-initials{
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:.04em;
  color:#fff;
}
.brand-divider{
  width:1px;
  height:26px;
  background:rgba(255,255,255,.3);
  margin:0 .8rem;
}
.brand-full{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  line-height:1.35;
  color:rgba(255,255,255,.75);
}
.brand-full-line{display:block;}
.navbar-dark .navbar-nav .nav-link{
  position:relative;
  color:rgba(255,255,255,.8);
  font-weight:600;
  font-size:.92rem;
  padding:.5rem 1.05rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active{color:var(--gold-300);}
.navbar-dark .navbar-nav .nav-link.active::after{
  content:"";
  position:absolute;
  left:1.05rem;
  right:1.05rem;
  bottom:.1rem;
  height:2px;
  background:var(--gold-300);
}

/* Custom mobile menu toggler: three plain bars, no button outline */
.navbar-toggler{
  border:none;
  padding:.35rem .3rem;
}
.navbar-toggler:focus,
.navbar-toggler:active{
  outline:none;
  box-shadow:none;
}
.navbar-toggler-bars{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:26px;
  height:19px;
}
.navbar-toggler-bars span{
  display:block;
  width:100%;
  height:3px;
  background:rgba(255,255,255,.9);
  transition:background-color .2s ease;
}
.navbar-toggler:hover .navbar-toggler-bars span,
.navbar-toggler:focus .navbar-toggler-bars span{
  background:var(--gold-300);
}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:100vh;
  padding-top:9rem;
  padding-bottom:5rem;
  background:
    linear-gradient(100deg, rgba(9,11,15,.94) 22%, rgba(9,11,15,.36) 55%, rgba(9,11,15,.2) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
}
.hero-title{
  font-family:var(--font-head);
  font-weight:700;
  font-size:clamp(2.6rem, 5.6vw, 4.6rem);
  line-height:1.08;
  color:#fff;
  letter-spacing:.01em;
}
.hero-tagline{
  font-family:var(--font-head);
  font-weight:600;
  font-size:1.35rem;
  color:var(--gold-300);
}
.hero-lead{
  font-size:1.15rem;
  max-width:560px;
  color:rgba(255,255,255,.78);
}
.hero-trust{
  display:flex;
  flex-wrap:wrap;
  column-gap:3.2rem;
  row-gap:1.6rem;
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:2.2rem;
}
.hero-trust-item{
  display:flex;
  align-items:center;
  color:rgba(255,255,255,.85);
  font-size:.9rem;
  line-height:1.4;
}
.hero-trust-icon{
  width:46px; height:46px;
  min-width:46px;
  border:1px solid var(--gold-500);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--gold-500);
  margin-right:1rem;
  font-size:1.05rem;
}

/* ===== About ===== */
.about-image-wrap{position:relative;}
.about-image{
  border:1px solid rgba(0,0,0,.08);
  width:100%;
  object-fit:cover;
  aspect-ratio:4/3;
}
.about-image-accent{
  position:absolute;
  left:-1.5rem;
  bottom:-1.5rem;
  width:38%;
  aspect-ratio:1/1;
  border:6px solid #fff;
  box-shadow:0 16px 34px -14px rgba(0,0,0,.35);
  overflow:hidden;
}
.about-image-accent img{width:100%; height:100%; object-fit:cover; display:block;}

/* ===== Services ===== */
.service-card{
  position:relative;
  background:var(--navy-800);
  border:1px solid rgba(255,255,255,.08);
  padding:2.4rem 5.2rem 3.8rem 2rem;
  height:100%;
  transition:border-color .25s ease, background-color .25s ease;
}
.service-card:hover{
  border-color:var(--gold-500);
  background:var(--navy-700);
}
.service-icon{
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--gold-500);
  color:var(--gold-500);
  font-size:1.4rem;
  margin-bottom:1.4rem;
}
.service-card h3{color:#fff; font-size:1.25rem; margin-bottom:.7rem;}
.service-card p{color:var(--muted-light); font-size:.98rem; margin-bottom:0;}
.service-link{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--gold-500);
}
.service-link:hover{color:var(--gold-300);}

.service-arrow{
  position:absolute;
  right:1.8rem;
  bottom:1.8rem;
  width:44px; height:44px;
  border:1px solid var(--gold-500);
  background:transparent;
  color:var(--gold-500);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.service-arrow:hover{background:var(--gold-500); color:var(--navy-950); transform:translateX(3px);}
.service-arrow:focus{outline:none; box-shadow:0 0 0 .2rem rgba(201,166,104,.3);}

/* ===== Team slider ===== */
.team-slider{overflow:hidden;}
.team-track{
  display:flex;
  transition:transform .5s cubic-bezier(.4,0,.2,1);
}
.team-slide{
  flex:0 0 50%;
  max-width:50%;
  padding:0 .9rem;
  box-sizing:border-box;
}
.team-card{
  display:flex;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  height:100%;
}
.team-photo{
  width:42%;
  min-width:160px;
  overflow:hidden;
}
.team-photo img{width:100%; height:100%; object-fit:cover; display:block; min-height:280px;}
.team-info{padding:2rem;}
.team-info h4{font-size:1.25rem; line-height:1.3; margin-bottom:.4rem;}
.team-role{color:var(--gold-700); font-weight:700; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:.8rem;}
.team-info p{color:var(--muted); font-size:.95rem; margin-bottom:1rem;}

.slider-arrow{
  width:48px; height:48px;
  border:1px solid var(--gold-700);
  background:transparent;
  color:var(--gold-700);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  transition:background-color .2s ease, color .2s ease;
}
.slider-arrow:hover:not(:disabled){background:var(--gold-700); color:#fff;}
.slider-arrow:disabled{opacity:.35; cursor:default;}
.slider-arrow:focus{outline:none; box-shadow:0 0 0 .2rem rgba(201,166,104,.3);}

/* ===== Scroll-to-top ===== */
.scroll-top-btn{
  position:fixed;
  right:1.8rem;
  bottom:1.8rem;
  width:48px; height:48px;
  background:var(--gold-500);
  color:var(--navy-950);
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.5);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
  z-index:1030;
  cursor:pointer;
}
.scroll-top-btn.visible{opacity:1; visibility:visible; transform:translateY(0);}
.scroll-top-btn:hover{background:var(--gold-300);}
.scroll-top-btn:focus{outline:none; box-shadow:0 0 0 .2rem rgba(201,166,104,.4);}

/* ===== Contacts ===== */
.contact-item{
  display:flex;
  align-items:flex-start;
  margin-bottom:1.5rem;
  color:rgba(255,255,255,.85);
}
.contact-item i{
  width:20px;
  color:var(--gold-500);
  margin-right:1rem;
  margin-top:.25rem;
  font-size:1rem;
}
.contact-item a{color:rgba(255,255,255,.85);}
.contact-item a:hover{color:var(--gold-300);}
.map-wrap{
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  height:100%;
  min-height:380px;
}
.map-wrap iframe{
  width:100%; height:100%; min-height:380px; border:0;
  filter:invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(1.1);
}

/* ===== Footer ===== */
.footer{
  background:var(--navy-950);
  border-top:1px solid rgba(255,255,255,.08);
}
.footer .brand-full{color:rgba(255,255,255,.55);}
.footer-meta{color:rgba(255,255,255,.55); font-size:.85rem;}
.footer-meta a{color:rgba(255,255,255,.55); text-decoration:underline;}
.footer-meta a:hover{color:var(--gold-300);}

/* ===== Modal ===== */
.modal-content{border-radius:0; border:none;}
.modal-header{border-bottom:1px solid rgba(0,0,0,.08); padding:1.5rem 1.7rem;}
.modal-title{font-family:var(--font-head); font-weight:700; color:var(--navy-950);}
.modal-body{padding:1.7rem;}
.form-group label{font-weight:700; font-size:.85rem; color:var(--navy-900);}
.form-control{
  height:auto;
  line-height:1.5;
  border-radius:0;
  border:1.5px solid #e2e0da;
  padding:.65rem .9rem;
}
.form-control:focus{
  border-color:var(--gold-500);
  box-shadow:0 0 0 .2rem rgba(201,166,104,.25);
}

/* ===== Scroll reveal ("wow") effects =====
   Elements start hidden/offset and fade+slide into place once they
   enter the viewport (see js/main.js — IntersectionObserver toggles
   .is-visible). Hero elements are already in view on load, so they
   animate in immediately with a staggered delay. */
.reveal{
  opacity:0;
  transition:opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  will-change:opacity, transform;
}
.reveal-left{transform:translateX(-56px);}
.reveal-right{transform:translateX(56px);}
.reveal-up{transform:translateY(36px);}
.reveal.is-visible{opacity:1; transform:translateX(0) translateY(0);}

.reveal-delay-1{transition-delay:.18s;}
.reveal-delay-2{transition-delay:.38s;}

/* стагер карток послуг по колонках у рядку (3 в ряд на десктопі) */
.services-row > div:nth-child(3n+1) .reveal{transition-delay:0s;}
.services-row > div:nth-child(3n+2) .reveal{transition-delay:.12s;}
.services-row > div:nth-child(3n) .reveal{transition-delay:.24s;}

@media (prefers-reduced-motion: reduce){
  .reveal{transition:none; opacity:1; transform:none;}
}

/* ===== Responsive ===== */
@media (max-width: 991.98px){
  .section-py{padding-top:4rem; padding-bottom:4rem;}
  .hero{padding-top:7.5rem;}
  .team-card{flex-direction:column;}
  .team-photo{width:100%;}
  .team-photo img{min-height:220px;}
  .about-image-wrap{margin-bottom:3rem;}
  .about-image-accent{left:1rem; bottom:-2rem; width:34%;}

  /* лого не ховаємо — розгортаємо напис в один рядок на плашці меню */
  .brand-icon svg{width:24px; height:24px;}
  .brand-initials{font-size:1.25rem;}
  .brand-divider{margin:0 .6rem;}
  .brand-full{font-size:.58rem; letter-spacing:.06em;}
  .brand-full-line{display:inline;}

  /* На мобільному панель і випадне меню завжди непрозорі (щоб лінія
     під шапкою, лого й пункти меню не зливались з фото під ними) —
     прозорим до скролу лишається тільки десктопний варіант. */
  #mainNav{
    background:rgba(12,15,20,.92);
    backdrop-filter:blur(6px);
    border-bottom-color:rgba(255,255,255,.06);
  }
}

@media (max-width: 767.98px){
  .team-slide{flex:0 0 100%; max-width:100%;}
}
