/* Ewing Legal Group — Custom Brand Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-forest: #1A402D;
  --color-forest-dark: #112A1E;
  --color-forest-hover: #23543C;
  --color-forest-light: #EBF3EE;
  --color-gold: #8E7B53;
  --color-gold-dark: #6E5D3B;
  --color-gold-subtle: #F6F2EB;
  --color-gold-border: #D5C7AF;
  --color-charcoal: #181B19;
  --color-slate-muted: #4F5953;
  --color-canvas: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-border: #E4E0D7;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  background-color: var(--color-canvas);
  color: var(--color-charcoal);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure media never causes overflow */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
}

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

.font-display {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* Subtle Geometric Background Watermark */
.bg-subtle-pattern {
  background-color: var(--color-canvas);
  background-image: radial-gradient(rgba(142, 123, 83, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Signature Divider Rule with Diamond Center Pip matching ELG Logo */
.divider-pip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem auto;
  width: 100%;
  max-width: 140px;
}

.divider-pip::before,
.divider-pip::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.divider-pip-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  transform: rotate(45deg);
  margin: 0 8px;
  flex-shrink: 0;
}

.divider-pip.left-aligned {
  margin-left: 0;
  margin-right: auto;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Smooth Accordion Animations */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary .accordion-icon {
  transform: rotate(180deg);
}

/* Subtle Card Hover Effects */
.card-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(26, 64, 45, 0.08);
  border-color: rgba(142, 123, 83, 0.35);
}

/* Custom Print Styles for Estate Checklists */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
