:root{
  --bg:#f4f0e6;
  --surface:#ffffff;
  --surface-2:#efe8da;
  --text:#1f2321;
  --muted:#6d716d;
  --accent:#2f5d50;
  --accent-2:#c9a26b;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
  --radius-sm:12px;
  --max:1100px;
  --header-h:74px;
  --ring:0 0 0 3px rgba(47,93,80,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:none; box-shadow:var(--ring); border-radius:10px}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.muted{color:var(--muted)}
.text-justify{
  text-align: justify;
  text-justify: inter-word;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  backdrop-filter: blur(10px);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.85rem 1.05rem;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:650;
  letter-spacing:.2px;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn-primary{background:var(--accent); color:#fff}
.btn-primary:hover{background:#285047}
.btn-ghost{background:rgba(255,255,255,.15); color:#fff; border-color:rgba(255,255,255,.22); backdrop-filter: blur(10px)}
.btn-soft{background:var(--surface); border-color:#e9e2d4; color:var(--text)}
.btn-soft:hover{border-color:#ded4c2}

.section{padding:64px 0}
.section h2{
  margin:0 0 12px 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  letter-spacing:-.02em;
}
.section p.lead{margin:0; max-width:65ch}

.card{
  background:var(--surface);
  border:1px solid #efe6d6;
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Feature Cards ---------- */
.feature{
  padding:18px;
}
.feature .icon{
  width:44px; height:44px;
  border-radius:14px;
  background: rgba(47,93,80,.10);
  display:grid;
  place-items:center;
  margin-bottom:10px;
}
.feature h3{margin:0 0 6px; font-size:1.05rem}
.feature p{margin:0; color:var(--muted)}
.icon svg{width:22px;height:22px; fill:var(--accent)}

.about-caps .feature{
  position:relative;
  background:
    radial-gradient(240px 160px at 90% 10%, rgba(201,162,107,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
}
.about-caps .feature::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:120px;
  height:120px;
  border-radius:40px;
  background: rgba(47,93,80,.06);
  transform: rotate(12deg);
  pointer-events:none;
  z-index: 1;
}
.about-caps .feature .icon{
  background: rgba(47,93,80,.14);
}
.about-cards{margin-top:14px}

.process-grid{
  margin-top:14px;
}
.step-card{
  padding-top:24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
}
.step-index{
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.05em;
  background: var(--accent);
  color:#fff;
  margin-bottom:10px;
  box-shadow: 0 8px 18px rgba(47,93,80,.25);
}

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

@media (max-width: 980px){
  .grid.cols-4{grid-template-columns:repeat(2, 1fr)}
  .grid.cols-3{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width: 640px){
  .grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}
  .section{padding:52px 0}
}

/* ---------- Media blocks ---------- */
.media{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){ .media{grid-template-columns:1fr} }

.placeholder-img{
  border-radius:var(--radius);
  border:1px dashed #d8cfbf;
  background:
    repeating-linear-gradient( 45deg, rgba(47,93,80,.08) 0 12px, rgba(201,162,107,.08) 12px 24px);
  min-height: 320px;
}
.media-photo{
  width:100%;
  height:100%;
  min-height: 320px;
  border-radius:var(--radius);
  border:1px solid #efe6d6;
  object-fit:cover;
  display:block;
}
.media .content{
  padding:24px;
}
.media .content h3{margin:0 0 10px}
.media .content ul{margin:12px 0 0 18px; color:var(--muted)}
.media .content li{margin:6px 0}

/* ---------- Hero ---------- */
main{padding-top: var(--header-h)}
.hero{
  position:relative;
  isolation:isolate;
  background:
    linear-gradient(180deg, rgba(12,14,13,.55), rgba(12,14,13,.72)),
    radial-gradient( 900px 450px at 20% 20%, rgba(201,162,107,.28), transparent 60%),
    radial-gradient( 900px 520px at 80% 40%, rgba(47,93,80,.22), transparent 60%),
    linear-gradient(135deg, #2a2a26 0%, #1b201f 100%);
  min-height: 72vh;
  display:grid;
  align-items:center;
  padding: 30px 0 70px;
  overflow:hidden;
}
.hero .container{position:relative; z-index:2}
.hero::after{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(12,14,13,.55), rgba(12,14,13,.72));
}
.hero-content{
  position:relative;
  z-index:2;
  max-width: 720px;
  color:#fff;
}
.hero h1{
  margin:14px 0 12px;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
  letter-spacing:-.03em;
  line-height:1.08;
}
.hero p{
  margin: 0 0 20px;
  color: rgba(255,255,255,.84);
  max-width: 62ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
@media (max-width: 640px){
  .hero-badges{display:none}
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-actions .btn{width:100%}
}

/* ---------- Project Cards ---------- */
.project-card{
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid #efe6d6;
  background:var(--surface);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.project-thumb{
  height: clamp(280px, 34vw, 560px);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient( 340px 220px at 30% 30%, rgba(201,162,107,.45), transparent 60%),
    radial-gradient( 340px 220px at 70% 60%, rgba(47,93,80,.35), transparent 60%),
    linear-gradient(135deg, #dbd0bf, #f5f0e6);
  border-bottom:1px solid #efe6d6;
}
.project-thumb.has-image{
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f0e6;
}
.project-body{padding:14px 16px 16px}
.project-title{margin:0 0 6px; font-weight:850}
.project-meta{margin:0; color:var(--muted)}

/* ---------- Utility ---------- */
.spacer{height:16px}
.small{font-size:.95rem}
.flash{
  padding:10px 12px;
  border-radius:10px;
  background:#e9f2ee;
  border:1px solid #cfe0d8;
  color:#1f2321;
  margin-bottom:12px;
}
.kicker{
  display:inline-flex;
  gap:.55rem;
  align-items:center;
  font-weight:850;
  color:var(--accent);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.82rem;
}
.kicker::before{
  content:"";
  width:20px; height:2px;
  background: var(--accent-2);
  border-radius:999px;
  display:inline-block;
}


/* ---------- Brand Logo (image) ---------- */
.brand-logo{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}

/* ---------- Social Icons ---------- */
.social-icons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.social-icon{
  width:42px;
  height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.65);
  border:1px solid #e7dece;
  color: var(--accent);
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
}
.social-icon:hover{
  transform: translateY(-1px);
  border-color: rgba(47,93,80,.35);
  background: rgba(47,93,80,.10);
}
.social-icon svg{
  width:20px;
  height:20px;
  fill: currentColor;
  opacity:.95;
}
