/* ============================================================
   Tanasa I Petru PFA — Services Website
   Modern, professional, responsive design
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-bg-card: #ffffff;
  --color-primary: #1e40af;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e3a8a;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.2s ease;
}

/* Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__icon {
  font-size: 18px;
  transition: transform var(--transition);
}
.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text-on-dark);
}
.header__logo-icon {
  font-size: 28px;
  line-height: 1;
}
.header__logo-text {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.header__logo-sub {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__link {
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header__link:hover {
  color: var(--color-text-on-dark);
  background: rgba(255,255,255,0.06);
}

.header__link--cta {
  background: var(--color-primary);
  color: var(--color-text-on-dark) !important;
  margin-left: 4px;
}
.header__link--cta:hover {
  background: var(--color-primary-light) !important;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-on-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(30, 64, 175, 0.3), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(245, 158, 11, 0.08), transparent);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15,23,42,0.4) 0%, transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero__overline {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--color-text-on-dark-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}

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

/* Section Header
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.section-header__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-header__law {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Services Sections
   ============================================================ */
.services {
  padding: 100px 0;
}
.services--alt {
  background: var(--color-bg-alt);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card__icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__list li {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

/* About Section
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.about__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.about__text {
  font-size: 16px;
  color: var(--color-text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__list li {
  font-size: 15px;
  color: var(--color-text-on-dark-muted);
  padding-left: 24px;
  position: relative;
}
.about__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
}

.stat {
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.stat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.stat__number {
  display: block;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: var(--color-text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Contact Section
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.contact__inner {
  max-width: 540px;
  margin: 0 auto;
}

.contact__card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.contact__item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--color-text);
}

.contact__item span,
.contact__item a {
  display: block;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.5;
}
.contact__item a:hover {
  color: var(--color-primary);
}

/* Footer
   ============================================================ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.footer__text {
  font-size: 14px;
  color: var(--color-text-on-dark-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition);
}
.footer__links a:hover {
  color: var(--color-text-on-dark);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
}

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    flex-direction: row;
    padding: 0;
  }

}

@media (max-width: 768px) {
  /* Header mobile */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-dark);
    padding: 100px 32px 40px;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header__link {
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
  }
  .header__link--cta {
    margin-left: 0;
    margin-top: 12px;
  }

  .header__burger {
    display: flex;
  }

  .header__burger.active span {
    background: var(--color-text-on-dark);
  }

  /* Grid */
  .cards {
    grid-template-columns: 1fr;
  }

  .about__stats {
    flex-direction: column;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero__inner {
    padding: 100px 24px 60px;
  }

  .services,
  .about,
  .contact {
    padding: 64px 0;
  }

  .card {
    padding: 24px 20px;
  }

  .contact__card {
    padding: 24px 20px;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
