/* =========================
   RESET + BASE
   ========================= */
* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #111;
}

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

a{
  color: inherit;
  text-decoration: none;
}

button{
  font-family: inherit;
}

:root{
  --accent: #22c55e; /* bright green */
  --dark: #222;
  --card: #fff;
  --muted: #555;
  --shadow: 0 2px 10px rgba(0,0,0,0.10);
  --radius: 14px;
}
.site-header{
  position: sticky;
  top: 0;
  z-index: 10000;
}

.nav-menu,
.menu-toggle{
  position: relative;
  z-index: 10001;
}
.page{
  position: relative;
  z-index: 1;
}

/* =========================
   HEADER + NAV
   ========================= */
.site-header{
  background: var(--dark);
  color: var(--accent);
  text-align: center;
  padding: 18px 16px;
}

.site-header h1{
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.nav-menu{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-menu a{
  color: #fff;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-menu a:hover{
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

/* Mobile toggle button */
.menu-toggle{
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-top: 10px;
}

/* =========================
   LAYOUT
   ========================= */
.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 18px;
}

.muted{ color: var(--muted); }

.small{ font-size: 14px; color: var(--muted); }

/* =========================
   HERO + BUTTONS (homepage/other)
   ========================= */
.hero{
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: #444;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.btn:hover{ background: var(--accent); }

.btn-outline{
  background: transparent;
  border: 2px solid var(--accent);
  color: #111;
}

.btn-outline:hover{
  background: var(--accent);
  color: #fff;
}

/* =========================
   FORMS (contact/order)
   ========================= */
.form{
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.form label{
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.form input,
.form select,
.form textarea{
  padding: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 16px;
}

/* Social link */
.social-link{
  color: var(--accent);
  font-weight: 900;
}

.social-link:hover{ text-decoration: underline; }

/* =========================
   PORTFOLIO GRID (matches portfolio.html)
   ========================= */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

/* cards are buttons */
.portfolio-link{
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.portfolio-item{
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portfolio-link:hover .portfolio-item{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.card-thumb{
  width: 100%;
  height: 175px;
  object-fit: cover;
  background: #ddd;
}

.portfolio-item h3{
  margin: 12px 14px 6px;
  font-size: 18px;
}

.portfolio-item p{
  margin: 0 14px 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* =========================
   LIGHTBOX (matches JS open/close)
   ========================= */
body.no-scroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 9999;
}

.lightbox.open{ display: flex; }

.lightbox-content{
  background: #fff;
  border-radius: var(--radius);
  width: min(980px, 95vw);
  padding: 18px;
  max-height: 88vh;
  overflow: auto;
  position: relative;
}

.lightbox-content h3{
  margin: 2px 0 10px;
}

.lightbox-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  color: #222;
}

/* =========================
   SLIDER (one image at a time)
   ========================= */
.lightbox-slider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.slide-frame{
  flex: 1;
  height: 440px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #111;
}

.slide-img.is-active{ display: block; }

.slide-btn{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--dark);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn:hover{ background: var(--accent); }

/* =========================
   MOBILE NAV + RESPONSIVE
   ========================= */
@media (max-width: 768px){
  .menu-toggle{ display: inline-block; }

  .nav-menu{
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 12px auto 0;
    padding: 10px 0;
    background: #1b1b1b;
    border-radius: 12px;
    width: min(520px, 92%);
  }

  .nav-menu.active{ display: flex; }

  .card-thumb{ height: 160px; }

  .slide-frame{ height: 320px; }
}
/* ===== CLICK-PROOF HEADER FIX ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999999;
}

/* keep page content below header in stacking order */
.page,
.hero,
.home-section{
  position: relative;
  z-index: 0;
}

/* make sure header links always receive clicks */
.site-header,
.site-header *{
  pointer-events: auto;
}
