:root {
  --navy: #1a2744;
  --navy-light: #2a3f6b;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --cream: #f8f6f1;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b7280;
  --border: #e5e2db;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.08);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.logo:hover { color: var(--gold-light); }

.logo-icon { font-size: 1.75rem; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.logo-text small { font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.05em; text-transform: uppercase; }

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

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover, .main-nav a.active { color: var(--gold-light); background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-label {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 580px; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

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

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

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-block { display: block; width: 100%; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-danger:hover { background: #b91c1c; color: white; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* Page hero */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p { opacity: 0.85; font-size: 1.1rem; }

.page-hero-sm { padding: 2.5rem 0; text-align: left; }
.page-hero-sm h1 { font-size: 2rem; margin-top: 0.5rem; }

.back-link { color: var(--gold-light); font-size: 0.9rem; display: inline-block; margin-bottom: 0.5rem; }
.post-date { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.post-author { opacity: 0.8; margin-top: 0.25rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,39,68,0.12); }

.card-icon { font-size: 2rem; margin-bottom: 1rem; }

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* About preview */
.about-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

.link-arrow { font-weight: 600; color: var(--navy-light); }
.link-arrow:hover { color: var(--gold); }

.about-stats { display: flex; gap: 2rem; }

.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.blog-card-body { padding: 1.75rem; }

.blog-card time { font-size: 0.85rem; color: var(--text-muted); }

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold); }

.blog-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.blog-list { max-width: 720px; }

.blog-list-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item:first-child { padding-top: 0; }

.blog-list-item time { font-size: 0.85rem; color: var(--text-muted); }

.blog-list-item h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0.35rem 0 0.75rem;
}

.blog-list-item h2 a { color: var(--navy); }

/* Prose */
.content-narrow { max-width: 720px; margin: 0 auto; }

.prose p { margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.8; }
.prose h3 { font-family: var(--font-serif); color: var(--navy); font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose ul { margin: 0 0 1.25rem 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.5rem; }

.blog-content p { font-size: 1.05rem; }

.post-cta { text-align: center; padding: 2rem; }
.post-cta h3 { font-family: var(--font-serif); color: var(--navy); margin-bottom: 0.5rem; }
.post-cta p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Profile */
.profile-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
}

.profile-title { color: var(--text-muted); }

/* Practice areas */
.practice-list { display: grid; gap: 1.5rem; }

.practice-item {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.practice-item h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

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

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail { margin-bottom: 1.25rem; }
.contact-detail strong { display: block; color: var(--navy); margin-bottom: 0.25rem; }
.contact-detail p { color: var(--text-muted); }

.contact-form-wrap {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
}

.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* CTA Banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p { opacity: 0.85; margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}

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

.footer-brand h3 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-contact p { font-size: 0.9rem; margin-bottom: 0.35rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.empty-state { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* Admin */
.admin-body { background: #f1f5f9; min-height: 100vh; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.admin-login-header { text-align: center; margin-bottom: 2rem; }
.admin-login-header .logo-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.admin-login-header h1 { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.25rem; }
.admin-login-header p { color: var(--text-muted); font-size: 0.9rem; }

.admin-back-link { display: block; text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

.admin-header {
  background: var(--navy);
  color: var(--white);
  padding: 0 1.5rem;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.admin-brand { color: var(--white); font-weight: 600; }
.admin-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }

.admin-main { padding: 2rem 0 3rem; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-toolbar h1 { font-size: 1.5rem; color: var(--navy); }

.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.admin-table th {
  background: var(--cream);
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.inline-form { display: inline; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-published { background: #dcfce7; color: #166534; }
.badge-draft { background: #fef3c7; color: #92400e; }

.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
}

.admin-empty p { color: var(--text-muted); margin-bottom: 1rem; }

.admin-post-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.open { display: flex; }

  .nav-cta { margin-left: 0; }

  .about-preview { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; }

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

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

  .admin-toolbar { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .admin-table .actions { flex-direction: column; align-items: flex-start; }
}
