* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-text: #1e293b;
    --color-heading: #0f172a;
    --color-accent: #c9a96e;
    --color-brand: #1a365d;
    --color-white: #ffffff;
    --color-nav-bg-end: #f0f4f8;
    --color-nav-border: #d4dce8;
    --color-soft-bg: #faf8f3;
    --color-surface-1: #f8fafc;
    --color-surface-2: #eef2f7;
    --color-surface-3: #dce5f0;
    --color-border-soft: #e8e8e8;
    --color-muted: #5a7a9d;
    --color-scrollbar-track: #f1f5f9;
    --color-footer-bg: #bfc3c9;
    --color-black: #000000;
}

body { font-family: 'Inter', sans-serif; color: var(--color-text); padding-top: 80px; }

p { margin: 1em 0; }

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--color-white);
    color: var(--color-heading);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 10000;
}

/* Visible focus outline for keyboard users */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

b, strong { color: var(--color-heading); }

h1, h2 { font-family: 'Playfair Display', serif; }

section h2 { 
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--color-heading);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

section h3 { margin-bottom: 20px; }

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px clamp(20px, 5vw, 60px);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-nav-bg-end) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-nav-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    will-change: transform;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar h2 {
    color: var(--color-heading);
}

.navbar ul { display: flex; gap: 25px; list-style: none; }

.navbar a { 
    text-decoration: none; 
    color: var(--color-heading); 
    position: relative;
    transition: color 0.3s ease;
}

.navbar a.nav-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--color-brand);
    transition: color 0.3s ease;
}

.navbar a.nav-icon:hover {
    color: var(--color-accent);
}

.navbar a.nav-icon:focus-visible {
    color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.navbar a.nav-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-heading);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.navbar a.nav-icon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-heading);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.navbar a.nav-icon:hover::after,
.navbar a.nav-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.navbar a.nav-icon:focus-visible::after,
.navbar a.nav-icon:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.navbar a:not(.nav-icon)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: var(--color-accent);
}

.navbar a:not(.nav-icon):hover::after {
    width: 100%;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

/* HERO HEADER */
.hero-header {
    background: var(--color-white);
    padding: 60px clamp(20px, 5vw, 60px) 15px clamp(20px, 5vw, 60px);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-header-content {
    max-width: 800px;
}

.hero-header h1 {
    font-size: clamp(14px, 5vw, 44px);
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.05;
    white-space: nowrap;
}

/* HERO */
.hero {
    height: 50vh;
    background: url('images/lawyers.jpeg');
    background-size: cover;
    background-position: center 32%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

/* Larger screens: increase hero height so header + hero fit first viewport */
@media (min-width: 992px) {
    .hero {
        height: 70vh;
        background-position: center 28%;
    }

    .team-banner {
        height: 60vh;
    }

    .team-banner img {
        object-position: center 46%;
    }
}

/* Tablet screens: keep more of the upper group framing visible */
@media (max-width: 991px) and (min-width: 577px) {
    .hero { background-position: center 35%; }

    .team-banner img { object-position: center 53%; }
}

/* TITLE */
.hero h1 {
    font-size: 44px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
}

/* TAGLINE */
.tagline {
    margin-top: 25px;
    font-size: 15px;
    letter-spacing: 6px;
    color: var(--color-heading);
}

/* GOLD DIVIDER */
.divider {
    width: 100px;
    height: 2px;
    background: #c9a96e;
    margin: 25px auto 0;
}

/* ANIMATION BASE */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.fade-up,
.about h2,
.about p,
.values li,
.practice-box,
.team-card,
.track-record-item,
.track-record-card,
.agreement-item,
.profile-image img,
#profileName,
#profileRole,
#profileBio,
#profileSpecializations,
#profileExperience,
#profileEducation,
#profileEmail {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* DELAYS */
.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* KEYFRAMES */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowFadeIn {
    to {
        opacity: 1;
        box-shadow: 0 0 20px rgba(201, 169, 110, 0.6);
    }
}

section {
    padding: 80px 20px;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* ABOUT */
.about { 
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-soft-bg) 100%);
}
.about p { text-align: justify; }
.about h3 { 
    text-align: center; 
    margin-top: 40px;
}

.about h2,
.about p {
    opacity: 0;
    transform: translateY(30px);
}

.about h2.scroll-animate,
.about p.scroll-animate {
    animation: fadeUp 0.8s ease forwards;
}

/* VALUES */
.values { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    list-style: none; 
    justify-content: center;
    margin-top: 30px;
}
.values li {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 8px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    font-size: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.values li.scroll-animate {
    animation: fadeUp 0.8s ease forwards;
}

.values li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
}

/* PRACTICE GRID */
.practice-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.practice { background: var(--color-white); }

.practice-box {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    text-align: left;
    cursor: default;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

a.practice-box {
    cursor: pointer;
    position: relative;
}

a.practice-box::after {
    content: '↗';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.practice-box.scroll-animate {
    animation: fadeUp 0.8s ease forwards;
}

a.practice-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
}

a.practice-box:hover::after {
    opacity: 1;
}

.practice-box h3 {
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

.practice-box ul {
    list-style: none;
    padding: 0;
}

.practice-box li {
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
    font-size: 14px;
}

.practice-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-brand);
}

/* TEAM */
.team { background: var(--color-surface-1); }

.team .section-inner {
    max-width: 1020px;
}

.team-banner {
    margin: 24px auto 34px;
    max-width: 100%;
    height: 50vh;
    overflow: hidden;
    border-radius: 12px;
}

.team-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 50%;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-x: visible;
}

.team-row {
    display: grid;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    --team-card-width: 220px;
}

.team-row-top {
    grid-template-columns: repeat(3, minmax(0, var(--team-card-width)));
}

.team-row-bottom {
    grid-template-columns: repeat(4, minmax(0, var(--team-card-width)));
}

.practice-box:nth-child(1).scroll-animate { animation-delay: 0s; }
.practice-box:nth-child(2).scroll-animate { animation-delay: 0.1s; }
.practice-box:nth-child(3).scroll-animate { animation-delay: 0.2s; }
.practice-box:nth-child(4).scroll-animate { animation-delay: 0.3s; }

.team-card {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
}

.team-card.scroll-animate {
    animation: fadeUp 0.5s ease forwards;
}

.team-card:nth-child(1).scroll-animate { animation-delay: 0s; }
.team-card:nth-child(2).scroll-animate { animation-delay: 0.1s; }
.team-card:nth-child(3).scroll-animate { animation-delay: 0.2s; }
.team-card:nth-child(4).scroll-animate { animation-delay: 0.3s; }
.team-card:nth-child(5).scroll-animate { animation-delay: 0.4s; }

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
}

.team-card h3 {
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 8px;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
}

@media (max-width: 1024px) {
    .team-row-top,
    .team-row-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-row {
        --team-card-width: 1fr;
    }
}

@media (max-width: 640px) {
    .team-row-top,
    .team-row-bottom {
        grid-template-columns: 1fr;
    }

    .team-card {
        min-height: auto;
    }
}

/* TRACK RECORD */
.track-record { background: var(--color-white); }

.track-record-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.track-record-item {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    opacity: 0;
}

.track-record-item.scroll-animate {
    animation: slideInLeft 0.6s ease forwards;
}

.track-record-item:nth-child(1).scroll-animate {
    animation-delay: 0s;
}

.track-record-item:nth-child(2).scroll-animate {
    animation-delay: 0.15s;
}

.track-record-item h3 {
    color: var(--color-black);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 15px;
}

.track-record-item p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.track-record-list {
    list-style: none;
    padding: 0;
}

.track-record-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.track-record-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-weight: bold;
}

.track-record-cta {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-heading) 100%);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.3);
}

/* TRACK RECORD FULL PAGE */
.track-record-full {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-nav-bg-end) 100%);
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.track-record-full h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-heading) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-record-subtitle {
    font-size: 16px;
    color: var(--color-muted);
    margin-bottom: 30px;
}

.track-record-content {
    margin-top: 40px;
}

.track-record-section {
    margin-bottom: 50px;
}

.track-record-section h2 {
    font-size: 24px;
    color: var(--color-black);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

.track-record-section > p {
    margin-bottom: 25px;
    color: var(--color-heading);
    line-height: 1.6;
}

.track-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.track-record-card {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    opacity: 0;
}

.track-record-card.scroll-animate {
    animation: slideInLeft 0.8s ease forwards;
}

.agreement-item {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    opacity: 0;
}

.agreement-item.scroll-animate {
    animation: slideInLeft 0.8s ease forwards;
}

.agreement-item h3 {
    color: var(--color-black);
    margin-bottom: 12px;
    font-size: 16px;
}

.agreement-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-heading);
}

.track-record-agreements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.agreement-item strong {
    color: var(--color-brand);
    font-weight: 600;
}

.track-record-back {
    margin-top: 50px;
    text-align: center;
}

.track-record-back a {
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.track-record-back a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.track-record-back a:hover {
    color: var(--color-accent);
}

.track-record-back a:hover::after {
    width: 100%;
}
.indemnity { 
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    color: var(--color-heading);
    text-align: center;
    padding: 50px 20px;
}

.indemnity .section-inner {
    background: var(--color-white);
    padding: 35px 30px;
    border-radius: 12px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.indemnity h2 {
    opacity: 1;
    transform: none;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    margin-bottom: 20px;
    font-size: 28px;
}

.indemnity p {
    opacity: 0;
    transform: translateY(30px);
    color: var(--color-heading);
    line-height: 1.6;
    font-size: 14px;
}

.indemnity p.scroll-animate {
    animation: fadeUp 0.4s ease forwards;
}

.indemnity-logo {
    width: 180px;
    margin: 15px auto;
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.indemnity-logo.scroll-animate {
    animation: fadeUp 0.4s ease forwards;
}

/* CLIENTS */
.clients {
    background: var(--color-white);
    padding: 50px 20px;
}

.clients h2 {
    opacity: 1;
    transform: none;
}

.slide-track img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px);
}

.slide-track img.scroll-animate {
    animation: fadeUp 0.4s ease forwards;
}

.slider {
    overflow-x: auto; 
    overflow-y: hidden;
    scroll-behavior: smooth;
    margin-top: 20px;
}
.slider::-webkit-scrollbar {
    height: 8px;
}
.slider::-webkit-scrollbar-track {
    background: var(--color-scrollbar-track);
}
.slider::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}
.slide-track { 
    display: flex; 
    gap: 40px; 
    padding: 20px 0;
    min-width: min-content;
}
.slide-track img { 
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

/* CONTACT */
.contact { background: var(--color-surface-1); }

.contact a { 
    color: var(--color-heading);
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--color-accent);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
}

.contact-text p:first-child {
    margin-top: 0;
}

.contact-text {
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
}

/* FOOTER */
footer { background: var(--color-footer-bg); color: var(--color-heading); text-align: center; padding: 20px; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .navbar {
        padding: 15px clamp(15px, 5vw, 40px);
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar a.nav-icon {
        font-size: 14px;
        width: auto;
        height: auto;
        position: relative;
    }

    .navbar a.nav-icon i {
        display: none;
    }

    .navbar a.nav-icon::after {
        content: attr(data-text);
        position: static;
        transform: none;
        background: none;
        color: var(--color-heading);
        padding: 0;
        border-radius: 0;
        font-size: 14px;
        white-space: normal;
        opacity: 1;
        visibility: visible;
        transition: color 0.3s ease;
        pointer-events: auto;
        z-index: auto;
        display: inline-block;
        padding-bottom: 8px;
        border-bottom: 0px solid var(--color-accent);
    }

    .navbar a.nav-icon:hover::after {
        color: var(--color-accent);
        border-bottom: 2px solid var(--color-accent);
    }

    .navbar a.nav-icon::before {
        display: none;
    }

    .navbar a.nav-icon:hover {
        color: var(--color-accent);
    }
    
    .navbar ul { 
        flex-direction: column; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--color-white) 0%, var(--color-nav-bg-end) 100%);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--color-nav-border);
    }
    
    .navbar ul.active {
        max-height: 500px;
        padding: 20px;
        overflow-y: auto;
    }
    
    .navbar ul li {
        padding: 12px 0;
    }

    .hero {
        background-position: center 34%;
        background-attachment: scroll;
    }

    .team-banner img {
        object-position: center 52%;
    }
    
    .hero-header h1,
    .hero h1 { font-size: 28px; }
    .team-grid { grid-template-columns: 1fr; }
    .team-card { grid-column: auto; }
    .contact-layout { grid-template-columns: 1fr; }

    .clients .slider {
        margin-top: 12px;
    }

    .clients .slide-track {
        gap: 12px;
        padding: 12px 0;
    }

    .clients .slide-track img {
        width: clamp(56px, 18vw, 80px);
        height: clamp(56px, 18vw, 80px);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-card { grid-column: auto; }
}

/* Tablet */
@media (max-width: 992px) {
    .practice-columns {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        font-size: 14px;
        line-height: 1.55;
    }

    section {
        padding: 60px 20px;
    }

    .about {
        padding-top: 28px;
    }

    .hero-header {
        padding: 36px clamp(20px, 5vw, 60px) 4px clamp(20px, 5vw, 60px);
    }

    section h2 {
        font-size: 28px;
    }

    section h3 {
        font-size: 17px;
        margin-bottom: 16px;
    }

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

    a.practice-box::after {
        content: '';
        opacity: 1;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        display: block;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M10 7h7v7'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 18px 18px;
    }

    .hero {
        background-size: contain;
        background-position: center 20%;
        background-color: var(--color-white);
        height: 42vh;
    }

    .team-banner {
        height: 42vh;
        background: var(--color-white);
    }

    .team-banner img {
        object-fit: contain;
        object-position: center 38%;
        background: var(--color-surface-1);
    }

    .hero-header h1,
    .hero h1 {
        font-size: 24px;
        letter-spacing: 2px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .track-record-preview {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .track-record-item {
        padding: 18px;
    }

    .track-record-item h3 {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .track-record-item p,
    .track-record-list li {
        font-size: 12px;
        line-height: 1.45;
    }

    .track-record-item p {
        margin-bottom: 12px;
    }

    .track-record-list li {
        padding: 6px 0 6px 18px;
    }

    .detail-page {
        padding: 28px 16px;
    }

    .detail-page h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .detail-content h2 {
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .detail-content p {
        font-size: 14px;
        line-height: 1.65;
    }

    .detail-content h3 {
        font-size: 15px;
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .detail-content .detail-list {
        column-count: 1 !important;
        column-gap: 0 !important;
        width: 100%;
        margin: 16px 0;
    }

    .detail-content .detail-list li {
        margin-left: 0;
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.5;
        word-break: break-word;
    }
}

/* PROFILE PAGE */
.profile {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-nav-bg-end) 100%);
    min-height: calc(100vh - 80px);
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.profile-image {
    text-align: center;
    position: relative;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: none;
    position: relative;
    z-index: 1;
    border: 4px solid var(--color-brand);
}

.profile-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-heading) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-role {
    font-size: 18px;
    color: var(--color-brand);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-content h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--color-black);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

.profile-content p {
    line-height: 1.6;
    text-align: justify;
}

#profileBio p {
    margin-bottom: 1em;
}

#profileExperience p {
    margin-bottom: 1em;
}

.profile-experience-list {
    margin-top: 0;
}

.profile-experience-list li {
    text-align: justify;
}

.profile-experience-title {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-experience-sublist {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.profile-experience-sublist li {
    padding: 4px 0;
    line-height: 1.55;
}

.profile-list {
    list-style: none;
    padding: 0;
    background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--color-brand);
    border-right: 1px solid var(--color-border-soft);
}

.profile-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.profile-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-weight: bold;
}

.profile-back {
    margin-top: 40px;
}

.profile-back a {
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.profile-back a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.profile-back a:hover {
    color: var(--color-accent);
}

.profile-back a:hover::after {
    width: 100%;
}

/* Profile slide-in from left animations - simple and professional */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-image img {
    opacity: 0;
}

.profile-image img.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
}

#profileName {
    opacity: 0;
}

#profileName.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.15s;
}

#profileRole {
    opacity: 0;
}

#profileRole.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.3s;
}

#profileBio {
    opacity: 0;
}

#profileBio.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.45s;
}

#profileSpecializations {
    opacity: 0;
}

#profileSpecializations.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.6s;
}

#profileExperience {
    opacity: 0;
}

#profileExperience.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.75s;
}

#profileEducation {
    opacity: 0;
}

#profileEducation.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.9s;
}

#profileEmail {
    opacity: 0;
}

#profileEmail.profile-slide-in {
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 1.05s;
}

/* DETAIL PAGE (Real Estate, etc.) */
.detail-page {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-nav-bg-end) 100%);
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.detail-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-heading) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-content h2 {
    font-size: 24px;
    color: var(--color-black);
    margin-bottom: 15px;
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

.detail-content h2:first-child {
    margin-top: 0;
}

.detail-content p {
    line-height: 1.8;
    text-align: justify;
    color: var(--color-text);
    margin-bottom: 20px;
}

.detail-back {
    margin-top: 50px;
}

.detail-back a {
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.detail-back a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.detail-back a:hover {
    color: var(--color-accent);
}

.detail-back a:hover::after {
    width: 100%;
}

.detail-content h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-black);
    font-weight: 600;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 20px 0;
    column-count: 2;
    column-gap: 40px;
}

.detail-list li {
    margin-bottom: 12px;
    margin-left: 20px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    break-inside: avoid;
}

.detail-list li::before {
    content: "• ";
    margin-left: -15px;
    color: var(--color-brand);
    font-weight: bold;
    font-size: 16px;
}

/* Profile mobile */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-image {
        position: relative;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

    .profile-content h1 {
        font-size: 28px;
        margin-top: 20px;
    }

    .profile-content p {
        text-align: justify;
        font-size: 14px;
    }

    .profile-content h3 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .profile-list {
        padding: 12px 15px;
    }

    .profile-list li {
        padding: 6px 0;
        padding-left: 18px;
        font-size: 14px;
    }

    #profileEmail {
        padding: 12px 15px;
        font-size: 14px;
    }

    .profile-back {
        margin-top: 30px;
    }

    .profile-back a {
        font-size: 14px;
    }
}