/* ═══════════════════════════════════════════
   HINI-DINOV & CO — Boutique Law Firm
   Design: quiet authority. Navy / ivory / gold.
   ═══════════════════════════════════════════ */

:root {
  --navy: #14213d;
  --navy-deep: #0d1730;
  --navy-soft: #1e2f52;
  --ivory: #faf7f0;
  --paper: #ffffff;
  --ink: #2a2f3a;
  --ink-soft: #5a6270;
  --gold: #b8934a;
  --gold-bright: #d4af6a;
  --gold-pale: #ecdfc6;
  --line: rgba(20, 33, 61, 0.12);
  --serif: "Frank Ruhl Libre", "David Libre", serif;
  --sans: "Assistant", "Heebo", sans-serif;
  --shadow-lg: 0 24px 60px -24px rgba(13, 23, 48, 0.35);
  --shadow-sm: 0 8px 30px -12px rgba(13, 23, 48, 0.18);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

/* ── Reveal animations ── */
/* Default = fully visible. Only the JS (once it confirms IntersectionObserver
   works) opts in to the hidden->reveal animation by adding .reveal-anim to
   <html>. This guarantees content is NEVER stuck invisible if JS fails or is
   slow on mobile. */
.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
html.reveal-anim .reveal { opacity: 0; transform: translateY(26px); }
html.reveal-anim .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}
.btn-lg { padding: 17px 42px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--navy-deep);
  box-shadow: 0 10px 30px -10px rgba(184, 147, 74, .55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(184, 147, 74, .7); }
.btn-outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.logo-img { height: 46px; width: auto; transition: height .3s ease; }
.logo-on-light { display: none; }
.nav-logo-text {
  font-family: var(--serif); font-weight: 700; font-size: 19px; color: #fff;
  line-height: 1.15; transition: color .3s ease;
}
.nav-logo-text small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; letter-spacing: .08em; opacity: .75; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, .85); font-weight: 500; font-size: 15.5px;
  position: relative; padding-bottom: 4px; transition: color .3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--gold-bright); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 11px 24px; font-size: 15px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all .3s ease; }

.nav.scrolled { background: rgba(250, 247, 240, .96); backdrop-filter: blur(12px); box-shadow: 0 2px 24px rgba(13, 23, 48, .1); padding: 10px 0; }
.nav.scrolled .nav-logo-text { color: var(--navy); }
.nav.scrolled .nav-links a { color: var(--navy); }
.nav.scrolled .logo-on-dark { display: none; }
.nav.scrolled .logo-on-light { display: block; }
.nav.scrolled .logo-img { height: 40px; }
.nav.scrolled .nav-burger span { background: var(--navy); }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center 28% / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13, 23, 48, .92) 0%, rgba(13, 23, 48, .45) 45%, rgba(13, 23, 48, .55) 100%),
    linear-gradient(105deg, rgba(13, 23, 48, .82) 25%, rgba(13, 23, 48, .25) 70%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 110px; }
.hero-kicker {
  font-size: 14px; font-weight: 600; letter-spacing: .28em; color: var(--gold-bright);
  margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 7vw, 88px);
  line-height: 1.08; margin-bottom: 26px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); font-weight: 300; color: rgba(255, 255, 255, .88); max-width: 52ch; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; z-index: 2;
}
.hero-scroll span {
  position: absolute; top: 8px; inset-inline-start: 50%; transform: translateX(50%);
  width: 4px; height: 9px; border-radius: 2px; background: var(--gold-bright);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: 1; top: 8px; } 55% { opacity: 0; top: 22px; } }

/* ═══════════ TRUST BAR ═══════════ */
.trustbar { background: var(--navy); color: #fff; padding: 42px 0; border-top: 3px solid var(--gold); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item strong {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 4vw, 48px); color: var(--gold-bright); line-height: 1.1;
}
.trust-item strong em { font-style: normal; font-size: .55em; }
.trust-item span { font-size: 15px; color: rgba(255, 255, 255, .75); letter-spacing: .04em; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 110px 0; }
.section-kicker {
  font-size: 13.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-kicker.light { color: var(--gold-bright); }
.section-title {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.18; margin-bottom: 26px;
}
.section-title.light { color: #fff; }
.section-sub { color: var(--ink-soft); max-width: 60ch; margin-bottom: 10px; }

/* ═══════════ PRACTICE ═══════════ */
.practice { background: var(--ivory); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 42px 34px 34px; position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pcard::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  transform: scaleX(0); transform-origin: right; transition: transform .4s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard:hover::before { transform: scaleX(1); }
.pcard-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  display: grid; place-items: center; margin-bottom: 24px;
}
.pcard-icon svg { width: 30px; height: 30px; }
.pcard h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.pcard > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.pcard ul { list-style: none; margin-bottom: 24px; }
.pcard li { padding-inline-start: 22px; position: relative; font-size: 15.5px; margin-bottom: 7px; color: var(--ink); }
.pcard li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.pcard-link { font-weight: 700; font-size: 15.5px; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color .3s; }
.pcard-link:hover { color: var(--gold); }

/* ═══════════ WHY ═══════════ */
.why { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.why::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, .18);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 54px; }
.why-num {
  font-family: var(--serif); font-size: 52px; font-weight: 300;
  color: var(--gold-bright); opacity: .85; line-height: 1; margin-bottom: 16px;
}
.why-item h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 10px; }
.why-item p { color: rgba(255, 255, 255, .78); font-size: 16px; }

/* ═══════════ ABOUT ═══════════ */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-frame::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px; pointer-events: none;
}
.about-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -26px; inset-inline-start: -26px;
  width: 104px; height: 104px; background: var(--ivory); border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.about-badge img { width: 62px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-quote {
  font-family: var(--serif); font-size: 21px; color: var(--navy); line-height: 1.55;
  border-inline-start: 3px solid var(--gold); padding-inline-start: 22px; margin: 28px 0 34px;
}

/* ═══════════ TEAM ═══════════ */
.team { background: var(--ivory); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 36px; margin-top: 50px; justify-content: center; }
.tcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tcard-photo { position: relative; overflow: hidden; }
.tcard-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 25%; transition: transform .6s ease; }
.tcard:hover .tcard-photo img { transform: scale(1.04); }
.tcard-body { padding: 28px 30px 32px; }
.tcard h3 { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.tcard-role { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .12em; margin: 4px 0 14px; }
.tcard-body p:last-child { color: var(--ink-soft); font-size: 15.5px; }
.team-note { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 28px; }

/* ═══════════ QUOTES ═══════════ */
.quotes { background: var(--paper); }
.quotes-wrap { margin-top: 40px; max-width: 760px; }
.quotes-track { position: relative; min-height: 240px; }
.qcard {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}
.qcard.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.qstars { color: var(--gold); font-size: 20px; letter-spacing: 4px; margin-bottom: 16px; }
.qcard blockquote {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); color: var(--navy);
  line-height: 1.6; margin-bottom: 18px;
}
.qcard figcaption { color: var(--ink-soft); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.quotes-dots { display: flex; gap: 10px; margin-top: 30px; }
.quotes-dots button {
  width: 34px; height: 4px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--line); transition: background .3s ease;
}
.quotes-dots button.active { background: var(--gold); }

/* ═══════════ FAQ ═══════════ */
.faq { background: var(--ivory); }
.faq-list { margin-top: 44px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy);
  position: relative; padding-inline-end: 56px; transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 24px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--gold); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--gold); }
.faq details p { padding: 0 26px 24px; color: var(--ink-soft); }

/* ═══════════ CONTACT ═══════════ */
.contact {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(212, 175, 106, .12) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.contact-lead { color: rgba(255, 255, 255, .82); max-width: 46ch; margin-bottom: 34px; }
.contact-details { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.contact-details li { display: flex; align-items: baseline; gap: 18px; }
.cd-label {
  min-width: 92px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--gold-bright); text-transform: uppercase;
}
.contact-details a, .contact-details span:not(.cd-label) { color: #fff; font-size: 18px; font-weight: 500; }
.contact-details a:hover { color: var(--gold-bright); }
.contact-secrecy { font-size: 14.5px; color: rgba(255, 255, 255, .65); }

.contact-form {
  background: var(--paper); border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.contact-form h3 { font-family: var(--serif); font-size: 25px; color: var(--navy); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--ivory);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 74, .18);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-ok { margin-top: 16px; color: #1d7a3d; font-weight: 600; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding: 70px 0 50px;
}
.footer-brand img { width: 74px; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.8; }
.footer h4 {
  font-family: var(--serif); color: #fff; font-size: 17px; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(212, 175, 106, .3); display: inline-block;
}
.footer-nav, .footer-contact, .footer-legal { display: flex; flex-direction: column; align-items: flex-start; }
.footer a { display: block; font-size: 15px; margin-bottom: 9px; transition: color .3s ease; }
.footer a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 13.5px; }

/* ═══════════ FLOATING ═══════════ */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; }
.mobile-callbar {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 95;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep); text-align: center; font-weight: 700; font-size: 16px;
  padding: 15px 12px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(13, 23, 48, .25);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .practice-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed; top: 0; inset-inline-end: 0; height: 100svh; width: min(320px, 82vw);
    background: var(--navy-deep); flex-direction: column; gap: 8px;
    padding: 100px 34px; transform: translateX(-102%); transition: transform .4s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4); z-index: 99;
  }
  [dir="rtl"] .nav-links { transform: translateX(102%); }
  .nav-links.open { transform: translateX(0) !important; }
  .nav-links a { color: #fff !important; font-size: 19px; padding: 10px 0; }
  .nav-burger { display: block; position: relative; z-index: 100; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger.open span { background: #fff !important; }
  .nav-cta { display: none; }
  .nav-logo-text small { display: none; }
  .practice-grid, .why-grid, .team-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .hero-content { padding: 120px 0 130px; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 40px; }
  .mobile-callbar { display: block; }
  .wa-float { bottom: 78px; width: 52px; height: 52px; }
  .about-badge { width: 84px; height: 84px; bottom: -18px; inset-inline-start: -12px; }
  .about-badge img { width: 50px; }
  .contact-form { padding: 32px 24px; }
  body { font-size: 16px; }
}
