:root {
  --bg-primary: #fcfbfa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f2ee;
  --text-main: #1c2430;
  --text-muted: #576574;
  --navy: #0f1c2e;
  --gold: #b38738;
  --gold-dark: #8c6520;
  --gold-light: #fbf5ea;
  --gold-glow: rgba(179, 135, 56, 0.12);
  --border-color: #e5e9ee;
  --border-gold: rgba(179, 135, 56, 0.35);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* Typography Helpers */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

p {
  color: var(--text-muted);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: -2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-links .btn-primary {
  color: #ffffff !important;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: #1a2c47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 28, 46, 0.15);
}

.btn-outline {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  background: #ffffff;
}

.btn-outline:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--navy);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 170px 0 90px;
  background: linear-gradient(180deg, #f8f6f2 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.hero-content .subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  color: #475569;
}

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

.hero-badges {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.badge-item {
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.badge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Portrait Card */
.portrait-wrapper {
  position: relative;
}

.portrait-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(179, 135, 56, 0.4);
  box-shadow: 0 15px 35px rgba(15, 28, 46, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 28, 46, 0.95), rgba(15, 28, 46, 0.6) 70%, transparent);
}

.caption-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.caption-title {
  font-size: 0.8rem;
  color: #dfbe7d;
  letter-spacing: 0.05em;
}

/* About Section */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.credentials-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.credentials-list svg {
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 4px;
}

.highlight-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.highlight-box::before {
  content: "“";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(179, 135, 56, 0.15);
  pointer-events: none;
}

.highlight-box p {
  font-style: italic;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.highlight-box .lawyer-signature {
  font-family: var(--font-serif);
  color: var(--gold-dark);
  font-weight: 600;
}

/* Practice Areas */
.areas-section {
  background: #f7f6f2;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.area-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.area-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(15, 28, 46, 0.06);
}

.area-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--gold-light);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.area-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.area-card p {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  color: var(--text-muted);
}

.area-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.area-card ul li {
  margin-bottom: 0.45rem;
  position: relative;
  padding-left: 1.2rem;
}

.area-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: bold;
}

/* Canon Law Special Section */
.canon-feature {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1px solid rgba(179, 135, 56, 0.4);
  border-radius: 8px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(179, 135, 56, 0.06);
}

.canon-feature h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.canon-feature p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.canon-cta {
  text-align: center;
  padding: 2.2rem;
  background: #faf8f5;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.canon-cta h4 {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--gold-light);
  border: 1px solid var(--border-gold);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-details h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-details p, .contact-details a {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
}

.contact-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 46, 0.08);
}

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

.form-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: #0f1c2e;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  color: #94a3b8;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #dfbe7d;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .canon-feature, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.35rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }
}
