/* DGF Corporations — Modern Premium Theme */

:root {
  --ink: #0f172a;       /* Deep slate for primary text */
  --ink-2: #334155;     /* Lighter slate for secondary text */
  --ink-3: #64748b;     /* Muted slate for metadata */
  
  --line: #e2e8f0;      /* Soft borders */
  --line-strong: #cbd5e1;
  
  --bg: #ffffff;        /* Clean white background */
  --bg-2: #f8fafc;      /* Subtle off-white for sections */
  
  --brand: #0f3d2e;     /* Deep forest green */
  --brand-2: #166a4d;   /* Vibrant emerald for interactions */
  --accent: #8a631c;    /* Accessible gold/bronze for highlights */
  
  --wrap: 68rem;        /* Slightly wider container for modern feel */
  --narrow: 48rem;
  --r: 12px;            /* Slightly rounder corners */
  
  /* Glassmorphism / Depth */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0; 
  background: var(--bg); 
  color: var(--ink);
  font: 400 1.0625rem/1.65 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  line-height: 1.2; 
  letter-spacing: -0.03em; 
  color: var(--ink); 
  margin: 0 0 0.5em;
  font-family: 'Inter', sans-serif;
}

/* Fluid Typography */
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }

p, ul, ol, dl { margin: 0 0 1.25rem; }

a { 
  color: var(--brand-2); 
  text-decoration-thickness: 2px; 
  text-underline-offset: 4px;
  transition: var(--transition);
}
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--r); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--narrow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--brand); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--r); font-weight: 600; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line); 
  background: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; 
  top: 0; 
  z-index: 50;
}
.header-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1.5rem; 
  min-height: 4.5rem; 
  flex-wrap: wrap;
}
.brand {
  font-size: 1.15rem; 
  color: var(--ink); 
  text-decoration: none; 
  letter-spacing: -0.02em;
  font-weight: 600;
}
.brand strong { color: var(--brand); font-weight: 800; }
.site-header nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--brand); }
.site-header nav a[aria-current] { font-weight: 700; }

/* breadcrumbs */
.crumbs { padding: 1.5rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--ink-3); font-weight: 500; }
.crumbs li+li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* sections */
.hero {
  padding: 5rem 0 4rem; 
  background: radial-gradient(circle at top right, #f0fdf4 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22, 106, 77, 0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 { max-width: 20ch; margin-bottom: 1rem; }
.page-head { padding: 4rem 0 2rem; background: linear-gradient(180deg, #f8fafc, #fff); }
.band { padding: 4rem 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-2); border-top: none; }
.lede { font-size: clamp(1.125rem, 2vw, 1.35rem); color: var(--ink-2); max-width: 58ch; line-height: 1.6; }
.eyebrow { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin: 0 0 0.5rem; }
.price { font-size: 3rem; font-weight: 800; color: var(--brand); margin: 0.5rem 0; letter-spacing: -0.04em; }

.callout {
  border-left: 4px solid var(--accent); 
  background: linear-gradient(90deg, #fdf8ee 0%, rgba(253,248,238,0.4) 100%);
  padding: 1.25rem 1.5rem; 
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}
.answer {
  background: #ffffff; 
  border: 1px solid var(--line); 
  border-radius: var(--r); 
  padding: 1.5rem 2rem; 
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.answer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--brand-2);
}
.answer p { margin: 0; font-size: 1.15rem; color: var(--ink); line-height: 1.6; font-weight: 500; }
.quote { color: var(--ink-2); font-style: italic; }
.quote.big { font-size: 1.25rem; }
.disclosure { font-size: 0.9rem; color: var(--ink-3); border-top: 1px dashed var(--line-strong); padding-top: 1rem; margin-top: 2rem; }
.updated { font-size: 0.875rem; color: var(--ink-3); font-weight: 500; display: inline-block; background: var(--bg-2); padding: 0.25rem 0.75rem; border-radius: 99px; }

/* lists */
.steps { padding-left: 1.25rem; } 
.steps li { margin-bottom: 0.875rem; }
.steps.big li { margin-bottom: 1.25rem; font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.75rem; position: relative; margin-bottom: 0.75rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }
.tools { list-style: none; padding: 0; }
.tools li { 
  border: 1px solid var(--line); 
  border-radius: var(--r); 
  padding: 1rem 1.25rem; 
  margin-bottom: 0.75rem; 
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tools li:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.tools .note { color: var(--ink-2); font-size: 0.95rem; display: block; margin-top: 0.25rem; }
.tag { 
  background: #ecfdf5; 
  color: var(--brand-2); 
  font-size: 0.75rem; 
  font-weight: 700; 
  padding: 0.25rem 0.6rem; 
  border-radius: 99px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  display: inline-block;
}
.howto { padding-left: 1.5rem; }
.howto li { margin-bottom: 1.25rem; font-weight: 500; }
.howto p { margin: 0.25rem 0 0; color: var(--ink-2); font-weight: 400; }
.faq dt { font-weight: 700; margin-top: 1.5rem; font-size: 1.1rem; }
.faq dd { margin: 0.5rem 0 0; color: var(--ink-2); padding-left: 1rem; border-left: 2px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; padding: 1.5rem 0 0; margin: 0; border-top: 1px solid var(--line); }
.stats li { font-size: 0.95rem; color: var(--ink-3); font-weight: 500; }
.stats span { display: block; font-size: 2.5rem; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.25rem; }

/* cards */
.cat-block { margin-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; }
.card { 
  border: 1px solid var(--line); 
  border-radius: var(--r); 
  padding: 1.5rem; 
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { 
  box-shadow: var(--shadow-hover); 
  transform: translateY(-4px); 
  border-color: var(--line-strong);
}
.card h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a::before { content:""; position:absolute; inset:0; z-index:1; }
.card { position: relative; } /* For the pseudo-element link */
.card h3 a:hover { color: var(--brand-2); }
.card .quote { font-size: 0.95rem; margin: 0 0 1rem; flex-grow: 1; line-height: 1.5; color: var(--ink-2); }
.card .meta { 
  display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 1rem 0 0; margin: 0; 
  font-size: 0.85rem; color: var(--ink-3); border-top: 1px solid var(--line); font-weight: 500;
}
.card .meta strong { color: var(--brand); font-weight: 700; }

/* buttons + form */
.btn, button[type=submit] {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background: var(--brand); 
  color: #fff; 
  text-decoration: none;
  padding: 0.875rem 1.75rem; 
  border-radius: var(--r); 
  font-weight: 600; 
  font-size: 1.05rem;
  border: 0; 
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.btn:hover, button[type=submit]:hover { 
  background: var(--brand-2); 
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-link { font-weight: 600; color: var(--brand-2); background: transparent; box-shadow: none; padding: 0; }
.btn-link:hover { background: transparent; box-shadow: none; transform: none; color: var(--brand); text-decoration: underline; }

.finder { 
  background: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5); 
  border-radius: 16px; 
  padding: 2rem; 
  margin-top: 2.5rem; 
  max-width: 42rem;
  box-shadow: var(--shadow-lg);
}
.finder .field { margin-bottom: 1.25rem; }
.finder label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--ink); }
.finder .req { color: var(--accent); font-weight: 400; font-size: 0.85rem; margin-left: 0.25rem; }
.finder .opt { color: var(--ink-3); font-weight: 400; font-size: 0.85rem; margin-left: 0.25rem; }
.finder textarea, .finder input[type=text], .finder input[type=email] {
  width: 100%; 
  padding: 0.875rem 1rem; 
  border: 1px solid var(--line-strong); 
  border-radius: var(--r);
  font: inherit; 
  font-size: 1rem; 
  background: #fff; 
  color: var(--ink);
  transition: var(--transition);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.finder textarea:hover, .finder input:hover { border-color: #94a3b8; }
.finder textarea:focus, .finder input:focus { 
  outline: none; 
  border-color: var(--brand-2); 
  box-shadow: 0 0 0 3px rgba(22, 106, 77, 0.2); 
}
.finder .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.finder .fine { font-size: 0.85rem; color: var(--ink-3); margin: 1rem 0 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { 
  border-top: 1px solid var(--line); 
  background: var(--bg-2); 
  padding: 4rem 0 3rem; 
  margin-top: 4rem; 
  font-size: 0.95rem; 
  color: var(--ink-2); 
}
.foot-lead { color: var(--ink); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.foot-meta { font-size: 0.875rem; color: var(--ink-3); line-height: 1.6; }

/* Responsive adjustments */
@media (max-width: 48rem) {
  .hero { padding: 3rem 0 2rem; }
  .page-head { padding: 2.5rem 0 1.5rem; }
  .band { padding: 2.5rem 0; }
  .finder { padding: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .price { font-size: 2.5rem; }
}

@media (max-width: 35rem) {
  .finder .row { grid-template-columns: 1fr; gap: 1rem; }
  .site-header nav ul { gap: 1rem; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 1rem 0; gap: 1rem; }
  h1 { font-size: 2.2rem; }
  .btn, button[type=submit] { width: 100%; text-align: center; }
  .stats { flex-direction: column; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
