/* =========================================================
   JDE Solutions Site Stylesheet
   Theme: Brushed Steel Patina (industrial, high-clarity)
   ========================================================= */

/* ------------- Design tokens ------------- */
:root{
  /* Core */
  --bg:#060708;
  --panel:#0f1318;
  --panel2:#0c1014;
  --text:#f3f5f7;
  --muted:rgba(243,245,247,.72);
  --muted2:rgba(243,245,247,.60);
  --line:rgba(243,245,247,.10);

  /* Accent: restrained */
  --accent:#7dd3fc;   /* cool steel signal */
  --accent2:#ffb000;  /* warm patina */
  --danger:#ff5a6a;

  /* Layout */
  --max: 1080px;
  --pad: 20px;
  --radius: 18px;

  /* Shadows */
  --shadow-1: 0 10px 26px rgba(0,0,0,.45);
  --shadow-2: 0 22px 70px rgba(0,0,0,.70);

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------- Reset / base ------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brushed steel surface + subtle patina lighting */
body{
  background:
    /* brushed sheen sweep */
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 0%,
      rgba(255,255,255,.010) 35%,
      rgba(255,255,255,.035) 70%,
      rgba(255,255,255,.010) 100%
    ),
    /* cool steel glow */
    radial-gradient(900px 520px at 20% 0%, rgba(125,211,252,.10), transparent 62%),
    /* warm patina glow */
    radial-gradient(900px 520px at 80% 10%, rgba(255,176,0,.10), transparent 62%),
    var(--bg);
}

/* Grain + machining lines overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 6px),
    radial-gradient(1200px 700px at 50% -30%, rgba(0,0,0,.70), transparent 60%);
  opacity:.22;
  mix-blend-mode:overlay;
}

/* ------------- Links ------------- */
a{
  color: rgba(243,245,247,.86);
  text-decoration: none;
}
a:hover{
  color: var(--accent2);
}

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

/* ------------- Header / Nav ------------- */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,7,8,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px var(--pad);
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.brand img{
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand .name{
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.navlinks{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.navlinks a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.navlinks a:hover,
.navlinks a.active{
  color: var(--text);
  background: rgba(243,245,247,.06);
  border-color: rgba(243,245,247,.10);
}

/* ------------- Hero ------------- */
.hero{
  padding: 18px 0 10px;
}
.hero .kicker,
.hero p:first-of-type{
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(243,245,247,.70);
  margin: 0 0 8px;
  padding: 0;
  border: none;
}
.hero p:first-of-type::before,
.hero p:first-of-type::after{
  content: none !important;
}

/* Approved hero headline */
.hero h1{
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(30px, 2.6vw, 40px);
  max-width: 28ch;
  margin: 8px 0 12px;
}
.hero h1 br{ display:block; }

/* Lede */
.hero .lede{
  font-size: 16px;
  line-height: 1.7;
  max-width: 68ch;
  color: rgba(243,245,247,.76);
  margin: 0 0 16px;
}

/* Hero actions */
.hero .actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 6px;
}

/* ------------- Cards / sections ------------- */
.section{
  padding: 18px 0;
}
.section h2{
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: rgba(243,245,247,.92);
}

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

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 45%),
    radial-gradient(900px 520px at 10% 0%, rgba(125,211,252,.08), transparent 60%),
    var(--panel);
  border: 1px solid rgba(243,245,247,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 16px 16px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ------------- Callouts ------------- */
.callout{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,176,0,.26);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-1);
}
.callout strong{
  color: rgba(243,245,247,.95);
}

/* ------------- Buttons ------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(243,245,247,.16);
  background: rgba(243,245,247,.06);
  color: rgba(243,245,247,.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor:pointer;
  user-select:none;
}
.btn:hover{
  border-color: rgba(243,245,247,.22);
  background: rgba(243,245,247,.08);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(125,211,252,.24), rgba(255,176,0,.18));
  border-color: rgba(243,245,247,.22);
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(125,211,252,.30), rgba(255,176,0,.22));
  border-color: rgba(243,245,247,.28);
}
.btn.danger{
  background: rgba(255,90,106,.12);
  border-color: rgba(255,90,106,.28);
}

/* ------------- Forms (Formspree or mailto) ------------- */
form{
  display:grid;
  gap: 10px;
}
label{
  font-size: 13px;
  color: var(--muted2);
}
input, textarea, select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(243,245,247,.14);
  background: rgba(15,19,24,.85);
  color: rgba(243,245,247,.92);
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(125,211,252,.35);
  box-shadow: 0 0 0 3px rgba(125,211,252,.10);
}
textarea{
  min-height: 120px;
  resize: vertical;
}

/* ------------- Footer ------------- */
footer{
  padding: 26px 0 36px;
  border-top: 1px solid rgba(243,245,247,.10);
  margin-top: 28px;
  color: var(--muted2);
  font-size: 13px;
}

/* ------------- Utilities ------------- */
.hr{
  height: 1px;
  background: rgba(243,245,247,.10);
  margin: 16px 0;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(243,245,247,.14);
  background: rgba(243,245,247,.05);
  color: rgba(243,245,247,.82);
}

/* ------------- Responsive ------------- */
@media (max-width: 960px){
  .grid.cols-3{ grid-template-columns: 1fr; }
  .grid.cols-2{ grid-template-columns: 1fr; }
  header .container{ padding: 12px var(--pad); }
}

@media (max-width: 520px){
  .navlinks a{ padding: 7px 9px; }
  .card{ padding: 14px 14px; }
}
