/* ==========================================================================
   FinLaw Azerbaijan — Stylesheet
   Design tokens live at the top. Change a value here and it updates
   everywhere the token is used.
   ========================================================================== */

:root {
  /* Color */
  --navy:        #0B2740;
  --navy-2:      #123655;
  --navy-3:      #1A4468;
  --brass:       #AD8A3E;
  --brass-light: #D9BA79;
  --paper:       #F7F5EF;
  --paper-2:     #EFEBE0;
  --ink:         #16202B;
  --slate:       #5C6B78;
  --line:        #DDD6C4;
  --line-dark:   rgba(247, 245, 239, 0.16);
  --white:       #FFFFFF;

  /* Type */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   i18n — every bilingual block has an AZ and EN copy. site.js toggles
   [hidden] based on the chosen language. To edit text, just edit the
   words inside the matching lang="az" or lang="en" element.
   ========================================================================== */
[lang] { }
[lang][hidden] { display: none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.15;
}
.brand img { height: 34px; width: auto; flex-shrink: 0; }
@media (max-width: 480px) {
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand img { height: 28px; }
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  color: rgba(247,245,239,0.82);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--brass);
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: rgba(247,245,239,0.7);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 12px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brass);
  color: var(--navy);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--white);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 4px; }
  .main-nav li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a { display: block; padding: 14px 0; }
  .lang-switch { margin: 14px var(--gutter) 18px; align-self: flex-start; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(56px, 9vw, 108px);
}
.hero-eyebrow {
  color: var(--brass-light);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  max-width: 14ch;
}
.hero p.lead {
  color: rgba(247,245,239,0.82);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-top: 18px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-art { width: 100%; height: auto; }

.hero-logo-frame {
  background: var(--paper);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.hero-logo { width: 100%; max-width: 340px; height: auto; }

@media (max-width: 860px) {
  .hero-logo-frame { max-width: 300px; margin: 0 auto; order: -1; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-brass:hover { background: var(--brass-light); }
.btn-outline { border-color: rgba(247,245,239,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: clamp(52px, 8vw, 96px) 0; }
.section-dark { background: var(--navy-2); color: var(--white); }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { color: var(--brass); font-size: 0.9rem; margin-bottom: 10px; display: block; }
.section-dark .section-head .kicker { color: var(--brass-light); }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(247,245,239,0.8); }

/* ==========================================================================
   Stats row
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line-dark);
  padding-top: 34px;
  margin-top: 44px;
}
.stat .num { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--brass-light); }
.stat .label { color: rgba(247,245,239,0.75); font-size: 0.92rem; margin-top: 4px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Two column split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   Hairline list — used for services / practice areas
   ========================================================================== */
.hl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.section-dark .hl-list { border-top-color: var(--line-dark); }
.hl-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.section-dark .hl-item { border-bottom-color: var(--line-dark); }
.hl-item h3 { font-size: 1.14rem; margin: 0; }
.hl-item p { margin: 0; color: var(--slate); }
.section-dark .hl-item p { color: rgba(247,245,239,0.78); }
@media (max-width: 640px) { .hl-item { grid-template-columns: 1fr; gap: 8px; } }

/* ==========================================================================
   Client / logo strip
   ========================================================================== */
.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.client-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--slate);
  background: var(--white);
}
.placeholder-note {
  border: 1px dashed var(--brass);
  background: rgba(173,138,62,0.08);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.client-logo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
   Team card
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-card { }
.team-photo {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.86rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-block { grid-template-columns: 0.5fr 1.5fr; align-items: start; }
.leader-photo { max-width: 190px; margin-bottom: 0; }
@media (max-width: 780px) { .leader-block { grid-template-columns: 1fr; } .leader-photo { max-width: 150px; margin: 0 auto; } }
.team-name { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 2px; }
.team-role { color: var(--brass); font-size: 0.9rem; margin-bottom: 10px; }
.team-bio { color: var(--slate); font-size: 0.94rem; }

/* ==========================================================================
   News / newsletter list
   ========================================================================== */
.news-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.news-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news-item .news-date { color: var(--slate); font-size: 0.86rem; min-width: 96px; }
.news-item .news-title { font-family: var(--font-head); font-size: 1.08rem; flex: 1; }
.news-item .news-link { color: var(--brass); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--slate);
}
.linkedin-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.94rem;
  color: var(--slate);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-details dt { color: var(--slate); font-size: 0.85rem; margin-top: 18px; }
.contact-details dd { margin: 4px 0 0; font-size: 1.06rem; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 28px;
  height: 280px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Contact page CTA box
   ========================================================================== */
.cta-box {
  margin-top: 40px;
  padding: 32px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
}
.cta-box h2 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.cta-box p { color: rgba(247,245,239,0.8); margin-bottom: 22px; }

/* ==========================================================================
   Lead form (footer, and contact page)
   ========================================================================== */
.lead-band { background: var(--navy); color: var(--white); }
.lead-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) { .lead-grid { grid-template-columns: 1fr; gap: 28px; } }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; color: rgba(247,245,239,0.75); }
.field input, .field textarea {
  background: rgba(247,245,239,0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.field input:focus, .field textarea:focus { border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,245,239,0.35); }

.lead-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: 0.88rem; color: var(--brass-light); }

/* ==========================================================================
   Footer (site info, below the lead band)
   ========================================================================== */
#site-footer-base {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  color: rgba(247,245,239,0.6);
  font-size: 0.86rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--white); }

/* ==========================================================================
   Page hero (interior pages — lighter than home hero)
   ========================================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(46px, 7vw, 74px) 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 18ch; }
.page-hero p { color: rgba(247,245,239,0.8); max-width: 52ch; margin-top: 12px; }

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-0 { margin-top: 0; }
.center-copy { max-width: 620px; }
