/* ==========================================================================
   Cabinet de Avocat - Stylesheet
   Design inspirat de site-uri de avocatură din UK (litigii)
   ========================================================================== */

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

:root {
    --color-primary: #1a2332;
    --color-secondary: #2c3e50;
    --color-accent: #8b7355;
    --color-accent-light: #a8956b;
    --color-gold: #c5a55a;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f7f4;
    --color-bg-dark: #1a2332;
    --color-border: #e0ddd7;
    --color-border-light: #edeae5;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 110px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    /* iOS safe-area pentru dispozitive cu notch */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.menu-open {
    overflow: hidden;
}

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

/* SVG umple exact containerul părinte (previne randarea la dimensiune default) */
svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

em {
    font-style: italic;
    color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.4s ease;
}

.header-scrolled {
    background: rgba(26, 35, 50, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: 84px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--color-gold);
}

/* Logo bitmap (Petcu Partners) — fundal transparent, se integrează pe orice header
   Aspect ratio sursă: 1264x341 (~3.7:1) */
.logo-image {
    display: block;
    height: 78px;
    width: auto;
    max-width: 380px;
    object-fit: contain;
    transition: height 0.4s ease;
}

.header-scrolled .logo-image {
    height: 60px;
}

@media (max-width: 768px) {
    .logo-image {
        height: 56px;
        max-width: 260px;
    }
    .header-scrolled .logo-image {
        height: 46px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 48px;
        max-width: 210px;
    }
    .header-scrolled .logo-image {
        height: 40px;
    }
}

.logo-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-subtitle {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 300;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.lang-switch-current {
    color: var(--color-gold, #c9a45c);
    font-weight: 600;
}
.lang-switch-sep {
    color: rgba(255,255,255,0.35);
}
.lang-switch-other {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}
.lang-switch-other:hover,
.lang-switch-other:focus {
    color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    /* Dynamic viewport height — ia în calcul bara UI mobilă (iOS Safari, Chrome Android) */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #1a2332 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(197, 165, 90, 0.05) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M20 0L0 20M-5 5L5-5M15 25L25 15" stroke="%23ffffff" stroke-width="0.15" opacity="0.05"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: var(--header-height);
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Availability indicator (fixat în colțul din dreapta sus, sub nav) --- */
.availability-indicator {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.95rem 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    line-height: 1;
    white-space: nowrap;
    pointer-events: auto;
    z-index: 1;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.header-scrolled .availability-indicator {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.availability-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.availability-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.55;
    transform: scale(1);
    animation: availability-ring 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

/* States */
.availability-available .availability-dot {
    background: #2fbf71;
    box-shadow: 0 0 8px rgba(47, 191, 113, 0.55);
}
.availability-available .availability-text {
    color: #b9efce;
}

.availability-emergency .availability-dot {
    background: #e89a3c;
    box-shadow: 0 0 6px rgba(232, 154, 60, 0.45);
}
.availability-emergency .availability-dot::before {
    animation-duration: 3s;
    opacity: 0.4;
}
.availability-emergency .availability-text {
    color: #f6d7ae;
}

.availability-unavailable .availability-dot {
    background: #e05555;
    box-shadow: 0 0 4px rgba(224, 85, 85, 0.35);
}
.availability-unavailable .availability-dot::before {
    /* fără puls pentru starea "indisponibil" */
    animation: none;
    display: none;
}
.availability-unavailable .availability-text {
    color: #f3c2c2;
}

@keyframes availability-ring {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    80% {
        transform: scale(2.6);
        opacity: 0;
    }
    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Respectă preferința de mișcare redusă */
@media (prefers-reduced-motion: reduce) {
    .availability-dot::before {
        animation: none;
    }
}

/* --- Page Header (interior pages) --- */
.page-header {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-header .section-label {
    color: var(--color-gold);
}

.page-header-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* --- Sections --- */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: block;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* --- Cards Grid ---
   auto-fit/minmax: layout identic pe Chrome/Edge/Safari, fără media query rigide */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.card-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Card ca link (home — 3 domenii reprezentative) */
.card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    position: relative;
}

.card-link .card-arrow {
    display: inline-block;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.card-link:hover .card-arrow {
    color: var(--color-primary);
    letter-spacing: 0.12em;
}

.cards-footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* Buton „Mai multe domenii de practică" — stă pe fundal deschis,
   deci suprascriem .btn-outline (optimizat pentru fundal întunecat) */
.cards-footer .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-border);
}

.cards-footer .btn-outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* --- Split Content (De ce noi) --- */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text h2 {
    margin-bottom: 1.25rem;
}

.split-text > p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.visual-box {
    background: var(--color-primary);
    padding: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.visual-box blockquote {
    border-left: 3px solid var(--color-gold);
    padding-left: 1.5rem;
}

.visual-box blockquote p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--color-bg-alt);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* --- Profile Page --- */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.profile-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
}

.profile-photo {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    aspect-ratio: 1 / 1;
    position: relative;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-border);
}

.profile-photo-placeholder svg {
    width: 60px;
    height: 60px;
}

/* Link către profil LinkedIn */
.profile-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.profile-linkedin svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0a66c2; /* brand LinkedIn */
    transition: color 0.3s ease;
}

.profile-linkedin:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.profile-linkedin:hover svg {
    color: #fff;
}

.profile-info-card {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
}

.profile-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-details li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
}

.profile-details li:last-child {
    border-bottom: none;
}

.profile-details strong {
    color: var(--color-text);
    font-weight: 500;
}

.profile-content h2 {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
}

.profile-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.profile-content > p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
    z-index: 1;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Expertise / Proiecte grid */
.section-lead {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1.75rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.expertise-group {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    transition: background 0.3s ease;
}

.expertise-group:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.expertise-industry {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: 0.01em;
}

.expertise-list {
    margin: 0;
}

.expertise-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-light);
    border-bottom: 1px dashed var(--color-border-light);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Styled list */
.styled-list {
    margin: 1rem 0;
}

.styled-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.styled-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* Principles */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
}

.principle h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.principle p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Services Page --- */
.services-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.05rem;
}

.service-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-category {
    border: 1px solid var(--color-border-light);
    padding: 2.5rem;
    background: #fff;
}

.service-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.5;
}

.service-category-header h2 {
    margin-bottom: 0.25rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.service-category-header p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-item {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
}

.service-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.process-step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.process-step h3 {
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
}

/* --- Articles Page --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    padding: 2rem;
    border: 1px solid var(--color-border-light);
    background: #fff;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-category {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-accent);
}

.article-meta time {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.article-card h2 a:hover {
    color: var(--color-accent);
}

.article-card > p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.article-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 0.75rem;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    color: var(--color-primary);
}

.contact-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contact form */
.contact-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0; /* iOS Safari rotunjește default */
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-note p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9f0;
    border: 1px solid #c3e6c3;
}

.form-success p {
    color: #2d7a2d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Map */
.map-section {
    border-top: 1px solid var(--color-border-light);
}

.map-placeholder {
    height: 350px;
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-text-light);
}

.map-placeholder code {
    font-size: 0.8rem;
    background: var(--color-bg);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-footer .logo-title {
    font-size: 1.1rem;
}

.footer-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
}

.footer ul li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* --- Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.cards-grid .animate-in:nth-child(1) { transition-delay: 0s; }
.cards-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }
.cards-grid .animate-in:nth-child(5) { transition-delay: 0.4s; }
.cards-grid .animate-in:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   Servicii Juridice - Index + Detail
   ========================================================================== */

.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lead-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    font-weight: 400;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.55);
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb span {
    color: rgba(255,255,255,0.35);
}

.breadcrumb-current {
    color: var(--color-gold) !important;
    font-weight: 500;
}

/* Grid de carduri servicii (pagina servicii index)
   auto-fit + minmax garantează calcul identic pe toate browserele (Chrome/Edge/Safari/Firefox)
   indiferent de breakpoint-uri rigide sau diferențe de lățime a barei de scroll */
.services-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-index-card {
    position: relative;
    display: block;
    padding: 2.5rem 2.25rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.service-index-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
    transform: translateY(-3px);
}

.service-index-card:hover::before {
    transform: scaleY(1);
}

.service-index-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-bg-alt);
    line-height: 1;
    transition: color 0.4s ease;
}

.service-index-card:hover .service-index-number {
    color: var(--color-accent);
    opacity: 0.2;
}

.service-index-icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.service-index-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    padding-right: 2.5rem;
    line-height: 1.25;
}

.service-index-subtitle {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-index-sections {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-light);
}

.service-index-count {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 500;
}

.service-index-arrow {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
    transition: gap 0.3s ease;
}

/* Pagina de detaliu serviciu */
.service-intro-section {
    padding: 3.5rem 0 1rem;
}

.service-sections {
    padding: 3.5rem 0 5rem;
}

.service-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.service-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-section-header {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.service-section-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.service-section-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.3;
}

.service-section-intro {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
}

.service-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-item-detail {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s ease;
}

.service-item-detail:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.service-item-detail h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.service-item-detail p {
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* Navigare între servicii */
.service-nav-section {
    padding: 3rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.service-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.service-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.service-nav-prev {
    text-align: left;
}

.service-nav-next {
    text-align: right;
    justify-self: end;
}

.service-nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 500;
}

.service-nav-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.service-nav-link:hover .service-nav-title {
    color: var(--color-accent);
}

.service-nav-center {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-nav-center:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    /* .cards-grid folosește auto-fit, nu are nevoie de override aici */

    .split-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* .services-index-grid folosește auto-fit, nu are nevoie de override aici */
}

@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 35, 50, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    /* Indicator disponibilitate — pe mobil îl mutăm mai jos (sub hamburger) și îl micșorăm */
    .availability-indicator {
        margin-top: 0.4rem;
        padding: 0.32rem 0.75rem 0.32rem 0.65rem;
        font-size: 0.72rem;
        gap: 0.5rem;
    }
    .availability-indicator .availability-dot {
        width: 8px;
        height: 8px;
    }

    /* .cards-grid folosește auto-fit, nu are nevoie de override aici */

    .stats-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .profile-photo {
        margin-bottom: 0;
    }

    .profile-linkedin {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .service-category {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-content {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    /* Servicii responsive (768px) */
    .service-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .service-nav-prev,
    .service-nav-next {
        text-align: center;
        justify-self: center;
    }

    .service-section-header {
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }

    .service-index-number {
        font-size: 2.25rem;
        top: 1rem;
        right: 1.5rem;
    }

    .service-index-card {
        padding: 2rem 1.5rem;
    }

    .service-item-detail {
        padding: 1.25rem 1.5rem;
    }

    .container-narrow {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .service-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Cross-browser / mobile polish
   Fix-uri pentru Chrome, Edge, Safari, iOS (Safari/Chrome), Android (Chrome/Samsung Internet)
   ========================================================================== */

/* Pe mobil, inputurile cu font < 16px declanșează zoom automat în iOS Safari.
   Forțăm minim 16px pentru toate câmpurile de formular pe ecrane mici. */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    /* Touch target minim 44x44 (Apple HIG) pentru butonul meniu */
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    /* Navigare mobilă — link-uri cu touch target generos */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Asigurăm că meniul overlay respectă safe-area (iPhone cu notch) */
    .nav {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Safe-area pentru header fix pe iOS cu notch */
@supports (padding: max(0px)) {
    .header-inner {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Normalizare butoane peste browsere (Safari adaugă stiluri native) */
button {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Safari < 16 nu suportă aspect-ratio — fallback cu padding-top hack */
@supports not (aspect-ratio: 3/4) {
    .profile-photo-placeholder {
        position: relative;
        height: 0;
        padding-top: 133.33%; /* 4/3 */
    }
    .profile-photo-placeholder > * {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
    }
}

/* Prefers-reduced-motion — respectăm setarea user-ului (iOS/macOS/Windows) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
