:root{
  --green: #00A651;
  --bg: #f7f8fa;
  --text: #222;
  --muted: #6b7280;
  --card: #ffffff;
  --accent: #0b5ed7;
}

/* Reset + base */
* { box-sizing: border-box; }
html,body { height:100%; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}
/* ---------- Mobile navbar behavior ---------- */
.nav-toggle {
  display: none;              /* shown only on small screens */
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
}

/* Desktop: nav-list is inline (existing styles) */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; }

  /* Hide desktop nav list on mobile */
  .nav-list {
    display: none;
    position: absolute;
    top: 62px;                /* below header */
    right: 12px;
    background: var(--green); /* keep header color */
    padding: 12px;
    border-radius: 8px;
    flex-direction: column;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
  }

  /* When open, show it as column */
  .nav-list.open {
    display: flex;
    gap: 8px;
  }

  .nav-list a {
    display: block;
    padding: 8px 10px;
    color: #fff;
  }
}


/* Header + nav */
.site-header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top:0;
  z-index:100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand h1 { font-size:1.1rem; margin:0; line-height:1; }
.brand .tag { font-size:0.85rem; color: rgba(255,255,255,0.9); margin-top:4px; }

/* Nav */
.main-nav { display:flex; align-items:center; gap:12px; }
.nav-list {
  display:flex;
  gap:12px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-list a {
  color: white;
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
  font-weight:600;
  transition: background .18s ease, color .18s ease;
}
.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
  background: rgba(255,255,255,0.12);
  outline: none;
}

/* Burger (mobile) */
.nav-toggle {
  display:none;
  background:transparent;
  border:0;
  color:white;
  cursor:pointer;
  padding:6px;
  border-radius:8px;
}
.nav-toggle:focus { outline: 2px solid rgba(255,255,255,0.2); }

/* Hero */
.hero {
  padding:36px 0;
  background: linear-gradient(180deg, rgba(0,166,81,0.06), transparent 40%);
}
.hero-inner { max-width:1100px; margin:0 auto; padding:0 16px; display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.hero-text { flex:1 1 360px; min-width:260px; }
.hero-text h2 { font-size:1.6rem; margin:0 0 10px; }
.hero-text p { color:var(--muted); margin:0 0 16px; }
.hero-ctas .btn { margin-right:10px; }

/* Buttons */
.btn { display:inline-block; padding:10px 16px; border-radius:8px; text-decoration:none; font-weight:700; cursor:pointer; border: none; }
.btn.primary { background:var(--green); color:#fff; box-shadow: 0 6px 18px rgba(0,166,81,0.12); }
.btn.ghost { background:transparent; color:var(--green); border:2px solid rgba(0,166,81,0.12); }

/* Container + cards */
.container { max-width:1100px; margin:0 auto; padding:18px 16px; }
.highlights { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top:18px; }
.card { background:var(--card); padding:16px; border-radius:12px; box-shadow: 0 8px 28px rgba(13, 13, 13, 0.04); }

/* Projects & grid */
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.proj-card { background:var(--card); padding:14px; border-radius:10px; }

/* Gallery */
.gallery-grid { display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.thumb { background:#e6e7e8; height:110px; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--muted); }

/* Form */
form { max-width:720px; display:grid; gap:10px; }
input, textarea, select {
  padding:10px; border-radius:8px; border:1px solid #e6e6e6; width:100%; font-size:1rem;
}
textarea { min-height:120px; resize:vertical; }
.form-row { display:flex; gap:10px; flex-wrap:wrap; }
.form-row > * { flex:1 1 200px; }

/* Footer */
.site-footer {
  background: var(--green);
  color: #fff;
  padding:18px 0;
  margin-top:36px;
}
.site-footer .container { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.site-footer p { margin:0; opacity:0.95; }

/* Small screens */
@media (max-width:860px){
  .hero-text h2 { font-size:1.3rem; }
}
/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.thumb {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* FIXES your problem */
  object-position: center;
  display: block;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* FIXES your problem */
  object-position: center;
  display: block;
}
@media (max-width:768px){
  .nav-list { display:none; position:absolute; top:62px; right:12px; background:var(--green); padding:10px; border-radius:8px; flex-direction:column; min-width:160px; box-shadow:0 10px 30px rgba(0,0,0,0.15); }
  .nav-list.open { display:flex; }
  .nav-toggle { display:inline-flex; align-items:center; gap:6px; }
  .header-inner { align-items:center; }
  .site-footer .container { text-align:center; }
}