/* ==========================================================================
   DEW Consulting — dewconsulting.com
   Simple static landing page. No frameworks, no external requests.
   Brand palette sampled from the DEW Consulting logo (orange #FAA911, charcoal #333).
   ========================================================================== */

:root {
  --orange:      #faa911;
  --orange-600:  #ec9a05;
  --orange-700:  #d98c00;
  --ink:         #2b2b2b;
  --ink-900:     #1e1e1e;
  --muted:       #6a6a6a;
  --muted-light: #9a9a9a;
  --line:        #e8e6e2;
  --bg:          #ffffff;
  --bg-alt:      #f7f6f3;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(30, 30, 30, .08);
  --shadow-md: 0 8px 26px rgba(30, 30, 30, .10);
  --shadow-lg: 0 22px 54px rgba(20, 20, 20, .22);
  --radius: 12px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

p { margin: 0 0 1em; }
a { color: var(--orange-700); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 1em;
}
.eyebrow-center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .75); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: clamp(42px, 5.2vw, 52px); }

.nav-cta {
  background: var(--orange);
  color: var(--ink-900);
  border-radius: 8px;
  padding: .55rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--orange-600); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: linear-gradient(158deg, #2b2b2b 0%, #232323 45%, #1b1b1b 100%);
}

.hero-grid,
.hero-glow,
.hero-net { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 35%, transparent 78%);
}
.hero-glow {
  background:
    radial-gradient(680px 420px at 50% 0%, rgba(250, 169, 17, .2), transparent 62%),
    radial-gradient(520px 380px at 85% 100%, rgba(250, 169, 17, .08), transparent 60%);
}

/* Network constellation — faded out behind the centered text, visible toward the edges */
.hero-net {
  width: 100%;
  height: 100%;
  opacity: .85;
  mask-image: radial-gradient(115% 95% at 50% 46%, transparent 26%, #000 68%);
  -webkit-mask-image: radial-gradient(115% 95% at 50% 46%, transparent 26%, #000 68%);
  animation: netDrift 26s ease-in-out infinite alternate;
}
.hero-net .net-lines line { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.hero-net .net-nodes circle { fill: rgba(255, 255, 255, .3); }
.hero-net .node-accent { fill: var(--orange); animation: twinkle 4.5s ease-in-out infinite; }
.hero-net .na2 { animation-delay: .9s; }
.hero-net .na3 { animation-delay: 1.8s; }
.hero-net .na4 { animation-delay: 2.7s; }

@keyframes netDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-20px, 14px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.hero-content { position: relative; z-index: 1; padding: 5.5rem 0; margin-inline: auto; max-width: 46rem; }

/* Standalone brand mark featured above a section heading */
.section-mark {
  width: auto;
  height: clamp(72px, 9.5vw, 98px);
  margin: 0 auto clamp(1.1rem, 2vw, 1.6rem);
}
.hero-content h1 { color: #fff; text-wrap: balance; margin-bottom: .5em; }
.hero-sub {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero-meta {
  margin: 2.2rem 0 0;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Services ---------- */

.services-title { text-align: center; margin: 0 0 clamp(2.25rem, 4vw, 3.25rem); }

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .9rem;
  padding: 1.9rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
  background: #fff;
}
.service svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service span { font-weight: 600; font-size: .98rem; color: var(--ink); line-height: 1.3; }

/* ---------- Contact ---------- */

.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner { max-width: 40rem; margin-inline: auto; }
.contact-head { text-align: center; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.contact-head h2 { margin-bottom: .35em; }
.contact-sub { color: var(--muted); margin: 0; }
.contact-sub a { color: var(--orange-700); font-weight: 600; text-decoration: none; }
.contact-sub a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .72rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fcfbf9;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 169, 17, .2);
}
.field textarea { resize: vertical; min-height: 8rem; }

.btn-submit { width: 100%; font-size: 1.05rem; margin-top: .3rem; }
.btn-submit:disabled { opacity: .6; cursor: wait; transform: none; }

/* Honeypot: visually removed, still in the DOM for bots to trip on */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-status {
  margin: 1rem 0 0;
  font-size: .95rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--muted);
  text-align: center;
}
.form-status.ok  { color: #1c7d4d; }
.form-status.err { color: #c0492c; }

/* ---------- Footer ---------- */

.site-footer {
  background: #171717;
  color: rgba(255, 255, 255, .62);
  padding: 2.4rem 0;
  text-align: center;
}
.footer-word { margin: 0 0 .4rem; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.wm-dew { color: #fff; }
.wm-con { color: var(--orange); }
.footer-meta { margin: 0 0 .3rem; font-size: .92rem; }
.footer-meta a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-meta a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.footer-copy { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .42); }

/* ---------- Reveal on scroll ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-net, .hero-net .node-accent { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */

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

@media (max-width: 560px) {
  .hero-net { opacity: .5; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .service { padding: 1.5rem .8rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
