/*
Theme Name: ENGG Directory Theme
Author: You
Version: 1.0.0
Description: Multi-area keyword directory theme (Areas → Services → Listing). Pages-based, ACF optional.
Text Domain: engg-directory-theme
*/

:root{
  --max:1100px;

  --bg:#071427;
  --stroke: rgba(255,255,255,.12);

  --text:#eef5ff;
  --muted:#b9c8e6;

  --blue:#2563eb;
  --blue2:#38bdf8;
  --yellow:#facc15;
  --yellow2:#f59e0b;

  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(700px 520px at 85% 20%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(900px 700px at 55% 110%, rgba(250,204,21,.16), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:18px}

.site-header{
  position:sticky;top:0;z-index:50;
  background: rgba(7,20,39,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.2px}
.brand .logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  box-shadow: 0 10px 22px rgba(37,99,235,.30);
  display:grid;place-items:center;flex:0 0 auto;
}
.brand a{display:flex;align-items:center;gap:10px}

.nav a{
  margin-left:12px;color:var(--muted);font-weight:700;
  padding:10px 12px;border-radius:999px;border:1px solid transparent;
}
.nav a:hover{color:var(--text);border-color:var(--stroke);background:rgba(255,255,255,.06)}

.hero{
  margin-top:18px;border:1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding:22px;
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(56,189,248,.20), transparent 60%),
    radial-gradient(640px 300px at 90% 20%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(520px 260px at 40% 110%, rgba(250,204,21,.16), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;position:relative;
}
.hero:after{
  content:"";position:absolute;inset:-1px;
  background: linear-gradient(120deg, rgba(37,99,235,.20), rgba(56,189,248,.12), rgba(250,204,21,.14));
  opacity:.40;filter: blur(30px);pointer-events:none;
}
.hero > *{position:relative}

h1{margin:0 0 10px;font-size:clamp(26px,3.2vw,40px);line-height:1.1}
h2{margin:22px 0 12px;font-size:clamp(18px,2.2vw,24px);line-height:1.2}
h3{margin:0 0 10px;font-size:18px;line-height:1.2}
.muted{color:var(--muted)}

.btnrow{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  font-weight:800;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  border-color: rgba(37,99,235,.55);
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(56,189,248,.85));
  color:#071427;
}
.btn.accent{
  border-color: rgba(250,204,21,.60);
  background: linear-gradient(135deg, rgba(250,204,21,.98), rgba(245,158,11,.90));
  color:#1b1304;
}

.card{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:16px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
  margin:14px 0;
}

.pills{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}
.pill{
  padding:7px 10px;border:1px solid var(--stroke);
  border-radius:999px;font-size:13px;white-space:nowrap;
  background:rgba(255,255,255,.05);
}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.grid a{
  padding:12px;border:1px solid var(--stroke);
  border-radius:16px;background:rgba(255,255,255,.05);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  font-weight:900;
}
.grid a:hover{background:rgba(255,255,255,.09);transform:translateY(-1px)}

.site-footer{
  border-top:1px solid var(--stroke);
  padding:18px;margin-top:26px;
  color:var(--muted);font-size:14px;
  background: rgba(7,20,39,.65);
  backdrop-filter: blur(10px);
}
hr{border:none;border-top:1px solid var(--stroke);margin:18px 0}

input:focus{border-color: rgba(250,204,21,.55) !important; box-shadow: 0 0 0 4px rgba(250,204,21,.15);}
