/* =============================================
   YOVKOV LAW — SILENT LUXURY DESIGN SYSTEM
   ============================================= */

:root {
  --navy:       #0A192F;
  --navy-mid:   #112240;
  --navy-light: #1E3A5F;
  --slate-600:  #3D5A80;
  --slate-400:  #8892A4;
  --slate-200:  #C8D0DC;
  --slate-100:  #EEF1F5;
  --off-white:  #F8F6F1;
  --white:      #FFFFFF;
  --gold:       #B8976A;
  --gold-light: #D4B896;
  --text-dark:  #1a2640;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans) !important;
  background-color: var(--off-white) !important;
  color: var(--text-dark) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GLOBAL TYPOGRAPHY ── */
h1, h2, h3, h4, .elementor-heading-title {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
}
.elementor-heading-title {
  color: var(--navy) !important;
}
p, li, span, a, label, input, textarea, select,
.elementor-widget-text-editor p {
  font-family: var(--font-sans) !important;
}

/* ── HEADER / NAV ── */
.site-header,
.elementor-location-header,
header.e-con {
  background: var(--navy) !important;
  backdrop-filter: blur(20px);
}
.site-header.scrolled,
.site-header.sticky-header {
  background: rgba(10,25,47,0.96) !important;
  box-shadow: 0 1px 0 rgba(200,208,220,0.08) !important;
}

/* Logo white pill container */
.site-logo a,
.elementor-widget-site-logo a,
.custom-logo-link {
  background: rgba(255,255,255,0.97);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s ease;
}
.custom-logo { filter: none !important; }

/* Nav links */
.main-navigation a,
.elementor-nav-menu a,
.e--pointer-underline .elementor-item {
  font-family: var(--font-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  color: rgba(248,246,241,0.65) !important;
  transition: color 0.25s ease !important;
}
.main-navigation a:hover,
.elementor-nav-menu a:hover {
  color: var(--off-white) !important;
}

/* ── HERO SECTION ── */
.elementor-section.hero-section,
section.hero,
[data-id] .elementor-section:first-of-type {
  background-color: var(--navy) !important;
  min-height: 90vh !important;
}
.elementor-section.hero-section .elementor-heading-title,
.hero-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.6rem, 4.5vw, 4rem) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--off-white) !important;
}

/* ── PRACTICE AREAS / SERVICE CARDS ── */
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.service-card,
.elementor-posts-grid article,
.elementor-post__card {
  background: var(--white) !important;
  border: 1px solid var(--slate-200) !important;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease !important;
  position: relative;
  overflow: hidden;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover,
.service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 36px rgba(10,25,47,0.08) !important;
}
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover::before,
.service-card:hover::before {
  transform: scaleX(1);
}
.elementor-icon-box-title,
.service-card h3 {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--navy) !important;
}
.elementor-icon-box-description,
.service-card p {
  font-size: 0.875rem !important;
  font-weight: 300 !important;
  color: var(--slate-600) !important;
  line-height: 1.75 !important;
}

/* ── BUTTONS ── */
.elementor-button,
.wp-block-button__link,
a.btn,
button.btn,
.elementor-button-wrapper .elementor-button {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: background 0.35s ease, color 0.35s ease !important;
}
.elementor-button.elementor-size-md,
.elementor-button-primary {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none !important;
  padding: 0.9rem 2.1rem !important;
}
.elementor-button.elementor-size-md:hover,
.elementor-button-primary:hover {
  background: var(--navy) !important;
  color: var(--gold) !important;
}
.elementor-button-secondary {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1px solid var(--navy) !important;
}
.elementor-button-secondary:hover {
  background: var(--navy) !important;
  color: var(--off-white) !important;
}

/* ── SECTION LABELS (eyebrows) ── */
.section-eyebrow,
.elementor-widget-text-editor .eyebrow {
  font-size: 0.67rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--slate-400) !important;
  margin-bottom: 0.875rem !important;
}

/* ── ABOUT SECTION ── */
.about-section,
[class*="about"] .elementor-section {
  background: var(--white) !important;
}
.elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(15%);
  transition: filter 0.6s ease;
}
.elementor-widget-image:hover img {
  filter: grayscale(0%);
}

/* ── STATS ── */
.elementor-counter-number-wrapper .elementor-counter-number,
.stat-number {
  font-family: var(--font-serif) !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  letter-spacing: -0.03em !important;
}
.elementor-counter-title,
.stat-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--slate-400) !important;
}

/* ── DARK SECTIONS ── */
.elementor-section.dark-bg,
.elementor-section[data-settings*="dark"] {
  background: var(--navy) !important;
}
.elementor-section.dark-bg h1,
.elementor-section.dark-bg h2,
.elementor-section.dark-bg h3,
.elementor-section.dark-bg .elementor-heading-title {
  color: var(--off-white) !important;
}
.elementor-section.dark-bg p,
.elementor-section.dark-bg .elementor-text-editor {
  color: var(--slate-400) !important;
}

/* ── CONTACT FORM ── */
.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select,
.wpcf7-form input,
.wpcf7-form textarea {
  background: var(--off-white) !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  color: var(--text-dark) !important;
  padding: 0.85rem 1rem !important;
  transition: border-color 0.25s ease !important;
}
.elementor-field-group input:focus,
.elementor-field-group textarea:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: none !important;
}
.elementor-field-label,
.wpcf7-form label {
  font-size: 0.65rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--slate-400) !important;
  font-weight: 500 !important;
}

/* ── FOOTER ── */
.site-footer,
footer.e-con,
.elementor-location-footer {
  background: var(--navy) !important;
  border-top: 1px solid rgba(200,208,220,0.05) !important;
}
.site-footer a,
.elementor-location-footer a {
  color: rgba(200,208,220,0.45) !important;
  font-size: 0.82rem !important;
  font-weight: 300 !important;
  transition: color 0.25s ease, padding-left 0.25s ease !important;
}
.site-footer a:hover,
.elementor-location-footer a:hover {
  color: var(--off-white) !important;
  padding-left: 3px !important;
}
.site-footer p,
.elementor-location-footer p {
  color: rgba(200,208,220,0.3) !important;
  font-size: 0.72rem !important;
}

/* Footer logo pill */
.site-footer .custom-logo-link,
.elementor-location-footer .elementor-widget-site-logo a {
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  display: inline-flex;
}

/* ── GOLD DIVIDER ACCENTS ── */
.elementor-divider-separator {
  border-color: var(--gold) !important;
  opacity: 0.4 !important;
}

/* ── IMAGES — always fit ── */
.elementor-widget-image .elementor-image img,
.elementor-widget-image-box img,
.wp-post-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

/* ── GLOBAL TRANSITIONS ── */
a { transition: color 0.25s ease !important; }
* { box-sizing: border-box; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--slate-200); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  h1, .elementor-heading-title.elementor-size-xxl {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  h2, .elementor-heading-title.elementor-size-xl {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
  .elementor-section {
    padding: 3rem 1.25rem !important;
  }
}
@media (max-width: 480px) {
  .elementor-button {
    width: 100% !important;
    justify-content: center !important;
  }
}
