/* Sachanski & Dulevski Attorneys at Law - Frontend Styles */
:root {
  --navy: #0d1b3e;
  --navy-light: #1a2f5a;
  --gold: #c9a227;
  --gold-light: #e0b83a;
  --gold-dark: #a8871f;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1f2937;
  --text-light: #4b5563;
  --shadow: 0 4px 20px rgba(13, 27, 62, 0.08);
  --shadow-lg: 0 10px 40px rgba(13, 27, 62, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  padding: 6px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

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

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  margin-top: 94px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  height: 90px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .slogan {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero.hero-image {
  background: var(--navy);
  padding: 0;
  line-height: 0;
}

.hero.hero-image::before {
  content: none;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========== WHY US ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-card .number-pct {
  letter-spacing: -0.015em;
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== PRACTICES ========== */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  height: auto;
  align-self: start;
}

.practice-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.practice-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

/* --- Practice areas accordion --- */
.practice-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.practice-toggle .practice-title {
  flex: 1 1 auto;
  min-width: 0;
  transition: color 0.2s ease;
}

.practice-toggle:hover .practice-title {
  color: var(--gold-dark);
}

.practice-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.practice-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.practice-card.is-open .practice-chevron {
  transform: rotate(-135deg);
}

.practice-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.practice-card.is-open .practice-panel {
  grid-template-rows: 1fr;
}

.practice-panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

.practice-card.is-open .practice-panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .practice-panel,
  .practice-panel-inner,
  .practice-chevron {
    transition: none;
  }
}

.practice-card h3 .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.practice-card h3 .icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.practice-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.practice-card ul {
  margin-top: 12px;
}

.practice-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0 4px 16px;
  position: relative;
}

.practice-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* ========== PARTNERS ========== */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.partner-card:hover {
  box-shadow: var(--shadow-lg);
}

.partner-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 32px;
  text-align: center;
}

.partner-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
}

.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.partner-header h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.partner-header .role {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
}

.partner-body {
  padding: 28px;
}

.partner-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-align: justify;
}

.partner-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
  font-size: 0.9rem;
  color: var(--text-light);
}

.partner-meta strong {
  color: var(--navy);
}

/* ========== FEES ========== */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.fee-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.fee-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.fee-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--gold-dark);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-check input {
  margin-top: 4px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-brand img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  margin-top: 94px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ========== CONTENT PAGES ========== */
.content-page {
  padding: 60px 0 80px;
}

.content-page h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
}

.content-page h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 24px 0 12px;
}

.content-page p,
.content-page li {
  color: var(--text-light);
  margin-bottom: 12px;
}

.content-page p {
  text-align: justify;
}

.content-page ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.content-page ol {
  margin: 12px 0 20px 24px;
  list-style: decimal;
}

.content-page a {
  color: var(--gold-dark);
}

.content-page a:hover {
  text-decoration: underline;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.9rem;
  opacity: 0.9;
  flex: 1;
  min-width: 260px;
}

.cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btns .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}


/* Nav collapses earlier — long BG labels */
@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    flex-wrap: wrap;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    white-space: normal;
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .nav-cta {
    margin: 8px 0 0 0;
    width: 100%;
    text-align: center;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 80px;
  }
  .logo img {
    height: 66px;
  }
  .hero {
    margin-top: 80px;
    padding: 60px 0 50px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero .slogan {
    font-size: 1.05rem;
  }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .about-grid,
  .partners-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .practices-grid,
  .fees-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
  }
}


/* Nav CTA */
.nav-cta {
  margin-left: 6px;
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Lang button */
.lang-btn {
  font-weight: 700 !important;
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 4px 10px !important;
  margin-left: 4px;
}
.lang-btn:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* Simplified footer */
.footer-grid-simple {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.footer-grid-simple .footer-brand img {
  /* logo-footer.png is the light/inverse mark on a transparent background,
     so it sits directly on the navy footer with no visible edges */
  height: 96px;
  width: auto;
  max-width: 100%;
  filter: none;
  background: transparent;
}
@media (max-width: 768px) {
  .footer-grid-simple {
    grid-template-columns: 1fr;
  }
}

/* Coming soon / section under development */
.coming-soon {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.coming-soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
}

.coming-soon-icon svg {
  width: 30px;
  height: 30px;
}

.coming-soon h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.coming-soon p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .coming-soon {
    padding: 40px 20px;
  }
  .coming-soon h2 {
    font-size: 1.25rem;
  }
}

/* Publications list */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub-list li {
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--gray-light);
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
  padding-left: 24px;
}
.pub-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.pub-link:hover {
  color: var(--gold-dark);
}
.pub-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}


/* Mobile polish */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 48px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .practices-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .practice-card {
    padding: 20px;
  }
  .practice-card h3 {
    font-size: 1.05rem;
    gap: 12px;
  }
  .practice-card h3 .icon {
    width: 44px;
    height: 44px;
  }
  .practice-card h3 .icon img {
    width: 28px;
    height: 28px;
  }
  .practice-card ul li {
    font-size: 0.92rem;
    padding: 6px 0 6px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 20px 14px;
  }
  .stat-card .number {
    font-size: 2rem;
  }
  .stat-card .number-pct {
    font-size: 1.7rem;
  }
  .stat-card p {
    font-size: 0.85rem;
  }
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-form {
    padding: 24px 18px;
  }
  .btn {
    min-height: 44px;
  }
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-btns {
    width: 100%;
  }
  .cookie-btns .btn {
    flex: 1;
    min-height: 44px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
