
/* ===== DCRE Labs site.css (WCAG-friendly, header fixes applied) ===== */

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #444444;
  --border: #d0d0d0;

  --link: #0b57d0;          /* accessible blue */
  --focus: #0b57d0;

  --button-bg: #0b57d0;
  --button-text: #ffffff;

  --maxw: 1120px;
  --pad: 20px;
  --radius: 10px;
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* Links: no underlines (your preference) */
a{
  color: var(--link);
  text-decoration: none;
}
a:hover{
  text-decoration: none;
}

/* Focus visibility (WCAG-friendly) */
:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 6px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* Layout container */
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */
.header{
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 14px 0;
}

/* Brand block */
.brand{
  display:flex;
  align-items:center;
  gap: 16px;
  color: inherit;
  text-decoration: none;

  flex: 0 1 auto;   /* allow shrink if needed */
  min-width: 0;
}

/* Logo image */
.brand-logo{
  display:block;
  height: 84px;     /* desktop default; tweak 72–96 to taste */
  width: auto;
  object-fit: contain;
}

/* If your old placeholder is still present in HTML, this prevents it from dominating.
   Better: remove it from HTML entirely. */
.brand-mark{
  display:none !important;
}

.brand-text{ line-height: 1.1; min-width: 0; }

.brand-name{
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand-sub{
  margin-top: 4px;
  font-size: 1rem;
  color: var(--muted);
}

/* Nav links */
.navlinks{
  flex: 1 1 auto;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}

.navlinks a{
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration:none;
}

.navlinks a:hover{
  background: #f2f2f2;
}

.navlinks a[aria-current="page"]{
  border: 2px solid var(--text);
}

/* CTA button */
.cta{
  flex: 0 0 auto;
  display:inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 700;
  border: 2px solid transparent;
}

.cta:hover{ filter: brightness(0.95); }

/* Main */
main{ padding: 28px 0 44px; }

/* Hero */
.hero{
  display:grid;
  gap: 14px;
  padding: 18px 0 10px;
}

.hero h1{
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.hero p{
  margin: 0;
  max-width: 75ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.button-secondary{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--text);
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
}

.button-secondary:hover{ background:#f2f2f2; }

/* Sections / cards */
.section{ margin-top: 22px; }

.section h2{
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: var(--text);
}

.grid{ display:grid; gap: 14px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background:#fff;
}

.card h2, .card h3{ margin-top: 0; color: var(--text); }
.card p{ color: var(--muted); }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 980px){
  .brand-logo{ height: 64px; }
  .brand-name{ font-size: 1.15rem; }
  .brand-sub{ font-size: 0.98rem; }
}

@media (max-width: 820px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }

  .navbar{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .brand{
    justify-content:center;
    flex: 1 1 100%;
  }

  .navlinks{
    justify-content:center;
    flex: 1 1 100%;
  }

  .cta{
    justify-self:center;
  }

  .brand-logo{ height: 56px; }
}

@media (max-width: 420px){
  .brand-logo{ height: 48px; }
  .brand-name{ font-size: 1.05rem; }
  .brand-sub{ font-size: 0.95rem; }
}

