/* ==========================================================================
   Delegate Wise — Custom Styles
   (Tailwind CSS via CDN handles most utility styling; this file covers
   things Tailwind's utility classes don't conveniently express.)
   ========================================================================== */

:root {
  --dw-primary: #0f5e56;      /* deep teal */
  --dw-primary-dark: #0a4740;
  --dw-accent: #f59e0b;       /* warm amber */
  --dw-ink: #12211f;
  --dw-cream: #faf7f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dw-ink);
  background-color: var(--dw-cream);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}

/* Hero gradient overlay for background images */
.hero-overlay {
  background: linear-gradient(115deg, rgba(10, 71, 64, 0.92) 0%, rgba(15, 94, 86, 0.82) 45%, rgba(15, 94, 86, 0.55) 100%);
}

.page-hero-overlay {
  background: linear-gradient(120deg, rgba(10, 71, 64, 0.90) 0%, rgba(15, 94, 86, 0.70) 100%);
}

/* Card hover lift */
.dw-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -15px rgba(15, 94, 86, 0.35);
}

/* Underline accent for section eyebrow labels */
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--dw-accent);
}

/* Article prose styling */
.dw-prose h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  color: var(--dw-primary-dark);
}
.dw-prose h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--dw-ink);
}
.dw-prose p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
  color: #33453f;
}
.dw-prose ul, .dw-prose ol {
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
  line-height: 1.8;
  color: #33453f;
}
.dw-prose ul { list-style-type: disc; }
.dw-prose ol { list-style-type: decimal; }
.dw-prose li { margin-bottom: 0.4rem; }
.dw-prose blockquote {
  border-left: 4px solid var(--dw-accent);
  background: #f4efe3;
  padding: 1rem 1.4rem;
  border-radius: 0.5rem;
  font-style: italic;
  margin: 1.6rem 0;
  color: var(--dw-primary-dark);
}
.dw-prose img {
  border-radius: 0.9rem;
  margin: 1.6rem 0;
}
.dw-prose a {
  color: var(--dw-primary);
  text-decoration: underline;
}

/* Mobile nav */
.mobile-nav {
  transition: max-height 0.3s ease, opacity 0.25s ease;
  overflow: hidden;
}
.mobile-nav.closed {
  max-height: 0;
  opacity: 0;
}
.mobile-nav.open {
  max-height: 480px;
  opacity: 1;
}

/* Form focus states */
.dw-input:focus {
  outline: none;
  border-color: var(--dw-primary);
  box-shadow: 0 0 0 3px rgba(15, 94, 86, 0.15);
}

/* Toast notification */
#dw-toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
