/* ============================================
   David F. Walbert — Professional Website
   Color Palette: Deep navy, warm gold, cream
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-light: #132244;
  --navy-mid: #1a2d52;
  --gold: #c9a84c;
  --gold-light: #dfc06e;
  --gold-dark: #a8872e;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e5e5e5;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --text: #1a1a1a;
  --text-light: #555555;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 48px;
}

.section-title.center { text-align: center; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  z-index: 1001;
  position: relative;
  gap: 5px;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: auto;
  padding: 80px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(19, 34, 68, 0.6) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.6) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Hero entrance animations */
.hero-animate .hero-eyebrow,
.hero-animate .hero-name,
.hero-animate .hero-tagline,
.hero-animate .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

.hero-animate .hero-eyebrow { animation-delay: 0.3s; }
.hero-animate .hero-name { animation-delay: 0.5s; transform: translateY(30px); }
.hero-animate .hero-tagline { animation-delay: 0.7s; }
.hero-animate .hero-cta { animation-delay: 0.9s; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}



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

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================
   About
   ============================================ */
.about {
  background: var(--white);
  padding-bottom: 60px;
}

.section-divider {
  display: flex;
  justify-content: center;
  padding: 0;
  background: var(--white);
}

.section-divider span {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-image-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  text-align: left;
  flex: 1;
}

@media (max-width: 600px) {
  .about-image-row {
    flex-direction: column;
  }
  .about-quote {
    text-align: center;
  }
}

.about-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-top: 8px;
}

.about-photo {
  width: 100%;
  border-radius: 6px;
  filter: grayscale(100%);
  position: relative;
  display: block;
  box-shadow: var(--shadow-lg);
}

.about-image {
  position: relative;
  max-width: 320px;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 0 0 6px 6px;
}

.about-lead {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content > p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* Bio Toggle Button */
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.bio-toggle:hover {
  background: var(--gold);
  color: var(--navy);
}

.bio-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.bio-toggle.active .bio-toggle-icon {
  transform: rotate(180deg);
}

/* Expanded Bio */
.bio-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.bio-expanded.open {
  max-height: 3000px;
  opacity: 1;
  margin-top: 32px;
}

.bio-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}

.bio-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-section h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.bio-section p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 12px;
}

.bio-section p:last-child {
  margin-bottom: 0;
}

.bio-list {
  padding-left: 0;
  margin-top: 12px;
}

.bio-list li {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
  padding: 10px 0 10px 20px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.bio-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.bio-list li strong {
  color: var(--navy);
}

.about-credentials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.credential h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.credential ul li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 4px 0;
}

/* ============================================
   Practice Areas
   ============================================ */
.practice {
  background: var(--cream);
  padding-top: 72px;
  padding-bottom: 72px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.practice-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}

.practice-icon svg {
  width: 100%;
  height: 100%;
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Cases
   ============================================ */
.landmark {
  background: var(--navy);
  color: var(--white);
}

.landmark .section-eyebrow { color: var(--gold); }
.landmark .section-title { color: var(--white); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}

.case-card.featured {
  border-color: rgba(201, 168, 76, 0.2);
}

.case-court {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.case-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.case-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.case-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  transition: var(--transition);
}

.case-cta:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.case-outcome {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 12px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
}

/* ============================================
   Books
   ============================================ */
.books {
  background: var(--white);
}

.book-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 60px;
}

.book-feature:last-child {
  margin-bottom: 0;
}

.books {
  padding-bottom: 60px;
}

.book-cover-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.2);
  display: block;
}

.book-cover-img.small {
  width: 100%;
}

.book-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.book-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 3px;
}

.book-info h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.25;
}

.book-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.book-toc h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.book-toc ol {
  list-style: none;
  counter-reset: chapter;
}

.book-toc ol li {
  counter-increment: chapter;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 12px;
}

.book-toc ol li::before {
  content: counter(chapter);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 24px;
}

.book-edition {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

/* ============================================
   Timeline
   ============================================ */
.timeline-section {
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.timeline-item.hidden {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  transform: translateY(-10px);
}

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

.timeline-content {
  background: var(--white);
  padding: 24px 28px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 0 8px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Press
   ============================================ */
.press {
  background: var(--white);
}

.papers-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.press-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}

.press-item:hover {
  padding-left: 8px;
}

.press-item:hover .press-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.press-source {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  grid-column: 1 / -1;
}

.press-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.press-arrow {
  font-size: 1.1rem;
  color: var(--gray-400);
  transition: var(--transition);
  align-self: center;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact .section-eyebrow { color: var(--gold); }
.contact .section-title { color: var(--white); }

.contact-inner {
  max-width: 600px;
}

.contact-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-form {
  max-width: 560px;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

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

.contact-form .btn {
  margin-top: 8px;
}

.form-success {
  display: none;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold);
}

.form-success.visible {
  display: block;
}

.contact-social {
  margin-top: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--gold);
  transition: var(--transition);
}

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

.contact-link svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 96px;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--gold-light);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 64px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Image Fade-in on Load
   ============================================ */
.about-photo,
.book-cover-img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-photo.loaded,
.book-cover-img.loaded {
  opacity: 1;
}

/* ============================================
   Custom Form Validation
   ============================================ */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: var(--gold);
}

/* ============================================
   Sticky Pre-Order CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  padding: 12px 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sticky-cta-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.sticky-cta-text strong {
  color: var(--white);
}

@media (max-width: 480px) {
  .sticky-cta-text {
    font-size: 0.75rem;
    text-align: center;
  }
  .sticky-cta .btn-sm {
    padding: 8px 16px;
    font-size: 0.72rem;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-feature {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }
  .about-credentials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
  }


  .about-credentials {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .book-feature {
    grid-template-columns: 1fr;
  }

  .book-cover {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-name {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
  }
}
