@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --navy: #0a1020;
  --navy-light: #131c30;
  --navy-soft: #1c2741;
  --gold: #c5a47e;
  --gold-light: #d9ba96;
  --white: #ffffff;
  --light: #f7f7f9;
  --muted: #f0f1f4;
  --gray: #6c7280;
  --text: #3b3f49;
  --border: rgba(0,0,0,0.08);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 8px 24px rgba(10,16,32,0.08);
  --shadow-lg: 0 16px 48px rgba(10,16,32,0.12);
  --shadow-glow: 0 8px 32px rgba(197,164,126,0.18);
  --max: 1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --easing: cubic-bezier(0.22,1,0.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin-bottom: .6rem; }
p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 2rem; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(10,16,32,0.25); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: 0 8px 20px rgba(10,16,32,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--gray); max-width: 620px; margin: .5rem auto 0; font-size: 1.05rem; }
.text-center { text-align: center; }
.gold-text { color: var(--gold); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--easing), transform .8s var(--easing); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.card.visible:nth-child(1) { transition-delay: .1s; }
.card.visible:nth-child(2) { transition-delay: .2s; }
.card.visible:nth-child(3) { transition-delay: .3s; }
.card.visible:nth-child(4) { transition-delay: .4s; }
.card.visible:nth-child(5) { transition-delay: .5s; }
.card.visible:nth-child(6) { transition-delay: .6s; }
.testimonial.visible:nth-child(1) { transition-delay: .1s; }
.testimonial.visible:nth-child(2) { transition-delay: .2s; }
.testimonial.visible:nth-child(3) { transition-delay: .3s; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10,16,32,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); transition: box-shadow var(--transition), background var(--transition); }
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.2); background: rgba(10,16,32,0.98); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--gold); font-weight: 500; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: .96rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gold); transition: width var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: .25rem; }

/* Hero */
.hero { min-height: 95vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 5rem; background: linear-gradient(135deg, var(--navy) 0%, #141d33 50%, var(--navy-soft) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(197,164,126,0.12) 0%, transparent 40%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero p { font-size: 1.2rem; max-width: 680px; margin: 0 auto 2rem; color: rgba(255,255,255,0.8); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

/* Page header */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; text-align: center; padding: 9rem 1.5rem 5rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(197,164,126,0.12) 0%, transparent 40%); }
.page-header h1 { color: #fff; position: relative; z-index: 1; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 640px; margin: 1rem auto 0; position: relative; z-index: 1; }

/* Grids & cards */
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 2.25rem; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--navy); margin-bottom: .5rem; }
.card p { color: var(--gray); margin-bottom: 0; }
.card a { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.card a:hover { color: var(--navy); }
.card-icon { width: 56px; height: 56px; border-radius: 1rem; background: var(--muted); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; transition: background var(--transition), color var(--transition), transform var(--transition); }
.card:hover .card-icon { background: var(--navy); color: var(--gold); transform: scale(1.05); }
.two-column { display: grid; gap: 4rem; grid-template-columns: 1fr 1fr; align-items: center; }
.two-column p { color: var(--gray); }

/* Attorneys */
.attorney-card { text-align: center; padding: 2.5rem 2rem; }
.attorney-card.featured { text-align: left; }
.attorney-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 5px solid var(--gold); box-shadow: var(--shadow-glow); transition: transform .6s var(--easing); }
.attorney-card:hover .attorney-img { transform: scale(1.08); }
.attorney-portrait { border-radius: 50%; width: 180px; height: 180px; margin: 0 auto 1.5rem; overflow: hidden; border: 5px solid var(--gold); box-shadow: var(--shadow-glow); position: relative; }
.attorney-portrait::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,16,32,0.35) 100%); z-index: 1; }
.attorney-card.featured .attorney-portrait { border-radius: 1.25rem; width: 100%; height: 380px; border: none; box-shadow: var(--shadow); }
.attorney-portrait .attorney-img { width: 100%; height: 100%; border-radius: 0; margin: 0; border: none; }
.attorney-role { color: var(--gold); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }

.head-attorney { display: grid; gap: 3.5rem; grid-template-columns: 1fr 1.4fr; align-items: center; max-width: 920px; margin: 0 auto; padding: 3rem; border: 1px solid var(--border); }
.head-attorney-img { width: 320px; height: 400px; object-fit: cover; border-radius: var(--radius-lg); border: 6px solid var(--gold); box-shadow: var(--shadow-glow); margin: 0 auto; transition: transform .6s var(--easing); }
.head-attorney:hover .head-attorney-img { transform: scale(1.02); }
.head-attorney-role { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.head-attorney h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.head-attorney p { color: var(--gray); font-size: 1.05rem; }

@media (max-width: 768px) {
  .head-attorney { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
  .head-attorney-img { width: 260px; height: 325px; }
  .attorney-card.featured .attorney-portrait { height: 300px; }
}

/* Stats */
.stats { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.stat-number { font-size: 2.6rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', Georgia, serif; line-height: 1; }

/* Testimonials */
.testimonial { background: var(--white); border-left: 4px solid var(--gold); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); font-style: italic; }
.testimonial footer { margin-top: 1.25rem; font-style: normal; font-weight: 600; color: var(--navy); }

/* Form */
.form-group { margin-bottom: 1.4rem; }
label { display: block; margin-bottom: .45rem; font-weight: 500; color: var(--navy); }
input, textarea, select { width: 100%; padding: .95rem 1.1rem; border: 1px solid #e1e4ea; border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: #fff; transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197,164,126,0.12); }
textarea { resize: vertical; min-height: 140px; }
.form-message { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }
.form-message.show { display: block; }
.form-message.success { background: #D1FAE5; color: #065F46; }
.form-message.error { background: #FEE2E2; color: #991B1B; }

/* Contact */
.contact-grid { display: grid; gap: 4rem; grid-template-columns: 1fr 1fr; }
.contact-info p { margin-bottom: .8rem; }
.contact-info a { color: var(--navy); font-weight: 500; }
.contact-info a:hover { color: var(--gold); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.5rem; }
.footer-col h4 { color: #fff; margin-bottom: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer-col a { color: rgba(255,255,255,0.72); display: block; margin-bottom: .55rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: .9rem; color: rgba(255,255,255,0.55); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 76px; right: 0; width: 100%; background: var(--navy); flex-direction: column; padding: 1.5rem; gap: 1.1rem; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .two-column, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 7rem 1.5rem 4rem; }
}
