/* =============================================
   Tatiana Antonova | Advocat Website
   Professional Legal Theme — Navy & Gold
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1e3a5f;
  --navy-light:  #2a4f7c;
  --gold:        #c9a84c;
  --gold-light:  #e2c97e;
  --gold-dark:   #9e7b28;
  --white:       #ffffff;
  --off-white:   #f8f6f0;
  --gray-light:  #ececec;
  --gray:        #888;
  --text:        #2c2c2c;
  --shadow:      0 4px 24px rgba(0,0,0,.15);
  --radius:      6px;
  --transition:  .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.hidden     { display: none !important; }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* ---------- Top Bar / Navigation ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--white) !important;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.brand-sub {
  font-size: .7rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--gray-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--gold-light); background: rgba(255,255,255,.06); }
.nav-links .pay-btn {
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: var(--radius);
  padding: 7px 18px;
}
.nav-links .pay-btn:hover { background: var(--gold-light); color: var(--navy) !important; }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle .lbl { letter-spacing: .06em; }
.switch {
  position: relative;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { display: none; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--navy-light);
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}
.slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  border-radius: 50%;
  transition: transform var(--transition);
}
.switch input:checked + .slider { background: var(--gold-dark); }
.switch input:checked + .slider::before { transform: translate(22px,-50%); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(13,27,42,.92) 0%, rgba(30,58,95,.88) 100%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1400&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 10px;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: .9rem;
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-full { width: 100%; text-align: center; }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 12px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}
.hero-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}
.lang-badge-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.lang-badge-list li {
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.contact-quick { list-style: none; }
.contact-quick li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact-quick li:last-child { border-bottom: none; }
.contact-quick .icon { color: var(--gold); font-size: 1rem; }

/* ---------- Section Labels ---------- */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
}
.section-title.centered::after { margin-left: auto; margin-right: auto; }
.section-intro {
  font-size: 1.02rem;
  color: #555;
  max-width: 640px;
  margin-bottom: 50px;
}
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* ---------- Services ---------- */
#services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--off-white);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}
.service-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.service-card p {
  font-size: .88rem;
  color: #555;
  line-height: 1.65;
}

/* ---------- About ---------- */
#about { background: var(--off-white); }
.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  gap: 12px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
}
.about-photo-placeholder .initials {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,168,76,.1);
  margin-bottom: 8px;
}
.about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.about-content p { color: #444; margin-bottom: 16px; }
.credentials {
  margin-top: 28px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}
.credentials h4 {
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 12px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.credentials ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.credentials li {
  font-size: .87rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.credentials li::before {
  content: '✦';
  color: var(--gold);
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---------- Process ---------- */
#process { background: var(--navy); }
#process .section-title { color: var(--white); }
#process .section-intro { color: rgba(255,255,255,.65); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  padding: 28px 24px;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  opacity: .5;
  display: block;
  margin-bottom: 12px;
}
.process-step h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.process-step p { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Contact ---------- */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { margin-bottom: 14px; color: #444; }
.contact-details { list-style: none; margin-top: 28px; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .9rem;
  color: #444;
}
.contact-details li:last-child { border-bottom: none; }
.contact-details .ci {
  width: 40px; height: 40px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-form-wrap {
  background: var(--off-white);
  border-radius: 10px;
  padding: 36px 32px;
  border: 1px solid var(--gray-light);
}
.contact-form-wrap h3 {
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  border-top: 2px solid var(--gold-dark);
  color: rgba(255,255,255,.55);
  padding: 40px 0;
  font-size: .82rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-links a:hover { color: var(--gold-light); }

/* =============================================
   INVOICE PAGE
   ============================================= */
.invoice-page { padding-top: 92px; }
.invoice-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0 50px;
  color: var(--white);
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.invoice-hero h1 { color: var(--white); }
.invoice-hero p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 1rem; }

.invoice-body { padding: 60px 0 80px; }
.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Payment Form */
.payment-form-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pfc-header {
  background: var(--navy);
  padding: 24px 32px;
  border-bottom: 2px solid var(--gold);
}
.pfc-header h2 {
  color: var(--white);
  font-size: 1.3rem;
}
.pfc-header p { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 4px; }
.pfc-body { padding: 32px; }

/* Method Tabs */
.method-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.method-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  color: #666;
  background: var(--off-white);
  transition: all var(--transition);
  text-align: center;
  letter-spacing: .04em;
}
.method-tab .tab-icon { font-size: 1.4rem; }
.method-tab:hover { border-color: var(--gold); color: var(--navy); }
.method-tab.active {
  border-color: var(--gold);
  background: rgba(201,168,76,.08);
  color: var(--navy);
}

/* Crypto info box */
.crypto-info {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.crypto-info p {
  font-size: .82rem;
  color: #555;
  margin-bottom: 8px;
}
.crypto-info p:last-child { margin-bottom: 0; }
.address-box {
  background: var(--white);
  border: 1.5px dashed var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: .78rem;
  color: var(--navy);
  word-break: break-all;
  margin: 8px 0;
}

/* Wire info box */
.wire-info {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.wire-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .85rem;
  gap: 12px;
}
.wire-row:last-child { border-bottom: none; }
.wire-label { color: #888; flex-shrink: 0; width: 140px; font-size: .8rem; }
.wire-val { color: var(--navy); font-weight: 600; text-align: right; }

/* Card icons */
.card-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.card-icons span {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: .04em;
}

/* Invoice Sidebar */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sidebar-card h4 {
  color: var(--navy);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-card p { font-size: .84rem; color: #555; line-height: 1.6; }
.sidebar-card ul { list-style: none; }
.sidebar-card li {
  font-size: .83rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
}
.sidebar-card li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.security-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.sec-badge {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Success message */
.success-msg {
  text-align: center;
  padding: 50px 20px;
}
.success-msg .check { font-size: 3rem; margin-bottom: 16px; }
.success-msg h3 { color: var(--navy); margin-bottom: 10px; }
.success-msg p { color: #555; font-size: .9rem; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Page offset for fixed nav */
.page-offset { padding-top: 72px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 320px; margin: 0 auto 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .invoice-grid { grid-template-columns: 1fr; }
  .invoice-sidebar { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; border-bottom: 2px solid var(--gold); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .method-tabs { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 14px 0; gap: 12px; }
  .lang-toggle { order: 3; }
}

@media (max-width: 500px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .pfc-body { padding: 20px; }
}
