/* JNK Technologies - starter styles
   You can safely tweak colors/typography variables in :root. */

:root{
  --bg0:#FAFBFF;
  --bg1:#F6F7FC;
  --card:rgba(0,0,0,.04);
  --card2:rgba(0,0,0,.07);
  --text:#0B1220;
  --muted:rgba(11,18,32,.68);
  --line:rgba(11,18,32,.14);

  /* Derived from Logo2.png dominant palette */
  --brand:#FF4020;
  --brand2:#FF2040;
  --good:#2EE59D;
  --warn:#FFB020;

  --radius:14px;
  --shadow:0 8px 24px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg, var(--bg0), var(--bg1));
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:18px;
  top:18px;
  width:auto;
  height:auto;
  z-index:9999;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.95);
  border:1px solid var(--line);
}

/* Top nav */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(6px);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{
  width:280px;
  height:90px;
  border-radius:12px;
  border:none;
  background:#ffffff;
  object-fit:contain;
  object-position:left center;
}
.brand strong{
  font-weight:800;
  letter-spacing:.2px;
}
.navlinks{
  display:flex;
  gap:18px;
  align-items:center;
}
.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
}
.navlinks a:hover{
  color:var(--text);
  border-color:rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
}
.navlinks a[aria-current="page"]{
  border-color:rgba(255,64,32,.35);
  background:rgba(255,64,32,.08);
  color:var(--text);
}
.menu-btn{
  display:none;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}

/* Mobile menu */
.mobile-panel{
  display:none;
  padding:0 0 16px;
}
.mobile-panel a{
  display:block;
  padding:12px 0;
  color:var(--muted);
  border-top:1px solid rgba(0,0,0,.06);
}
.mobile-panel a:hover{color:var(--text)}
.mobile-panel a[aria-current="page"]{
  color:var(--text);
  border-top:0;
  padding-top:10px;
}

@media (max-width: 820px){
  .navlinks{display:none}
  .menu-btn{display:inline-flex; align-items:center; gap:8px}
  .mobile-panel{display:block}
  .mobile-panel[data-open="false"]{display:none}
}

/* Sections */
main{padding:38px 0 86px}
.hero{
  padding:18px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap:20px;
  align-items:stretch;
}
.hero-card{
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:none;
  position:absolute;
  inset:-2px;
  background:none;
  opacity:0;
  pointer-events:none;
}
.hero-card > *{position:relative}
.eyebrow{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.55);
  color:var(--muted);
  font-size:14px;
}
.eyebrow .dot{
  width:10px;height:10px;border-radius:99px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 0 0 6px rgba(255,64,32,.12);
}
h1{
  margin:16px 0 10px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height:1.05;
  letter-spacing:-.6px;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:18px;
  max-width:60ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background:rgba(0,0,0,.06)}
.btn-primary{
  border-color:rgba(255,64,32,.40);
  background:rgba(255,64,32,.12);
}
.btn-ghost{
  background:#fff;
}

.hero-side{
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:18px;
  box-shadow:0 14px 50px rgba(0,0,0,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.hero-img{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
  overflow:hidden;
}
.hero-side h3{
  margin:14px 0 8px;
  font-size:18px;
}
.mini-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.mini-list li{
  display:flex;
  gap:10px;
  color:var(--muted);
}
.mini-list .check{
  width:18px;height:18px;border-radius:6px;
  background:rgba(255,64,32,.16);
  border:1px solid rgba(255,64,32,.35);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--brand);
  font-weight:900;
  flex:0 0 18px;
  margin-top:2px;
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
}

.section{
  margin-top:42px;
}
.section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.section-header h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.2px;
}
.section-header p{
  margin:0;
  color:var(--muted);
  max-width:60ch;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
.card{
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.card h3{margin:12px 0 8px}
.muted{color:var(--muted)}

@media (max-width: 900px){
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}

.service-img{
  width:54px;height:54px;border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.015);
  border:1px solid rgba(0,0,0,.08);
  color:var(--muted);
  font-size:13px;
}

/* Projects */
.projects{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.project{
  padding:14px;
  height:100%;
  display:flex;
  flex-direction:column;
}
.thumb{
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  overflow:hidden;
  background:rgba(0,0,0,.02);
  aspect-ratio: 16 / 10;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.project h3{font-size:16px}
.project p{margin:8px 0 0}

/* Contact page sizing: keep top cards compact */
.contact-page .contact-hero .hero-card,
.contact-page .contact-hero .hero-side{
  padding:18px;
}
.contact-page .contact-hero .lead{
  font-size:16px;
}
.contact-page .contact-hero .hero-img{
  aspect-ratio:16/9;
}
.contact-page .contact-hero .hero-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width: 1060px){
  .projects{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 620px){
  .projects{grid-template-columns: 1fr;}
}

/* Contact */
form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
form .full{grid-column:1/-1}
label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}
input:focus, textarea:focus{
  border-color:rgba(255,64,32,.5);
  box-shadow:0 0 0 4px rgba(255,64,32,.12);
}
@media (max-width: 760px){
  form{grid-template-columns:1fr}
}

/* Footer */
footer{
  border-top:1px solid rgba(0,0,0,.06);
  padding:26px 0;
  color:var(--muted);
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.footer-links a{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.footer-links a:hover{
  border-color:rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
}

