html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

.mobile-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-panel { transform: translateY(-20px); opacity: 0; pointer-events: none; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }
.mobile-panel.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: #1a1a2e; margin: 5px auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrolled { backdrop-filter: blur(12px); background: rgba(255,255,255,1) !important; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-scrolled .nav-inner { height: 64px !important; }
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
    background: #d4af37; transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

[data-animate] { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
[data-animate="fadeUp"] { transform: translateY(50px); }
[data-animate="fadeIn"] { transform: none; }
[data-animate="slideLeft"] { transform: translateX(-60px); }
[data-animate="slideRight"] { transform: translateX(60px); }
[data-animate="zoomIn"] { transform: scale(0.85); }
[data-animate].animated { opacity: 1; transform: none; }

.hero-bg { position: relative; overflow: hidden; }
.hero-bg::before, .hero-bg::after {
    content: ''; position: absolute; border-radius: 50%; opacity: 0.08;
    background: radial-gradient(circle, #d4af37, transparent 70%);
    animation: heroFloat 8s ease-in-out infinite;
}
.hero-bg::before { width: 500px; height: 500px; top: -100px; right: -100px; animation-delay: 0s; }
.hero-bg::after { width: 400px; height: 400px; bottom: -80px; left: -80px; animation-delay: -4s; }
.hero-title { animation: heroTitleIn 1.2s ease-out forwards; opacity: 0; }
.hero-sub { animation: heroTitleIn 1.2s ease-out 0.4s forwards; opacity: 0; }
.hero-cta { animation: heroTitleIn 1.2s ease-out 0.8s forwards; opacity: 0; }
.scroll-arrow { animation: arrowBounce 2s ease-in-out infinite; }
.cta-btn { position: relative; }
.cta-btn::after {
    content: ''; position: absolute; inset: -4px; border-radius: 12px;
    border: 2px solid #d4af37; opacity: 0; animation: ctaPulse 2.5s ease-out infinite;
}

.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-top: 3px solid transparent;
}
.card-hover:hover {
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(26,26,46,0.12);
    border-top-color: #d4af37;
}
.icon-circle { transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease; }
.card-hover:hover .icon-circle,
.icon-circle:hover { transform: scale(1.1); background-color: #1a1a2e; }
.card-hover:hover .icon-circle svg,
.icon-circle:hover svg { color: white; }
.icon-circle:hover { animation: iconPulse 1.5s ease-in-out infinite; }

.stats-bg {
    background: linear-gradient(-45deg, #f0ece0, #e8dcc8, #f5f0e0, #f0ece0);
    background-size: 300% 300%;
    animation: statsGradient 6s ease infinite;
}
.banner-bg {
    background: linear-gradient(-45deg, #0a0a18, #1a1a2e, #16213e, #1a1a2e);
    background-size: 300% 300%;
    animation: bannerGradient 8s ease infinite;
}
.banner-title { animation: bannerFadeIn 1s ease-out forwards; opacity: 0; }
.banner-breadcrumb { animation: bannerFadeIn 1s ease-out 0.3s forwards; opacity: 0; }

.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}
.btn-shimmer:hover::before { left: 100%; }
.back-to-top {
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.footer-link { transition: color 0.3s, padding-left 0.3s; }
.footer-link:hover { padding-left: 6px; }
.section-line { width: 60px; height: 3px; background: #d4af37; margin: 0 auto 2rem; border-radius: 2px; }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.6s ease; }
.img-zoom:hover img { transform: scale(1.08); }
.quote-icon { animation: quoteFloat 4s ease-in-out infinite; }
.client-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26,26,46,0.12);
    border-color: #d4af37;
}
.form-input:focus { box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }
.category-tag { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.category-tag:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(26,26,46,0.15); }
.date-block { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.date-block:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(26,26,46,0.15); }
.news-item { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.news-item:hover { border-color: #d4af37; }
.page-btn { transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease; }
.page-btn:hover { transform: translateY(-2px); }
.tag-pill {
    opacity: 0; transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.tag-pill.animated { opacity: 1; transform: translateY(0); }

.photo-wall-grid { column-count: 3; column-gap: 24px; }
.photo-wall-grid .photo-card {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f0;
    box-shadow: 0 10px 28px rgba(26,26,46,0.08);
    cursor: pointer;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.78), rgba(26,26,46,0.08) 58%, transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.photo-card:hover::after { opacity: 1; }
.photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: white;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.photo-card:hover .photo-caption { opacity: 1; transform: translateY(0); }
.photo-tall { height: 420px; }
.photo-mid { height: 320px; }
.photo-short { height: 260px; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10,10,24,0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    contain: layout paint style;
    will-change: opacity;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { width: min(100%, 1080px); contain: layout paint; }
.lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    color: white;
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(212,175,55,0.9); }

.team-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,46,0.6);
    opacity: 0; transition: opacity 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-card { cursor: pointer; }
.team-photo-frame { aspect-ratio: 4 / 5; }
.modal-photo-frame {
    aspect-ratio: 4 / 5;
    width: min(100%, 420px);
    max-height: 68vh;
    margin: 0 auto;
}
.modal-photo-frame .lawyer-photo { object-position: center 18%; }
.lawyer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-content {
    position: fixed; top: 50%; left: 50%; z-index: 101;
    transform: translate(-50%, calc(-50% + 12px));
    opacity: 0; pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
    width: 90%; max-width: 720px; max-height: 85vh; overflow-y: auto;
    background: white; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.modal-content.active {
    transform: translate(-50%, -50%);
    opacity: 1; pointer-events: auto;
}
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: white; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

.contact-dialog {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.contact-dialog.active { opacity: 1; pointer-events: auto; }
.contact-dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10,10,24,0.68);
    cursor: pointer;
}
.contact-dialog__panel {
    position: relative;
    width: min(100%, 420px);
    border-radius: 8px;
    background: white;
    padding: 34px 28px 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
    outline: none;
}
.contact-dialog.active .contact-dialog__panel { transform: translateY(0) scale(1); }
.contact-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #1a1a2e;
    cursor: pointer;
}
.contact-dialog__close::before,
.contact-dialog__close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 9px;
    width: 16px;
    height: 2px;
    background: currentColor;
}
.contact-dialog__close::before { transform: rotate(45deg); }
.contact-dialog__close::after { transform: rotate(-45deg); }
.contact-dialog__close:hover { background: #e8dcc8; }
.contact-dialog__mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(212,175,55,0.16);
    color: #d4af37;
    position: relative;
}
.contact-dialog__mark::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 15px;
    width: 16px;
    height: 26px;
    border: solid currentColor;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}
.contact-dialog__title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
    color: #1a1a2e;
}
.contact-dialog__message {
    margin: 0;
    color: #5f6472;
    font-size: 15px;
    line-height: 1.7;
}
.contact-dialog__phone {
    display: inline-flex;
    margin-top: 16px;
    color: #1a1a2e;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}
.contact-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}
.contact-dialog__call,
.contact-dialog__secondary {
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.contact-dialog__call {
    border: 1px solid #d4af37;
    background: #d4af37;
    color: white;
}
.contact-dialog__secondary {
    border: 1px solid #d7d9df;
    background: white;
    color: #1a1a2e;
}
.contact-dialog__call:hover { background: #c49b2d; }
.contact-dialog__secondary:hover { border-color: #d4af37; color: #b89226; }

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}
@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(12px); opacity: 1; }
}
@keyframes ctaPulse {
    0% { opacity: 0.6; inset: -4px; }
    100% { opacity: 0; inset: -20px; }
}
@keyframes statsGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bannerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInTitle {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes quoteFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,26,46,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(26,26,46,0); }
}

@media (max-width: 1023px) {
    .photo-wall-grid { column-count: 2; }
}

@media (max-width: 767px) {
    .photo-wall-grid { column-count: 1; }
    .photo-tall, .photo-mid, .photo-short { height: 260px; }
    .photo-caption { opacity: 1; transform: none; }
    .photo-card::after { opacity: 1; }
}

@media (max-width: 640px) {
    .modal-photo-frame { width: min(100%, 340px); }
}
