/* ============================================
   Адвокат Горан Илиев — shared stylesheet
   ============================================ */

:root {
  --navy: #0a1f44;
  --navy-light: #13294b;
  --navy-lighter: #1e3a63;
  --gold: #c9a227;
  --gold-light: #e0c05e;
  --cream: #f7f5f0;
  --ink: #1c1c1c;
  --grey: #5c6470;
  --grey-light: #e4e1d8;
  --white: #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--grey); }

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

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

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

.section {
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }

.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy p { color: #c7cedb; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 46 rather than 40: the mark's strokes are ~2.2% of its width, so at 40px they
   land under 1px and read faint. Sizing up keeps the artwork untouched. */
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  color: #d7dce6;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 4px 8px;
  color: #9aa4b5;
  border-radius: 3px;
}
.lang-switch a.active {
  color: var(--navy);
  background: var(--gold);
}
.lang-switch a:not(.active):hover { color: var(--white); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-lighter) 100%);
  color: var(--white);
  padding: 120px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(201,162,39,0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201,162,39,0.08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { color: var(--white); }

/* when a transparent cut-out is present it runs to the hero's bottom edge */
.hero.has-cutout { padding-bottom: 0; }
.hero.has-cutout .hero-inner { align-items: end; }
.hero.has-cutout .hero-copy { padding-bottom: 120px; }

/* ===== Hero portrait =====
   Three states:
   1. no file yet          → gold silhouette on a framed plate
   2. .has-photo (JPG)     → framed portrait, backdrop baked in
   3. .is-cutout (PNG)     → transparent cut-out bleeding off the hero's bottom
*/
.hero-figure {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  align-self: end;
}
/* offset gold frame behind the portrait (states 1 and 2) */
.hero-figure::before {
  content: "";
  position: absolute;
  top: 22px;
  right: -22px;
  bottom: -22px;
  left: 22px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo svg { width: 38%; height: 38%; opacity: 0.85; }
.hero-photo.has-photo svg { display: none; }
/* soft fade so a framed portrait settles into the navy hero */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.5) 0%, rgba(10, 31, 68, 0) 40%);
  pointer-events: none;
}

/* --- state 3: transparent cut-out, template style --- */
.hero-figure.is-cutout { max-width: 440px; }
.hero-figure.is-cutout::before { display: none; }
.hero-figure.is-cutout .hero-photo {
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
  overflow: visible;
  display: block;
}
.hero-figure.is-cutout .hero-photo::after { display: none; }
.hero-figure.is-cutout .hero-photo img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  /* no max-height: the natural aspect decides, so there is no letterboxed
     dead space beside the cut-out */
  /* feathers the very bottom edge into the hero instead of a hard cut */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 6%);
  mask-image: linear-gradient(to top, transparent 0, #000 6%);
}
.hero p.lead {
  font-size: 1.15rem;
  color: #c7cedb;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== Breadcrumb / page header (inner pages) ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 50px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { color: #9aa4b5; font-size: 0.9rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: var(--gold); }

/* ===== Practice area cards ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: 0 18px 40px rgba(10,31,68,0.09);
  transform: translateY(-4px);
  border-color: transparent;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ===== About / attorney ===== */
.attorney-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.attorney-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.attorney-photo svg { width: 40%; height: 40%; opacity: 0.85; }
/* Real photo, when present, covers the placeholder silhouette */
.attorney-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ===== Team ===== */
.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.team-photo svg { width: 38%; height: 38%; opacity: 0.85; }
.team-photo.has-photo svg,
.attorney-photo.has-photo svg { display: none; }
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-card h3 { margin-bottom: 2px; }
.team-card .role {
  display: block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.team-card p { font-size: 0.94rem; text-align: left; }

.bio-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bio-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--grey);
  font-size: 0.95rem;
}
.bio-list .year {
  flex: none;
  min-width: 92px;
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-serif);
}

/* Social icons */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

.attorney-name { margin-bottom: 2px; }
.attorney-title {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.value-item {
  border-top: 3px solid var(--gold);
  padding-top: 16px;
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: #c7cedb; margin-bottom: 28px; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-list .icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-list svg { width: 19px; height: 19px; stroke: var(--gold); fill: none; }
.contact-info-list strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-info-list span { color: var(--grey); font-size: 0.92rem; }

.map-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  margin-top: 32px;
  min-height: 260px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--grey); margin-top: 14px; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   display:none fields. Hidden from assistive tech via aria-hidden + tabindex. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.93rem;
  border: 1px solid transparent;
}
.form-status.is-ok {
  background: #edf7ee;
  border-color: #9ccfa2;
  color: #1f5d2a;
}
.form-status.is-error {
  background: #fdf0ef;
  border-color: #e0a9a4;
  color: #8a2c22;
}

/* ===== Service landing pages ===== */
.svc-wrap { max-width: 820px; }
.svc-intro {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 40px;
}
.svc-block { margin-bottom: 40px; }
.svc-block h2 { font-size: 1.5rem; margin-bottom: 18px; }
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-list li {
  position: relative;
  padding-left: 28px;
  color: var(--grey);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.faq-item {
  border-top: 1px solid var(--grey-light);
  padding: 20px 0;
}
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }

/* linked service cards */
.card--link { display: block; color: inherit; }
.card--link h3 { transition: color .2s ease; }
.card--link:hover h3 { color: var(--gold); }
.card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.placeholder-note {
  background: #fff8e6;
  border: 1px dashed var(--gold);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #8a6d16;
  margin: 18px 0;
}
.placeholder-note strong { color: #6b5410; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #c7cedb;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.3fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name,
.footer-brand .brand-sub { color: inherit; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 320px; }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: #c7cedb; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8b93a3;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; }
  .hero-figure { margin: 0 auto; max-width: 300px; }
  /* .hero-figure.is-cutout is more specific than the rule above, so it needs
     its own override here or the desktop width leaks onto mobile */
  .hero-figure.is-cutout { max-width: 300px; }
  .hero.has-cutout .hero-copy { padding-bottom: 0; }
  .hero-figure::before { top: 16px; right: -16px; bottom: -16px; left: 16px; }
  .attorney-grid { grid-template-columns: 1fr; }
  .attorney-photo { max-width: 320px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 80px; }
  .hero-figure,
  .hero-figure.is-cutout { max-width: 250px; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 24px;
  color: #d7dce6;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav .lang-switch { padding: 14px 24px; }
